|
|||||||||
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.SortPageAction
public class SortPageAction
Sorts a page / table param can be the id of the column, or a full sort spec like sortPages="date,ascending,lower-first,*,date" ByColumnId,Order,Case,Key,DataType
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 | |
---|---|
SortPageAction()
Creates a new SortPageAction instance. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
Sorts a section in response to the action ACTION_SORT_PAGE . |
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 SortPageAction()
SortPageAction
instance.
Method Detail |
---|
public void actionPerformed(ActionEvent event)
ACTION_SORT_PAGE
.
Javascript:
To call this action using Javascript via the Javascript bridge, use the form:
bridge.action('SortPage', elementId);
With parameter:
elementId
- The elementId to sort - for example 'title'
Or:
bridge.action('SortPage', params);
With parameter:
params
- A comma delimited string in the following order:
elementId,ascending|descending,lower-first|upper-first,*|sortKey,number|text
(the data type of the element)
event
- an ActionEvent
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |