net.sourceforge.squirrel_sql.plugins.syntax
Class SyntaxPreferencesPanel

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferencesPanel
All Implemented Interfaces:
INewSessionPropertiesPanel, ISessionPropertiesPanel, IOptionPanel

public class SyntaxPreferencesPanel
extends Object
implements INewSessionPropertiesPanel, ISessionPropertiesPanel

New Session and Current Session preferences panel for this plugin.

Author:
Colin Bell

Constructor Summary
SyntaxPreferencesPanel(SyntaxPreferences prefs, SyntaxPluginResources rsrc)
          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)
          Panel is being loaded for the Application Preferences.
 void initialize(IApplication app, ISession session)
          Panel is being loaded for the Session Properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxPreferencesPanel

public SyntaxPreferencesPanel(SyntaxPreferences prefs,
                              SyntaxPluginResources rsrc)
Ctor.

Parameters:
prefs - The preferences to be maintained.
Throws:
IllegalArgumentException - if prefs is null.
Method Detail

initialize

public void initialize(IApplication app)
Panel is being loaded for the Application Preferences. This means that the settings are for newly created sessions.

Specified by:
initialize in interface INewSessionPropertiesPanel
Parameters:
app - Application API.

initialize

public void initialize(IApplication app,
                       ISession session)
Panel is being loaded for the Session Properties. This means that the settings are for the current session only.

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

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-2011. All Rights Reserved.