|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides an interface for all items in a JScrib document except Colors, Fonts and Styles.
| Method Summary | |
|---|---|
boolean |
addChild(IDItem item)
Adds a child item after the last child. |
void |
clear()
Clears the resources kept by the item. |
IDStyle |
getAppliedStyle()
Returns the style to applied on this item, might be getStyle() or one of parent's style if getStyle returns null. |
int |
getChildCount()
Returns the item child number. |
int |
getChildPosition(IDItem i)
Returns the child item position in the list. |
IDItem |
getFirstChild()
Returns the first child of the item. |
IDItemIterator |
getIterator()
Returns the item iterator. |
IDItem |
getLastChild()
Returns the last child of the item. |
IDItem |
getNext()
Returns the next item. |
IDItem |
getParent()
Returns the parent of the item. |
IDItem |
getRoot()
Returns the current document. |
IDStyle |
getStyle()
Returns the item style. |
boolean |
insertChild(IDItem item,
IDItem after)
Inserts the child 'item' after the item 'after' if acceptChild(item,after) returns true. |
boolean |
isContainer()
Returns true if the item is a container. |
boolean |
removeChild(IDItem item)
Removes the child 'item'. |
void |
setNext(IDItem i)
Sets the next item to 'i'. |
void |
setParent(IDItem p)
Sets the parent item to 'p'. |
void |
setStyle(IDStyle style)
Sets the item style to 'style'. |
| Method Detail |
public boolean addChild(IDItem item)
public void clear()
public int getChildCount()
public int getChildPosition(IDItem i)
public IDItem getRoot()
public IDItem getFirstChild()
public IDItemIterator getIterator()
public IDItem getLastChild()
public IDItem getNext()
public IDItem getParent()
public IDStyle getAppliedStyle()
getStyle()public IDStyle getStyle()
public boolean insertChild(IDItem item,
IDItem after)
after - item after which child should be addedpublic boolean isContainer()
public boolean removeChild(IDItem item)
public void setNext(IDItem i)
i - next itempublic void setParent(IDItem p)
p - parent itempublic void setStyle(IDStyle style)
style - item style
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||