org.jsqltool.gui.tablepanel
Interface TablePlugin

All Known Implementing Classes:
ColumnsTablePanel, DataTablePanel, ScriptTablePanel, TablePluginAdapter

public interface TablePlugin

Title: JSqlTool Project

Description: This interface must be implemented by each table plugin.

Copyright: Copyright (C) 2006 Mauro Carniel

This file is part of JSqlTool project. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it


Method Summary
 java.lang.String getAuthor()
           
 java.lang.String getName()
           
 java.lang.String getTabbedName()
           
 int getTabbedPosition()
           
 java.lang.String getTableName()
           
 java.lang.String getVersion()
           
 void initPanel(MainFrame parent, DbConnectionUtil dbConnUtil)
          This method is called from the table detail to inizialize the plugin panel
 void setTableName(java.lang.String tableName)
          This method is called from the table detail to set entity name.
 void updateContent()
          This method is called from the table detail to update the plugin panel content.
 

Method Detail

getTabbedPosition

public int getTabbedPosition()
Returns:
panel position inside the JTabbedPane related to the table detail

getTabbedName

public java.lang.String getTabbedName()
Returns:
folder name of the plugin panel, inside the JTabbedPane related to the table detail

getAuthor

public java.lang.String getAuthor()
Returns:
infos about the author of the plugin panel; "" or null does not report any info about the plugin panel

getVersion

public java.lang.String getVersion()
Returns:
plugin panel version

getName

public java.lang.String getName()
Returns:
plugin panel name, reported into the about window

initPanel

public void initPanel(MainFrame parent,
                      DbConnectionUtil dbConnUtil)
This method is called from the table detail to inizialize the plugin panel


updateContent

public void updateContent()
This method is called from the table detail to update the plugin panel content.


setTableName

public void setTableName(java.lang.String tableName)
This method is called from the table detail to set entity name.

Parameters:
tableName - table name (edventualy including catalog name) that table plugin have to show

getTableName

public java.lang.String getTableName()
Returns:
entity name