Package jam.controlpalettes
Interface ControlPalette
- All Known Implementing Classes:
BasicControlPalette
public interface ControlPalette
Date: 20/03/2006
Time: 10:23:21
- Version:
- $Id: ControlPalette.java 485 2006-10-25 15:24:54Z rambaut $
- Author:
- Joseph Heled
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addController
(Controller controller) install a Controller into the palettevoid
Add a listener to this palettevoid
tell listeners that the palette has changedgetPanel()
get the panel that encloses the control palettevoid
getSettings
(Map<String, Object> settings) Gather up all the settings from all the controls in the palette.void
Initialize all controllers when a new document is created.void
Remove a listener fromm this palettevoid
setPreferredWidth
(int preferredWidth) Set the preferred width of the control panelvoid
setSettings
(Map<String, Object> settings) Distribute all the settings to all the controls in the palette.
-
Method Details
-
getPanel
JPanel getPanel()get the panel that encloses the control palette- Returns:
- the panel
-
addController
install a Controller into the palette- Parameters:
controller
-
-
fireControlsChanged
void fireControlsChanged()tell listeners that the palette has changed -
addControlPaletteListener
Add a listener to this palette- Parameters:
listener
-
-
removeControlPaletteListener
Remove a listener fromm this palette- Parameters:
listener
-
-
initialize
void initialize()Initialize all controllers when a new document is created. At this point, settings can be adjusted to match the contents of the document. -
getSettings
Gather up all the settings from all the controls in the palette. This would usually called before saving them with the document that the palette controls.- Parameters:
settings
-
-
setSettings
Distribute all the settings to all the controls in the palette. This would usually called after loading the document that the palette controls.- Parameters:
settings
-
-
setPreferredWidth
void setPreferredWidth(int preferredWidth) Set the preferred width of the control panel- Parameters:
preferredWidth
-
-