jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.sidecontainer
Class SideContainerPerspective

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.Plugin
      extended by de.jtem.jrworkspace.plugin.sidecontainer.SideContainerPerspective
All Implemented Interfaces:
PerspectiveFlavor, ActionListener, EventListener

public abstract class SideContainerPerspective
extends Plugin
implements PerspectiveFlavor, ActionListener


Constructor Summary
SideContainerPerspective()
           
SideContainerPerspective(boolean hidePanels)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Component getCenterComponent()
          Returns the center component that will be displayed in the center of the hosts main frame
 JMenu getContaintersMenu()
           
 JPanel getContentPanel()
          Returns the panel between the shrink slots When overriding this method you have to be aware of the fact that it will be called from the constructor.
 ShrinkSlot getLeftSlot()
           
 ShrinkSlot getLowerSlot()
           
 JMenu getPanelsMenu()
           
 ShrinkSlot getRightSlot()
           
 ShrinkSlot getUpperSlot()
           
 boolean isHidePanels()
           
 void restoreStates(Controller c)
          Is called before the installation of this plug-in.
 void setHidePanels(boolean hidePanels)
           
 void setShowBottom(boolean showBottom)
           
 void setShowLeft(boolean showLeft)
           
 void setShowRight(boolean showRight)
           
 void setShowTop(boolean showTop)
           
 void storeStates(Controller c)
          Is called after this plug-in has been uninstalled.
 
Methods inherited from class de.jtem.jrworkspace.plugin.Plugin
equals, getPluginInfo, hashCode, install, toString, uninstall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.jtem.jrworkspace.plugin.flavor.PerspectiveFlavor
getIcon, getTitle, setVisible
 

Constructor Detail

SideContainerPerspective

public SideContainerPerspective()

SideContainerPerspective

public SideContainerPerspective(boolean hidePanels)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getCenterComponent

public final Component getCenterComponent()
Description copied from interface: PerspectiveFlavor
Returns the center component that will be displayed in the center of the hosts main frame

Specified by:
getCenterComponent in interface PerspectiveFlavor
Returns:
the center panel of the perspective or null if the perspective shall not be displayed

getContaintersMenu

public JMenu getContaintersMenu()

getContentPanel

public JPanel getContentPanel()
Returns the panel between the shrink slots When overriding this method you have to be aware of the fact that it will be called from the constructor. This means before your local variables get initialized. it is a better idea to use the default content JPanel provided by this method, set some Layout to it and forget about overriding.

Returns:
The panel that appears between the shrink slots

getLeftSlot

public ShrinkSlot getLeftSlot()

getLowerSlot

public ShrinkSlot getLowerSlot()

getPanelsMenu

public JMenu getPanelsMenu()

getRightSlot

public ShrinkSlot getRightSlot()

getUpperSlot

public ShrinkSlot getUpperSlot()

isHidePanels

public boolean isHidePanels()

restoreStates

public void restoreStates(Controller c)
                   throws Exception
Description copied from class: Plugin
Is called before the installation of this plug-in. The recommended way to read properties is to call Controller.getProperty(Class, String, Object) on the controller provided as argument.

Overrides:
restoreStates in class Plugin
Parameters:
c - this applications Controller
Throws:
Exception
See Also:
Controller}

setHidePanels

public void setHidePanels(boolean hidePanels)

setShowBottom

public void setShowBottom(boolean showBottom)

setShowLeft

public void setShowLeft(boolean showLeft)

setShowRight

public void setShowRight(boolean showRight)

setShowTop

public void setShowTop(boolean showTop)

storeStates

public void storeStates(Controller c)
                 throws Exception
Description copied from class: Plugin
Is called after this plug-in has been uninstalled. The recommended way to save properties is to call Controller.storeProperty(Class, String, Object) on the controller provided as argument.

Overrides:
storeStates in class Plugin
Throws:
Exception
See Also:
Controller}

jrworkspace by
jTEM

jTEM