|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gswing.gui.MenuComponent
public abstract class MenuComponent
Base class for all non GUI menu components.
| Constructor Summary | |
|---|---|
MenuComponent(boolean useDbConnection)
Constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent arg0)
|
void |
connectionChanged(boolean connected)
A change in the database connection has occurred. |
protected IDatabaseManagement |
getDbManager()
Get the database manager object. |
protected IFramework |
getFramework()
Get the framework object. |
protected JMenuItem |
getMenuItem()
Get the menu item that this component was created from. |
boolean |
initialise(IFramework framework)
Initialise the component. |
boolean |
initialise(JMenuItem menuItem)
Initialise the component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuComponent(boolean useDbConnection)
useDbConnection - Connect to the database manager?| Method Detail |
|---|
public boolean initialise(JMenuItem menuItem)
IMenuComponent
initialise in interface IMenuComponentmenuItem - The menu item that this component is invoked from.
public boolean initialise(IFramework framework)
IComponent
initialise in interface IComponentframework - The GUI framework
public void actionPerformed(ActionEvent arg0)
actionPerformed in interface ActionListenerpublic void connectionChanged(boolean connected)
IDatabaseListener
connectionChanged in interface IDatabaseListenerconnected - True if the there is a valid database connection.protected IFramework getFramework()
protected IDatabaseManagement getDbManager()
protected JMenuItem getMenuItem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||