org.mockcentral.editor.nodes.fixture
Class FixtureController

java.lang.Object
  extended by org.mockcentral.editor.nodes.fixture.FixtureController

public class FixtureController
extends java.lang.Object

The controller class within the MVC structure that includes the FixtureModel class.

Author:
David Hutchinson

Constructor Summary
FixtureController(FixtureModel fixtureModel)
          Creates a new instance.
 
Method Summary
 void addSimpleBoundObject(SimpleBoundObjectModel model, boolean refresh)
          Adds the supplied SimpleBoundObjectModel to the list of current simple (non-Mock) JNDI-bound Objects.
 void removeSimpleBoundObject(SimpleBoundObjectModel model, boolean refresh)
          Removes the supplied SimpleBoundObjectModel from the list of current simple (non-Mock) JNDI-bound Objects.
 void setFixtureData(java.lang.String fixtureName, java.lang.String fixtureDescription)
          Sets the Fixture name and Fixture description values.
 void setFixtureImports(java.util.List<MockCentralNode> imports)
          Sets the list of imported Fixtures.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixtureController

public FixtureController(FixtureModel fixtureModel)
Creates a new instance.

Parameters:
fixtureModel - the associated FixtureModel.
Method Detail

setFixtureData

public void setFixtureData(java.lang.String fixtureName,
                           java.lang.String fixtureDescription)
Sets the Fixture name and Fixture description values.

Parameters:
fixtureName - the value for the Fixture name.
fixtureDescription - the value for the Fixture description.

setFixtureImports

public void setFixtureImports(java.util.List<MockCentralNode> imports)
Sets the list of imported Fixtures.

Parameters:
imports - the list of imported Fixtures.

addSimpleBoundObject

public void addSimpleBoundObject(SimpleBoundObjectModel model,
                                 boolean refresh)
Adds the supplied SimpleBoundObjectModel to the list of current simple (non-Mock) JNDI-bound Objects.

Parameters:
model - the SimpleBoundObjectModel.
refresh - whether the UI should be refreshed after the addition.

removeSimpleBoundObject

public void removeSimpleBoundObject(SimpleBoundObjectModel model,
                                    boolean refresh)
Removes the supplied SimpleBoundObjectModel from the list of current simple (non-Mock) JNDI-bound Objects.

Parameters:
model - the SimpleBoundObjectModel.
refresh - whether the UI should be refreshed after the removal.