net.sourceforge.squirrel_sql.plugins.laf
Class LAFPreferencesTab

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.laf.LAFPreferencesTab
All Implemented Interfaces:
IGlobalPreferencesPanel, IOptionPanel

public class LAFPreferencesTab
extends Object
implements IGlobalPreferencesPanel

The Look and Feel panel for the Global Preferences dialog.

Author:
Colin Bell

Constructor Summary
LAFPreferencesTab(LAFPlugin plugin, LAFRegister lafRegister)
          Ctor.
 
Method Summary
 void applyChanges()
          User has pressed OK or Apply in the dialog so save data from panel.
 String getHint()
          Return the hint for this panel.
 Component getPanelComponent()
          Return the component to be displayed in the Preferences dialog.
 String getTitle()
          Return the title for this panel.
 void initialize(IApplication app)
          Load panel with data from plugin preferences.
 void uninitialize(IApplication app)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LAFPreferencesTab

public LAFPreferencesTab(LAFPlugin plugin,
                         LAFRegister lafRegister)
Ctor.

Parameters:
plugin - The LAF plugin.
lafRegister - Look and Feel register.
Throws:
IllegalArgumentException - if LAFPlugin, or LAFRegister is null.
Method Detail

initialize

public void initialize(IApplication app)
Load panel with data from plugin preferences.

Specified by:
initialize in interface IGlobalPreferencesPanel
Parameters:
app - Application API.
Throws:
IllegalArgumentException - if IApplication is null.

uninitialize

public void uninitialize(IApplication app)
Specified by:
uninitialize in interface IGlobalPreferencesPanel

getPanelComponent

public Component getPanelComponent()
Return the component to be displayed in the Preferences dialog.

Specified by:
getPanelComponent in interface IOptionPanel
Returns:
the component to be displayed in the Preferences dialog.

applyChanges

public void applyChanges()
User has pressed OK or Apply in the dialog so save data from panel.

Specified by:
applyChanges in interface IOptionPanel

getTitle

public String getTitle()
Return the title for this panel.

Specified by:
getTitle in interface IOptionPanel
Returns:
the title for this panel.

getHint

public String getHint()
Return the hint for this panel.

Specified by:
getHint in interface IOptionPanel
Returns:
the hint for this panel.


Copyright © 2001-2013. All Rights Reserved.