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 JComponentcreateComponent()protected JComponentcreatePromptedInputBox(String prompt, JComponent input)JComponentgetComponent()protected CallbackGUIBindings.MessageTypegetMessageType()protected JScrollPaneprepareScrollPane(String columnHeader, JComponent body)Creates a JScrollPane containing a column header and the specified component.protected JScrollPaneprepareScrollPane(JComponent body)Creates a JScrollPane containing the specified component with no column header.voidsetCallback(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:
getComponentin interfaceCallbackBinding.GUI<C extends Callback>
-
setCallback
public void setCallback(C callback)
- Specified by:
setCallbackin interfaceCallbackBinding<C extends Callback>
-
-