Package PamView.hidingpanel
Class HidingDialogComponent
java.lang.Object
PamView.hidingpanel.HidingDialogComponent
- Direct Known Subclasses:
ClickHidingDialog
,CompoundHidingDialog
,HiddenSlider
,ScalePanel
,SpectrogramHidingPanel
,SummaryPanel
,TDGraphHidingDialog
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(HidingDialogChangeListener changeListener) abstract boolean
canHide()
Can hide - generally this should return true if at all possible however you may need to stop it hiding if any controls are in an impossible state.abstract JComponent
getIcon()
A small icon around 18x18 pixels.abstract String
getName()
A short name - gets used when multiple components need to be tabbed up.boolean
hasMore()
Sliding dialog has more options.void
notifyChangeListeners
(int changeLevel, Object object) Notification from a sliding dialog panel when something changes.void
removeChangeListener
(HidingDialogChangeListener changeListener) void
abstract void
showComponent
(boolean visible) Called when the component is about to be set visible or hidden.boolean
showMore
(HidingDialog hidingDialog) Get's called from the More button, which shows if hasMore is returning true.
-
Constructor Details
-
HidingDialogComponent
public HidingDialogComponent()
-
-
Method Details
-
getComponent
- Returns:
- component to show in the hiding dialog panel
-
canHide
public abstract boolean canHide()Can hide - generally this should return true if at all possible however you may need to stop it hiding if any controls are in an impossible state. This function also gives users an opportunity to check / use any dialog parameters.- Returns:
- true if the panel can be hidden.
-
showComponent
public abstract void showComponent(boolean visible) Called when the component is about to be set visible or hidden. -
getName
A short name - gets used when multiple components need to be tabbed up.- Returns:
-
getIcon
A small icon around 18x18 pixels. This is used for tabs to allow users to quickly identify the control panel. Can be null if no symbol is needed -
hasMore
public boolean hasMore()Sliding dialog has more options. If this returns true a 'more' button will show next to the pin which can be used to open a more complex dialog.- Returns:
- true if there are more options to show.
-
showMore
Get's called from the More button, which shows if hasMore is returning true. Can be used to show an evenmore exciting dialog.- Parameters:
hidingDialog
-- Returns:
-
notifyChangeListeners
Notification from a sliding dialog panel when something changes.- Parameters:
changeLevel
- quick way of indicating levels of change.-ve numbers are used by the system. +ve ones can be used by programmer in a dialog specific context.
object
- an object if you need to send other information.
-
addChangeListener
-
removeChangeListener
-
repackDisplay
public void repackDisplay()
-