java.lang.Object
java.awt.event.MouseAdapter
de.grogra.pf.ui.awt.ButtonSupport
- All Implemented Interfaces:
Disposable,EventListener,ActionListener,ItemListener,MouseListener,MouseMotionListener,MouseWheelListener,Runnable,EventListener
public abstract class ButtonSupport
extends MouseAdapter
implements EventListener, ActionListener, ItemListener, MouseMotionListener, Runnable, Disposable
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.grogra.util.EventListener
EventListener.Bicast, EventListener.Multicaster -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionButtonSupport(UITree tree, Object node, int type, Button button) ButtonSupport(UITree tree, Object node, int type, Checkbox button) ButtonSupport(UITree tree, Object node, int type, MenuItem button) ButtonSupport(UITree tree, Object node, int type, AbstractButton button) -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) voiddispose()voideventOccured(EventObject event) This method is invoked on registered event listeners wheneventhas occured.static ButtonSupportprotected ComponentgetNode()protected abstract RobotgetRobot()protected RobotgetRobot(GraphicsDevice device) On multi-screen environments there should be one robot per GraphicsDevice.protected abstract CursorvoiditemStateChanged(ItemEvent event) voidvoidvoidvoidvoidpostAction(ActionEvent event) voidrun()voidsetActionListener(ActionListener listener) voidupdateState(Object newSourceNode) Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
-
Field Details
-
tree
-
node
-
shortDescription
-
type
protected final int type -
button
-
-
Constructor Details
-
ButtonSupport
-
ButtonSupport
-
ButtonSupport
-
ButtonSupport
-
-
Method Details
-
getNode
-
dispose
public void dispose()- Specified by:
disposein interfaceDisposable
-
setActionListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
postAction
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMouseAdapter
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMouseAdapter
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMouseAdapter
-
eventOccured
Description copied from interface:EventListenerThis method is invoked on registered event listeners wheneventhas occured. This general listener interface does not restrict the possible kinds of events. Concrete sources of events should specify which events they may fire.- Specified by:
eventOccuredin interfaceEventListener- Parameters:
event- an event
-
getCursorComponent
-
updateState
-
run
public void run() -
get
-
getTransparentCursor
-
getRobot
-
getRobot
On multi-screen environments there should be one robot per GraphicsDevice. Those robots will be allocated on-demand and returned by this function.- Parameters:
o-- Returns:
-