|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JInternalFrame
org.gswing.gui.GuiComponent
org.gswing.gui.MenuGuiComponent
public abstract class MenuGuiComponent
Gui component deriving from a menu.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JInternalFrame |
---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MenuGuiComponent()
Default Constructor. |
|
MenuGuiComponent(String title)
Constructor. |
|
MenuGuiComponent(String title,
boolean useDbConnection)
Constructor. |
|
MenuGuiComponent(String title,
boolean useDbConnection,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent arg0)
|
protected void |
close()
Hide the dialogue. |
void |
connectionChanged(boolean connected)
A change in the database connection has occurred. |
protected IDatabaseManagement |
getDbManager()
Get the database manager object. |
protected JMenuItem |
getMenuItem()
Get the menu item that this component was created from. |
abstract void |
init()
Initialise the component. |
boolean |
initialise(IFramework framework)
Initialise the component. |
boolean |
initialise(JMenuItem menuItem)
Initialise the component. |
void |
internalFrameActivated(InternalFrameEvent arg0)
Not used |
void |
internalFrameClosed(InternalFrameEvent arg0)
|
void |
internalFrameClosing(InternalFrameEvent arg0)
Not used |
void |
internalFrameDeactivated(InternalFrameEvent arg0)
Not used |
void |
internalFrameDeiconified(InternalFrameEvent arg0)
Not used |
void |
internalFrameIconified(InternalFrameEvent arg0)
Not used |
void |
internalFrameOpened(InternalFrameEvent arg0)
Not used |
Methods inherited from class org.gswing.gui.GuiComponent |
---|
getDesktopManager, getFocusedComponent, getFramework, initialise, setDefaultButton, setFocusedComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MenuGuiComponent()
public MenuGuiComponent(String title)
title
- Dialog title.public MenuGuiComponent(String title, boolean useDbConnection)
title
- Dialog title.useDbConnection
- Connect to the database manager?public MenuGuiComponent(String title, boolean useDbConnection, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
title
- Dialog title.useDbConnection
- Connect to the database manager?resizable
- Is the dialogo resizeable?closable
- Will the user be able to close the dialog?maximizable
- Can the dialog be maximised?iconifiable
- Can the dialog be iconfified?Method Detail |
---|
public abstract void init()
public boolean initialise(IFramework framework)
IComponent
initialise
in interface IComponent
initialise
in class GuiComponent
framework
- The GUI framework
public boolean initialise(JMenuItem menuItem)
IMenuComponent
initialise
in interface IMenuComponent
menuItem
- The menu item that this component is invoked from.
protected void close()
public void actionPerformed(ActionEvent arg0)
actionPerformed
in interface ActionListener
actionPerformed
in class GuiComponent
public void connectionChanged(boolean connected)
IDatabaseListener
connectionChanged
in interface IDatabaseListener
connected
- True if the there is a valid database connection.protected IDatabaseManagement getDbManager()
protected JMenuItem getMenuItem()
public void internalFrameClosed(InternalFrameEvent arg0)
internalFrameClosed
in interface InternalFrameListener
public void internalFrameActivated(InternalFrameEvent arg0)
internalFrameActivated
in interface InternalFrameListener
public void internalFrameClosing(InternalFrameEvent arg0)
internalFrameClosing
in interface InternalFrameListener
public void internalFrameDeactivated(InternalFrameEvent arg0)
internalFrameDeactivated
in interface InternalFrameListener
public void internalFrameDeiconified(InternalFrameEvent arg0)
internalFrameDeiconified
in interface InternalFrameListener
public void internalFrameIconified(InternalFrameEvent arg0)
internalFrameIconified
in interface InternalFrameListener
public void internalFrameOpened(InternalFrameEvent arg0)
internalFrameOpened
in interface InternalFrameListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |