|
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.JComboBox
|
+--com.klg.jclass.field.JCComboField
JCComboField has all the capability of JComboBox,
as well as the ability to validate its contents.
JComboBox,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComboBox |
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
| 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 ListModel |
original_picklist
|
protected String[] |
prefixList
|
protected boolean |
required
|
static String |
version
Contains the version number of the JClass product. |
| Fields inherited from class javax.swing.JComboBox |
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
| 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JCComboField()
Constructs a JCComboField. |
|
JCComboField(Class c)
Constructs an empty JCComboField which expects an object of the
specified class. |
|
JCComboField(Class c,
com.klg.jclass.field.validate.JCValidator v)
Constructs an empty JCComboField, which expects an object of the
specified class and which uses the specified validator. |
|
JCComboField(com.klg.jclass.util.value.JCValueModel m)
Constructs an empty JCComboField, which uses the specified
value model to contain its value. |
|
JCComboField(com.klg.jclass.util.value.JCValueModel m,
com.klg.jclass.field.validate.JCValidator v)
Constructs an empty JCComboField, which uses the specified
value model to contain its value and which uses the specified validator. |
|
| Method Summary | |
void |
add(String item)
Adds an item to the list. |
void |
addActionListener(ActionListener l)
Adds an ActionListener. |
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 for changes to the value. |
void |
commitEdit()
Commits the current field under edit. |
protected void |
createField(com.klg.jclass.field.validate.JCValidator validator)
|
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. |
protected ListModel |
getOriginalPickList()
Gets the original pick list. |
ListModel |
getPickList()
Gets the current pick list. |
String[] |
getPrefixList()
Returns the value of PrefixList. |
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. |
protected JTextField |
getTextFieldEditor()
Convenience method that returns the TextField Editor Component. |
com.klg.jclass.field.validate.JCValidator |
getValidator()
Returns the validator currently in use. |
Object |
getValue()
Returns the value for the combo field. |
com.klg.jclass.util.value.JCValueModel |
getValueModel()
Returns the data model being used by the field. |
boolean |
isAutoAppend()
Returns true if the field has autoAppend turned on. |
boolean |
isAutoComplete()
Returns true if the field has autoComplete turned
on. |
boolean |
isAutoRefinement()
Returns true if the field has autoRefinement turned
on. |
boolean |
isAutoSuggest()
Returns true if the field has autoSuggest turned
on. |
boolean |
isRequired()
Returns true if the field is required. |
void |
removeActionListener(ActionListener l)
Removes an ActionListener. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
Removes a listener for changes to the value. |
protected void |
restoreOriginalPickList()
Restores picklist to its original (could have been modified through AutoRefinement). |
void |
setAbout(String s)
Sets the value of the About property. |
void |
setAutoComplete(boolean autoComplete,
boolean autoAppend,
boolean autoSuggest,
boolean autoRefinement,
String[] prefixList)
Sets the autoComplete property and its corresponding attributes. |
void |
setBackground(Color background)
Sets the background of the combo 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 combo field. |
void |
setInvalidInfo(com.klg.jclass.field.JCInvalidInfo info)
Sets the Invalid properties. |
void |
setItems(String[] items)
Sets the list of choices. |
void |
setLocale(Locale l)
Sets the locale being used by the combo field. |
void |
setPickList(ListModel picklist)
Sets the pick list (may have been modified through AutoRefinement). |
void |
setRequired(boolean required)
Sets the required property for the current field. |
void |
setSelectOnEnter(boolean select)
Sets a flag to determine whether the value in the field is selected when the component gains focus. |
protected void |
setTemporaryPickList(ListModel picklist)
Sets a temporary pick list (for AutoRefinement feature of
AutoComplete). |
void |
setUI(ComboBoxUI ui)
Sets the look and feel for this component. |
void |
setValidator(com.klg.jclass.field.validate.JCValidator v)
Sets the validator to use. |
void |
setValue(Object value)
Sets the value for the combo field. |
void |
setValueModel(com.klg.jclass.util.value.JCValueModel model)
Sets the data model being used by the field. |
void |
updateUI()
Updates the look and feel for this component. |
| 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
protected ListModel original_picklist
protected String[] prefixList
public static final String version
| Constructor Detail |
public JCComboField()
JCComboField.
public JCComboField(Class c)
JCComboField which expects an object of the
specified class.
c -
public JCComboField(Class c,
com.klg.jclass.field.validate.JCValidator v)
JCComboField, which expects an object of the
specified class and which uses the specified validator.
c - v - public JCComboField(com.klg.jclass.util.value.JCValueModel m)
JCComboField, which uses the specified
value model to contain its value.
m - The value model
public JCComboField(com.klg.jclass.util.value.JCValueModel m,
com.klg.jclass.field.validate.JCValidator v)
JCComboField, which uses the specified
value model to contain its value and which uses the specified validator.
m - The value modelv - The validator| Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener to the listener list.
addPropertyChangeListener in class JComponentlistener - the PropertyChangeListener to be addedpublic void addValueListener(com.klg.jclass.util.value.JCValueListener listener)
addValueListener in interface JCFieldComponentlistener - The listener to addpublic void removeValueListener(com.klg.jclass.util.value.JCValueListener listener)
removeValueListener in interface JCFieldComponentlistener - The listener to removepublic 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 com.klg.jclass.field.DataProperties getDataProperties()
Bean property which wraps the validator, data model,
and Field objects properties into one property.
getDataProperties in interface JCFieldComponentJCValidator,
JCValueModel,
JCInvalidInfopublic void setDataProperties(com.klg.jclass.field.DataProperties dp)
Bean property which wraps the validator, data model,
and Field objects properties into one property.
setDataProperties in interface JCFieldComponentdp - JCValidator,
JCValueModel,
JCInvalidInfoprotected void createField(com.klg.jclass.field.validate.JCValidator 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 addNotify()
addNotify in class JComponentpublic void setBackground(Color background)
setBackground in class JComponentbackground - public void setForeground(Color foreground)
setForeground in class JComponentforeground - protected JTextField getTextFieldEditor()
TextField Editor Component.
TextField Editor componentpublic 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 v)
setValidator in interface JCFieldComponentv - 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, INVALID, or UNDER_EDIT.
getState in interface JCFieldComponentpublic boolean getSelectOnEnter()
getSelectOnEnter in interface JCFieldComponentsetSelectOnEnter(boolean)public void setSelectOnEnter(boolean select)
false.
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 ListModel getPickList()
protected ListModel getOriginalPickList()
public void setPickList(ListModel picklist)
AutoRefinement).
picklist - protected void setTemporaryPickList(ListModel picklist)
AutoRefinement feature of
AutoComplete).
picklist - protected void restoreOriginalPickList()
AutoRefinement).
public void setAutoComplete(boolean autoComplete,
boolean autoAppend,
boolean autoSuggest,
boolean autoRefinement,
String[] prefixList)
autoComplete property and its corresponding attributes.
autoComplete - Turns on/off whether auto complete mode is enabled. If
this value is false, the values of the attributes are
ignored.autoAppend - appends the completion to the partial completed text
in reverse videoautoSuggest - pops up the combo box's popup as a suggestion list upon
typing a characterautoRefinement - If autoSuggest is true,
refines the popup list to include all possible matches as well as the
currently typed text. AutoSuggest is
false, this attribute will also be set to
false.prefixList - Sets the PrefixList. If non-null, the combo
box will ignore the given prefixes when matching items. The longest
matching prefix is always used. AutoSuggest being
true, the resulting behavior maybe be quite non-intuitive
for the user.public boolean isAutoComplete()
true if the field has autoComplete turned
on.
true if autoComplete is onpublic boolean isAutoSuggest()
true if the field has autoSuggest turned
on.
true if autoSuggest is onpublic boolean isAutoAppend()
true if the field has autoAppend turned on.
true if the field has autoAppend turned onpublic boolean isAutoRefinement()
true if the field has autoRefinement turned
on.
true if the field has autoRefinement turned
onpublic String[] getPrefixList()
PrefixList.
PrefixListsetAutoComplete(boolean, boolean, boolean, boolean, java.lang.String[])public void setRequired(boolean required)
setRequired in interface JCFieldComponentrequired - public void setUI(ComboBoxUI ui)
setUI in class JComboBoxui - public void updateUI()
updateUI in class JComboBoxpublic void addActionListener(ActionListener l)
ActionListener. An action event is generated when the
edited item changes.
addActionListener in class JComboBoxl - public void removeActionListener(ActionListener l)
ActionListener.
removeActionListener in class JComboBoxl - public void setItems(String[] items)
setPickList method in the
AbstractValidator class.
items - AbstractValidator.setPickList(javax.swing.ListModel)public void add(String item)
setPickList method in the
AbstractValidator class.
item - AbstractValidator.setPickList(javax.swing.ListModel)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 | |||||||||