se.entitymanager.presentation
Class PresentationFacade

java.lang.Object
  extended by se.entitymanager.presentation.PresentationFacade
Direct Known Subclasses:
SwingPresentationFacade

public abstract class PresentationFacade
extends java.lang.Object

A presentation facade.

Implementing objects provide functionality to display entities to the user.


Field Summary
protected  IconFactoryInterface iconFactory
          The icon factory that is used to create icons for the entities.
protected  LogicFacade logicFacade
          The logic facade that is used for accessing the entities.
 
Constructor Summary
PresentationFacade(LogicFacade logicFacade, IconFactoryInterface iconFactory)
          Constructs a presentation facade, that accesses the entities of logicFacade and uses icons provided by iconFactory.
 
Method Summary
abstract  java.awt.Component getDualTreeComponent()
          Returns a dual tree component for the entity trees.
 IconFactoryInterface getIconFactory()
          Returns the icon factory that provides the icons for the factory
 LogicFacade getLogicFacade()
          Returns the logic facade that is used for accessing entities.
abstract  javax.swing.JMenuBar getMenuBar()
          Returns a menu bar for file manager visualisation.
abstract  javax.swing.JPopupMenu getPopupMenu()
          Returns a popup menu for file manager visualisation.
abstract  javax.swing.JToolBar getToolBar()
          Returns a button bar for file manager visualisation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logicFacade

protected LogicFacade logicFacade
The logic facade that is used for accessing the entities.


iconFactory

protected IconFactoryInterface iconFactory
The icon factory that is used to create icons for the entities.

Constructor Detail

PresentationFacade

public PresentationFacade(LogicFacade logicFacade,
                          IconFactoryInterface iconFactory)
Constructs a presentation facade, that accesses the entities of logicFacade and uses icons provided by iconFactory.

Parameters:
logicFacade - the logic facade that is used for accessing entities
iconFactory - the icon factory
Method Detail

getDualTreeComponent

public abstract java.awt.Component getDualTreeComponent()
Returns a dual tree component for the entity trees.


getMenuBar

public abstract javax.swing.JMenuBar getMenuBar()
Returns a menu bar for file manager visualisation.


getToolBar

public abstract javax.swing.JToolBar getToolBar()
Returns a button bar for file manager visualisation.


getPopupMenu

public abstract javax.swing.JPopupMenu getPopupMenu()
Returns a popup menu for file manager visualisation.


getLogicFacade

public LogicFacade getLogicFacade()
Returns the logic facade that is used for accessing entities.

Returns:
the logic facade

getIconFactory

public IconFactoryInterface getIconFactory()
Returns the icon factory that provides the icons for the factory

Returns:
the icon factory