|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
List of the public API's that make up a JClass Field Bean.
| Field Summary | |
static int |
INVALID
|
static int |
UNDEREDIT
|
static int |
VALID
|
| Method Summary | |
void |
addValueListener(com.klg.jclass.util.value.JCValueListener listener)
Adds a listener for changes to the value. |
void |
commitEdit()
Commits the current field under edit. |
com.klg.jclass.field.DataProperties |
getDataProperties()
Returns the DataProperties which contains the validator, value model, and
invalid proeprties. |
com.klg.jclass.field.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; one of VALID, INVALID, or UNDER_EDIT. |
com.klg.jclass.field.validate.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 whether this is a required field or not. |
void |
removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
Removes a listener for changes to the value. |
void |
setDataProperties(com.klg.jclass.field.DataProperties dp)
Sets the validator, value model, and invalid properties. |
void |
setInvalidInfo(com.klg.jclass.field.JCInvalidInfo info)
Sets the Invalid properties. |
void |
setRequired(boolean required)
Sets whether this is a required field or not. |
void |
setSelectOnEnter(boolean select)
Sets the flag that determines whether of not the Text Component is automatically selected when the component gains focus. |
void |
setValidator(com.klg.jclass.field.validate.JCValidator validator)
Sets the validator to use. |
void |
setValue(Object value)
|
void |
setValueModel(com.klg.jclass.util.value.JCValueModel model)
Sets the data model being used by the field. |
| Field Detail |
public static final int VALID
public static final int UNDEREDIT
public static final int INVALID
| Method Detail |
public Object getValue()
public void setValue(Object value)
public com.klg.jclass.util.value.JCValueModel getValueModel()
JCValueModelpublic void setValueModel(com.klg.jclass.util.value.JCValueModel model)
model - JCValueModelpublic com.klg.jclass.field.validate.JCValidator getValidator()
JCValidatorpublic void setValidator(com.klg.jclass.field.validate.JCValidator validator)
validator - JCValidatorpublic com.klg.jclass.field.JCInvalidInfo getInvalidInfo()
Invalid properties. That is beepOnInvalid,
invalidForeground, invalidBackground, defaultValue,
and invalidPolicy.
Invalid propertiespublic void setInvalidInfo(com.klg.jclass.field.JCInvalidInfo info)
Invalid properties. That is beepOnInvalid,
invalidForeground, invalidBackground, defaultValue,
and invalidPolicy.
info - public void setDataProperties(com.klg.jclass.field.DataProperties dp)
dp - JCValidator,
JCValueModel,
JCInvalidInfopublic com.klg.jclass.field.DataProperties getDataProperties()
DataProperties which contains the validator, value model, and
invalid proeprties.
DataPropertiesJCValidator,
JCValueModel,
JCInvalidInfopublic int getState()
VALID, INVALID, or UNDER_EDIT.
public boolean getSelectOnEnter()
setSelectOnEnter(boolean)public void setSelectOnEnter(boolean select)
false.
select - public void commitEdit()
public boolean isRequired()
public void setRequired(boolean required)
required - public void addValueListener(com.klg.jclass.util.value.JCValueListener listener)
listener - public void removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
listener -
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||