|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.PropertyEditorSupport
com.horstmann.violet.framework.PropertySelector
public class PropertySelector
A helper class for showing names of objects in a property sheet that allows the user to pick one of a finite set of named values.
Constructor Summary | |
---|---|
PropertySelector(java.lang.String[] n,
java.lang.Object[] v)
Constructs a selector that correlates names and objects. |
Method Summary | |
---|---|
java.lang.String |
getAsText()
|
java.lang.String[] |
getTags()
|
void |
setAsText(java.lang.String s)
|
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertySelector(java.lang.String[] n, java.lang.Object[] v)
n
- the strings to display in a combo boxv
- the corresponding object valuesMethod Detail |
---|
public java.lang.String[] getTags()
getTags
in interface java.beans.PropertyEditor
getTags
in class java.beans.PropertyEditorSupport
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public void setAsText(java.lang.String s)
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |