course.users
Class UserSelectionView

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

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

Class for management of users. There is options to select the user type (administrator, monitor and student) and to select the operation (add, edit or remove).

See Also:
Serialized Form

Constructor Summary
UserSelectionView()
           
 
Method Summary
 java.lang.Object createView(Ticket tic, SQL sql)
          Method for creation of a 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 controlling of the users action over the operations and users list.
 java.lang.Object updateView(SQL sql)
          Method that invokes the class for execution of the selected operation.
 boolean validateView()
          Method for validation of the graphic interface objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSelectionView

public UserSelectionView()
Method Detail

createView

public java.lang.Object createView(Ticket tic,
                                   SQL sql)
                            throws java.sql.SQLException,
                                   java.lang.ClassNotFoundException
Method for creation of a new instance from the View class.
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 objects.
Specified by:
validateView in interface View

updateView

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

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Method for controlling of the users action over the operations and users list.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener