oracle.forms.demos.enhancedItems2
Class CursorPosTextField

oracle.forms.demos.enhancedItems2.CursorPosTextField

public class CursorPosTextField

CursorPos Pluggable Java Component for Oracle Forms Services 9i

This class is a Pluggable Java Component for Oracle Forms, that implements a method for controlling the position of the cursor or range selection in a text field

Cursor Position
This class lets you specify the cursor position as either FIELD_START, FIELD_END, or a user-defined position (which should be greater than or equal to 0). You can also specify COMMON as a position, which means this instance will use whatever Common has been set to.

Range Selection
You can also specify a range selection that will highlight text. You set the start and end positions. The valid values are the same as for the Cursor Position.

For more PJC Demos and White Papers see Forms on OTN

Version:
9.0 01/Oct/2002
Author:
Robin Zimmermann

Constructor Summary
CursorPosTextField()
          Constructor for the CursorPosTextField PJC
 
Method Summary
 java.lang.Object getProperty(oracle.forms.properties.ID pId)
          Implementation of IView interface.
 boolean setProperty(oracle.forms.properties.ID pId, java.lang.Object pValue)
          Implementation of IView interface.
 

Constructor Detail

CursorPosTextField

public CursorPosTextField()
Constructor for the CursorPosTextField PJC
Method Detail

getProperty

public java.lang.Object getProperty(oracle.forms.properties.ID pId)
Implementation of IView interface. This code in the PJC is called when PL/SQL in Forms issues a GET_CUSTOM_PROPERTY call The value returned from this method is returned to PL/SQL
Parameters:
pId - property ID
Returns:
value of the property
See Also:
IView

setProperty

public boolean setProperty(oracle.forms.properties.ID pId,
                           java.lang.Object pValue)
Implementation of IView interface. This code in the PJC is called when PL/SQL in Forms issues a SET_CUSTOM_PROPERTY call
Parameters:
pId - property to be set
vValue - new value of the property
Returns:
true (if the property could be set), false otherwise
See Also:
IView