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 class
CallbackGUIBindings.Binding<C extends Callback>
class
CallbackGUIBindings.Choice
class
CallbackGUIBindings.Confirmation
class
CallbackGUIBindings.Language
protected static class
CallbackGUIBindings.MessageType
Simplifies converting between option pane message types and callback message types.class
CallbackGUIBindings.Name
class
CallbackGUIBindings.Password
class
CallbackGUIBindings.TextInput
class
CallbackGUIBindings.TextOutput
-
Field Summary
Fields Modifier and Type Field Description protected static int
LIST_ROWS
number of rows to be visible in JLists used to display informationprotected static int
TEXT_COLUMNS
number of columns for text areasprotected static int
TEXT_ROWS
number 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.Binding
createCallbackGUIBinding(Callback callback)
Factory method for creating the appropriate callback-to-U/I binding object given a callback.CallbackGUIBindings.Confirmation
getDefaultConfirmationCallbackUIBinding()
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 recognizedInstantiationException
IllegalAccessException
NoSuchMethodException
IllegalArgumentException
InvocationTargetException
-
getDefaultConfirmationCallbackUIBinding
public CallbackGUIBindings.Confirmation getDefaultConfirmationCallbackUIBinding()
Creates a default ConfirmationCallback binding (because the caller did not provide one).- Returns:
- the default ConfirmationCallbackUIBinding
-
-