com.simonstl.moe.adapter
Class MOENodeWrapperA

java.lang.Object
  |
  +--com.simonstl.moe.adapter.MOENodeWrapperA

public class MOENodeWrapperA
extends java.lang.Object

The MOENodeWrapperA adapter class provides a view of individual MOE objects which will fit into a MOETreeModelA presentation.

The MOENodeWrapperA class combines the unordered and ordered content into one big ordered collection for display. The toString() method returns the text content (for TEXT and IG_WHITESPACE) or the QName of the object (if it's appropriate) or <-- -->for a comment.

version 0.01 is the initial release.

Version:
0.01 20 September 2001
Author:
Simon St.Laurent

Field Summary
protected  java.util.ArrayList children
           
protected  CoreComponentI component
           
protected  boolean expanded
           
 
Constructor Summary
MOENodeWrapperA()
           
 
Method Summary
 java.lang.Object getChild(int index)
           
 int getChildCount()
           
 CoreComponentI getComponent()
           
 boolean getExpanded()
           
 int getIndexOfChild(java.lang.Object child)
           
 java.lang.String getToolTip()
           
 boolean isLeaf()
           
 void setComponent(CoreComponentI _component)
           
 void setExpanded(boolean _expanded)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

component

protected CoreComponentI component

children

protected java.util.ArrayList children

expanded

protected boolean expanded
Constructor Detail

MOENodeWrapperA

public MOENodeWrapperA()
Method Detail

setComponent

public void setComponent(CoreComponentI _component)

getComponent

public CoreComponentI getComponent()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getToolTip

public java.lang.String getToolTip()

isLeaf

public boolean isLeaf()

getExpanded

public boolean getExpanded()

setExpanded

public void setExpanded(boolean _expanded)

getChild

public java.lang.Object getChild(int index)

getChildCount

public int getChildCount()

getIndexOfChild

public int getIndexOfChild(java.lang.Object child)