com.bbn.openmap.tools.beanbox
Class PropertyBeanEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.bbn.openmap.tools.beanbox.PropertyBeanEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
BeanLayoutEditor

public class PropertyBeanEditor
extends java.beans.PropertyEditorSupport

Custom property editor for a bean property that is itself a bean.


Constructor Summary
PropertyBeanEditor()
           
 
Method Summary
 java.awt.Component getCustomEditor()
          returns an instance of the GenericPropertySheet which serves as the custom editor component for the bean property associated with this editor.
 boolean isPaintable()
          returns true;
 void paintValue(java.awt.Graphics g, java.awt.Rectangle box)
          represents the face of the custom property editor as a rectangular box containing the text "Click to Edit".
 boolean supportsCustomEditor()
          returns true.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getTags, getValue, removePropertyChangeListener, setAsText, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyBeanEditor

public PropertyBeanEditor()
Method Detail

isPaintable

public boolean isPaintable()
returns true;


paintValue

public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle box)
represents the face of the custom property editor as a rectangular box containing the text "Click to Edit".


supportsCustomEditor

public boolean supportsCustomEditor()
returns true.


getCustomEditor

public java.awt.Component getCustomEditor()
returns an instance of the GenericPropertySheet which serves as the custom editor component for the bean property associated with this editor.



Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details