Class com.symantec.itools.beans.TaggedIntPropertyEditor
All Packages Class Hierarchy This Package Previous Next Index
Class com.symantec.itools.beans.TaggedIntPropertyEditor
Object
|
+----PropertyEditorSupport
|
+----com.symantec.itools.beans.TaggedIntPropertyEditor
- public class TaggedIntPropertyEditor
- extends PropertyEditorSupport
-
com.symantec.itools.beans.TaggedIntPropertyEditor. TaggedInt
-
-
m_Tags
-
-
com.symantec.itools.beans.TaggedIntPropertyEditor(TaggedIntPropertyEditor. TaggedInt[])
-
-
getAsText()
-
-
getJavaInitializationString()
- This method is intended for use when generating Java code to set
the value of the property.
-
getTags()
- If the property value must be one of a set of known tagged values,
then this method should return an array of the tag values.
-
getValueAsInteger()
-
-
getValueAsString(boolean)
-
-
setAsText(String)
- Set the property value by parsing a given String.
-
setValueAsInteger(Integer)
-
m_Tags
protected com.symantec.itools.beans.TaggedIntPropertyEditor. TaggedInt[] m_Tags
TaggedIntPropertyEditor
public TaggedIntPropertyEditor(TaggedIntPropertyEditor.TaggedInt[] tags)
getAsText
public java.lang.String getAsText()
-
- Returns:
- The property value as a string suitable for presentation
to a human to edit.
Returns "null" is the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should
be prepared to parse that string back in setAsText().
- Overrides:
- getAsText in class PropertyEditorSupport
getJavaInitializationString
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.
- Returns:
- A fragment of Java code representing an initializer for the
current value.
- Overrides:
- getJavaInitializationString in class PropertyEditorSupport
getTags
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 tag values. This can
be used to represent (for example) enum values. If a PropertyEditor
supports tags, then it should support the use of setAsText with
a tag value as a way of setting the value.
- Returns:
- The tag values for this property. May be null if this
property cannot be represented as a tagged value.
- Overrides:
- getTags in class PropertyEditorSupport
getValueAsInteger
protected java.lang.Integer getValueAsInteger()
getValueAsString
protected java.lang.String getValueAsString(boolean tag)
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Set the property value by parsing a given String. May raise
java.lang.IllegalArgumentException if either the String is
badly formatted or if this kind of property can't be expressed
as text.
- Parameters:
- text - The string to be parsed.
- Overrides:
- setAsText in class PropertyEditorSupport
setValueAsInteger
protected void setValueAsInteger(Integer newValue)
All Packages Class Hierarchy This Package Previous Next Index