org.apache.ojb.tools.mapping.reversedb2.propertyEditors
Interface PropertyEditorTarget

All Known Implementing Classes:
EditableTreeNodeWithProperties

public interface PropertyEditorTarget

This interface specifies that the class has editable properties for a property editor. The typical application for this is a tree where you can select objects and edit settings in another panel. The properties of the target are exposed by getAttribute() and setAttribute(). If you want to monitor a property for changes, you can register a PropertyChangeListener either for all properties or a specific one.

Version:
$Id: PropertyEditorTarget.java,v 1.2 2002/09/04 16:21:24 florianbruckner Exp $
Author:
Florian Bruckner

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 java.lang.Object getAttribute(java.lang.String key)
          Returns a property
 java.lang.Class getPropertyEditorClass()
          Return the property editor class for this PropertyEditorTarget.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void setAttribute(java.lang.String key, java.lang.Object value)
          Stores a property
 

Method Detail

getPropertyEditorClass

public java.lang.Class getPropertyEditorClass()
Return the property editor class for this PropertyEditorTarget. Depending on the GUI implementation this could for example be an extension of JPanel. The Property editor is responsible for the layout, so the property editor has to know which properties this target has.


getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Returns a property


setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.Object value)
Stores a property


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14