|
||||||||||
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
public abstract class GuiComponent
Base class for all gui components.
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 | |
---|---|
GuiComponent()
Default Constructor. |
|
GuiComponent(String title)
Constructor. |
|
GuiComponent(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent arg0)
|
protected IDesktopManagement |
getDesktopManager()
Get the desktop manager object. |
protected JComponent |
getFocusedComponent()
Get component that has requested focus. |
protected IFramework |
getFramework()
Get the framework object. |
boolean |
initialise(IDesktopManagement desktopManager)
Initialise the component. |
boolean |
initialise(IFramework framework)
Initialise the component. |
protected void |
setDefaultButton(JButton button)
Set button to be default button. |
protected void |
setFocusedComponent(JComponent component)
Request component to be focused. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GuiComponent()
public GuiComponent(String title)
title
- Dialog title.public GuiComponent(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
title
- Dialog title.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 boolean initialise(IDesktopManagement desktopManager)
IGuiComponent
initialise
in interface IGuiComponent
desktopManager
- The desktop manager.
public boolean initialise(IFramework framework)
IComponent
initialise
in interface IComponent
framework
- The GUI framework
public void actionPerformed(ActionEvent arg0)
protected IFramework getFramework()
protected IDesktopManagement getDesktopManager()
protected void setFocusedComponent(JComponent component)
component
- The component requesting focus.protected JComponent getFocusedComponent()
protected void setDefaultButton(JButton button)
button
- The default button.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |