de.kappich.pat.configBrowser.main
Class DataModelTreeModel.AbstractAdapter

java.lang.Object
  extended by de.kappich.pat.configBrowser.main.DataModelTreeModel.AbstractAdapter
All Implemented Interfaces:
DataModelTreeModel.Adapter
Direct Known Subclasses:
DataModelTreeModel.ClassAdapter, DataModelTreeModel.ConstantAdapter, DataModelTreeModel.DataModelAdapter, DataModelTreeModel.ListAdapter, DataModelTreeModel.SortingListAdapter, DataModelTreeModel.SystemObjectAdapter, DataModelTreeModel.SystemObjectInfoAdapter
Enclosing class:
DataModelTreeModel

abstract static class DataModelTreeModel.AbstractAdapter
extends Object
implements DataModelTreeModel.Adapter


Field Summary
(package private)  DataModelTreeModel.Adapter[] _childs
           
(package private)  String _tag
           
 
Constructor Summary
private DataModelTreeModel.AbstractAdapter()
           
  DataModelTreeModel.AbstractAdapter(String nodeTag)
           
 
Method Summary
(package private) static DataModelTreeModel.Adapter createAdapter(String nodeTag, Object object)
           
 DataModelTreeModel.Adapter createChild(int searchIndex)
           
 DataModelTreeModel.Adapter getChild(int searchIndex)
           
abstract  int getChildCount()
           
 int getIndex(DataModelTreeModel.Adapter child)
           
 String getTag()
           
abstract  String getValue()
           
 boolean isLeaf()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_tag

String _tag

_childs

DataModelTreeModel.Adapter[] _childs
Constructor Detail

DataModelTreeModel.AbstractAdapter

public DataModelTreeModel.AbstractAdapter(String nodeTag)

DataModelTreeModel.AbstractAdapter

private DataModelTreeModel.AbstractAdapter()
Method Detail

getChildCount

public abstract int getChildCount()
Specified by:
getChildCount in interface DataModelTreeModel.Adapter

createAdapter

static DataModelTreeModel.Adapter createAdapter(String nodeTag,
                                                Object object)

getIndex

public final int getIndex(DataModelTreeModel.Adapter child)
Specified by:
getIndex in interface DataModelTreeModel.Adapter

getChild

public final DataModelTreeModel.Adapter getChild(int searchIndex)
Specified by:
getChild in interface DataModelTreeModel.Adapter

createChild

public DataModelTreeModel.Adapter createChild(int searchIndex)

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface DataModelTreeModel.Adapter

getTag

public String getTag()
              throws Exception
Throws:
Exception

getValue

public abstract String getValue()
                         throws Exception
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object