Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class IntTagEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--oracle.dacf.dataset.IntTagEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
ConnectionModeEditor, DriverTypeEditor

public abstract class IntTagEditor
extends java.beans.PropertyEditorSupport

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

IntTagEditor

public IntTagEditor(java.lang.String[] tags,
                    int[] values,
                    java.lang.String[] codeStrings)
Internal: Applications should not use this class.

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.

Parameters:
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

getTags

public java.lang.String[] getTags()
Internal: Applications should not use this method.

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.

Overrides:
getTags in class java.beans.PropertyEditorSupport
Returns:
the tag values for this property. May be null if this property cannot be represented as a tagged value.

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Internal: Applications should not use this method.

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.

Overrides:
getJavaInitializationString in class java.beans.PropertyEditorSupport
Returns:
a fragment of Java code representing an initializer for the current value.

getAsText

public java.lang.String getAsText()
Internal: Applications should not use this method.

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.

Overrides:
getAsText in class java.beans.PropertyEditorSupport
Returns:
the property value as a string suitable for presentation to a human to edit. Returns null if the value cannot be expressed as a string.

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Internal: Applications should not use this method.

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.

Overrides:
setAsText in class java.beans.PropertyEditorSupport
Parameters:
text - the string to be parsed.
Throws:
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