simtools.ui
Class ExternalMode

java.lang.Object
  extended by simtools.ui.ExternalMode
All Implemented Interfaces:
DesktopCardPanelMode

public class ExternalMode
extends java.lang.Object
implements DesktopCardPanelMode

a DesktopCardPanelMode implementation where the components are layed out in individual JFrames


Nested Class Summary
 class ExternalMode.ExternalFrame
          The external JFrame holder for the components in desktop mode.
 
Field Summary
protected  DesktopCardPanel _desktopCardPanel
          the desktopCardPanel in wich the components are layed out
 
Constructor Summary
ExternalMode(DesktopCardPanel desktopCardPanel)
           
 
Method Summary
 void addComponent(javax.swing.JComponent d)
          Adds a new component to the desktop
protected  void computeNextFramePosition()
          Computes next frame coordinates
 java.awt.Container getContainer(javax.swing.JComponent d)
          returns the ComponentContainer that contains the specified component
 java.awt.Container getContentPane()
          returns null as the layout is external
 void removeComponent(javax.swing.JComponent d)
          Removes a component from the desktop
 void selectComponent(javax.swing.JComponent d)
          Selects a component
 void updateComponentName(javax.swing.JComponent d)
          Updates the name of a component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_desktopCardPanel

protected DesktopCardPanel _desktopCardPanel
the desktopCardPanel in wich the components are layed out

Constructor Detail

ExternalMode

public ExternalMode(DesktopCardPanel desktopCardPanel)
Parameters:
cardPanel - the desktopCardPanel in wich the components are layed out
Method Detail

addComponent

public void addComponent(javax.swing.JComponent d)
Description copied from interface: DesktopCardPanelMode
Adds a new component to the desktop

Specified by:
addComponent in interface DesktopCardPanelMode
Parameters:
d - the component

removeComponent

public void removeComponent(javax.swing.JComponent d)
Description copied from interface: DesktopCardPanelMode
Removes a component from the desktop

Specified by:
removeComponent in interface DesktopCardPanelMode
Parameters:
d - the component

selectComponent

public void selectComponent(javax.swing.JComponent d)
Selects a component

Specified by:
selectComponent in interface DesktopCardPanelMode
Parameters:
d - the component

updateComponentName

public void updateComponentName(javax.swing.JComponent d)
Updates the name of a component

Specified by:
updateComponentName in interface DesktopCardPanelMode
Parameters:
d - the component

getContentPane

public java.awt.Container getContentPane()
returns null as the layout is external

Specified by:
getContentPane in interface DesktopCardPanelMode
Returns:
the container or null if the components are not layed out in a container (external)

getContainer

public java.awt.Container getContainer(javax.swing.JComponent d)
returns the ComponentContainer that contains the specified component

Specified by:
getContainer in interface DesktopCardPanelMode
Parameters:
d - the component
Returns:
the container

computeNextFramePosition

protected void computeNextFramePosition()
Computes next frame coordinates