pl.edu.agh.cast.importer.wizard.template
Class TemplateGroupTreeEntry

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.template.TemplateGroupTreeEntry
All Implemented Interfaces:
ITreeEntry

public class TemplateGroupTreeEntry
extends Object
implements ITreeEntry

Entry used in TreeViewer as a model. Wraps ImportTemplateGroup.

Author:
AGH CAST Team

Constructor Summary
TemplateGroupTreeEntry(ImportTemplateGroup element, Collection<TemplateGroupTreeEntry> parent)
           
 
Method Summary
 boolean addChild(TemplateTreeEntry template)
           
 Collection<TemplateTreeEntry> getChildren()
           
 ImportTemplateGroup getElement()
           
 Collection<TemplateGroupTreeEntry> getParent()
           
 String getText()
          Gets text for an entry.
 boolean removeChild(TemplateTreeEntry template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateGroupTreeEntry

public TemplateGroupTreeEntry(ImportTemplateGroup element,
                              Collection<TemplateGroupTreeEntry> parent)
Method Detail

getElement

public ImportTemplateGroup getElement()

getChildren

public Collection<TemplateTreeEntry> getChildren()

getParent

public Collection<TemplateGroupTreeEntry> getParent()

addChild

public boolean addChild(TemplateTreeEntry template)

removeChild

public boolean removeChild(TemplateTreeEntry template)

getText

public String getText()
Gets text for an entry.

Specified by:
getText in interface ITreeEntry
Returns:
entry label
See Also:
ITreeEntry.getText()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.