|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.forms.demos.enhancedItems2.CursorPosCommon
Field Summary | |
protected static oracle.forms.properties.ID |
CARET_POSITION
Property used to set the Caret Position for a specific instance of the PJC. |
protected static int |
COMMON
Specify that an instance of the CursorPos PJC should use the common setting for it's cursor position or range selection. |
protected static oracle.forms.properties.ID |
COMMON_CARET_POSITION
Property used to set the Caret Position for all instances of the PJC, unless it is overridden by a specific instance. |
protected static oracle.forms.properties.ID |
COMMON_RANGE_SELECTION
Property used to set the Range Selection for all instances of the PJC, unless it is overridden by a specific instance. |
protected static java.awt.Point |
CommonCursorSelection
Holds the common cursor position or range selection. |
protected static oracle.forms.properties.ID |
DEBUGMESSAGES
Forms property used to indicate that we want the utility to switch Messaging on to the Java Console so we can see what is going on for a specific instance of the CursorPos PJC. |
protected static oracle.forms.properties.ID |
DEBUGMESSAGES_ALL
Forms property used to indicate that we want the utility to switch Messaging on to the Java Console so we can see what is going on for ALL instances of the CursorPos PJC. |
protected static int |
FIELD_END
Specify that the cursor position, or the start or end of the range selection, should be set to the end of the field. |
protected static int |
FIELD_START
Specify that the cursor position, or the start or end of the range selection, should be set to the start of the field. |
protected static int |
FORMS_DEFAULT
Specify that the field should not control the cursor or range selection, but let Forms do what it would normally do. |
protected static oracle.forms.properties.ID |
RANGE_SELECTION
Property used to set the Range Selection for a specific instance of the PJC. |
Constructor Summary | |
CursorPosCommon()
|
Method Summary | |
static java.awt.Point |
decodeSelection(java.lang.String pSelection)
The opposite of encodeSelection. |
static java.lang.String |
encodeCaretPosition(int pPosition)
Converts the value of the position to a string value. |
static java.lang.String |
encodeSelection(java.awt.Point pSelection)
Converts the selection to a string value. |
protected static java.awt.Point |
getCommonCursorSelection()
Get the common range selection. |
protected static int |
getCommonCursorSelectionEnd()
Get the end position of the common range selection. |
protected static int |
getCommonCursorSelectionStart()
Get the start position of the common range selection. |
static int |
getSelectionStart(java.awt.Point pSelection)
For a given selection, return the start position. |
protected static java.awt.Point |
resolveSelectionForThisField(java.awt.Point pCursorSelection,
oracle.ewt.lwAWT.lwText.LWCommonText pComp)
This method returns the action for this field. |
protected static void |
setCommonCursorSelection(java.awt.Point pSelection)
Set the common range selection. |
protected static void |
setCommonCursorSelectionEnd(int pPos)
Set the end point of common range selection. |
protected static void |
setCommonCursorSelectionStart(int pPos)
Set the start point of common range selection. |
protected static boolean |
toBoolean(java.lang.Object value,
boolean defaultValue)
Converts a string value containing TRUE or FALSE as a string to the equivalent boolean. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected static final oracle.forms.properties.ID DEBUGMESSAGES
protected static final oracle.forms.properties.ID DEBUGMESSAGES_ALL
protected static final oracle.forms.properties.ID COMMON_CARET_POSITION
protected static final oracle.forms.properties.ID COMMON_RANGE_SELECTION
protected static final oracle.forms.properties.ID CARET_POSITION
protected static final oracle.forms.properties.ID RANGE_SELECTION
protected static final int COMMON
protected static final int FORMS_DEFAULT
protected static final int FIELD_START
protected static final int FIELD_END
protected static java.awt.Point CommonCursorSelection
Constructor Detail |
public CursorPosCommon()
Method Detail |
protected static java.awt.Point getCommonCursorSelection()
protected static void setCommonCursorSelection(java.awt.Point pSelection)
pSelection
- A point whose x and y values represent the start and
end point of the selection.protected static int getCommonCursorSelectionStart()
protected static void setCommonCursorSelectionStart(int pPos)
pPos
- The start position.protected static int getCommonCursorSelectionEnd()
protected static void setCommonCursorSelectionEnd(int pPos)
pPos
- The end position.public static int getSelectionStart(java.awt.Point pSelection)
pSelection
- The selection.public static java.lang.String encodeCaretPosition(int pPosition)
pPosition
- The position to encode.public static java.lang.String encodeSelection(java.awt.Point pSelection)
pSelection
- The selection to encode.public static java.awt.Point decodeSelection(java.lang.String pSelection)
pSelection
- The selection to decode.protected static final boolean toBoolean(java.lang.Object value, boolean defaultValue)
value
- String containing the words True or false in any case or the Forms Constants PROPERTY_TRUE/PROPERTY_FALSEprotected static java.awt.Point resolveSelectionForThisField(java.awt.Point pCursorSelection, oracle.ewt.lwAWT.lwText.LWCommonText pComp)
pCursorSelection
- The cursor selection for the given field.pComp
- The text field that the PJC is acting on.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |