org.ceryle.wiki.visualizer.core.model
Class WikiModel

java.lang.Object
  extended by org.ceryle.wiki.visualizer.core.model.WikiModel
All Implemented Interfaces:
Serializable

public class WikiModel
extends Object
implements Serializable

WikiModel.

TODO

See Also:
Serialized Form

Method Summary
static WikiModel createModel(ModelStatusUpdater statusUpdater, WikiVisualizerParameters params)
          Factory method.
 WikiGraph getGraph()
          A WikiModel knows its WikiGraph, just like a WikiPage knows its WikiNode.
 String getName()
           
 WikiPage getPage(String pageName)
          Ask the model for a given WikiPage by name.
 WikiVisualizerParameters getParameters()
          Return the visualization parameters provided in the constructor.
 void openEditUrl(String pageName)
           
 void setAppletContext(AppletContext context)
           
 void setGraph(WikiGraph graph)
          Connect this WikiModel to a given WikiGraph.
 void updateGraph()
          Update the WikiGraph (if one's attached), tell it about each WikiPage in the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createModel

public static WikiModel createModel(ModelStatusUpdater statusUpdater,
                                    WikiVisualizerParameters params)
Factory method.

Parameters:
statusUpdater -
params -
Returns:
the generated WikiModel

getParameters

public WikiVisualizerParameters getParameters()
Return the visualization parameters provided in the constructor.


getName

public String getName()
Returns:
the name of this model.

getGraph

public WikiGraph getGraph()
A WikiModel knows its WikiGraph, just like a WikiPage knows its WikiNode.

Returns:
May be null if no graph has yet been attached.

setGraph

public void setGraph(WikiGraph graph)
Connect this WikiModel to a given WikiGraph. This model will update the graph as appropriate.

Parameters:
graph -

getPage

public WikiPage getPage(String pageName)
Ask the model for a given WikiPage by name.

Parameters:
pageName -
Returns:
May be null.

setAppletContext

public void setAppletContext(AppletContext context)

openEditUrl

public void openEditUrl(String pageName)

updateGraph

public void updateGraph()
Update the WikiGraph (if one's attached), tell it about each WikiPage in the model. NOTE: There is a future issue with page deletion that the current paradigm just doesn't address very well.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.