de.uni_paderborn.fujaba.views.beans
Class WrapperEditor

java.lang.Object
  extended byde.uni_paderborn.fujaba.views.beans.WrapperEditor
All Implemented Interfaces:
java.beans.PropertyEditor

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

A simple PropertyEditor that wraps another PropertyEditor but provides a custom editor (a simple JTextField) even if the original PropertyEditor had none. Most operations of this class are simply delegated to the wrapped PropertyEditor

Version:
$Revision: 1.9 $
Author:
$Author: schneider $

Constructor Summary
WrapperEditor(java.beans.PropertyEditor delegatee)
          Constructor for class WrapperEditor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Access method for an one to n association.
 java.lang.String getAsText()
          Get the asText attribute of the WrapperEditor object
 java.awt.Component getCustomEditor()
          Get the customEditor attribute of the WrapperEditor object
 java.beans.PropertyEditor getDelegatee()
          Get the delegatee attribute of the WrapperEditor object
 java.lang.String getJavaInitializationString()
          Get the javaInitializationString attribute of the WrapperEditor object
 java.lang.String[] getTags()
          Get the tags attribute of the WrapperEditor object
 java.lang.Object getValue()
          Get the value attribute of the WrapperEditor object
 boolean isPaintable()
          Get the paintable attribute of the WrapperEditor object
 void paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
          No comment provided by developer, please add a comment to improve documentation.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          No comment provided by developer, please add a comment to improve documentation.
 void setAsText(java.lang.String text)
          Sets the asText attribute of the WrapperEditor object
 boolean setDelegatee(java.beans.PropertyEditor editor)
          Sets the delegatee attribute of the WrapperEditor object
 void setValue(java.lang.Object value)
          Sets the value attribute of the WrapperEditor object
 boolean supportsCustomEditor()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperEditor

public WrapperEditor(java.beans.PropertyEditor delegatee)
Constructor for class WrapperEditor

Parameters:
delegatee - No description provided
Method Detail

setDelegatee

public boolean setDelegatee(java.beans.PropertyEditor editor)
Sets the delegatee attribute of the WrapperEditor object

Parameters:
editor - The new delegatee value
Returns:
No description provided

getDelegatee

public java.beans.PropertyEditor getDelegatee()
Get the delegatee attribute of the WrapperEditor object

Returns:
The delegatee value

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Access method for an one to n association.

Specified by:
addPropertyChangeListener in interface java.beans.PropertyEditor
Parameters:
listener - The object added.

getAsText

public java.lang.String getAsText()
Get the asText attribute of the WrapperEditor object

Specified by:
getAsText in interface java.beans.PropertyEditor
Returns:
The asText value

getCustomEditor

public java.awt.Component getCustomEditor()
Get the customEditor attribute of the WrapperEditor object

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Returns:
The customEditor value

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Get the javaInitializationString attribute of the WrapperEditor object

Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor
Returns:
The javaInitializationString value

getTags

public java.lang.String[] getTags()
Get the tags attribute of the WrapperEditor object

Specified by:
getTags in interface java.beans.PropertyEditor
Returns:
The tags value

getValue

public java.lang.Object getValue()
Get the value attribute of the WrapperEditor object

Specified by:
getValue in interface java.beans.PropertyEditor
Returns:
The value value

isPaintable

public boolean isPaintable()
Get the paintable attribute of the WrapperEditor object

Specified by:
isPaintable in interface java.beans.PropertyEditor
Returns:
The paintable value

paintValue

public void paintValue(java.awt.Graphics gfx,
                       java.awt.Rectangle box)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
paintValue in interface java.beans.PropertyEditor
Parameters:
gfx - No description provided
box - No description provided

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removePropertyChangeListener in interface java.beans.PropertyEditor
Parameters:
listener - No description provided

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Sets the asText attribute of the WrapperEditor object

Specified by:
setAsText in interface java.beans.PropertyEditor
Parameters:
text - The new asText value
Throws:
java.lang.IllegalArgumentException - Exception description not provided

setValue

public void setValue(java.lang.Object value)
Sets the value attribute of the WrapperEditor object

Specified by:
setValue in interface java.beans.PropertyEditor
Parameters:
value - The new value value

supportsCustomEditor

public boolean supportsCustomEditor()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Returns:
No description provided