com.arsdigita.bebop
Class PropertyEditor.DefaultModel

java.lang.Object
  extended bycom.arsdigita.bebop.PropertyEditor.DefaultModel
All Implemented Interfaces:
PropertyEditorModel
Enclosing class:
PropertyEditor

protected static class PropertyEditor.DefaultModel
extends Object
implements PropertyEditorModel

Default implementation of the PropertyEditorModel. Takes in an iterator of key->label pairs, and constructs a ControlLink for each label.


Field Summary
protected  Map.Entry m_entry
           
protected  Iterator m_iter
           
 
Fields inherited from interface com.arsdigita.bebop.PropertyEditorModel
versionId
 
Constructor Summary
PropertyEditor.DefaultModel(Iterator iter)
           
 
Method Summary
 Component getComponent()
          Returns the component that should act as a "button" for editing the property.
 Object getKey()
          Returns the unique key of the current property, usually a simple String.
 boolean next()
          Advances to the next property, if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_iter

protected Iterator m_iter

m_entry

protected Map.Entry m_entry
Constructor Detail

PropertyEditor.DefaultModel

public PropertyEditor.DefaultModel(Iterator iter)
Method Detail

next

public boolean next()
Description copied from interface: PropertyEditorModel
Advances to the next property, if possible.

Specified by:
next in interface PropertyEditorModel
Returns:
false if there are no more properties; true otherwise.

getComponent

public Component getComponent()
Description copied from interface: PropertyEditorModel
Returns the component that should act as a "button" for editing the property. Typically, this method returns a ControlLink of some sort. When the link is clicked, the PropertyEditor will display the pane for editing the property.

Specified by:
getComponent in interface PropertyEditorModel
Returns:
a component (usually a ControlLink) that will act as the "button" for editing the property.

getKey

public Object getKey()
Description copied from interface: PropertyEditorModel
Returns the unique key of the current property, usually a simple String.

Specified by:
getKey in interface PropertyEditorModel
Returns:
the key of the current property.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC