Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree:
de.fu_berlin.inf.dpp.stf.server.StfRemoteObject de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree de.fu_berlin.inf.dpp.stf.shared.Constants

List of all members.

Public Member Functions

IRemoteBotTree setWidget (SWTBotTree tree)
IRemoteBotTree uncheckAllItems ()
void clickContextMenu (String...texts) throws RemoteException
IRemoteBotTreeItem collapseNode (String nodeText) throws RemoteException
IRemoteBotTreeItem expandNode (String nodeText, boolean recursive) throws RemoteException
IRemoteBotTreeItem expandNode (String...nodes) throws RemoteException
IRemoteBotTree select (int...indices) throws RemoteException
IRemoteBotTree select (String...items) throws RemoteException
IRemoteBotTree unselect () throws RemoteException
IRemoteBotTreeItem selectTreeItem (String...pathToTreeItem) throws RemoteException
IRemoteBotTreeItem selectTreeItemWithRegex (String...regexNodes) throws RemoteException
IRemoteBotTreeItem selectTreeItemAndWait (String...pathToTreeItem) throws RemoteException
boolean hasItems () throws RemoteException
int rowCount () throws RemoteException
int selectionCount () throws RemoteException
int columnCount () throws RemoteException
List< String > columns () throws RemoteException
List< String > getTextOfItems () throws RemoteException
boolean existsSubItem (String treeItemText) throws RemoteException
boolean existsSubItemWithRegex (String regex) throws RemoteException
void waitUntilItemExists (final String itemText) throws RemoteException
void waitUntilItemNotExists (final String itemText) throws RemoteException

Static Public Member Functions

static RemoteBotTree getInstance ()

Member Function Documentation

void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.clickContextMenu ( String...  texts) throws RemoteException
IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.collapseNode ( String  nodeText) throws RemoteException

Collapses the node matching the node information.

Parameters:
nodeTextthe text on the node.
Returns:
the Tree item that was expanded.
Exceptions:
WidgetNotFoundExceptionif the node is not found.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.columnCount ( ) throws RemoteException

Gets the column count of this tree.

Returns:
the number of columns in the tree

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.columns ( ) throws RemoteException

Gets the columns of this tree.

Returns:
the list of columns in the tree.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.existsSubItem ( String  itemText) throws RemoteException

This method is suitable for shell widget.

Parameters:
itemTextname of the tree item.
Returns:
true, if the treeItem in the bot.tree() exists.
Exceptions:
RemoteException

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.existsSubItemWithRegex ( String  regex) throws RemoteException
IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.expandNode ( String  nodeText,
boolean  recursive 
) throws RemoteException

Expands the nodes as if the plus sign was clicked.

Parameters:
nodeTextthe node to be expanded.
recursiveif the expansion should be recursive.
Returns:
the tree item that was expanded.
Exceptions:
WidgetNotFoundExceptionif the node is not found.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.expandNode ( String...  nodes) throws RemoteException

Attempts to expand all nodes along the path specified by the node array parameter.

Parameters:
nodesnode path to expand
Returns:
the last Tree item that was expanded.
Exceptions:
WidgetNotFoundExceptionif any of the nodes on the path do not exist

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

static RemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.getInstance ( ) [static]
List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.getTextOfItems ( ) throws RemoteException

This method is suitable for shell widget.

Returns:
all the treeItem'name of the bot.tree().
Exceptions:
RemoteException

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.hasItems ( ) throws RemoteException

Gets if this tree has items within it.

Returns:
true if the tree has any items, false otherwise.
Since:
1.0

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.rowCount ( ) throws RemoteException

Gets the number of rows in the tree.

Returns:
the number of rows in the tree

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.select ( int...  indices) throws RemoteException

Select the indexes provided.

Parameters:
indicesthe indices to select.
Returns:
this same instance.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.select ( String...  items) throws RemoteException

Selects the items matching the array list.

Parameters:
itemsthe items to select.
Returns:
this same instance.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.selectionCount ( ) throws RemoteException

Gets the current selection count.

Returns:
the number of selected items.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.selectTreeItem ( String...  pathToTreeItem) throws RemoteException
IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.selectTreeItemAndWait ( String...  nodes) throws RemoteException

Selects the treeItem matching the given nodes in the tree: bot.tree() with waiting until the parentTreeItem is expanded. This method is suitable for shell widget.

Parameters:
nodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.
Exceptions:
RemoteException

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTreeItem de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.selectTreeItemWithRegex ( String...  regexNodes) throws RemoteException

Selects the treeItem matching the given Regexnodes in the tree: bot.tree(). This method is suitable for shell widget.

Parameters:
regexNodesnode path to expand. Attempts to expand all nodes along the path specified by the regex array parameter.e.g.{"Foo-saros.*", "my.pkg.*", "myClass.*"}
Exceptions:
WidgetNotFoundExceptionIf the item wasn't found.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

IRemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.setWidget ( SWTBotTree  tree)
IRemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.uncheckAllItems ( )
IRemoteBotTree de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.unselect ( ) throws RemoteException

Unselects the selection in the tree.

Returns:
this same instance.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotTree.

void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.waitUntilItemExists ( final String  itemText) throws RemoteException
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotTree.waitUntilItemNotExists ( final String  itemText) throws RemoteException
 All Classes Namespaces Files Functions Variables Enumerations