|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.genuine.organizer.internal.ComponentStatusManager
Manages the status of a visual component instance and provides operations to manipulate that status. This includes, for example, showing and hiding the visual component.
A visual component may be shown either inside an internal frame or a modal JDialog instance. Concrete sub classes handle both cases. The window is created as soon as an object of this class is initialized.
Field Summary | |
protected java.lang.String |
componentId
|
protected GenuineButton |
defaultButton
|
protected javax.swing.JDesktopPane |
desktopPane
|
protected FrameLocator |
frameLocator
|
protected java.lang.String |
instanceId
|
protected javax.swing.JFrame |
mainFrame
|
protected Module |
module
|
protected Size |
size
|
Constructor Summary | |
(package private) |
ComponentStatusManager(javax.swing.JFrame mainFrame,
javax.swing.JDesktopPane desktopPane,
FrameLocator frameLocator,
Module module,
java.lang.String componentId,
java.lang.String instanceId,
Size size)
Initialization with module and component id before the module has been initialized. |
Method Summary | |
void |
addComponentListener(ComponentListener listener)
Adds a ComponentListener to the component. |
(package private) abstract void |
changeComponentTitle(java.lang.String title)
Changes the title of the component |
protected javax.swing.JComponent |
createVisualComponent()
Lets the module create the visual component and checks it. |
(package private) abstract void |
embeddComponent()
Creates a frame (internal or modal) and embeds the visual component in it. |
protected void |
fireComponentActivated()
|
protected void |
fireComponentDeactivated()
|
protected void |
fireComponentHidden()
|
protected void |
fireComponentShown()
|
(package private) abstract void |
hide()
Makes the window in which the component is embedded invisible. |
void |
removeComponentListener(ComponentListener listener)
Removes a ComponentListener from the component. |
(package private) abstract void |
setDefaultButton(GenuineButton defaultButton)
Sets the given button as default button of the frame into which the component is embedded |
(package private) abstract void |
show()
Makes the window in which the component is embedded visible. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected javax.swing.JFrame mainFrame
protected javax.swing.JDesktopPane desktopPane
protected FrameLocator frameLocator
protected Module module
protected java.lang.String componentId
protected java.lang.String instanceId
protected Size size
protected GenuineButton defaultButton
Constructor Detail |
ComponentStatusManager(javax.swing.JFrame mainFrame, javax.swing.JDesktopPane desktopPane, FrameLocator frameLocator, Module module, java.lang.String componentId, java.lang.String instanceId, Size size)
Method Detail |
abstract void embeddComponent() throws ConfigurationException
ConfigurationException
protected javax.swing.JComponent createVisualComponent() throws ConfigurationException
ConfigurationException
abstract void show()
abstract void hide()
abstract void changeComponentTitle(java.lang.String title)
abstract void setDefaultButton(GenuineButton defaultButton)
public void addComponentListener(ComponentListener listener)
ComponentListener
to the component.
public void removeComponentListener(ComponentListener listener)
ComponentListener
from the component.
protected void fireComponentShown()
protected void fireComponentHidden()
protected void fireComponentActivated()
protected void fireComponentDeactivated()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |