| java.lang.Object net.xoetrope.xui.XEventHandler
All known Subclasses: net.xoetrope.builder.editor.XEditorEventHandler,
Method Summary | |
public void | actionPerformed(ActionEvent e) | public void | addActionHandler(Component comp, String methodName) | public void | addFocusHandler(Component comp, String methodName) | public void | addHandler(Object comp, long eventType, String methodName) Adds an event handler. | public void | addItemHandler(Component comp, String methodName) | public void | addKeyHandler(Component comp, String methodName) | public void | addListener(Object comp, String listenerName, String argType) Adds a listener for an event type. | public void | addMenuHandler(Object menuItem, String methodName) | public void | addMouseHandler(Component comp, String methodName) | public void | addMouseMotionHandler(Component comp, String methodName) | public void | addTextHandler(Component comp, String methodName) | public Method | findEvent(Component src, long eventType) Lookup an event for a component. | public void | focusGained(FocusEvent e) | public void | focusLost(FocusEvent e) | public AWTEvent | getCurrentEvent() | protected void | invoke(long eventType, AWTEvent evt) Invokes an event. | public boolean | isFocusChangeSuppressed() | public void | itemStateChanged(ItemEvent e) | public void | keyPressed(KeyEvent e) | public void | keyReleased(KeyEvent e) | public void | keyTyped(KeyEvent e) | public void | mouseClicked(MouseEvent e) | public void | mouseDragged(MouseEvent e) | public void | mouseEntered(MouseEvent e) | public void | mouseExited(MouseEvent e) | public void | mouseMoved(MouseEvent e) | public void | mousePressed(MouseEvent e) | public void | mouseReleased(MouseEvent e) | public void | suppressFocusEvents(boolean suppress) Used by messageboxes and other dialogs to prevent the display of the dialog
causing extra focus events from being fired. | public void | textValueChanged(TextEvent e) | public boolean | wasMouseClicked() A utility method used to determine if the last event corrseponds to a mouse
click. | public boolean | wasMouseDoubleClicked() A utility method used to determine if the last event corrseponds to a mouse
double click. | public boolean | wasMouseRightClicked() A utility method used to determine if the last event corrseponds to a mouse
right click. |
mouseEventInvoked | protected static boolean mouseEventInvoked(Code) | | |
suppressFocusEvents | protected static int suppressFocusEvents(Code) | | |
addHandler | public void addHandler(Object comp, long eventType, String methodName) throws Exception(Code) | | Adds an event handler. A specific handler such as the addActionHandler should
be used instead of calling this method
Parameters: comp - the component that fires the event Parameters: methodName - the method to be invoked in response to the object |
addListener | public void addListener(Object comp, String listenerName, String argType)(Code) | | Adds a listener for an event type. This method should not normally be
called by an application
Parameters: comp - the component that fires events Parameters: listenerName - the name of the listener interface Parameters: argType - the listener arguments |
findEvent | public Method findEvent(Component src, long eventType)(Code) | | Lookup an event for a component.
Parameters: evt - the event object |
getCurrentEvent | public AWTEvent getCurrentEvent()(Code) | | Get the current event
the AWTEvent that was last triggered |
invoke | protected void invoke(long eventType, AWTEvent evt)(Code) | | Invokes an event. Called in response to an event. If a handler has been
added for the event it will be invoked.
Parameters: evt - the event object |
isFocusChangeSuppressed | public boolean isFocusChangeSuppressed()(Code) | | Check the focus change status
true if the focus change events are being suppressed. |
suppressFocusEvents | public void suppressFocusEvents(boolean suppress)(Code) | | Used by messageboxes and other dialogs to prevent the display of the dialog
causing extra focus events from being fired.
Parameters: suppress - true to suppress focus events |
wasMouseClicked | public boolean wasMouseClicked()(Code) | | A utility method used to determine if the last event corrseponds to a mouse
click. The notion of a click is extended by assuming the a mouse press and
release within a single component constitutes a click even if not at the
same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press
and release are at the same location and this is often inadequate for end-user
interaction.
true if the mouse was clicked |
wasMouseDoubleClicked | public boolean wasMouseDoubleClicked()(Code) | | A utility method used to determine if the last event corrseponds to a mouse
double click. The notion of a click is extended by assuming the a mouse press and
release within a single component constitutes a click even if not at the
same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press
and release are at the same location and this is often inadequate for end-user
interaction.
true if the mouse was double clicked |
wasMouseRightClicked | public boolean wasMouseRightClicked()(Code) | | A utility method used to determine if the last event corrseponds to a mouse
right click. The notion of a click is extended by assuming the a mouse press and
release within a single component constitutes a click even if not at the
same coordinate. A MouseEvent.MOUSE_CLICKED is only triggered when the press
and release are at the same location and this is often inadequate for end-user
interaction.
true if the mouse was right clicked |
|
|