Package jmri.jmrit.roster.swing
Class DeleteRosterGroupContentsAction
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
jmri.jmrit.roster.swing.DeleteRosterGroupContentsAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Remove roster group contents, leaving the group
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Component(package private) CountingBusyDialogFields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wiFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Call setParameter("group", oldName) prior to calling actionPerformed(event) to bypass the roster group selection dialog if the name of the group to be copied is already known and is not the selectedRosterGroup property of the WindowInterface.(package private) booleanCan provide some mechanism to prompt for user for one last chance to change his/her mindMethods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
_who
-
dialog
-
-
Constructor Details
-
DeleteRosterGroupContentsAction
-
DeleteRosterGroupContentsAction
-
DeleteRosterGroupContentsAction
- Parameters:
s- Name of this action, e.g. in menuswho- Component that action is associated with, used to ensure proper position in of dialog boxes
-
-
Method Details
-
actionPerformed
Call setParameter("group", oldName) prior to calling actionPerformed(event) to bypass the roster group selection dialog if the name of the group to be copied is already known and is not the selectedRosterGroup property of the WindowInterface.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
userOK
Can provide some mechanism to prompt for user for one last chance to change his/her mind- Parameters:
entry- roster group to confirm deletion of- Returns:
- true if user says to continue
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-