course.classes
Class ClassSelection

java.lang.Object
  |
  +--course.classes.ClassSelection
All Implemented Interfaces:
java.util.EventListener, java.awt.event.ItemListener, java.io.Serializable, View

public class ClassSelection
extends java.lang.Object
implements View, java.io.Serializable, java.awt.event.ItemListener

Class for management of students classes.

See Also:
Serialized Form

Constructor Summary
ClassSelection()
           
 
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 a graphic interface that allows to select a operation to be executed over one class.
 void itemStateChanged(java.awt.event.ItemEvent e)
          Method for showing menus when the operations list is changed.
 java.lang.Object updateView(SQL sql)
          Method that initializes the execution of the selected operation.
 boolean validateView()
          Method for validation and storing the selected operation and class selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSelection

public ClassSelection()
Method Detail

createView

public java.lang.Object createView(Ticket tic,
                                   SQL sql)
                            throws java.lang.Exception
Method for creation of new instance from the View class.
Specified by:
createView in interface View

initView

public java.awt.Panel initView()
Method for creation a graphic interface that allows to select a operation to be executed over one class.
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 the selected operation and class selected.
Specified by:
validateView in interface View

updateView

public java.lang.Object updateView(SQL sql)
                            throws java.lang.Exception
Method that initializes the execution of the selected operation.
Specified by:
updateView in interface View