jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.simplecontroller
Class SimpleController.FlavorListener

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.FlavorListener
All Implemented Interfaces:
FrontendFlavor.FrontendListener, HelpFlavor.HelpListener, PropertiesFlavor.PropertiesListener, ShutdownFlavor.ShutdownListener, StatusFlavor.StatusChangedListener
Enclosing class:
SimpleController

protected class SimpleController.FlavorListener
extends Object
implements StatusFlavor.StatusChangedListener, FrontendFlavor.FrontendListener, HelpFlavor.HelpListener, PropertiesFlavor.PropertiesListener, ShutdownFlavor.ShutdownListener

The methods in this class are intended to be invoked when the respective controller is started. The behavior is undefined if the controller is not started.

Author:
Stefan Sechelmann

Constructor Summary
protected SimpleController.FlavorListener()
           
 
Method Summary
 String getUserPropertyFile()
           
 void installLookAndFeel(String lnfClassName)
          Installs a new look and feel on this controllers gui
 boolean isAskBeforeSaveOnExit()
           
 boolean isFullscreen()
          Check whether the window of the controller is in full-screen mode
 boolean isLoadFromUserPropertyFile()
           
 boolean isSaveOnExit()
           
 void loadDefaultProperties()
           
 void readProperties(Reader r)
           
 void setAskBeforeSaveOnExit(boolean askBeforeSaveOnExit)
           
 void setFullscreen(boolean fs)
          Activates the full-screen mode of this controller
 void setLoadFromUserPropertyFile(boolean loadFromUserPropertyFile)
           
 void setSaveOnExit(boolean saveOnExit)
           
 void setShowMenuBar(boolean show)
          Set the menu bars visibility
 void setShowStatusBar(boolean show)
          Sets the status bars visibility
 void setShowToolBar(boolean show)
          Sets the tool bars visibility
 void setUserPropertyFile(String userPropertyFile)
           
 void showHelpPage(HelpFlavor hf)
          Displays the help page of the given plug-in
 void shutdown()
          The call of this method triggers final housekeeping (properties saving) and System.exit.
 void statusChanged(String status)
          Notifies this controller that the status string should be changed
 void updateContent()
          Updates the content gui of this controller
 void updateFrontend()
          Completely rebuilds the gui of this controller
 void updateFrontendUI()
          Updates the frontends UI
 void updateMenuBar()
          Updates the menu bar of this controller
 void writeProperties(Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleController.FlavorListener

protected SimpleController.FlavorListener()
Method Detail

getUserPropertyFile

public String getUserPropertyFile()
Specified by:
getUserPropertyFile in interface PropertiesFlavor.PropertiesListener

installLookAndFeel

public void installLookAndFeel(String lnfClassName)
Installs a new look and feel on this controllers gui

Specified by:
installLookAndFeel in interface FrontendFlavor.FrontendListener
Parameters:
lnfClassName - the class name of the lnf class

isAskBeforeSaveOnExit

public boolean isAskBeforeSaveOnExit()
Specified by:
isAskBeforeSaveOnExit in interface PropertiesFlavor.PropertiesListener

isFullscreen

public boolean isFullscreen()
Check whether the window of the controller is in full-screen mode

Specified by:
isFullscreen in interface FrontendFlavor.FrontendListener

isLoadFromUserPropertyFile

public boolean isLoadFromUserPropertyFile()
Specified by:
isLoadFromUserPropertyFile in interface PropertiesFlavor.PropertiesListener

isSaveOnExit

public boolean isSaveOnExit()
Specified by:
isSaveOnExit in interface PropertiesFlavor.PropertiesListener

loadDefaultProperties

public void loadDefaultProperties()
Specified by:
loadDefaultProperties in interface PropertiesFlavor.PropertiesListener

readProperties

public void readProperties(Reader r)
Specified by:
readProperties in interface PropertiesFlavor.PropertiesListener

setAskBeforeSaveOnExit

public void setAskBeforeSaveOnExit(boolean askBeforeSaveOnExit)
Specified by:
setAskBeforeSaveOnExit in interface PropertiesFlavor.PropertiesListener

setFullscreen

public void setFullscreen(boolean fs)
Activates the full-screen mode of this controller

Specified by:
setFullscreen in interface FrontendFlavor.FrontendListener
Parameters:
fs -

setLoadFromUserPropertyFile

public void setLoadFromUserPropertyFile(boolean loadFromUserPropertyFile)
Specified by:
setLoadFromUserPropertyFile in interface PropertiesFlavor.PropertiesListener

setSaveOnExit

public void setSaveOnExit(boolean saveOnExit)
Specified by:
setSaveOnExit in interface PropertiesFlavor.PropertiesListener

setShowMenuBar

public void setShowMenuBar(boolean show)
Set the menu bars visibility

Specified by:
setShowMenuBar in interface FrontendFlavor.FrontendListener
Parameters:
show -

setShowStatusBar

public void setShowStatusBar(boolean show)
Sets the status bars visibility

Specified by:
setShowStatusBar in interface FrontendFlavor.FrontendListener
Parameters:
show -

setShowToolBar

public void setShowToolBar(boolean show)
Sets the tool bars visibility

Specified by:
setShowToolBar in interface FrontendFlavor.FrontendListener
Parameters:
show -

setUserPropertyFile

public void setUserPropertyFile(String userPropertyFile)
Specified by:
setUserPropertyFile in interface PropertiesFlavor.PropertiesListener

showHelpPage

public void showHelpPage(HelpFlavor hf)
Displays the help page of the given plug-in

Specified by:
showHelpPage in interface HelpFlavor.HelpListener
Parameters:
hf - the help flavor plug-in to show

shutdown

public void shutdown()
Description copied from interface: ShutdownFlavor.ShutdownListener
The call of this method triggers final housekeeping (properties saving) and System.exit.

Specified by:
shutdown in interface ShutdownFlavor.ShutdownListener

statusChanged

public void statusChanged(String status)
Notifies this controller that the status string should be changed

Specified by:
statusChanged in interface StatusFlavor.StatusChangedListener
Parameters:
status - the new status string

updateContent

public void updateContent()
Updates the content gui of this controller

Specified by:
updateContent in interface FrontendFlavor.FrontendListener

updateFrontend

public void updateFrontend()
Completely rebuilds the gui of this controller

Specified by:
updateFrontend in interface FrontendFlavor.FrontendListener

updateFrontendUI

public void updateFrontendUI()
Updates the frontends UI

Specified by:
updateFrontendUI in interface FrontendFlavor.FrontendListener

updateMenuBar

public void updateMenuBar()
Updates the menu bar of this controller

Specified by:
updateMenuBar in interface FrontendFlavor.FrontendListener

writeProperties

public void writeProperties(Writer w)
Specified by:
writeProperties in interface PropertiesFlavor.PropertiesListener

jrworkspace by
jTEM

jTEM