Inheritance diagram for edu.cmu.hcii.calo.SidebarWindow:
This window hooks up all the controllers to the views, lays out the panes, handles the transition between sidebar and minibar mode, handles the collapsing and expanding of panes, and quite a lot more.
Panes | |
The various panes we show in the sidebar. | |
CALOComponent | relevantStuffPaneView |
The relevant stuff pane visualization. | |
NotificationCenterView | notificationCenterView |
The notification center visualization. | |
TaskPaneView | taskPaneView |
The task pane visualization. | |
SchedulePaneView | schedulePaneView |
The schedule pane visualization. | |
IconWellView | iconWellView |
The icon well visualization. | |
Container Panes | |
Most panes need a title bar, a resize widget, and other such decorations.
These container panes provide those. | |
CALOPane | relevantStuffPaneContainerPane |
The scrollable pane containing the relevant stuff pane. | |
CALOPane | taskPaneContainerPane |
The scrollable pane containing the task pane. | |
CALOPane | schedulePaneContainerPane |
The scrollable pane containing the schedule pane. | |
CALOPane | notificationCenterContainerPane |
The pane containing the notification center. | |
Public Member Functions | |
SidebarWindow (boolean isMiniaturized) | |
Constructs a SidebarWindow in either full or minibar mode. | |
void | closeWindow () |
Closes the sidebar window. | |
void | update () |
Fix up the visual look of this sidebar. | |
Protected Attributes | |
Buttons | |
The buttons that show various panes in the minibar. | |
IconToggleButton | taskPaneButton |
IconToggleButton | schedulePaneButton |
IconToggleButton | relevantStuffPaneButton |
Private Member Functions | |
boolean | isMiniaturized () |
Returns whether the sidebar is in minibar mode. | |
void | layoutFullSidebar () |
Performs the layout of the full sidebar. | |
void | layoutMinibar () |
Performs the layout of the minibar. | |
void | setMiniaturized (boolean isMiniaturized) |
Sets the mode of the sidebar to either full or minibar mode. | |
void | setup () |
Sets up the visual appearance of this window. | |
Private Attributes | |
boolean | isMiniaturized |
Whether or not the sidebar is in minibar mode. | |
Map< Component, Dimension > | oldPreferredSizes |
The map of components to their preferred sizes when not collapsed. | |
int | fullSidebarWidth |
The current width of the full sidebar. | |
Other Controls | |
Miscellaneous controls that appear in the sidebar. | |
JDialog | containerFrame |
CALOPane | currentlyVisiblePane |
FlatButton | sidebarMiniaturizeButton |
Controllers | |
The controllers that control the various panes, as well as one for the sidebar itself. | |
SidebarController | sidebarController |
Controls the sidebar display. | |
NotificationCenterController | notificationCenterController |
Controls the notification center display. | |
TaskPaneController | taskPaneController |
Controls the task pane display. | |
SchedulePaneController | schedulePaneController |
Controls the schedule pane display. | |
Static Private Attributes | |
static final int | FULLBAR_DEFAULT_WIDTH = 200 |
The default width of the full sidebar. | |
static final int | MINIBAR_WIDTH = 45 |
The width of the minibar (cannot be changed by the user). | |
static final int | MINIBAR_PANE_WIDTH = 300 |
The width of panes that are shown from the minibar. | |
static final long | serialVersionUID = 1L |
Prevent serialization collisions. | |
Classes | |
class | PaneButtonListener |
Listens for clicks on one of the buttons in the minibar that show and hide panes, and shows or hides the pane appopriately. More... | |
class | PaneExpansionListener |
Listens for property changes indicating that a pane has collapsed or expanded, and updates the sidebar accordingly. More... | |
class | PaneResizeListener |
Listens for property changes indicating that a pane's size has changed, and updates the sidebar accordingly. More... |
edu.cmu.hcii.calo.SidebarWindow.SidebarWindow | ( | boolean | isMiniaturized | ) |
Constructs a SidebarWindow in either full or minibar mode.
isMiniaturized | if true , the sidebar appears in minibar mode |
void edu.cmu.hcii.calo.SidebarWindow.closeWindow | ( | ) |
Closes the sidebar window.
void edu.cmu.hcii.calo.SidebarWindow.update | ( | ) |
Fix up the visual look of this sidebar.
boolean edu.cmu.hcii.calo.SidebarWindow.isMiniaturized | ( | ) | [private] |
Returns whether the sidebar is in minibar mode.
true
if the sidebar is miniaturized, false
otherwise void edu.cmu.hcii.calo.SidebarWindow.layoutFullSidebar | ( | ) | [private] |
Performs the layout of the full sidebar.
void edu.cmu.hcii.calo.SidebarWindow.layoutMinibar | ( | ) | [private] |
Performs the layout of the minibar.
void edu.cmu.hcii.calo.SidebarWindow.setMiniaturized | ( | boolean | isMiniaturized | ) | [private] |
Sets the mode of the sidebar to either full or minibar mode.
isMiniaturized | true if the sidebar should go into minibar mode, false otherwise |
void edu.cmu.hcii.calo.SidebarWindow.setup | ( | ) | [private] |
Sets up the visual appearance of this window.
final int edu.cmu.hcii.calo.SidebarWindow.FULLBAR_DEFAULT_WIDTH = 200 [static, private] |
The default width of the full sidebar.
final int edu.cmu.hcii.calo.SidebarWindow.MINIBAR_WIDTH = 45 [static, private] |
The width of the minibar (cannot be changed by the user).
final int edu.cmu.hcii.calo.SidebarWindow.MINIBAR_PANE_WIDTH = 300 [static, private] |
The width of panes that are shown from the minibar.
final long edu.cmu.hcii.calo.SidebarWindow.serialVersionUID = 1L [static, private] |
The notification center visualization.
The task pane visualization.
The schedule pane visualization.
The relevant stuff pane visualization.
The icon well visualization.
The scrollable pane containing the task pane.
The scrollable pane containing the schedule pane.
The pane containing the notification center.
The scrollable pane containing the relevant stuff pane.
Controls the sidebar display.
Controls the notification center display.
Controls the task pane display.
Controls the schedule pane display.
boolean edu.cmu.hcii.calo.SidebarWindow.isMiniaturized [private] |
Whether or not the sidebar is in minibar mode.
Map<Component, Dimension> edu.cmu.hcii.calo.SidebarWindow.oldPreferredSizes [private] |
The map of components to their preferred sizes when not collapsed.
int edu.cmu.hcii.calo.SidebarWindow.fullSidebarWidth [private] |
The current width of the full sidebar.