|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JTextField | +--com.klg.jclass.field.JCTextField
JCTextField
has all the capability of JTextField
as well as the ability to
validate its contents.
JTextField
, Serialized FormInner classes inherited from class javax.swing.JTextField |
JTextField.AccessibleJTextField |
Inner classes inherited from class javax.swing.text.JTextComponent |
JTextComponent.AccessibleJTextComponent,
JTextComponent.KeyBinding |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
protected Field |
field
|
protected boolean |
required
|
static String |
version
Contains the version number of the JClass product. |
Fields inherited from class javax.swing.JTextField |
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP,
FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Fields inherited from interface com.klg.jclass.field.JCFieldComponent |
INVALID,
UNDEREDIT,
VALID |
Constructor Summary | |
JCTextField()
Constructs an empty JCTextField. |
|
JCTextField(Class c)
Constructs an empty JCTextField which expects an object of the specified class. |
|
JCTextField(Class c,
JCValidator v)
Constructs an empty JCTextField which expects an object of the specified class and uses the specified validator. |
|
JCTextField(int columns)
Constructs a JCTextField with the specified number of columns. |
|
JCTextField(com.klg.jclass.util.value.JCValueModel m)
Constructs an empty JCTextField which uses the specified value model to contain its value. |
|
JCTextField(com.klg.jclass.util.value.JCValueModel m,
JCValidator v)
Constructs an empty JCTextField which uses the specified value model to contain its value and which uses the specified validator. |
|
JCTextField(String text)
Constructs a JCTextField initialized with the specified text. |
|
JCTextField(String text,
int columns)
Constructs an empty JCTextField with the specified number of columns and initialized with the specified text. |
Method Summary | |
void |
addNotify()
Initializes the field object. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
void |
addValueListener(com.klg.jclass.util.value.JCValueListener listener)
Adds a listener to listen for changes to the value. |
void |
commitEdit()
Commits the current field under edit. |
protected void |
createField(JCValidator validator)
Creates the field object which controls the validation. |
String |
getAbout()
Gets the value of the About property. |
DataProperties |
getDataProperties()
Gets the Bean property which wraps the validator, data model, and Field objects properties into one property. |
JCInvalidInfo |
getInvalidInfo()
Returns the Invalid properties. |
boolean |
getSelectOnEnter()
Returns a flag indicating the selection status on entering the field. |
int |
getState()
Returns the state of the component: VALID, INVALID, or UNDER_EDIT. |
JCValidator |
getValidator()
Returns the validator currently in use. |
Object |
getValue()
Returns the value for the text field. |
com.klg.jclass.util.value.JCValueModel |
getValueModel()
Returns the data model being used by the field. |
boolean |
isRequired()
Returns true if the field is required. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
Removes a listener which listens for changes to the value. |
void |
setAbout(String s)
Sets the value of the About property. |
void |
setBackground(Color background)
Sets the background of the text field. |
void |
setDataProperties(DataProperties dp)
Sets the Bean property which wraps the validator, data model, and Field objects properties into one property. |
void |
setForeground(Color foreground)
Sets the foreground of the text field. |
void |
setInvalidInfo(JCInvalidInfo info)
Sets the Invalid properties. |
void |
setRequired(boolean required)
Sets the required property for the current field. |
void |
setSelectOnEnter(boolean select)
Sets a flag to determines whether or the value in the field is selected when the component gains focus. |
void |
setValidator(JCValidator validator)
Sets the validator to use. |
void |
setValue(Object value)
Sets the value for the text field. |
void |
setValueModel(com.klg.jclass.util.value.JCValueModel model)
Sets the data model being used by the field. |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected Field field
protected boolean required
public static final String version
Constructor Detail |
public JCTextField()
public JCTextField(Class c)
public JCTextField(Class c, JCValidator v)
public JCTextField(com.klg.jclass.util.value.JCValueModel m)
public JCTextField(com.klg.jclass.util.value.JCValueModel m, JCValidator v)
public JCTextField(String text)
public JCTextField(int columns)
public JCTextField(String text, int columns)
Method Detail |
public DataProperties getDataProperties()
JCValidator
,
JCValueModel
,
JCInvalidInfo
public void setDataProperties(DataProperties dp)
JCValidator
,
JCValueModel
,
JCInvalidInfo
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedpublic void addValueListener(com.klg.jclass.util.value.JCValueListener listener)
public void removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
public void addNotify()
protected void createField(JCValidator validator)
public String getAbout()
public void setAbout(String s)
public void setBackground(Color background)
public void setForeground(Color foreground)
public Object getValue()
public void setValue(Object value)
public com.klg.jclass.util.value.JCValueModel getValueModel()
JCValueModel
public void setValueModel(com.klg.jclass.util.value.JCValueModel model)
JCValueModel
public JCValidator getValidator()
JCValidator
public void setValidator(JCValidator validator)
JCValidator
public JCInvalidInfo getInvalidInfo()
public void setInvalidInfo(JCInvalidInfo info)
public int getState()
public boolean getSelectOnEnter()
setSelectOnEnter(boolean)
public void setSelectOnEnter(boolean select)
public void commitEdit()
public boolean isRequired()
public void setRequired(boolean required)
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |