bookExamples.ch34BeanProperties
Class Bean1

java.lang.Object
  extended by bookExamples.ch34BeanProperties.Bean1
All Implemented Interfaces:
java.beans.PropertyEditor

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


Constructor Summary
Bean1()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 java.lang.String getAsText()
           
 java.awt.Component getCustomEditor()
           
 java.lang.String getCustomer(int i)
           
 java.lang.String[] getCustomers()
           
 java.lang.String getJavaInitializationString()
           
 java.lang.String[] getTags()
           
 java.lang.String getTitle()
           
 java.lang.Object getValue()
           
 boolean isPaintable()
           
 void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 void setAsText(java.lang.String text)
           
 void setTitle(java.lang.String _title)
           
 void setValue(java.lang.Object value)
           
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bean1

public Bean1()
Method Detail

getCustomer

public java.lang.String getCustomer(int i)

getCustomers

public java.lang.String[] getCustomers()

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String _title)

isPaintable

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

supportsCustomEditor

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

getCustomEditor

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

addPropertyChangeListener

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

removePropertyChangeListener

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

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.beans.PropertyEditor

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface java.beans.PropertyEditor

getAsText

public java.lang.String getAsText()
Specified by:
getAsText in interface java.beans.PropertyEditor

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor

getTags

public java.lang.String[] getTags()
Specified by:
getTags in interface java.beans.PropertyEditor

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Specified by:
setAsText in interface java.beans.PropertyEditor
Throws:
java.lang.IllegalArgumentException

paintValue

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