01: package org.rapla.gui.internal.common;
02:
03: import java.util.Collection;
04:
05: import org.rapla.entities.RaplaObject;
06: import org.rapla.entities.User;
07: import org.rapla.entities.configuration.CalendarModelConfiguration;
08: import org.rapla.entities.configuration.RaplaConfiguration;
09: import org.rapla.entities.dynamictype.ClassificationFilter;
10: import org.rapla.framework.RaplaException;
11: import org.rapla.gui.CalendarModel;
12:
13: public interface CalendarSelectionModel extends CalendarModel,
14: ClassifiableFilter {
15: public String ROLE = CalendarSelectionModel.class.getName();
16: RaplaConfiguration ALLOCATABLES_ROOT = new RaplaConfiguration(
17: "rootnode", "allocatables");
18:
19: void setFilter(ClassificationFilter[] filter);
20:
21: ClassificationFilter[] getFilter();
22:
23: String getTitle();
24:
25: void setTitle(String title);
26:
27: void setColumnSize(int columnSize);
28:
29: void setViewId(String viewId);
30:
31: String getViewId();
32:
33: void setSelectedObjects(Collection selectedObjects);
34:
35: boolean setConfiguration(CalendarModelConfiguration config)
36: throws RaplaException;
37:
38: CalendarModelConfiguration createConfiguration()
39: throws RaplaException;
40:
41: void setOption(String name, RaplaObject object);
42:
43: void setOption(String name, String string);
44:
45: void selectUser(User user);
46:
47: /** If show only own reservations is selected. Thats if the current user is selected with select User*/
48: boolean isOnlyCurrentUserSelected();
49:
50: }
|