Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.samples
Class SetDateAction

java.lang.Object
  extended bycom.ibm.lpex.samples.SetDateAction

All Implemented Interfaces:
LpexAction


public class SetDateAction
extends Object
implements LpexAction

Sample action setDate - set the sequence-numbers date in 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 date.

Here is the SetDateAction source code.

To run this sample:

See Also:
All the samples


Field Summary
static LpexAction setDateAction
          Variation of SetDateAction that can be used when our doSetDate command has already been defined in that view.
static LpexCommand setDateCommand
          Command to set the sequence-numbers text, passed in parameters, in all the visible selected lines, or in the current line if no selection.
 
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

 

 

setDateAction

public static LpexAction setDateAction

Variation of SetDateAction that can be used when our doSetDate command has already been defined in that view.


 

 

setDateCommand

public static LpexCommand setDateCommand

Command to set the sequence-numbers text, passed in parameters, in all the visible selected lines, or in the current line if no selection.

Constructor Detail

 

 

SetDateAction

public SetDateAction()

Method Detail

 

 

doAction

public void doAction(LpexView lpexView)

Runs the action. Prompts the user for a new date, then updates the sequence numbers for all the visible selected lines. Uses the input default editor command, and the doSetDate command defined in here.

Specified by:
doAction in interface LpexAction

Parameters:
lpexView - the document view in which the action is issued


 

 

available

public boolean available(LpexView lpexView)

Returns the availability of this action. The action can be run in any visible, writable view of a document with sequence numbers which have a textual part.

Specified by:
available in interface LpexAction

Parameters:
lpexView - the document view for which the action availability is queried


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD