Package PamView
Class HidingSidePanel
java.lang.Object
PamView.HidingSidePanel
More sophisticated side panel container which can
close itself down to a very small strip to make
more room for main display items.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionHidingSidePanel
(PamGui pamGui) New side panel which can be hidden using little buttons. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(JComponent panel) Add a component to the side panelvoid
disableShowButton
(boolean disable) Disable the show and hide button, keeping the side pane in current position.int
Get a count of the number of side panel componentsGet the side panel outer window to include in the main GUI.void
remove
(JComponent panel) Remove a component from the side panel.void
Remove all components from the side panelvoid
showPanel
(boolean show) Show or side the active component of the side panel, Some basic border from the outer panel will always be visible unless the entire thing is hidden because there are no side panel controls available.
-
Constructor Details
-
HidingSidePanel
New side panel which can be hidden using little buttons.
-
-
Method Details
-
disableShowButton
public void disableShowButton(boolean disable) Disable the show and hide button, keeping the side pane in current position.- Parameters:
disable
- - true to disable the button. False to re-enable.
-
showPanel
public void showPanel(boolean show) Show or side the active component of the side panel, Some basic border from the outer panel will always be visible unless the entire thing is hidden because there are no side panel controls available.- Parameters:
show
-
-
getSidePanel
Get the side panel outer window to include in the main GUI.- Returns:
- gui component.
-
remove
Remove a component from the side panel.- Parameters:
panel
- component to remove
-
add
Add a component to the side panel- Parameters:
panel
- component to add
-
removeAll
public void removeAll()Remove all components from the side panel -
getComponentCount
public int getComponentCount()Get a count of the number of side panel components- Returns:
- count of side panel components
-