|
||||||||||
| 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 values| Method Detail |
|---|
public java.lang.String[] getTags()
getTags in interface java.beans.PropertyEditorgetTags in class java.beans.PropertyEditorSupportpublic java.lang.String getAsText()
getAsText in interface java.beans.PropertyEditorgetAsText in class java.beans.PropertyEditorSupportpublic void setAsText(java.lang.String s)
setAsText in interface java.beans.PropertyEditorsetAsText in class java.beans.PropertyEditorSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||