All Packages Class Hierarchy This Package Previous Next Index
Class oracle.forms.demos.KeyFilter
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----oracle.ewt.lwAWT.LWComponent
|
+----oracle.ewt.EwtComponent
|
+----oracle.ewt.lwAWT.lwText.LWTextComponent
|
+----oracle.ewt.lwAWT.lwText.LWCommonText
|
+----oracle.ewt.lwAWT.lwText.LWTextField
|
+----oracle.forms.ui.VTextField
|
+----oracle.forms.demos.KeyFilter
- public class KeyFilter
- extends VTextField
Pluggable Java Components for Oracle Forms Server 6i
This class is a Pluggable Java Component for Oracle Forms, that implements
a method for only allowing defined keystrokes to be entered into a field.
The class also provides some additional information for the Forms programmer
in the form of information about what the last keypress delivered to the
field was and the Shift state at the time.
The class implements the following Custom properties for the programmer to
use:
- KEY_CODE
- KEY_CHARACTER
- KEY_MODIFIER
- FILTER_TYPE
- CUSTOM_FILTER
The Properties KEY_CODE, KEY_CHARACTER and KEY_MODIFIER
are read only.
- Version:
- 1.0 04/10/2000 created
- Author:
- Duncan Mills
-
ALPHA_FILTER
-
-
ALPHANUMERIC_FILTER
-
-
CUSTOM_FILTER
-
-
CUSTOMFILTER
- the property registered to return or set the custom filter on the field
-
FILTERTYPE
- the property registered to return or set the current filter on the field
-
KEYCHAR
- the property registered to return the character of the last key pressed
or a control key enclosed in braces e.g.
-
KEYCODE
- the property registered to return the ASCII code of the last key-press
-
KEYMODIFIER
- the property registered to return the modifier in force when the last key
was pressed - will return SHIFT, CTRL or ALT or a combination thereof
-
NO_FILTER
-
-
NUMERIC_FILTER
-
-
KeyFilter()
- Constructor for the KeyFiler PJC
-
getProperty(ID)
- Implimentation of IView interface
-
setProperty(ID, Object)
- Implimentation of IView interface
KEYCODE
public static final ID KEYCODE
- the property registered to return the ASCII code of the last key-press
KEYCHAR
public static final ID KEYCHAR
- the property registered to return the character of the last key pressed
or a control key enclosed in braces e.g. F1 will set this property to {F1}
KEYMODIFIER
public static final ID KEYMODIFIER
- the property registered to return the modifier in force when the last key
was pressed - will return SHIFT, CTRL or ALT or a combination thereof
FILTERTYPE
public static final ID FILTERTYPE
- the property registered to return or set the current filter on the field
CUSTOMFILTER
public static final ID CUSTOMFILTER
- the property registered to return or set the custom filter on the field
ALPHA_FILTER
public static final int ALPHA_FILTER
NUMERIC_FILTER
public static final int NUMERIC_FILTER
ALPHANUMERIC_FILTER
public static final int ALPHANUMERIC_FILTER
CUSTOM_FILTER
public static final int CUSTOM_FILTER
NO_FILTER
public static final int NO_FILTER
KeyFilter
public KeyFilter()
- Constructor for the KeyFiler PJC
getProperty
public Object getProperty(ID pid)
- Implimentation of IView interface
- Parameters:
- pid - property ID
- Returns:
- value of the property
- Overrides:
- getProperty in class VTextField
- See Also:
- IView
setProperty
public boolean setProperty(ID pid,
Object value)
- Implimentation of IView interface
- Parameters:
- pid - property to be set
- value - new value of the property
- Returns:
- true (if the property could be set), false otherwise
- Overrides:
- setProperty in class VTextField
- See Also:
- IView
All Packages Class Hierarchy This Package Previous Next Index