net.sourceforge.squirrel_sql.plugins.sqlbookmark
Class SQLBookmarkPreferencesController

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

public class SQLBookmarkPreferencesController
extends Object
implements IGlobalPreferencesPanel

Manage the bookmarks.

The interface to allow a user to manages his/her bookmarks is through this class. The user can add, edit, remove and shift the order of the bookmarks with this user interface. The interface shows up in as a new tab in the Global Preferences dialog.

Author:
Joseph Mocker

Field Summary
protected  IApplication _app
          Handle to the main application
protected  SQLBookmarkPlugin _plugin
          Handle to the plugin
protected  SQLBookmarkPreferencesPanel _pnlPrefs
          The main panel for preference administration
 
Constructor Summary
SQLBookmarkPreferencesController(SQLBookmarkPlugin plugin)
          Create the preferences
 
Method Summary
 void applyChanges()
          Make the changes active to the rest of the application
 String getHint()
          Return the tool tip for the tab
 Component getPanelComponent()
          Return the panel that will contain the prefernces ui.
 String getTitle()
          Return the title for the tab name
 void initialize(IApplication app)
          Initialize the user interface
 void onAdd()
           
 void onDelete()
           
 void onEdit()
          Internal action class for the main preferences tab.
 void uninitialize(IApplication app)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_pnlPrefs

protected SQLBookmarkPreferencesPanel _pnlPrefs
The main panel for preference administration


_app

protected IApplication _app
Handle to the main application


_plugin

protected SQLBookmarkPlugin _plugin
Handle to the plugin

Constructor Detail

SQLBookmarkPreferencesController

public SQLBookmarkPreferencesController(SQLBookmarkPlugin plugin)
Create the preferences

Method Detail

initialize

public void initialize(IApplication app)
Initialize the user interface

Specified by:
initialize in interface IGlobalPreferencesPanel
Parameters:
app - Handle to the main application.

uninitialize

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

getTitle

public String getTitle()
Return the title for the tab name

Specified by:
getTitle in interface IOptionPanel
Returns:
The tab title.

getHint

public String getHint()
Return the tool tip for the tab

Specified by:
getHint in interface IOptionPanel
Returns:
The tab hint

applyChanges

public void applyChanges()
Make the changes active to the rest of the application

Specified by:
applyChanges in interface IOptionPanel

getPanelComponent

public Component getPanelComponent()
Return the panel that will contain the prefernces ui.

Specified by:
getPanelComponent in interface IOptionPanel
Returns:
Panel containing preferences.

onAdd

public void onAdd()

onEdit

public void onEdit()
Internal action class for the main preferences tab. Called when user clicks the "Edit" button.


onDelete

public void onDelete()


Copyright © 2001-2010. All Rights Reserved.