net.sf.genuine.organizer.internal
Class ComponentStatusManagerModalFrame

java.lang.Object
  extended bynet.sf.genuine.organizer.internal.ComponentStatusManager
      extended bynet.sf.genuine.organizer.internal.ComponentStatusManagerModalFrame

class ComponentStatusManagerModalFrame
extends ComponentStatusManager

Manages the status of a visual component instance that is shown in a modal JDialog instance.


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) ComponentStatusManagerModalFrame(javax.swing.JFrame mainFrame, javax.swing.JDesktopPane desktopPane, FrameLocator frameLocator, Module module, java.lang.String componentId, java.lang.String instanceId, Size size)
           
 
Method Summary
 void addComponentListener(ComponentListener listener)
          Adds a ComponentListener to the component.
(package private)  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)  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)  void hide()
          Makes the window in which the component is embedded invisible.
 void removeComponentListener(ComponentListener listener)
          Removes a ComponentListener from the component.
(package private)  void setDefaultButton(GenuineButton defaultButton)
          Sets the given button as default button of the frame into which the component is embedded
(package private)  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

mainFrame

protected javax.swing.JFrame mainFrame

desktopPane

protected javax.swing.JDesktopPane desktopPane

frameLocator

protected FrameLocator frameLocator

module

protected Module module

componentId

protected java.lang.String componentId

instanceId

protected java.lang.String instanceId

size

protected Size size

defaultButton

protected GenuineButton defaultButton
Constructor Detail

ComponentStatusManagerModalFrame

ComponentStatusManagerModalFrame(javax.swing.JFrame mainFrame,
                                 javax.swing.JDesktopPane desktopPane,
                                 FrameLocator frameLocator,
                                 Module module,
                                 java.lang.String componentId,
                                 java.lang.String instanceId,
                                 Size size)
Method Detail

embeddComponent

void embeddComponent()
               throws ConfigurationException
Description copied from class: ComponentStatusManager
Creates a frame (internal or modal) and embeds the visual component in it.

Specified by:
embeddComponent in class ComponentStatusManager
Throws:
ConfigurationException

show

void show()
Description copied from class: ComponentStatusManager
Makes the window in which the component is embedded visible.

Specified by:
show in class ComponentStatusManager

hide

void hide()
Description copied from class: ComponentStatusManager
Makes the window in which the component is embedded invisible.

Specified by:
hide in class ComponentStatusManager

changeComponentTitle

void changeComponentTitle(java.lang.String title)
Description copied from class: ComponentStatusManager
Changes the title of the component

Specified by:
changeComponentTitle in class ComponentStatusManager

setDefaultButton

void setDefaultButton(GenuineButton defaultButton)
Description copied from class: ComponentStatusManager
Sets the given button as default button of the frame into which the component is embedded

Specified by:
setDefaultButton in class ComponentStatusManager

createVisualComponent

protected javax.swing.JComponent createVisualComponent()
                                                throws ConfigurationException
Lets the module create the visual component and checks it.

Throws:
ConfigurationException

addComponentListener

public void addComponentListener(ComponentListener listener)
Adds a ComponentListener to the component.


removeComponentListener

public void removeComponentListener(ComponentListener listener)
Removes a ComponentListener from the component.


fireComponentShown

protected void fireComponentShown()

fireComponentHidden

protected void fireComponentHidden()

fireComponentActivated

protected void fireComponentActivated()

fireComponentDeactivated

protected void fireComponentDeactivated()

toString

public java.lang.String toString()