|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.entitymanager.presentation.swing.SwingPresentationLogic
public class SwingPresentationLogic
A class that offers basic functionality for displaying entities with a swing gui.
| Field Summary | |
|---|---|
private SwingDualTreePanel |
displayPanel
The dual tree display panel that will be provided for applications. |
private IconFactoryInterface |
iconFactory
The icon factory to use. |
private LogicFacade |
logicFacade
The logic facade that is used for calling methods on entities. |
private SwingMenuBar |
menuBar
The menu bar panel that will be provided for applications. |
private SwingPopupMenu |
popupMenu
The popup menu that will be provided for applications. |
private SwingPresentationFacade |
presentationFacade
The presentation facade object, this object belongs to. |
private SwingToolBar |
toolBar
The display panel that will be provided for applications. |
| Constructor Summary | |
|---|---|
protected |
SwingPresentationLogic(SwingPresentationFacade presentationFacade,
LogicFacade logicFacade,
IconFactoryInterface iconFactory)
Constructs a SwingPresentationLogic for a presentationFacade, that
uses logicFacade to call methods on entities and iconFactory to create
icons for the displayPanel. |
| Method Summary | |
|---|---|
java.awt.Component |
getDualTreeComponent()
Returns a dual tree component for entities. |
IconFactoryInterface |
getIconFactory()
Returns the icon factory that is used by the display panel to create icons for entities. |
LogicFacade |
getLogicFacade()
Returns the logic facade that is used for calling methods on entities. |
javax.swing.JMenuBar |
getMenuBar()
Returns a menu bar. |
javax.swing.JPopupMenu |
getPopupMenu()
Returns a popup menu. |
javax.swing.JToolBar |
getToolBar()
Returns a tool bar. |
protected void |
showError(java.lang.String errorMessage)
Shows an error message in an option pane as modal dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SwingPresentationFacade presentationFacade
private LogicFacade logicFacade
private IconFactoryInterface iconFactory
private SwingDualTreePanel displayPanel
private SwingMenuBar menuBar
private SwingToolBar toolBar
private SwingPopupMenu popupMenu
| Constructor Detail |
|---|
protected SwingPresentationLogic(SwingPresentationFacade presentationFacade,
LogicFacade logicFacade,
IconFactoryInterface iconFactory)
SwingPresentationLogic for a presentationFacade, that
uses logicFacade to call methods on entities and iconFactory to create
icons for the displayPanel.
| Method Detail |
|---|
public LogicFacade getLogicFacade()
public IconFactoryInterface getIconFactory()
public java.awt.Component getDualTreeComponent()
This class always returns an instance of SwingPresentationPanel.
SwingDualTreePanelpublic javax.swing.JMenuBar getMenuBar()
SwingMenuBarpublic javax.swing.JToolBar getToolBar()
SwingToolBarpublic javax.swing.JPopupMenu getPopupMenu()
SwingToolBarprotected void showError(java.lang.String errorMessage)
errorMessage - the error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||