org.mockcentral.editor.viewers
Interface IMockCentralNodeGroupViewer

All Superinterfaces:
INodeProblemListener

public interface IMockCentralNodeGroupViewer
extends INodeProblemListener

Interface for classes that provide viewer controls for "group" MockCentralNode instances (FixtureGroupNode, MockObjectGroupNode and ExpectationGroupNode).

Author:
David Hutchinson

Method Summary
 void addNewChildren(java.util.List<MockCentralNode> children)
          Adds the supplied MockCentralNode children to the current list.
 IMockCentralClipboard getClipboard()
          Returns the implementor's IMockCentralClipboard instance.
 MockCentralGroupNodeModel getNodeGroupModel()
          Returns the MockCentralGroupNodeModel associated with the node group.
 java.lang.Object getSelectedNode()
          Returns the currently selected MockCentralNode within the group.
 int getSelectedNodeIndex()
          Returns the index of the currently selected MockCentralNode within the group.
 void showCreateNewChildDialog()
          Displays a dialog for creating a new MockCentralNode within the group.
 
Methods inherited from interface org.mockcentral.editor.nodes.problem.INodeProblemListener
updateNodeProblems
 

Method Detail

getNodeGroupModel

MockCentralGroupNodeModel getNodeGroupModel()
Returns the MockCentralGroupNodeModel associated with the node group.

Returns:
the MockCentralGroupNodeModel associated with the node group.

getSelectedNode

java.lang.Object getSelectedNode()
Returns the currently selected MockCentralNode within the group.

Returns:
the currently selected MockCentralNode within the group.

getSelectedNodeIndex

int getSelectedNodeIndex()
Returns the index of the currently selected MockCentralNode within the group.

Returns:
the index of the currently selected MockCentralNode within the group.

showCreateNewChildDialog

void showCreateNewChildDialog()
Displays a dialog for creating a new MockCentralNode within the group.


getClipboard

IMockCentralClipboard getClipboard()
Returns the implementor's IMockCentralClipboard instance.

Returns:
the implementor's IMockCentralClipboard instance.

addNewChildren

void addNewChildren(java.util.List<MockCentralNode> children)
Adds the supplied MockCentralNode children to the current list.

Parameters:
children - a list of MockCentralNode instances.