|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.sf.borg.ui.View
net.sf.borg.ui.MultiView
public class MultiView
This is the main Borg UI class. It provides the the main borg tabbed window.
| Nested Class Summary | |
|---|---|
static interface |
MultiView.CalendarModule
Interface implemented by Calendar Modules that act as modules but also react to requests to change the shown date |
static interface |
MultiView.Module
interface implemented by all UI Modules. |
static class |
MultiView.ViewType
argument values for setView() |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) MainMenu |
mainMenu
the main menu |
| Fields inherited from class net.sf.borg.ui.View |
|---|
image |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
|---|---|
void |
addHelpMenuItem(Icon icon,
String tooltip,
ActionListener action)
add a help menu item |
void |
addModule(MultiView.Module m)
add a new module to the multi view |
void |
addPluginSubMenu(JMenu menu)
add a plugin sub menu |
void |
addToolBarItem(Icon icon,
String tooltip,
ActionListener action)
add a toolbar button |
void |
addView(String title,
Component c)
Add a plain component as a tab, and do not treat as a module |
void |
closeSelectedTab()
Close the currently selected tab. |
void |
closeTabs()
Close all tabs. |
void |
destroy()
destroy this window |
static MultiView |
getMainView()
Get the main view singleton. |
void |
goTo(Calendar cal)
have the Calendar Modules show a particular day |
void |
print()
prints the currently selected tab if pritning is supported for that tab |
void |
refresh()
refresh the view based on model changes. |
Component |
setView(MultiView.ViewType type)
Sets the currently selected tab to be a particular view as defined in ViewType. |
| Methods inherited from class net.sf.borg.ui.View |
|---|
addModel, manageMySize, setDismissButton |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
MainMenu mainMenu
| Method Detail |
|---|
public static MultiView getMainView()
public void addToolBarItem(Icon icon,
String tooltip,
ActionListener action)
icon - the toolbar icontooltip - the tooltip for the buttonaction - the action listener for the button
public void addHelpMenuItem(Icon icon,
String tooltip,
ActionListener action)
icon - the menu item icontooltip - the text for the menu itemaction - the action listener for the menu itempublic void addPluginSubMenu(JMenu menu)
menu - - the sub menupublic void closeSelectedTab()
public void closeTabs()
public void destroy()
destroy in class View
public void addView(String title,
Component c)
c - the componentpublic void goTo(Calendar cal)
cal - the day to showpublic void addModule(MultiView.Module m)
m - the modulepublic void print()
public void refresh()
refresh in interface Model.Listenerrefresh in class Viewpublic Component setView(MultiView.ViewType type)
type - the new view
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||