net.sourceforge.java.util.gui.jface.viewers
Interface IMutableTreeElement

All Superinterfaces:
ITreeElement
All Known Implementing Classes:
MutableTreeElement

public interface IMutableTreeElement
extends ITreeElement

Basic interface to modify tree structures.

Author:
Sebastian Machhausen

Method Summary
 void add(IMutableTreeElement element)
           Adds the specified element to the IMutableTreeElement.
 void addIMutableTreeElementListener(IMutableTreeElementListener listener)
           Adds the specified IMutableTreeElementListener to the list of registered listeners.
 void dispose()
           Disposes the IMutableTreeElement.
 Object getData()
           Gets the data Object associated to the IMutableTreeElement.
 void remove(IMutableTreeElement element)
           Removes the specified element from the IMutableTreeElement.
 void removeIMutableTreeElementListener(IMutableTreeElementListener listener)
           Removes the specified IMutableTreeElementListener from the list of registered listeners.
 void setData(Object data)
           Sets an arbitrary data Object for the IMutableTreeElement.
 void setParent(IMutableTreeElement parent)
           Sets the parent of the IMutableTreeElement
 
Methods inherited from interface net.sourceforge.java.util.gui.jface.viewers.ITreeElement
allowsSubElements, getElementAt, getElements, getIndex, getParent, getSize, hasSubElements, isSubElement
 

Method Detail

setParent

public void setParent(IMutableTreeElement parent)

Sets the parent of the IMutableTreeElement

Parameters:
parent - the new parent to set

add

public void add(IMutableTreeElement element)

Adds the specified element to the IMutableTreeElement.

Parameters:
element - the IMutableTreeElement to add

remove

public void remove(IMutableTreeElement element)

Removes the specified element from the IMutableTreeElement.

Parameters:
element - the IMutableTreeElementto remove

setData

public void setData(Object data)

Sets an arbitrary data Object for the IMutableTreeElement.

Parameters:
data - the Object to associate the IMutableTreeElement to
See Also:
getData()

getData

public Object getData()

Gets the data Object associated to the IMutableTreeElement.

Returns:
the data Object associated to the IMutableTreeElement
See Also:
setData(Object)

addIMutableTreeElementListener

public void addIMutableTreeElementListener(IMutableTreeElementListener listener)

Adds the specified IMutableTreeElementListener to the list of registered listeners.

Parameters:
listener - the listener to add
See Also:
removeIMutableTreeElementListener(IMutableTreeElementListener)

removeIMutableTreeElementListener

public void removeIMutableTreeElementListener(IMutableTreeElementListener listener)

Removes the specified IMutableTreeElementListener from the list of registered listeners.

Parameters:
listener - the listener to remove
See Also:
addIMutableTreeElementListener(IMutableTreeElementListener)

dispose

public void dispose()

Disposes the IMutableTreeElement. This method should be used to free up resources and to unregister IMutableTreeElementListener.