course.classes
Class ClassViewInterface
java.lang.Object
|
+--course.classes.ClassViewInterface
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.io.Serializable, View
- public class ClassViewInterface
- extends java.lang.Object
- implements View, java.io.Serializable, java.awt.event.ActionListener
Class to create a new class. Here are defined the types of activities and dates for each activity.
- See Also:
- Serialized Form
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Method for managemento of the actions over the graphic interface buttons. |
java.lang.Object |
createView(Ticket tic,
SQL sql)
Method for creation new instance from the View class. |
java.awt.Panel |
initView()
Method for creation of a graphic interface for this class. |
void |
setVariable(int idNewClass,
int classSelectedToCopy)
|
java.lang.Object |
updateView(SQL sql)
Method for storing information into the database and for creation of directories. |
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 |
ClassViewInterface
public ClassViewInterface()
setVariable
public void setVariable(int idNewClass,
int classSelectedToCopy)
createView
public java.lang.Object createView(Ticket tic,
SQL sql)
throws java.sql.SQLException,
java.lang.ClassNotFoundException
- Method for creation new instance from the View class. If the new class was equals other one (copying from another class), the data will be got here.
- 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
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Method for managemento of the actions over the graphic interface buttons.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
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 storing information into the database and for creation of directories.
- Specified by:
updateView
in interface View