cmu.survey.gui.table
Class TablePanelManager
java.lang.Object
cmu.survey.gui.table.TablePanelManager
- All Implemented Interfaces:
- HasMenus
public class TablePanelManager
- extends java.lang.Object
- implements HasMenus
Manages the focused TablePanel. Create one of these, for example, when you have a window that you want to have one set of menus for, one set of find/replace dialogs for, and just one focused TablePanel within that window that will get the top commands.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TablePanelManager
public TablePanelManager()
setFocusedTablePanel
public void setFocusedTablePanel(TablePanel tablePanel)
getFocusedTablePanel
public TablePanel getFocusedTablePanel()
addTableList
public void addTableList(DatabaseEditor editor)
removeTableList
public void removeTableList(DatabaseEditor editor)
getFindReplace
public FindReplace getFindReplace()
- The JMenu to add to a window for this set of TablePanels. It will be updated automatically.
You may add other menu items to this, if appropriate, but be warned that they'll be disabled if there is no active TablePanel. For example, a recommended one to add is a "refresh all tables and list of tables" item under "F5". This is used in the database editor.
- Returns:
addMenusTo
public void addMenusTo(MenuBarHelper menuBarHelper)
- Specified by:
addMenusTo
in interface HasMenus
fireSetActiveEvent
public void fireSetActiveEvent(int active)
addActiveListener
public void addActiveListener(HasMenus.ActiveListener listener)
- Specified by:
addActiveListener
in interface HasMenus
getUndoHandler
public UndoHandler getUndoHandler()
- Returns:
- Returns the undoHandler.
setUndoHandler
public void setUndoHandler(UndoHandler undoHandler)
- Parameters:
undoHandler
- The undoHandler to set.
getPreferences
public Preferences getPreferences()
setPreferences
public void setPreferences(Preferences preferences)