com.altair.hwm.beans.hm
Class HMEvalTCLProcPropEditor

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

public class HMEvalTCLProcPropEditor
extends java.beans.PropertyEditorSupport

Title: HMEvalTCLProcPropEditor

Description: This is the property editor for the HWMEvalTCLProc bean. This will use the HWMEvalTCLProcPropPanel to display the editor.

Company: Altair Engineering, Inc.


Constructor Summary
HMEvalTCLProcPropEditor()
          Constructor
 
Method Summary
 java.awt.Component getCustomEditor()
           
 java.lang.Object getValue()
          Ask the actual editor, i.e.
 boolean isPaintable()
          Determines whether this property editor is paintable.
 void paintValue(java.awt.Graphics graphics, java.awt.Rectangle rect)
          Paint a representation of the value into a given area of screen real estate.
 void setValue(java.lang.Object objValue)
          Forward the call to the actual editor i.e.
 boolean supportsCustomEditor()
          Determines whether this property editor supports a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, removePropertyChangeListener, setAsText, setSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMEvalTCLProcPropEditor

public HMEvalTCLProcPropEditor()
Constructor

Method Detail

setValue

public void setValue(java.lang.Object objValue)
Forward the call to the actual editor i.e. HMEvalTCLProcPropPanel

Specified by:
setValue in interface java.beans.PropertyEditor
Overrides:
setValue in class java.beans.PropertyEditorSupport
Parameters:
objValue - A HMTCLProcInfo structure

getValue

public java.lang.Object getValue()
Ask the actual editor, i.e. HMEvalTCLProcPropPanel, to give the value

Specified by:
getValue in interface java.beans.PropertyEditor
Overrides:
getValue in class java.beans.PropertyEditorSupport
Returns:
Object A HMTCLProcInfo structure that defines all the procedures and the main procedure name

getCustomEditor

public java.awt.Component getCustomEditor()
Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport

isPaintable

public boolean isPaintable()
Determines whether this property editor is paintable.

Specified by:
isPaintable in interface java.beans.PropertyEditor
Overrides:
isPaintable in class java.beans.PropertyEditorSupport
Returns:
boolean True if the class will honor the paintValue method.

paintValue

public void paintValue(java.awt.Graphics graphics,
                       java.awt.Rectangle rect)
Paint a representation of the value into a given area of screen real estate. Note that the propertyEditor is responsible for doing its own clipping so that it fits into the given rectangle. If the PropertyEditor doesn't honor paint requests (see isPaintable) this method should be a silent noop. The given Graphics object will have the default font, color, etc of the parent container. The PropertyEditor may change graphics attributes such as font and color and doesn't need to restore the old values.

Specified by:
paintValue in interface java.beans.PropertyEditor
Overrides:
paintValue in class java.beans.PropertyEditorSupport
Parameters:
graphics - - Graphics object to paint into.
rect - - Rectangle within graphics object into which we should paint

supportsCustomEditor

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

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