Static Public Member Functions | |
JButton | createJButton (Class actionClass) |
JButton | createJButton (TopComponent tc, Class actionClass) |
JButton | createJButton (SystemAction act) |
JButton | createJButton (Action act) |
JPanel | createJButtonPanel (Class[] actionClasses) |
JPanel | createJButtonPanel (TopComponent tc, Class[] actionClasses) |
JComponent | addJButtons (JComponent comp, Class[] actionClasses) |
ImageIcon | getBlankIcon () |
Action | actionForComp (TopComponent tc, Class action) |
Private Member Functions | |
ActionUtils () | |
Static Private Attributes | |
ImageIcon | BLANK_ICON = null |
|
do not instantiate |
|
helper method, creates an action that is "connected" to the nodes inside a TopComponent. This makes it possible to create Action Buttons that listen to nodes in an Explorer but are located outside the Explorer's TopComponent
|
|
Utility method, adds JButtons corresponding to the actionClasses to a JComponent
|
|
creates a JButton for the Action itself. You should not need to use this method, rather use createJButton(Class) If you find you need to use this action, please do not create actions yourself, use the or #actionForComp(TopComponent, Class) instead.
|
|
creates a JButton for the SystemAction itself. You should not need to use this method, rather use createJButton(Class) If you find you need to use this action, please do not create actions yourself, use the or #actionForComp(TopComponent, Class) instead.
|
|
creates a JButton for the action class that listens to Nodes in the specified TopComponent. This is useful, e.g. when you want to place the JButton in a separate TopComponent (i.e. not in the Explorer TopComponent itself)
|
|
creates a JButton for the action class. This button takes its icon, description, shortcut etc from the action class. It is enabled whenever the action is enabled.
|
|
creates a JPanel with JButtons for action classes that listen to Nodes in the specified TopComponent. This is useful, e.g.when you want to place the Buttons in a separate TopComponent (i.e. not in the Explorer TopComponent itself).
|
|
creates a JPanel with JButtons for the actions specified. The JPanel uses a FlowLayout. If you don't like the JPanel, you can create the JPanel (or other component) yourself and use addJButtons
|
|
utility method, returns a blank icon, can be used if an existing icon shall be "hidden" |
|
|