scheduler.view
Class ViewSettings

java.lang.Object
  extended by scheduler.view.ViewSettings

public class ViewSettings
extends java.lang.Object

Class ViewSettings consists of data used to determine the way a schedule is drawn. This includes the the type of view, course, instructor, or location, the view mode, calendar or list, the view level, weekly or daily, and various viewing filters.

Author:
Jason Mak (jamak3@gmail.com)

Field Summary
protected  FilterOptions filterOptions
          Viewing filter options
protected  ViewLevel viewLevel
          Viewing level, daily or weekly
protected  ViewMode viewMode
          Mode of schedule view, calendar or list
protected  ViewType viewType
          Type of schedule view, course, instructor, or location
 
Constructor Summary
ViewSettings()
           
 
Method Summary
 FilterOptions getFilterOptions()
          Returns the filter options.
 ViewLevel getViewLevel()
          Returns the view level.
 ViewMode getViewMode()
          Returns the view mode.
 ViewType getViewType()
          Returns the view type.
 void setFilterOptions(FilterOptions filterOptions)
          Set the FilterOptions object.
 void setViewLevel(ViewLevel viewLevel)
          Set the ViewLevel object.
 void setViewMode(ViewMode viewMode)
          Set the ViewMode object.
 void setViewType(ViewType viewType)
          Set the ViewType object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewType

protected ViewType viewType
Type of schedule view, course, instructor, or location


viewMode

protected ViewMode viewMode
Mode of schedule view, calendar or list


viewLevel

protected ViewLevel viewLevel
Viewing level, daily or weekly


filterOptions

protected FilterOptions filterOptions
Viewing filter options

Constructor Detail

ViewSettings

public ViewSettings()
Method Detail

setViewType

public void setViewType(ViewType viewType)
Set the ViewType object.

Parameters:
viewType - the type of view; course, instructor, or location

setViewMode

public void setViewMode(ViewMode viewMode)
Set the ViewMode object.

Parameters:
viewMode - list or calendar

setViewLevel

public void setViewLevel(ViewLevel viewLevel)
Set the ViewLevel object.

Parameters:
viewLevel - weekly or daily

setFilterOptions

public void setFilterOptions(FilterOptions filterOptions)
Set the FilterOptions object.

Parameters:
filterOptions - filter options

getViewType

public ViewType getViewType()
Returns the view type.

Returns:
the current view type

getViewMode

public ViewMode getViewMode()
Returns the view mode.

Returns:
the current view mode

getViewLevel

public ViewLevel getViewLevel()
Returns the view level.

Returns:
the current view level

getFilterOptions

public FilterOptions getFilterOptions()
Returns the filter options.

Returns:
the current filter options