01: package org.jsqltool.gui.tablepanel;
02:
03: import org.jsqltool.conn.DbConnectionUtil;
04: import javax.swing.JFrame;
05: import org.jsqltool.gui.MainFrame;
06:
07: /**
08: * <p>Title: JSqlTool Project</p>
09: * <p>Description: This interface must be implemented by each table plugin.
10: * </p>
11: * <p>Copyright: Copyright (C) 2006 Mauro Carniel</p>
12: *
13: * <p> This file is part of JSqlTool project.
14: * This library is free software; you can redistribute it and/or
15: * modify it under the terms of the (LGPL) Lesser General Public
16: * License as published by the Free Software Foundation;
17: *
18: * GNU LESSER GENERAL PUBLIC LICENSE
19: * Version 2.1, February 1999
20: *
21: * This library is distributed in the hope that it will be useful,
22: * but WITHOUT ANY WARRANTY; without even the implied warranty of
23: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24: * Library General Public License for more details.
25: *
26: * You should have received a copy of the GNU Library General Public
27: * License along with this library; if not, write to the Free
28: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29: *
30: * The author may be contacted at:
31: * maurocarniel@tin.it</p>
32: *
33: * @author Mauro Carniel
34: * @version 1.0
35: */
36: public interface TablePlugin {
37:
38: /**
39: * @return panel position inside the JTabbedPane related to the table detail
40: */
41: public int getTabbedPosition();
42:
43: /**
44: * @return folder name of the plugin panel, inside the JTabbedPane related to the table detail
45: */
46: public String getTabbedName();
47:
48: /**
49: * @return infos about the author of the plugin panel; "" or null does not report any info about the plugin panel
50: */
51: public String getAuthor();
52:
53: /**
54: * @return plugin panel version
55: */
56: public String getVersion();
57:
58: /**
59: * @return plugin panel name, reported into the about window
60: */
61: public String getName();
62:
63: /**
64: * This method is called from the table detail to inizialize the plugin panel
65: */
66: public void initPanel(MainFrame parent, DbConnectionUtil dbConnUtil);
67:
68: /**
69: * This method is called from the table detail to update the plugin panel content.
70: */
71: public void updateContent();
72:
73: /**
74: * This method is called from the table detail to set entity name.
75: * @param tableName table name (edventualy including catalog name) that table plugin have to show
76: */
77: public void setTableName(String tableName);
78:
79: /**
80: * @return entity name
81: */
82: public String getTableName();
83:
84: }
|