course.classes
Class EditRemoveProjectView

java.lang.Object
  |
  +--course.classes.EditRemoveProjectView
All Implemented Interfaces:
java.io.Serializable, View

public class EditRemoveProjectView
extends java.lang.Object
implements View, java.io.Serializable

Class for edition or removing one assignment's project.

See Also:
Serialized Form

Constructor Summary
EditRemoveProjectView()
           
 
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 setVariable(int idClass, int idAssignment, java.lang.String projectSelected, int action)
          Method for setting variables.
 java.lang.Object updateView(SQL sql)
          Method for management of the database information.
 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
 

Constructor Detail

EditRemoveProjectView

public EditRemoveProjectView()
Method Detail

setVariable

public void setVariable(int idClass,
                        int idAssignment,
                        java.lang.String projectSelected,
                        int action)
Method for setting variables. The data about the selected project is got.

createView

public java.lang.Object createView(Ticket tic,
                                   SQL sql)
                            throws java.sql.SQLException,
                                   java.lang.ClassNotFoundException
Method for creation of new instance from the View class. The information, such as max groups, min and max students, will be got to control the user's action.
Specified by:
createView in interface View

initView

public java.awt.Panel initView()
Method for creation of a graphic interface for this class.
Specified by:
initView in interface View

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 management of the database information.
Specified by:
updateView in interface View