01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sections/tags/sakai_2-4-1/sections-app/src/java/org/sakaiproject/tool/section/jsf/backingbean/SectionEditor.java $
03: * $Id: SectionEditor.java 20230 2007-01-10 01:13:02Z jholtzman@berkeley.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2007 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.section.jsf.backingbean;
21:
22: import java.util.List;
23:
24: import org.sakaiproject.section.api.coursemanagement.CourseSection;
25:
26: /**
27: * Backing beans that are used to modify (add or edit) sections should implement
28: * SectionEditor.
29: *
30: * @author <a href="mailto:jholtzman@berkeley.edu">jholtzman@berkeley.edu</a>
31: */
32: public interface SectionEditor {
33: /**
34: * Gets the list of sections to add / edit
35: * @return
36: */
37: public List<CourseSection> getSections();
38:
39: /**
40: * Gets the comma-separated css classes for use in the UI.
41: * @return
42: */
43: public String getRowStyleClasses();
44:
45: /**
46: * Gets the UI element which should have the focus on page load.
47: * @return
48: */
49: public String getElementToFocus();
50: }
|