be.ugent.caagt.swirl.actions
Class ToolBarButton
JButtonbe.ugent.caagt.swirl.actions.ToolBarButton
public class ToolBarButton
extends JButton
Button for use on a tool bar. Has the same functionality as
JButton but with a slightly different look and feel. See
the documentation of ToolBarButton for details.
ToolBarButton(Action action)- Create a tool bar button from the given action.
|
ToolBarButton
public ToolBarButton(Action action)
Create a tool bar button from the given action. The following
action properties are used:
- The text of the button is set to
null - and not to
Action.NAME as might be expected. - The tool tip text is set to
Action.SHORT_DESCRIPTION
if it is non null, and otherwise to Action.NAME. - The icon is taken from
SimpleAction.MEDIUM_ICON, unless
this is null in which case Action.SMALL_ICON is used. - The icon for the disabled button is taken from
SimpleAction.MEDIUM_DISABLED_ICON if it is non-null.
Note that no accelerator key or mnemonic is installed.
PropertyChangeListener createActionPropertyChangeListener
protected @Override PropertyChangeListener createActionPropertyChangeListener(Action a)
void configurePropertiesFromAction
protected @Override void configurePropertiesFromAction(Action a)