|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
com.pepper.platform.program.actions.ProgramAbstractAction
com.pepper.platform.program.actions.NewPageAction
public class NewPageAction
Action to create a generic new data page
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 |
---|
public NewPageAction()
NewPageAction
instance.
Method Detail |
---|
public void actionPerformed(ActionEvent event)
Javascript:
To call this action using Javascript via the Javascript bridge, use the form:
bridge.action('NewPage', newPageTemplateName);
With parameter:
newPageTemplateName
- The template to be used for the new page
Note: If the parameter contains a slash, then the syntax is "template/sectionID". If no slash, then the parameter is just the template name.
Or:
bridge.action('NewPage');
To create a new page using the default page template for this section.
event
- Action event objectpublic Page createPage(String packageId, String pageID, String sectionID, String templateName)
packageId
- The packageId of the the source packagepageID
- PageId for the page to be createdsectionID
- SectionId of the section to be createdtemplateName
- Name of the xsl template
Page
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |