course.classes
Class ProjectsSelection
java.lang.Object
|
+--course.classes.ProjectsSelection
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable, View
- public class ProjectsSelection
- extends java.lang.Object
- implements View, java.io.Serializable, java.awt.event.ItemListener
Class for selection of an action that will be executed with one assignment's project.
- 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 for this class. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Method for showing menus when the operations list is changed. |
void |
setVariable(int idAssignmentSelected,
int classSelected)
Method for setting variables. |
java.lang.Object |
updateView(SQL sql)
Method that invokes the class that implements the selected operation. |
boolean |
validateView()
Method for validation and storing of the selected operation and project. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectsSelection
public ProjectsSelection()
setVariable
public void setVariable(int idAssignmentSelected,
int 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 projects from the selected assignment will be recovered.
- Specified by:
createView
in interface View
initView
public java.awt.Panel initView()
- Method for creation of a graphic interface for this class. The user can to decide what type of operation he intend to do.
The operations are : add, edit or remove one project from the selected assignment. To edit or remove some project, the user
have to select 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 and storing of the selected operation and project.
- Specified by:
validateView
in interface View
updateView
public java.lang.Object updateView(SQL sql)
throws java.lang.Exception
- Method that invokes the class that implements the selected operation.
- Specified by:
updateView
in interface View