|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
scheduler.view.ViewMode
public class ViewMode
Class ViewMode specifies two ways to view a schedule: as a calendar, as a list.
| Nested Class Summary | |
|---|---|
static class |
ViewMode.Mode
Enums to represent the two different view modes. |
| Field Summary | |
|---|---|
protected ViewMode.Mode |
mode
The mode value of this object. |
protected ViewModeUI |
viewModeUI
The companion view. |
| Constructor Summary | |
|---|---|
ViewMode(View view,
ViewMode.Mode mode)
Construct this my setting the current mode to the parameter. |
|
| Method Summary | |
|---|---|
ViewMode.Mode |
getMode()
Return the current mode. |
ViewModeUI |
getViewModeUI()
Return the companion view. |
void |
setMode(ViewMode.Mode mode)
Set the current mode. |
| 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 |
| Field Detail |
|---|
protected ViewMode.Mode mode
protected ViewModeUI viewModeUI
| Constructor Detail |
|---|
public ViewMode(View view,
ViewMode.Mode mode)
pre: ;
post: this.mode' == mode && this.viewModeUI' == viewModeUI
&& countObservers() > 0;
mode - the mode after instantiation| Method Detail |
|---|
public void setMode(ViewMode.Mode mode)
pre: ;
post: this.mode' == mode;
mode - the new view modepublic ViewMode.Mode getMode()
post: return == mode;
public ViewModeUI getViewModeUI()
post: return == viewModeUI;
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||