net.sourceforge.nite.gui.actions
Interface OutputComponent

All Known Implementing Classes:
ButtonHandler, GridPanelHandler, LabelHandler, ListHandler, TextAreaHandler, TimedLabelHandler, TreeHandler

public interface OutputComponent

Author:
judyr SwingOutputTarget is an interface for JComponentHandlers to which data output can be written

Method Summary
 javax.swing.JComponent displayElement(ObjectModelElement e, boolean selected)
          Display this element on the user interface
 void insertDisplayElement(ObjectModelElement newElement, ObjectModelElement parent, int position)
          Used to update the display after an addChild operation.
 void redisplayElement(ObjectModelElement e)
          Used to refresh the display of an element on the screen after changes to textual content or attribute values on underlying xml
 void removeDisplayComponent(ObjectModelElement e)
          Remove the on screen representation of an element once it has been removed from the object model
 

Method Detail

displayElement

javax.swing.JComponent displayElement(ObjectModelElement e,
                                      boolean selected)
Display this element on the user interface


redisplayElement

void redisplayElement(ObjectModelElement e)
Used to refresh the display of an element on the screen after changes to textual content or attribute values on underlying xml

Parameters:
e - The element which should have its representation refreshed.

removeDisplayComponent

void removeDisplayComponent(ObjectModelElement e)
Remove the on screen representation of an element once it has been removed from the object model

Parameters:
e -

insertDisplayElement

void insertDisplayElement(ObjectModelElement newElement,
                          ObjectModelElement parent,
                          int position)
Used to update the display after an addChild operation. Place the new element "after" the positionth child of the parent element. After is easily defined a tree component, but it is far less obvious how this shoud be implemented for text areas.

Parameters:
newElement - The element which is to be inserted
parent - The parent of the element to be added
position - The index into the list of children belonging to the parent