public abstract class ExtendedAction extends AbstractAction
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_CLASS
the key value for the class attribute
|
static String |
ATTR_GROUP
the key value for the group attribute
|
static String |
ATTR_ID
the key value for the id attribute
|
static String |
ATTR_INHERITFROM
the key value for the inherit from attribute (not stored in the action)
|
static String |
ATTR_INSERTAT
the key value for the insert at attribute (not stored in the action)
|
static String |
ATTR_SEEK
the key value for the seek attribute (not stored in the action)
|
static String |
ATTR_TYPE
the key value for the group attribute
|
static String |
ATTR_USER_DEFINED
the key value for the group attribute
|
static String |
INSTANCE_KEY |
static String |
TYPE_CHECKBOX |
static String |
TYPE_COMBOBOX |
static String |
TYPE_RADIO |
static String |
TYPE_SLIDER |
static String |
TYPE_TEXT |
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ExtendedAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event) |
Object |
clone() |
String |
getClassName()
Returns the full class name of the implementing class.
|
String |
getGroup()
Returns the group of the action.
|
String |
getIdKey()
Returns the id of the action
|
static int |
getMouseWheels(MouseEvent mouseEvent)
Returns the numbre of points the mouse wheel was moved.
|
String |
getUserDefined()
Returns the user defined value associated with this action.
|
void |
initialize()
Is called when the action is created the first time.
|
static boolean |
isMouseLeftClicked(MouseEvent mouseEvent)
Returns true if the mouse event stores the left mouse button clicked
event.
|
static boolean |
isMouseLeftDragged(MouseEvent mouseEvent)
Returns true if the mouse event stores the left mouse button dragged
event.
|
static boolean |
isMouseLeftPressed(MouseEvent mouseEvent)
Returns true if the mouse event stores the left mouse button pressed
event.
|
static boolean |
isMouseLeftReleased(MouseEvent mouseEvent)
Returns true if the mouse event stores the left mouse button released
event.
|
static boolean |
isMouseRightClicked(MouseEvent mouseEvent)
Returns true if the mouse event stores the right mouse button clicked
event.
|
static boolean |
isMouseRightDragged(MouseEvent mouseEvent)
Returns true if the mouse event stores the right mouse button dragged
event.
|
static boolean |
isMouseRightPressed(MouseEvent mouseEvent)
Returns true if the mouse event stores the right mouse button pressed
event.
|
static boolean |
isMouseRightReleased(MouseEvent mouseEvent)
Returns true if the mouse event stores the right mouse button released
event.
|
boolean |
isSelected()
Returns the state of selection of this action.
|
void |
setSelected(boolean selected)
set the selected property to the given parameter, true or false.
|
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String ATTR_INHERITFROM
public static final String ATTR_INSERTAT
public static final String ATTR_SEEK
public static final String ATTR_CLASS
public static final String ATTR_ID
public static final String ATTR_GROUP
public static final String ATTR_TYPE
public static final String ATTR_USER_DEFINED
public static final String TYPE_RADIO
public static final String TYPE_CHECKBOX
public static final String TYPE_SLIDER
public static final String TYPE_TEXT
public static final String TYPE_COMBOBOX
public static final String INSTANCE_KEY
public void initialize()
public String getIdKey()
public String getClassName()
public String getUserDefined()
public String getGroup()
public void setSelected(boolean selected)
selected
- true to 'select' the action, false to deselect.public boolean isSelected()
public static boolean isMouseLeftClicked(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseRightClicked(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseLeftPressed(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseRightPressed(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseLeftReleased(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseRightReleased(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseLeftDragged(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static boolean isMouseRightDragged(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic static int getMouseWheels(MouseEvent mouseEvent)
mouseEvent
- the mouse event to testpublic Object clone() throws CloneNotSupportedException
clone
in class AbstractAction
CloneNotSupportedException
public void actionPerformed(ActionEvent event)