|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.PropertyEditorSupport | +--oracle.jbo.server.rules.BaseEnumEditor
A base for classes that support GUIs for editing lists of symbols.
Constructor Summary |
BaseEnumEditor()
|
Method Summary |
Type | Method |
---|---|
java.lang.String |
getAsText()
Generates a string representing this editor's values. |
java.awt.Component |
getCustomEditor()
Creates and returns the component that actually modifies this editor's values. |
protected abstract java.lang.String |
getEnumName()
|
java.lang.String |
getJavaInitializationString()
Generates a Java code string representing a constructor for this editor's values. |
abstract java.lang.String[] |
getTags()
Constructs an array of value tags from the enumerated symbols. |
boolean |
isPaintable()
Reports whether the editor component has been initialized. |
void |
paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box)
Displays a value in this editor. |
void |
setAsText(java.lang.String txt)
Sets this editor's values from a text string. |
void |
setValue(java.lang.Object o)
Sets the values to be edited. |
boolean |
supportsCustomEditor()
Reports that this editor's values may be modified by an editor component. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getValue, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseEnumEditor()
Method Detail |
public java.lang.String getJavaInitializationString()
getJavaInitializationString
in class java.beans.PropertyEditorSupport
public java.awt.Component getCustomEditor()
If the component does not exist it is created.
getCustomEditor
in class java.beans.PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in class java.beans.PropertyEditorSupport
true
.public boolean isPaintable()
isPaintable
in class java.beans.PropertyEditorSupport
true
if the editor component has been initialized.getCustomEditor()
public void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
paintValue
in class java.beans.PropertyEditorSupport
gfx
- a graphics context for a value.box
- ignored.public void setValue(java.lang.Object o)
setValue
in class java.beans.PropertyEditorSupport
o
- the values, in a form that casts to Vector
.public void setAsText(java.lang.String txt)
setAsText
in class java.beans.PropertyEditorSupport
txt
- a string in a form generated by getAsText
.java.lang.IllegalArgumentException
- if the string is invalid.BaseEnumEditor#gsetAsText
public java.lang.String getAsText()
getAsText
in class java.beans.PropertyEditorSupport
setAsText
.setAsText(java.lang.String)
public abstract java.lang.String[] getTags()
getTags
in class java.beans.PropertyEditorSupport
protected abstract java.lang.String getEnumName()
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |