|
|||||||||
Home >> All >> jpicedt >> graphic >> [ toolkit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
jpicedt.graphic.toolkit
Class PEToggleAction

java.lang.Objectjavax.swing.AbstractAction
jpicedt.graphic.toolkit.PEAction
jpicedt.graphic.toolkit.PEToggleAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Direct Known Subclasses:
- EditorKit.FillAction, EditorKit.GridVisibleAction, EditorKit.SelectEditPointsModeAction, EditorKit.SelectMouseToolAction
- public abstract class PEToggleAction
- extends PEAction
A subclass of PEAction suited for toggle-able AbstractButton's, e.g. JToggleButton,
JCheckBox, JCheckBoxMenuItem and JRadioButton.
The main point is that PEMenu and PEToolBar know how to add a PEToggleAction and
to create the adequate widget (either JCheckBoxMenuItem or JToggleButton).
Concrete implementation of the actionPerformed should use
((AbstractButton)e.getSource()).isSelected()
to fetch the current widget state.
Field Summary
Fields inherited from class jpicedt.graphic.toolkit.PEAction
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
Constructor Summary
PEToggleAction(ActionDispatcher actionDispatcher,
java.lang.String actionName,
ActionLocalizer localizer)
Methods inherited from class jpicedt.graphic.toolkit.PEAction
actionPerformed, getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute, undoableActionPerformed
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
PEToggleAction
public PEToggleAction(ActionDispatcher actionDispatcher,
java.lang.String actionName,
ActionLocalizer localizer)
Overview
Package
Class
Use
Deprecated
Index
Home >> All >> jpicedt >> graphic >> [ toolkit overview ]
PREV CLASS NEXT CLASS
SUMMARY:
JAVADOC |
SOURCE |
DOWNLOAD | NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD