Class CallbackGUIBindings
- java.lang.Object
-
- org.glassfish.appclient.client.acc.callbackhandler.CallbackGUIBindings
-
public class CallbackGUIBindings extends Object
- Author:
- tjquinn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCallbackGUIBindings.Binding<C extends Callback>classCallbackGUIBindings.ChoiceclassCallbackGUIBindings.ConfirmationclassCallbackGUIBindings.Languageprotected static classCallbackGUIBindings.MessageTypeSimplifies converting between option pane message types and callback message types.classCallbackGUIBindings.NameclassCallbackGUIBindings.PasswordclassCallbackGUIBindings.TextInputclassCallbackGUIBindings.TextOutput
-
Field Summary
Fields Modifier and Type Field Description protected static intLIST_ROWSnumber of rows to be visible in JLists used to display informationprotected static intTEXT_COLUMNSnumber of columns for text areasprotected static intTEXT_ROWSnumber of rows of text to be visible in text areas
-
Constructor Summary
Constructors Constructor Description CallbackGUIBindings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackGUIBindings.BindingcreateCallbackGUIBinding(Callback callback)Factory method for creating the appropriate callback-to-U/I binding object given a callback.CallbackGUIBindings.ConfirmationgetDefaultConfirmationCallbackUIBinding()Creates a default ConfirmationCallback binding (because the caller did not provide one).
-
-
-
Field Detail
-
LIST_ROWS
protected static final int LIST_ROWS
number of rows to be visible in JLists used to display information- See Also:
- Constant Field Values
-
TEXT_ROWS
protected static final int TEXT_ROWS
number of rows of text to be visible in text areas- See Also:
- Constant Field Values
-
TEXT_COLUMNS
protected static final int TEXT_COLUMNS
number of columns for text areas- See Also:
- Constant Field Values
-
-
Method Detail
-
createCallbackGUIBinding
public CallbackGUIBindings.Binding createCallbackGUIBinding(Callback callback) throws UnsupportedCallbackException, InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException
Factory method for creating the appropriate callback-to-U/I binding object given a callback.- Parameters:
callback- the Callback for which to create the binding- Returns:
- the CallbackUIBinding suitable for the type of callback provided
- Throws:
UnsupportedCallbackException- if the type of callback is not recognizedInstantiationExceptionIllegalAccessExceptionNoSuchMethodExceptionIllegalArgumentExceptionInvocationTargetException
-
getDefaultConfirmationCallbackUIBinding
public CallbackGUIBindings.Confirmation getDefaultConfirmationCallbackUIBinding()
Creates a default ConfirmationCallback binding (because the caller did not provide one).- Returns:
- the default ConfirmationCallbackUIBinding
-
-