|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
wt.clients.beans.AttributeSelectorList
This is a composite object combining a ClassExplorer
and a SortableList
object to allow the selection of attributes for
a class and the ordering of those selected attributes in a list.
This class is only currently intended for use by the SchemaEditor
class as part
of a PropertyEditor for a Schema
property of a JavaBean.
Supported API: false
Extendable: false
Schema
,
ClassExplorer
,
SchemaEditor
,
,
Serialized FormNested Class Summary |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected ClassExplorer |
classExplorer
The contained ClassExplorer. |
(package private) ItemListener |
itemListener
An ItemListener. |
protected SortableList |
sortableList
The contained SortableList. |
protected WTSplitterBar |
splitterBar
Splitter bar separating the ClassExplorer and the SortableList. |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AttributeSelectorList()
Construct a new AttributeSelectorList. |
Method Summary | |
void |
addClass(String classname)
Add a class to the top level of the tree in the ClassExplorer. |
void |
addItemListener(ItemListener l)
Add an ItemListener. |
protected void |
checkIfDeselect()
Check if an object selected in the ClassExplorer needs to be de-selected. |
Object[] |
getSelectedObjects()
Return the objects in the contained SortableList. |
void |
itemStateChanged(ItemEvent itemEvent)
Handle incoming ItemEvents from the ClassExplorer and the SortableList. |
static void |
main(String[] args)
A short main routine to allow standalone testing and demonstrate usage of the class. |
protected void |
processItemEvent(ItemEvent e)
Process an ItemEvent. |
void |
removeItemListener(ItemListener l)
Remove an ItemListener. |
void |
setSelectedSchema(Schema schema)
Set the currently selected Schema ( class name and list of attributes). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ClassExplorer classExplorer
protected SortableList sortableList
transient ItemListener itemListener
protected WTSplitterBar splitterBar
Constructor Detail |
public AttributeSelectorList()
Method Detail |
public void itemStateChanged(ItemEvent itemEvent)
itemStateChanged
in interface ItemListener
itemEvent
- the incoming ItemEventprotected void checkIfDeselect()
public void setSelectedSchema(Schema schema)
schema
- the new selected schemapublic void addClass(String classname)
classname
- the name of the class to add.public Object[] getSelectedObjects()
getSelectedObjects
in interface ItemSelectable
Schema
public void addItemListener(ItemListener l)
addItemListener
in interface ItemSelectable
l
- a new listenerpublic void removeItemListener(ItemListener l)
removeItemListener
in interface ItemSelectable
l
- the listener to remove.protected void processItemEvent(ItemEvent e)
e
- the new ItemEvent.public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |