|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.samples.SetDateAction
public class SetDateAction
Sample action setDate - set the sequence-numbers date in the selected range. Use this action to modify the textual part of the sequence numbers in all the currently-selected visible lines. The user is prompted for the new text. Note that LPEX doesn't record changes to the sequence numbers in its undo stack.
Here is the SetDateAction source code.
To run this sample:
set actionClass.setDate com.ibm.lpex.samples.SetDateAction
action setDateor associate it with a key (here, Ctrl+T in the text area):
set keyAction.c-t setDate
All the samples
Nested Class Summary | |
---|---|
static class |
SetDateAction.SetDate
Sample command setDate - set the sequence-numbers date in the selected range. |
Field Summary | |
---|---|
static LpexCommand |
doSetDateCommand
Helper command, issued by our prompt's input command, to set the new sequence-numbers text (specified in parameters ), in all the
visible selected lines, or in the current line if there is no selection. |
static LpexAction |
setDateAction
Variation of SetDateAction that can be used, for example from a user profile, when the doSetDate helper command has already been defined in the view. |
Constructor Summary | |
---|---|
SetDateAction()
|
Method Summary | |
---|---|
boolean |
available(LpexView lpexView)
Returns the availability of this action. |
void |
doAction(LpexView lpexView)
Runs the action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static LpexAction setDateAction
public static final LpexCommand doSetDateCommand
parameters
), in all the
visible selected lines, or in the current line if there is no selection.
This command must be registered in a view with the name doSetDate.
Constructor Detail |
---|
public SetDateAction()
Method Detail |
---|
public void doAction(LpexView lpexView)
Uses the input built-in editor command, which in turn issues the doSetDate helper command defined in here. It checks for, and if needed registers, an instance of the doSetDate command in the view.
doAction
in interface LpexAction
lpexView
- the document view in which the action is issuedpublic boolean available(LpexView lpexView)
available
in interface LpexAction
lpexView
- the document view for which the action availability is
queried
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |