com.tensegrity.gui.component
Interface AttributeTable

All Superinterfaces:
AttributeEditor, BasicComponent, Evaluable
All Known Implementing Classes:
CopyOfSwtAttributeTable, SwingAttributeTable

public interface AttributeTable
extends AttributeEditor, BasicComponent

The interface AttributeTable is a GUI component designed to display an AttributeSet. The table is divided into categories, each of which displays a subordinate AttributeSet of that AttributeSet. Moreover, this table must also provide a component to display and edit every known AttributeType.

The structure of the AttributeSet that can be edited in an AttributeTable is shown in this illustration:

 AttributeSet (MainAttributeSet)
 |
 |--AttributeSet (CategoryAttributeSet)
 |  |--Attribute (an Attribute of the category)
 |  |--Attribute (another Attribute of the category)
 |  |--...
 |
 |--AttributeSet (another CategoryAttributeSet)
 |  |--Attribute (an Attribute of the category)
 |  |--Attribute (another Attribute of the category)
 |  |--...
 |
 |--...
 

REVIEWJAVADOC The text below is identical to the text in class AttributeTree. Should they not be merged into a use tag in class AttributeEditor?

Because an AttributeSet cannot be added to a parent AttributeSet directly, it is added as the value of an Attribute. The name of that Attribute is then used for the category name.

Implementations of this class must use the methods getAttributes() and setAttributes() of the AttributableOnSet instance passed in the AttributeEditor.setAttributableOnSet(AttributableOnSet) method. The attributes are shown in a simplified structure, where attributes are displayed under category headers.

Depending on the implementation of the AttributableOnSet, it might be necessary to store the complete AttributeSet in the setAttributes() method instead of only passing the changed attributes.

Version:
$Id: AttributeTable.java,v 1.26 2005/10/24 07:34:16 MichaelKegel Exp $
Author:
Stepan Rutz, MichaelKegel

Field Summary
 
Fields inherited from interface com.tensegrity.gui.component.AttributeEditor
hiddenPrefix, SORT_ASCENDING, SORT_DESCENDING, SORT_NONE
 
Methods inherited from interface com.tensegrity.gui.component.AttributeEditor
cancelEditing, getAttributableOnSet, getCurrentAttributeSet, getEditorProperties, hideAttribute, isTree, propertiesChanged, rehash, setAttributableOnSet, setEditorProperties, showAttribute, stopEditing
 
Methods inherited from interface com.tensegrity.gui.component.BasicComponent
getHeight, getParentComponent, getWidth, repaint
 
Methods inherited from interface com.tensegrity.gui.Evaluable
applyEvList, installEvList
 



Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.