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
-
Constructor Summary
ConstructorDescriptionButtonSupport
(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 TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) void
dispose()
void
eventOccured
(EventObject event) This method is invoked on registered event listeners whenevent
has occured.static ButtonSupport
protected Component
protected abstract Robot
getRobot()
protected Robot
getRobot
(GraphicsDevice device) On multi-screen environments there should be one robot per GraphicsDevice.protected abstract Cursor
void
itemStateChanged
(ItemEvent event) void
void
void
void
void
postAction
(ActionEvent event) void
run()
void
setActionListener
(ActionListener listener) void
updateState
(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
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
setActionListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
postAction
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classMouseAdapter
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMouseAdapter
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMouseAdapter
-
eventOccured
Description copied from interface:EventListener
This method is invoked on registered event listeners whenevent
has 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:
eventOccured
in 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:
-