public abstract class CallbackGUIBindings.Binding<C extends Callback> extends Object implements CallbackBinding.GUI<C>
CallbackBinding.GUI<C extends Callback>, CallbackBinding.Text<C extends Callback>| Constructor and Description |
|---|
Binding() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract JComponent |
createComponent() |
protected JComponent |
createPromptedInputBox(String prompt,
JComponent input) |
JComponent |
getComponent() |
protected CallbackGUIBindings.MessageType |
getMessageType() |
protected JScrollPane |
prepareScrollPane(JComponent body)
Creates a JScrollPane containing the specified component with no
column header.
|
protected JScrollPane |
prepareScrollPane(String columnHeader,
JComponent body)
Creates a JScrollPane containing a column header and the specified component.
|
void |
setCallback(C callback) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishprotected JComponent createPromptedInputBox(String prompt, JComponent input)
protected CallbackGUIBindings.MessageType getMessageType()
protected JScrollPane prepareScrollPane(JComponent body)
body - the JComponent to enclose in the scroll paneprotected JScrollPane prepareScrollPane(String columnHeader, JComponent body)
columnHeader - String containing the header textbody - the JComponent to enclose in the scroll paneprotected abstract JComponent createComponent()
public JComponent getComponent()
getComponent in interface CallbackBinding.GUI<C extends Callback>public void setCallback(C callback)
setCallback in interface CallbackBinding<C extends Callback>Copyright © 2017. All rights reserved.