public abstract class SwingOwner extends UIOwner<SwingEvent,javax.swing.JComponent>
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
Constructor and Description |
---|
SwingOwner() |
Modifier and Type | Method and Description |
---|---|
void |
addKeyActionEvent(java.lang.String aName,
java.lang.String aKey)
Configures an ActionEvent to be sent to owner for given name and key description (in KeyStroke string format).
|
protected SwingTimer |
createTimer()
Override to return SwingTimer.
|
protected javax.swing.JComponent |
createUI()
Creates the UI panel.
|
protected javax.swing.JComponent |
createUI(java.lang.Class aClass)
Creates the UI panel.
|
protected SwingWindow |
createWindow()
Creates a window for this panel from window class.
|
javax.swing.JComponent |
getNode(java.lang.String aName)
Override to include Window MenuBar.
|
<T extends javax.swing.JComponent> |
getNode(java.lang.String aName,
java.lang.Class<T> aClass)
Returns the specific UI child node with the given name as the given class.
|
SwingHelper |
getNodeHelper(java.lang.Object anObj)
Returns the helper for a given object.
|
SwingTimer |
getTimer(java.lang.String aName)
Returns a timer for given name.
|
SwingTimer |
getTimer(java.lang.String aName,
int aPeriod)
Returns a timer for given name and interval (in milliseconds).
|
javax.swing.JComponent |
getUI()
Returns the main UI node.
|
SwingWindow |
getWindow()
Returns the SwingWindow to manage this SwingOwner's window.
|
protected boolean |
isEventThread()
Returns whether current thread is event thread.
|
boolean |
isWindowVisible()
Returns whether window is visible.
|
void |
requestFocus(java.lang.Object anObj)
Focuses given component.
|
protected void |
requestFocusImpl(java.lang.Object anObj)
Actual request focus implementation.
|
void |
runLater(java.lang.Runnable aRunnable)
Runs the given runnable in the next event.
|
void |
sendEvent(java.lang.Object anObj)
Sends an event for a component.
|
void |
setWindowVisible(boolean aValue)
Sets whether window is visible.
|
addNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, resetUI, respondUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
public javax.swing.JComponent getUI()
getUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected javax.swing.JComponent createUI()
createUI
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected javax.swing.JComponent createUI(java.lang.Class aClass)
public javax.swing.JComponent getNode(java.lang.String aName)
getNode
in class UIOwner<SwingEvent,javax.swing.JComponent>
public <T extends javax.swing.JComponent> T getNode(java.lang.String aName, java.lang.Class<T> aClass)
getNode
in class UIOwner<SwingEvent,javax.swing.JComponent>
public SwingHelper getNodeHelper(java.lang.Object anObj)
getNodeHelper
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void requestFocus(java.lang.Object anObj)
requestFocus
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected void requestFocusImpl(java.lang.Object anObj)
public void addKeyActionEvent(java.lang.String aName, java.lang.String aKey)
addKeyActionEvent
in class UIOwner<SwingEvent,javax.swing.JComponent>
KeyStroke
public SwingWindow getWindow()
protected SwingWindow createWindow()
public boolean isWindowVisible()
public void setWindowVisible(boolean aValue)
public SwingTimer getTimer(java.lang.String aName)
public SwingTimer getTimer(java.lang.String aName, int aPeriod)
protected SwingTimer createTimer()
public void runLater(java.lang.Runnable aRunnable)
runLater
in class UIOwner<SwingEvent,javax.swing.JComponent>
protected boolean isEventThread()
isEventThread
in class UIOwner<SwingEvent,javax.swing.JComponent>
public void sendEvent(java.lang.Object anObj)
sendEvent
in class UIOwner<SwingEvent,javax.swing.JComponent>