|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.PropertyEditorSupport | +--oracle.dacf.dataset.IntTagEditor
Internal: Applications should not use this class.
Generic class to support integer type properties as tags.
Constructor Summary | |
IntTagEditor(java.lang.String[] tags,
int[] values,
java.lang.String[] codeStrings)
Internal: Applications should not use this class. |
Method Summary | |
java.lang.String |
getAsText()
Internal: Applications should not use this method. |
java.lang.String |
getJavaInitializationString()
Internal: Applications should not use this method. |
java.lang.String[] |
getTags()
Internal: Applications should not use this method. |
void |
setAsText(java.lang.String text)
Internal: Applications should not use this method. |
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntTagEditor(java.lang.String[] tags, int[] values, java.lang.String[] codeStrings)
Constructor for IntTagEditor that requires an array of tags that will represent the properties, an integer array for the integer values, and an array for the property code string.
tags
- an array of string tags to represent the properties.values
- an array of integer values associated with the tags and properties.codeStrings
- an array of code strings representing the properties.Method Detail |
public java.lang.String[] getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. This can be used to represent, for example, enum values. If a InitTagEditor supports tags, then it should support the use of setAsText with a tag value as a way of setting the value and the use of getAsText to identify the current value.
getTags
in class java.beans.PropertyEditorSupport
public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property. It should return a fragment of Java code that can be used to initialize a variable with the current property value.
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
getJavaInitializationString
in class java.beans.PropertyEditorSupport
public java.lang.String getAsText()
Gets the property value as a string suitable for presentation to a human to edit. The IntTagEditor should be prepared to parse the string back in setAsText().
If the value cannot be expressed as a string, this method returns null.
getAsText
in class java.beans.PropertyEditorSupport
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
Sets the property value by parsing a given String. Can raise a java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property cannot be expressed as text.
setAsText
in class java.beans.PropertyEditorSupport
text
- the string to be parsed.java.lang.IllegalArgumentException
- if the String is badly
formatted or if
this kind of property cannot be
expressed as text.
|
Oracle Data-aware Controls Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |