course.classes
Class EditClassSelection
java.lang.Object
|
+--course.classes.EditClassSelection
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable, View
- public class EditClassSelection
- extends java.lang.Object
- implements View, java.io.Serializable, java.awt.event.ItemListener
Class for edition of students classes. Activities can be changed, added, removed; the class's date can be changed;
the assignment's project can be managed.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
createView(Ticket tic,
SQL sql)
Method for creation of new instance from the View class. |
java.awt.Panel |
initView()
Method for creation of a graphic interface. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Method for showing menus when the operations list is changed. |
void |
setVariable(java.lang.String classSelected)
Method for setting variables. |
java.lang.Object |
updateView(SQL sql)
Method for invoke the class that executes the selected operation . |
boolean |
validateView()
Method for validation of the graphic interface information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASSIGNMENT_ACCESS
public static java.lang.String ASSIGNMENT_ACCESS
REPORT_ACCESS
public static java.lang.String REPORT_ACCESS
TEST_ACCESS
public static java.lang.String TEST_ACCESS
EditClassSelection
public EditClassSelection()
setVariable
public void setVariable(java.lang.String classSelected)
- Method for setting variables.
createView
public java.lang.Object createView(Ticket tic,
SQL sql)
throws java.lang.Exception
- Method for creation of new instance from the View class. All activities from the selected class are recovered.
- Specified by:
createView
in interface View
initView
public java.awt.Panel initView()
- Method for creation of a graphic interface. In this interface, the user can decide what type of operation he intend to do.
The operations are : change the class's expire date, add activity, edit activity or remove activity. If the selected
operation was with some activity (add, edit or remove it), the user can choose one activity to use it.
- Specified by:
initView
in interface View
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Method for showing menus when the operations list is changed.
- Specified by:
itemStateChanged
in interface java.awt.event.ItemListener
validateView
public boolean validateView()
- Method for validation of the graphic interface information.
- Specified by:
validateView
in interface View
updateView
public java.lang.Object updateView(SQL sql)
throws java.lang.Exception
- Method for invoke the class that executes the selected operation .
- Specified by:
updateView
in interface View