caltool.caldb
Class UserWorkSpace
java.lang.Object
java.util.Observable
mvp.Model
caltool.caldb.UserWorkSpace
- All Implemented Interfaces:
- java.io.Serializable
public class UserWorkSpace
- extends mvp.Model
The UserWorkSpace contains the active calendars upon which the user is
working. It has the id of the current calendar tool user, the list of
active calendars, and an index indicating which calendar is currently
active. It also contains a list of individualized user options, some of
which may be different than the global calendar options.
- See Also:
- Serialized Form
Field Summary |
protected java.util.Vector |
calendars
List of active calendars |
protected int |
currentIndex
Index of currently active calendar |
Fields inherited from class mvp.Model |
view |
Constructor Summary |
UserWorkSpace()
Construct this by constructing and intializing all components. |
Methods inherited from class mvp.Model |
dump, exit, getView, setView |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calendars
protected java.util.Vector calendars
- List of active calendars
currentIndex
protected int currentIndex
- Index of currently active calendar
UserWorkSpace
public UserWorkSpace()
- Construct this by constructing and intializing all components.
getCurrent
public UserCalendar getCurrent()
- Return the currently active calendar. This is the calendar that the
user has most recently selected for performing an operation on. If
there is no active calendar, return null. Note that the case of no
active calendar is allowed in the specs, since the user can close down
all calendar display windows if she chooses.