caltool.options_ui
Class OptionsUI

java.lang.Object
  extended by mvp.View
      extended by caltool.caltool_ui.CalendarToolWindow
          extended by caltool.options_ui.OptionsUI
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

public class OptionsUI
extends CalendarToolWindow

Initial version of OptionsUI class that constructs and composes its pulldown menu and tabbed dialog. Each item in the menu is a category of options, with a corresponding pane in the tabbed dialog. Selection of a menu item makes the tabbed dialog active and selects the pane that corresponds to the menu item.

See Also:
Serialized Form

Field Summary
protected  AdministrativeOptionsPanel administrativePanel
          The administrative pane
protected  FontsOptionsPanel fontsPanel
          The fonts pane
protected  OptionsMenu optionsMenu
          The menu
protected  javax.swing.JPanel panel
          The background panel
protected  SchedulingOptionsPanel schedulingPanel
          The scheduling pane
protected  javax.swing.JTabbedPane tabs
          The tabbed dialog
protected  TimesAndDatesOptionsPanel timesAndDatesPanel
          The times and dates pane
protected  ViewingOptionsPanel viewingPanel
          The viewing pane
 
Fields inherited from class caltool.caltool_ui.CalendarToolWindow
calToolUI
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
OptionsUI(mvp.Screen screen, Options options, CalendarToolUI calToolUI)
          Construct this with the given screen, model, and parent view.
 
Method Summary
 java.awt.Component compose()
           
protected  void composeButtonRow()
           
protected  void composeTabs()
           
 void selectTab(java.lang.String selection)
          Select the tabbed with the name of the given string.
 
Methods inherited from class caltool.caltool_ui.CalendarToolWindow
show
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

protected javax.swing.JPanel panel
The background panel


tabs

protected javax.swing.JTabbedPane tabs
The tabbed dialog


timesAndDatesPanel

protected TimesAndDatesOptionsPanel timesAndDatesPanel
The times and dates pane


fontsPanel

protected FontsOptionsPanel fontsPanel
The fonts pane


schedulingPanel

protected SchedulingOptionsPanel schedulingPanel
The scheduling pane


viewingPanel

protected ViewingOptionsPanel viewingPanel
The viewing pane


administrativePanel

protected AdministrativeOptionsPanel administrativePanel
The administrative pane


optionsMenu

protected OptionsMenu optionsMenu
The menu

Constructor Detail

OptionsUI

public OptionsUI(mvp.Screen screen,
                 Options options,
                 CalendarToolUI calToolUI)
Construct this with the given screen, model, and parent view. Construct the panes for the tabbed dialog. The parent view is used for setting the initial position of this' window relative to the top-level menubar.

Method Detail

compose

public java.awt.Component compose()
Overrides:
compose in class mvp.View

composeTabs

protected void composeTabs()

composeButtonRow

protected void composeButtonRow()

selectTab

public void selectTab(java.lang.String selection)
Select the tabbed with the name of the given string.