com.pepper.platform.program.actions
Class DeleteSectionAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.pepper.platform.program.actions.ProgramAbstractAction
          extended by com.pepper.platform.program.actions.DeleteSectionAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class DeleteSectionAction
extends ProgramAbstractAction

Delete Section Action to handle section deletion

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.pepper.platform.program.actions.ProgramAbstractAction
IMAGE_DIR, LARGE_ICON, log
 
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
DeleteSectionAction()
          Constructor
DeleteSectionAction(Section section)
          Delete a specific section
 
Method Summary
 void actionPerformed(ActionEvent event)
          Action to delete the current section.
 boolean wasDeleted()
          Returns true if the section was deleted, and false if not
 
Methods inherited from class com.pepper.platform.program.actions.ProgramAbstractAction
getActionCommand, getConfig, getGSP, getIcon, getLongDescription, getMnemonicKey, getName, getPackageId, getProcess, getProgram, getShortDescription
 
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

DeleteSectionAction

public DeleteSectionAction()
Constructor


DeleteSectionAction

public DeleteSectionAction(Section section)
Delete a specific section

Parameters:
section - a Section value
Since:
3.2
Method Detail

wasDeleted

public boolean wasDeleted()
Returns true if the section was deleted, and false if not

Returns:
a boolean value

actionPerformed

public void actionPerformed(ActionEvent event)
Action to delete the current section.

Javascript:

To call this action using Javascript via the Javascript bridge, use the form:

Parameters:
event - Action event


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.