com.isti.util.propertyeditor
Class PropertyEditorFactory

java.lang.Object
  extended by com.isti.util.propertyeditor.PropertyEditorFactory

public class PropertyEditorFactory
extends java.lang.Object

PropertyEditorFactory is used to create a Property Editor based on the type of the property value.


Field Summary
static int NUMERIC_TEXTFIELD_SIZE
           
static int STRING_TEXTFIELD_SIZE
           
 
Method Summary
static java.beans.PropertyEditor createPropertyEditor(IstiNamedValueInterface item)
          Creates a property editor for the property item.
static java.beans.PropertyEditor createPropertyEditor(java.lang.Object[] validValuesArr)
          Creates a property editor for the property item.
static java.beans.PropertyEditor createPropertyEditor(java.lang.String name, java.lang.Object valueObj)
          Creates a property editor for the property item.
static java.beans.PropertyEditor createPropertyEditor(java.lang.String name, java.lang.Object valueObj, boolean isUnsignedFlag, java.lang.Comparable maxValue)
          Creates a property editor for the property item.
static java.beans.PropertyEditor createPropertyEditor(java.lang.String name, java.lang.Object valueObj, boolean isUnsignedFlag, java.lang.Comparable maxValue, java.lang.Object[] validValuesArr)
          Creates a property editor for the property item.
static java.awt.Component createPropertyLabel(IstiNamedValueInterface item)
          Creates a property label for the property item.
static java.awt.Component createPropertyLabel(java.lang.String name)
          Creates a property label for the property item.
static java.awt.Component createPropertyLabel(java.lang.String name, java.lang.String descriptionStr)
          Creates a property label for the property item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NUMERIC_TEXTFIELD_SIZE

public static final int NUMERIC_TEXTFIELD_SIZE
See Also:
Constant Field Values

STRING_TEXTFIELD_SIZE

public static final int STRING_TEXTFIELD_SIZE
See Also:
Constant Field Values
Method Detail

createPropertyLabel

public static java.awt.Component createPropertyLabel(java.lang.String name)
Creates a property label for the property item. A pretty version of name will be used.

Parameters:
name - the name of the item.
Returns:
property label.

createPropertyLabel

public static java.awt.Component createPropertyLabel(java.lang.String name,
                                                     java.lang.String descriptionStr)
Creates a property label for the property item.

Parameters:
name - the name of the item.
descriptionStr - description string or null if pretty version of name should be used.
Returns:
property label.

createPropertyLabel

public static java.awt.Component createPropertyLabel(IstiNamedValueInterface item)
Creates a property label for the property item.

Parameters:
item - the property item.
Returns:
property label.

createPropertyEditor

public static java.beans.PropertyEditor createPropertyEditor(java.lang.String name,
                                                             java.lang.Object valueObj)
Creates a property editor for the property item.

Parameters:
name - the name of the item.
valueObj - the value of the item.
Returns:
property editor.
See Also:
FilteredJTextField

createPropertyEditor

public static java.beans.PropertyEditor createPropertyEditor(java.lang.String name,
                                                             java.lang.Object valueObj,
                                                             boolean isUnsignedFlag,
                                                             java.lang.Comparable maxValue)
Creates a property editor for the property item.

Parameters:
name - the name of the item.
valueObj - the value of the item.
isUnsignedFlag - true if unsigned number.
maxValue - the maximum value for the item or null if not needed.
Returns:
property editor.
See Also:
FilteredJTextField

createPropertyEditor

public static java.beans.PropertyEditor createPropertyEditor(java.lang.Object[] validValuesArr)
Creates a property editor for the property item.

Parameters:
validValuesArr - valid values array.
Returns:
property editor.
See Also:
FilteredJTextField

createPropertyEditor

public static java.beans.PropertyEditor createPropertyEditor(java.lang.String name,
                                                             java.lang.Object valueObj,
                                                             boolean isUnsignedFlag,
                                                             java.lang.Comparable maxValue,
                                                             java.lang.Object[] validValuesArr)
Creates a property editor for the property item.

Parameters:
name - the name of the item.
valueObj - the value of the item.
isUnsignedFlag - true if unsigned number.
maxValue - the maximum value for the item or null if not needed.
validValuesArr - valid values array or null if not needed.
Returns:
property editor.
See Also:
FilteredJTextField

createPropertyEditor

public static java.beans.PropertyEditor createPropertyEditor(IstiNamedValueInterface item)
Creates a property editor for the property item.

Parameters:
item - the property item.
Returns:
property editor.