com.pepper.platform.program.actions
Class NewPageAction

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

public class NewPageAction
extends ProgramAbstractAction

Action to create a generic new data page

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
NewPageAction()
          Creates a new NewPageAction instance.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Creates a new page in the current section.
 Page createPage(String packageId, String pageID, String sectionID, String templateName)
          Create a page for the specified package
 
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

NewPageAction

public NewPageAction()
Creates a new NewPageAction instance.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Creates a new page in the current section.

Javascript:

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

Or:

Parameters:
event - Action event object

createPage

public Page createPage(String packageId,
                       String pageID,
                       String sectionID,
                       String templateName)
Create a page for the specified package

Parameters:
packageId - The packageId of the the source package
pageID - PageId for the page to be created
sectionID - SectionId of the section to be created
templateName - Name of the xsl template
Returns:
a Page value


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