com.altair.hwm.beans.hm
Class FEPreSelectCriteriaPropEditor

java.lang.Object
  extended by com.altair.hwm.beans.hm.FEPreSelectCriteriaPropEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class FEPreSelectCriteriaPropEditor
extends java.lang.Object
implements java.beans.PropertyEditor

Title: FEPreSelectCriteriaPropEditor

Description: Propety editor for FEPreSelect's selectin criteria. A dropdown of choices

Company: Altair Engineering, Inc.


Constructor Summary
FEPreSelectCriteriaPropEditor()
          Constructor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.lang.String getAsText()
          Gets the property value as text.
 java.awt.Component getCustomEditor()
          Returns the custom editor
 java.lang.String getJavaInitializationString()
          This method is intended for use when generating Java code to set the value of the property.
 java.lang.String[] getTags()
          Since the propertyvalue is not one of a set, this returns null.
 java.lang.Object getValue()
          Gets the property value.
 boolean isPaintable()
           
 void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setAsText(java.lang.String strValue)
          Set the property value by parsing a given String.
 void setValue(java.lang.Object objValue)
          Set (or change) the object that is to be edited.
 boolean supportsCustomEditor()
          Specifies this property editor supports a custom editor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FEPreSelectCriteriaPropEditor

public FEPreSelectCriteriaPropEditor()
Constructor

Method Detail

getCustomEditor

public java.awt.Component getCustomEditor()
Returns the custom editor

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Returns:
A java.awt.Component that will allow a human to directly edit the current property value

supportsCustomEditor

public boolean supportsCustomEditor()
Specifies this property editor supports a custom editor.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Returns:
True if the propertyEditor can provide a custom editor.

setValue

public void setValue(java.lang.Object objValue)
Set (or change) the object that is to be edited. Primitive types such as "int" must be wrapped as the corresponding object type such as "java.lang.Integer".

Specified by:
setValue in interface java.beans.PropertyEditor
Parameters:
objValue - - The new target object to be edited.

getValue

public java.lang.Object getValue()
Gets the property value.

Specified by:
getValue in interface java.beans.PropertyEditor
Returns:
The value of the property. Primitive types such as "int" will be wrapped as the corresponding object type such as "java.lang.Integer".

getJavaInitializationString

public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.

Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor

getTags

public java.lang.String[] getTags()
Since the propertyvalue is not one of a set, this returns null.

Specified by:
getTags in interface java.beans.PropertyEditor
Returns:
String array(null in this case)

setAsText

public void setAsText(java.lang.String strValue)
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.

Specified by:
setAsText in interface java.beans.PropertyEditor
Parameters:
strValue - - The string to be parsed.

getAsText

public java.lang.String getAsText()
Gets the property value as text.

Specified by:
getAsText in interface java.beans.PropertyEditor
Returns:
The property value as a human editable string. Returns null if the value can't be expressed as an editable string.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface java.beans.PropertyEditor

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface java.beans.PropertyEditor

paintValue

public void paintValue(java.awt.Graphics gfx,
                       java.awt.Rectangle box)
Specified by:
paintValue in interface java.beans.PropertyEditor

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface java.beans.PropertyEditor