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: The Properties KEY_CODE, KEY_CHARACTER and KEY_MODIFIER are read only.

Version:
1.0 04/10/2000 created
Author:
Duncan Mills

Variable Index

 o ALPHA_FILTER
 o ALPHANUMERIC_FILTER
 o CUSTOM_FILTER
 o CUSTOMFILTER
the property registered to return or set the custom filter on the field
 o FILTERTYPE
the property registered to return or set the current filter on the field
 o KEYCHAR
the property registered to return the character of the last key pressed or a control key enclosed in braces e.g.
 o KEYCODE
the property registered to return the ASCII code of the last key-press
 o 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
 o NO_FILTER
 o NUMERIC_FILTER

Constructor Index

 o KeyFilter()
Constructor for the KeyFiler PJC

Method Index

 o getProperty(ID)
Implimentation of IView interface
 o setProperty(ID, Object)
Implimentation of IView interface

Variables

 o KEYCODE
 public static final ID KEYCODE
the property registered to return the ASCII code of the last key-press

 o 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}

 o 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

 o FILTERTYPE
 public static final ID FILTERTYPE
the property registered to return or set the current filter on the field

 o CUSTOMFILTER
 public static final ID CUSTOMFILTER
the property registered to return or set the custom filter on the field

 o ALPHA_FILTER
 public static final int ALPHA_FILTER
 o NUMERIC_FILTER
 public static final int NUMERIC_FILTER
 o ALPHANUMERIC_FILTER
 public static final int ALPHANUMERIC_FILTER
 o CUSTOM_FILTER
 public static final int CUSTOM_FILTER
 o NO_FILTER
 public static final int NO_FILTER

Constructors

 o KeyFilter
 public KeyFilter()
Constructor for the KeyFiler PJC

Methods

 o 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
 o 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