Class CallbackGUIBindings.Binding<C extends Callback>
- java.lang.Object
-
- org.glassfish.appclient.client.acc.callbackhandler.CallbackGUIBindings.Binding<C>
-
- All Implemented Interfaces:
CallbackBinding<C>
,CallbackBinding.GUI<C>
- Direct Known Subclasses:
CallbackGUIBindings.Choice
,CallbackGUIBindings.Confirmation
,CallbackGUIBindings.Language
,CallbackGUIBindings.Name
,CallbackGUIBindings.Password
,CallbackGUIBindings.TextInput
,CallbackGUIBindings.TextOutput
- Enclosing class:
- CallbackGUIBindings
public abstract class CallbackGUIBindings.Binding<C extends Callback> extends Object implements CallbackBinding.GUI<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.appclient.client.acc.callbackhandler.CallbackBinding
CallbackBinding.GUI<C extends Callback>, CallbackBinding.Text<C extends Callback>
-
-
Constructor Summary
Constructors Constructor Description Binding()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JComponent
createComponent()
protected JComponent
createPromptedInputBox(String prompt, JComponent input)
JComponent
getComponent()
protected CallbackGUIBindings.MessageType
getMessageType()
protected JScrollPane
prepareScrollPane(String columnHeader, JComponent body)
Creates a JScrollPane containing a column header and the specified component.protected JScrollPane
prepareScrollPane(JComponent body)
Creates a JScrollPane containing the specified component with no column header.void
setCallback(C callback)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.appclient.client.acc.callbackhandler.CallbackBinding
finish
-
-
-
-
Method Detail
-
createPromptedInputBox
protected JComponent createPromptedInputBox(String prompt, JComponent input)
-
getMessageType
protected CallbackGUIBindings.MessageType getMessageType()
-
prepareScrollPane
protected JScrollPane prepareScrollPane(JComponent body)
Creates a JScrollPane containing the specified component with no column header.- Parameters:
body
- the JComponent to enclose in the scroll pane- Returns:
- the JScrollPane holding the component
-
prepareScrollPane
protected JScrollPane prepareScrollPane(String columnHeader, JComponent body)
Creates a JScrollPane containing a column header and the specified component.- Parameters:
columnHeader
- String containing the header textbody
- the JComponent to enclose in the scroll pane- Returns:
- the JScrollPane with the specified header and component
-
createComponent
protected abstract JComponent createComponent()
-
getComponent
public JComponent getComponent()
- Specified by:
getComponent
in interfaceCallbackBinding.GUI<C extends Callback>
-
setCallback
public void setCallback(C callback)
- Specified by:
setCallback
in interfaceCallbackBinding<C extends Callback>
-
-