TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DItemContainer

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DItem
      extended by org.eclipse.tptp.platform.report.core.internal.DItemContainer
All Implemented Interfaces:
IDItem, IDObject
Direct Known Subclasses:
DAbstractParagraph, DAxis, DBorder, DCategory, DCurve, DFolder, DGraphic, DIndexEntry, DLink, DList, DPoint, DRow, DTable, DTitle

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public abstract class DItemContainer
extends DItem

A DItemContainer is a container which contains IDItem. It is useful to replace an IDItem when you want to insert child in it because it is impossible with an IDItem which is a leaf element.


Constructor Summary
DItemContainer()
          Deprecated. Constructs the DItemContainer.
 
Method Summary
 void clear()
          Deprecated. Removes all children item in the container.
 int getChildCount()
          Deprecated. Returns the number of children of the container.
 IDItem getChildOfClass(java.lang.Class clazz)
          Deprecated. Returns the first IDItem which derives of the class clazz null if an IDItem has not be found.
 int getChildPosition(IDItem i)
          Deprecated. Returns the position in the children list of the child passed in argument.
 java.util.List getChildrenOfClass(java.lang.Class clazz)
          Deprecated. Returns the list which is contains all children which derive of the class clazz
 IDItem getFirstChild()
          Deprecated. Returns the first child of the container.
 IDItem getLastChild()
          Deprecated. Returns the last child of the item container.
 boolean insertChild(IDItem _child, IDItem after)
          Deprecated. Inserts the child 'item' to the item container after the child 'after'.
 boolean isContainer()
          Deprecated. Return always true because the item is a container.
 boolean removeChild(IDItem item)
          Deprecated. Removes the child 'item' from the item container children and returns true.
 
Methods inherited from class org.eclipse.tptp.platform.report.core.internal.DItem
addChild, getAppliedStyle, getIterator, getNext, getParent, getRoot, getStyle, setNext, setParent, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DItemContainer

public DItemContainer()
Deprecated. 
Constructs the DItemContainer.

Method Detail

getLastChild

public IDItem getLastChild()
Deprecated. 
Returns the last child of the item container.

Specified by:
getLastChild in interface IDItem
Overrides:
getLastChild in class DItem
See Also:
getFirstChild(), getChildPosition(org.eclipse.tptp.platform.report.core.internal.IDItem)

removeChild

public boolean removeChild(IDItem item)
Deprecated. 
Removes the child 'item' from the item container children and returns true. Returns false if the item to remove isn't found in the child list.

Specified by:
removeChild in interface IDItem
Overrides:
removeChild in class DItem
See Also:
insertChild(org.eclipse.tptp.platform.report.core.internal.IDItem, org.eclipse.tptp.platform.report.core.internal.IDItem), DItem.addChild(org.eclipse.tptp.platform.report.core.internal.IDItem)

insertChild

public boolean insertChild(IDItem _child,
                           IDItem after)
Deprecated. 
Inserts the child 'item' to the item container after the child 'after'.

Specified by:
insertChild in interface IDItem
Overrides:
insertChild in class DItem
Parameters:
child - item to be added
after - item after which the child should be added
Returns:
true if the insertion has succed, false in othercase.
See Also:
DItem.addChild(org.eclipse.tptp.platform.report.core.internal.IDItem), removeChild(org.eclipse.tptp.platform.report.core.internal.IDItem)

getFirstChild

public IDItem getFirstChild()
Deprecated. 
Returns the first child of the container.

Specified by:
getFirstChild in interface IDItem
Overrides:
getFirstChild in class DItem
See Also:
getLastChild(), getChildPosition(org.eclipse.tptp.platform.report.core.internal.IDItem)

clear

public void clear()
Deprecated. 
Removes all children item in the container.

Specified by:
clear in interface IDItem
Overrides:
clear in class DItem

getChildCount

public int getChildCount()
Deprecated. 
Returns the number of children of the container.

Specified by:
getChildCount in interface IDItem
Overrides:
getChildCount in class DItem

getChildPosition

public int getChildPosition(IDItem i)
Deprecated. 
Returns the position in the children list of the child passed in argument. If the return value is -1, that means that the item has not be found in item children.

Specified by:
getChildPosition in interface IDItem
Overrides:
getChildPosition in class DItem

getChildrenOfClass

public java.util.List getChildrenOfClass(java.lang.Class clazz)
Deprecated. 
Returns the list which is contains all children which derive of the class clazz


getChildOfClass

public IDItem getChildOfClass(java.lang.Class clazz)
Deprecated. 
Returns the first IDItem which derives of the class clazz null if an IDItem has not be found.


isContainer

public boolean isContainer()
Deprecated. 
Return always true because the item is a container.

Specified by:
isContainer in interface IDItem
Overrides:
isContainer in class DItem
See Also:
DItem.isContainer()

TPTP 4.6.0 Platform Project
Internal API Specification