org.argouml.model.uml
Class AbstractUmlModelFactory

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
Direct Known Subclasses:
ActivityGraphsFactory, CollaborationsFactory, CommonBehaviorFactory, CoreFactory, DataTypesFactory, ExtensionMechanismsFactory, ModelManagementFactory, StateMachinesFactory, UmlFactory, UseCasesFactory

public abstract class AbstractUmlModelFactory
extends java.lang.Object

Abstract Class that every model package factory should implement to share the initialize() method.

Since:
ARGO0.11.2

Field Summary
private static boolean guiEnabled
          Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.
 
Constructor Summary
protected AbstractUmlModelFactory()
          Default constructor.
 
Method Summary
 void addListenersToModelElement(java.lang.Object handle)
          Adds all interested (and centralized) listeners to the given modelelement handle.
protected  void initialize(java.lang.Object o)
          Initialized some new modelelement o
 boolean isGuiEnabled()
          Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.
 void setGuiEnabled(boolean gui)
          Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

guiEnabled

private static boolean guiEnabled
Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.

Flag to indicate if the gui is enabled. If the gui is enabled modelelements that are added should also be added to the navigatorpane.

Constructor Detail

AbstractUmlModelFactory

protected AbstractUmlModelFactory()
Default constructor.

Method Detail

initialize

protected void initialize(java.lang.Object o)
Initialized some new modelelement o

Parameters:
o - The new modelelement

setGuiEnabled

public void setGuiEnabled(boolean gui)
Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.

Turns the flag for the gui on/off. Default the gui is on. Needed for test modus.

Parameters:
gui - flag to turn gui on off

isGuiEnabled

public boolean isGuiEnabled()
Deprecated. by Linus Tolke as of 0.15.4. Thanks to Alex Bagehots work with the tree, this is no longer needed.

Checks if the gui is enabled.

Returns:
the gui flag

addListenersToModelElement

public void addListenersToModelElement(java.lang.Object handle)
Adds all interested (and centralized) listeners to the given modelelement handle.

Parameters:
handle - the modelelement the listeners are interested in


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook