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 BlockTransferAction

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

All Implemented Interfaces:
LpexAction


public class BlockTransferAction
extends Object
implements LpexAction

Sample action blockTransfer - transfer selection. This action is similar to the blockCopy default editor action, but it will copy the selection to new lines.

Here is the BlockTransferAction source code.

To run this sample:

See Also:
TestUserProfile, All the samples


Constructor Summary
BlockTransferAction()
           
 
Method Summary
 boolean available(LpexView lpexView)
          This method in the defined action will be called to query the availability of the action.
 void doAction(LpexView lpexView)
          This method in the defined action will be called to run the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

 

 

BlockTransferAction

public BlockTransferAction()

Method Detail

 

 

doAction

public void doAction(LpexView lpexView)

Description copied from interface: LpexAction
This method in the defined action will be called to run the action.

An action may be run (e.g., from the LPEX command line) with the action editor command, by selecting an associated menu item, or by activating the key or the mouse event to which the action is assigned.

Specified by:
doAction in interface LpexAction

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


 

 

available

public boolean available(LpexView lpexView)

Description copied from interface: LpexAction
This method in the defined action will be called to query the availability of the action.

When this method returns false, menu items associated with this user action will be disabled, the key or mouse event to which this action is assigned will not run it, and neither will the action command.

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