jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.lnfswitch
Class LookAndFeelSwitch

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.Plugin
      extended by de.jtem.jrworkspace.plugin.lnfswitch.LookAndFeelSwitch
All Implemented Interfaces:
FrontendFlavor, PreferencesFlavor, ActionListener, EventListener

public class LookAndFeelSwitch
extends Plugin
implements PreferencesFlavor, FrontendFlavor, ActionListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.jtem.jrworkspace.plugin.flavor.FrontendFlavor
FrontendFlavor.FrontendListener
 
Constructor Summary
LookAndFeelSwitch()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addLookAndFeel(LookAndFeelPlugin lnf)
           
 Icon getMainIcon()
          An icon for the main page
 String getMainName()
          Returns a name which will be the name of the main page
 JPanel getMainPage()
          The main preferences page
 int getNumSubPages()
          The number of sub-pages of this preference page
 de.jtem.jrworkspace.plugin.lnfswitch.LookAndFeelSwitch.OptionsPanel getOptionsPanel()
           
 PluginInfo getPluginInfo()
          Returns an instance of PluginInfo
 JPanel getSubPage(int i)
          The JPanel of the sub-page with index i
 Icon getSubPageIcon(int i)
          The icon of sub-page i
 String getSubPageName(int i)
          The name of sub-page number i
 void install(Controller c)
          Is called when the plug-in is installed
 void removeLookAndFeel(LookAndFeelPlugin lnf)
           
 void restoreStates(Controller c)
          Is called before the installation of this plug-in.
 void setFrontendListener(FrontendFlavor.FrontendListener l)
          Sets the FrontendFlavor.FrontendListener of the plug-in
 void storeStates(Controller c)
          Is called after this plug-in has been uninstalled.
 void uninstall(Controller c)
          Id called when this plug-in is about to be uninstalled
 void updateLookAndFeel()
           
 
Methods inherited from class de.jtem.jrworkspace.plugin.Plugin
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookAndFeelSwitch

public LookAndFeelSwitch()
Method Detail

actionPerformed

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

addLookAndFeel

public void addLookAndFeel(LookAndFeelPlugin lnf)

getMainIcon

public Icon getMainIcon()
Description copied from interface: PreferencesFlavor
An icon for the main page

Specified by:
getMainIcon in interface PreferencesFlavor
Returns:
an icon

getMainName

public String getMainName()
Description copied from interface: PreferencesFlavor
Returns a name which will be the name of the main page

Specified by:
getMainName in interface PreferencesFlavor
Returns:
a name

getMainPage

public JPanel getMainPage()
Description copied from interface: PreferencesFlavor
The main preferences page

Specified by:
getMainPage in interface PreferencesFlavor
Returns:
a JPanel

getNumSubPages

public int getNumSubPages()
Description copied from interface: PreferencesFlavor
The number of sub-pages of this preference page

Specified by:
getNumSubPages in interface PreferencesFlavor
Returns:
a Integer number

getOptionsPanel

public de.jtem.jrworkspace.plugin.lnfswitch.LookAndFeelSwitch.OptionsPanel getOptionsPanel()

getPluginInfo

public PluginInfo getPluginInfo()
Description copied from class: Plugin
Returns an instance of PluginInfo

Overrides:
getPluginInfo in class Plugin
Returns:
plug-in information
See Also:
PluginInfo}

getSubPage

public JPanel getSubPage(int i)
Description copied from interface: PreferencesFlavor
The JPanel of the sub-page with index i

Specified by:
getSubPage in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:

getSubPageIcon

public Icon getSubPageIcon(int i)
Description copied from interface: PreferencesFlavor
The icon of sub-page i

Specified by:
getSubPageIcon in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:

getSubPageName

public String getSubPageName(int i)
Description copied from interface: PreferencesFlavor
The name of sub-page number i

Specified by:
getSubPageName in interface PreferencesFlavor
Parameters:
i - the index of the sub-page
Returns:
a name

install

public void install(Controller c)
             throws Exception
Description copied from class: Plugin
Is called when the plug-in is installed

Overrides:
install in class Plugin
Parameters:
c - the applications Controller
Throws:
Exception
See Also:
Controller}

removeLookAndFeel

public void removeLookAndFeel(LookAndFeelPlugin lnf)

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}

setFrontendListener

public void setFrontendListener(FrontendFlavor.FrontendListener l)
Description copied from interface: FrontendFlavor
Sets the FrontendFlavor.FrontendListener of the plug-in

Specified by:
setFrontendListener in interface FrontendFlavor
Parameters:
l - the listener

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}

uninstall

public void uninstall(Controller c)
               throws Exception
Description copied from class: Plugin
Id called when this plug-in is about to be uninstalled

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

updateLookAndFeel

public void updateLookAndFeel()

jrworkspace by
jTEM

jTEM