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 ComposeAction

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

All Implemented Interfaces:
LpexAction


public class ComposeAction
extends Object
implements LpexAction

Sample action compose - enter special characters. Use this action to enter into the document special characters that are not found on your default keyboard. For example, enter a acute (á) by typing a compose sequence consisting of a and apostrophe ('), or the plus/minus sign (±) by typing + and -.

Here is the ComposeAction source code.

To run this sample:

See the source code for the supported compose sequences. To see these characters in the document, you may need a Unicode font installed on your system.

See Also:
TestUserProfile, All the samples


Field Summary
static LpexAction composeAction
          Compose action that can be used when the compose command has been already defined in that view.
static LpexCommand composeCommand
          Command to compose a special character from regular ones.
 
Constructor Summary
ComposeAction()
           
 
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

 

 

composeCommand

public static LpexCommand composeCommand

Command to compose a special character from regular ones. Also used by TestUserProfile.


 

 

composeAction

public static LpexAction composeAction

Compose action that can be used when the compose command has been already defined in that view. Used by TestUserProfile.

Constructor Detail

 

 

ComposeAction

public ComposeAction()

Method Detail

 

 

doAction

public void doAction(LpexView lpexView)

Runs the action. Prompts the user for the compose sequence, then enters the special character into the document. Uses the input default editor command, and the compose 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 document view.

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