|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
com.starteam.ViewMember
com.starteam.Item
com.starteam.TreeItem
public class TreeItem
A type of item with children.
| Nested Class Summary | |
|---|---|
static class |
TreeItem.MoSCoW
The MoSCoW value for a compliant TreeItem Type |
static class |
TreeItem.Type
The type of the TreeItem |
static class |
TreeItem.WebCacheTreeItem
TreeItem accessor for cached SDK Items contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.Item |
|---|
Item.WebCacheItem |
| Nested classes/interfaces inherited from class com.starteam.ViewMember |
|---|
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember |
| Nested classes/interfaces inherited from class com.starteam.VersionedObject |
|---|
VersionedObject.WebCacheVersionedObject |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
TreeItem |
createChild()
Creates a new child item. |
TreeItem[] |
getChildren()
Returns the tree items that are children of this one. |
DoubleProperty |
getOrderProperty()
Returns a DoubleProperty used for ordering tree item instances Any TreeItem Type that intends to have the children of a particular parent ordered using a default numeric scheme must provide a double property to store the implicit order. |
TreeItem |
getParent()
Returns the TreeItem which is the Parent of this instance, or NULL if this is a root |
int |
getParentID()
Gets the ObjectID of this item's parent. |
boolean |
hasChildren()
Returns true if the TreeItem has at least one child. |
boolean |
isEqualTo(TreeItem item)
Compares two Items. |
void |
moveTo(Folder toFolder)
Moves this item to the specified folder. |
void |
moveTo(TreeItem parent)
Moves this item to the specified parent. |
void |
remove()
Removes this item from its current folder. |
void |
setAfter(TreeItem prev)
place this tree item after prev this and prev must both be children of a common parent |
void |
setBefore(TreeItem next)
place this tree item before next this and next must both be children of a common parent |
void |
setBetween(TreeItem prev,
TreeItem next)
place this tree item in between prev and next. |
void |
setFirst()
place this tree item at the head of the set of all children of its parent |
void |
setLast()
place this tree item at the end of the set of all children of its parent |
Item |
shareTo(Folder toFolder)
Shares this item to a new folder. |
Item |
smartShareTo(Folder target)
Shares or reverse-shares this tree item to the given target folder, as appropriate. |
void |
update()
Stores the underlying entity in the server. |
| Methods inherited from class com.starteam.VersionedObject |
|---|
getBranchRevision, getRevisionNumber, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getServer, getType |
| Method Detail |
|---|
public TreeItem createChild()
DisembodiedException - If this is a disembodied item.public boolean isEqualTo(TreeItem item)
item - The Item to be compared to this one.
Item.copy()public int getParentID()
public TreeItem getParent()
public void update()
update in class ViewMemberpublic void moveTo(Folder toFolder)
moveTo in class ItemtoFolder - The new folder to which this item is to be moved.
DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()public void moveTo(TreeItem parent)
parent - The new parent to which this item is to be moved.
DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()public Item shareTo(Folder toFolder)
If this is a deleted item, shareTo() will create a new item with the same properties, but in the state it was in prior to being deleted. This provides a way to recover content from the recycle bin.
shareTo in class ItemtoFolder - The new parent folder.
DisembodiedException - if the Folder is disembodied.ViewMember.isDisembodied(),
Item.moveTo(com.starteam.Folder),
Item.reverseShareTo(com.starteam.Folder),
ViewMember.isDeleted(),
RecycleBinpublic Item smartShareTo(Folder target)
smartShareTo in class Itemtarget - The target folder.
Item.isReverseShareRecommended(com.starteam.Folder)public void remove()
remove in class Itempublic TreeItem[] getChildren()
DisembodiedException - if the Tree Item is disembodiedViewMember.isDisembodied()public boolean hasChildren()
DisembodiedException - if the Tree Item is disembodiedViewMember.isDisembodied()public DoubleProperty getOrderProperty()
public void setBetween(TreeItem prev,
TreeItem next)
prev - the tree item to precede this onenext - the tree item to succeed this onepublic void setAfter(TreeItem prev)
prev - the tree item to precede this onepublic void setBefore(TreeItem next)
next - the tree item to succeed this onepublic void setLast()
public void setFirst()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||