public abstract class PEToggleAction extends PEAction
actionPerformed should use
((AbstractButton)e.getSource()).isSelected()
to fetch the current widget state.
Constructor and Description |
---|
PEToggleAction(ActionDispatcher actionDispatcher,
java.lang.String actionName,
ActionLocalizer localizer) |
actionPerformed, getCanvas, getDrawing, getEditorKit, getSelectedObject, setAttribute, undoableActionPerformed
public PEToggleAction(ActionDispatcher actionDispatcher, java.lang.String actionName, ActionLocalizer localizer)
actionDispatcher
- the ActionDispatcher that provide a target when this Action gets invoked.actionName
- the actionName of this Action that serve to build this Action's propertieslocalizer
- (can be null) the ActionLocalizer that feeds this Action with localized properties ;
if null, the Action's NAME property is set to actionName, but other
properties are not set (this allow a subclass to set properties manually).Submit a bug : syd@jpicedt.org