|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JLabel
|
+--com.klg.jclass.field.JCLabelField
JCLabelField has all the capability of JLabelField as well as the ability to
validate its contents.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected com.klg.jclass.field.Field |
field
|
protected boolean |
required
|
static String |
version
Contains the version number of the JClass product. |
| Fields inherited from class javax.swing.JLabel |
labelFor |
| 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 |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JCLabelField()
Constructs an empty JCLabelField. |
|
JCLabelField(Class c)
Constructs an empty JCLabelField, which expects an object of the
specified class. |
|
JCLabelField(Class c,
com.klg.jclass.field.validate.JCValidator v)
Constructs an empty JCLabelField, which expects an object of the
specified class and which uses the specified validator. |
|
JCLabelField(com.klg.jclass.util.value.JCValueModel m)
Constructs an empty JCLabelField, which uses the specified value model
to contain its value. |
|
JCLabelField(com.klg.jclass.util.value.JCValueModel m,
com.klg.jclass.field.validate.JCValidator v)
Constructs an empty JCLabelField, which uses the specified value model
to contain its value and which uses the specified validator. |
|
| 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()
Not used for this component. |
protected void |
createField(com.klg.jclass.field.validate.JCValidator validator)
Creates the field object which controls the validation. |
String |
getAbout()
Gets the value of the About property. |
com.klg.jclass.field.DataProperties |
getDataProperties()
Gets the Bean property which wraps the validator, data model, and Field
objects properties into one property. |
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: VALID or INVALID. |
com.klg.jclass.field.validate.JCValidator |
getValidator()
Returns the validator currently in use. |
Object |
getValue()
Returns the value for the label 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 label field. |
void |
setDataProperties(com.klg.jclass.field.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 label field. |
void |
setInvalidInfo(com.klg.jclass.field.JCInvalidInfo info)
Sets the Invalid properties. |
void |
setLocale(Locale l)
Sets the locale being used by the label field; sets it on the validator as well. |
void |
setRequired(boolean required)
Sets the required property for the current field. |
void |
setSelectOnEnter(boolean select)
Not used for this component. |
void |
setText(String text)
Overriden: This method should never be called since it will bypass the validation and formatting. |
void |
setValidator(com.klg.jclass.field.validate.JCValidator validator)
Sets the validator to use. |
void |
setValue(Object value)
Sets the value for the label field. |
void |
setValueModel(com.klg.jclass.util.value.JCValueModel model)
Sets the data model being used by the field. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.field.Field field
protected boolean required
public static final String version
| Constructor Detail |
public JCLabelField()
JCLabelField.
public JCLabelField(Class c)
JCLabelField, which expects an object of the
specified class.
c -
public JCLabelField(Class c,
com.klg.jclass.field.validate.JCValidator v)
JCLabelField, which expects an object of the
specified class and which uses the specified validator.
c - v - public JCLabelField(com.klg.jclass.util.value.JCValueModel m)
JCLabelField, which uses the specified value model
to contain its value.
m -
public JCLabelField(com.klg.jclass.util.value.JCValueModel m,
com.klg.jclass.field.validate.JCValidator v)
JCLabelField, which uses the specified value model
to contain its value and which uses the specified validator.
m - v - | Method Detail |
public com.klg.jclass.field.DataProperties getDataProperties()
Field
objects properties into one property.
getDataProperties in interface JCFieldComponentJCValidator,
JCValueModel,
JCInvalidInfopublic void setDataProperties(com.klg.jclass.field.DataProperties dp)
Field
objects properties into one property.
setDataProperties in interface JCFieldComponentdp - JCValidator,
JCValueModel,
JCInvalidInfopublic void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener to the listener list.
addPropertyChangeListener in class JComponentlistener - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
removePropertyChangeListener in class JComponentlistener - the PropertyChangeListener to be removedpublic void addValueListener(com.klg.jclass.util.value.JCValueListener listener)
addValueListener in interface JCFieldComponentlistener - public void removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
removeValueListener in interface JCFieldComponentlistener - public void addNotify()
addNotify in class JComponentprotected void createField(com.klg.jclass.field.validate.JCValidator validator)
validator - public String getAbout()
About property.
The About property displays contact information for
Quest Software in the Bean box.
public void setAbout(String s)
About property.
The About property displays contact information for
Quest Software in the Bean box.
s - public void setBackground(Color background)
setBackground in class JComponentbackground - public void setForeground(Color foreground)
setForeground in class JComponentforeground - public Object getValue()
getValue in interface JCFieldComponentpublic void setValue(Object value)
setValue in interface JCFieldComponentvalue - public com.klg.jclass.util.value.JCValueModel getValueModel()
getValueModel in interface JCFieldComponentJCValueModelpublic void setValueModel(com.klg.jclass.util.value.JCValueModel model)
setValueModel in interface JCFieldComponentmodel - JCValueModelpublic com.klg.jclass.field.validate.JCValidator getValidator()
getValidator in interface JCFieldComponentJCValidatorpublic void setValidator(com.klg.jclass.field.validate.JCValidator validator)
setValidator in interface JCFieldComponentvalidator - JCValidatorpublic com.klg.jclass.field.JCInvalidInfo getInvalidInfo()
Invalid properties. The Invalid properties are
beepOnInvalid, invalidForeground, invalidBackground,
defaultValue, and invalidPolicy.
getInvalidInfo in interface JCFieldComponentInvalid propertiespublic void setInvalidInfo(com.klg.jclass.field.JCInvalidInfo info)
Invalid properties. The Invalid properties are
beepOnInvalid, invalidForeground, invalidBackground,
defaultValue, and invalidPolicy.
setInvalidInfo in interface JCFieldComponentinfo - public int getState()
VALID or INVALID.
getState in interface JCFieldComponentVALID or INVALIDpublic boolean getSelectOnEnter()
getSelectOnEnter in interface JCFieldComponentsetSelectOnEnter(boolean)public void setSelectOnEnter(boolean select)
setSelectOnEnter in interface JCFieldComponentselect - public void commitEdit()
commitEdit in interface JCFieldComponentpublic boolean isRequired()
true if the field is required.
isRequired in interface JCFieldComponenttrue if the field is requiredpublic void setRequired(boolean required)
setRequired in interface JCFieldComponentrequired - public void setText(String text)
setValue method instead.
setText in class JLabeltext - setValue(java.lang.Object)public void setLocale(Locale l)
setLocale in class Componentl - the new locale to be used
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||