|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.entitymanager.presentation.PresentationFacade
se.entitymanager.presentation.swing.SwingPresentationFacade
public class SwingPresentationFacade
A Swing presentation facade.
This class offers gui functionalities for a logic facade. It is based on the Swing framework.
Field Summary | |
---|---|
private SwingPresentationLogic |
presentationLogic
The presentation logic to use. |
Fields inherited from class se.entitymanager.presentation.PresentationFacade |
---|
iconFactory, logicFacade |
Constructor Summary | |
---|---|
SwingPresentationFacade(LogicFacade logicFacade,
IconFactoryInterface iconFactory)
Constructs a SwingPresentationFacade to a logicFactory . |
Method Summary | |
---|---|
Icon |
createIcon(javax.swing.Icon icon)
Creates a new se.entitymanager.presentation.Icon from a
javax.swing.Icon . |
java.awt.Component |
getDualTreeComponent()
Returns a dual tree display component for the entities of the logic facade. |
javax.swing.JMenuBar |
getMenuBar()
Returns a menu bar for the entities of the logic facade. |
javax.swing.JPopupMenu |
getPopupMenu()
Returns a popup menu for the entities of the logic facade. |
javax.swing.JToolBar |
getToolBar()
Returns a tool bar for the entities of the logic facade. |
void |
showError(java.lang.String errorMessage)
Returns a error message, if error occured. |
Methods inherited from class se.entitymanager.presentation.PresentationFacade |
---|
getIconFactory, getLogicFacade |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private SwingPresentationLogic presentationLogic
Constructor Detail |
---|
public SwingPresentationFacade(LogicFacade logicFacade, IconFactoryInterface iconFactory)
SwingPresentationFacade
to a logicFactory
. Icons
will be created using iconFactory
.
logicFacade
- the logic facadeiconFactory
- the icon factoryMethod Detail |
---|
public Icon createIcon(javax.swing.Icon icon)
se.entitymanager.presentation.Icon
from a
javax.swing.Icon
. The given icon will be encapsulated an can be accessed by
se.entitymanager.presentation.Icon.getIconObject()
.
icon
- the icon
public java.awt.Component getDualTreeComponent()
getDualTreeComponent
in class PresentationFacade
public javax.swing.JMenuBar getMenuBar()
getMenuBar
in class PresentationFacade
public javax.swing.JToolBar getToolBar()
getToolBar
in class PresentationFacade
public javax.swing.JPopupMenu getPopupMenu()
getPopupMenu
in class PresentationFacade
public void showError(java.lang.String errorMessage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |