|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbabase.ranker.Controller
public class Controller
Controls communications amongst different components of the ranker.
| Field Summary | |
|---|---|
Cage |
cage
|
Chooser |
myChooser
|
Database |
myDatabase
|
GUI |
myGUI
|
LoginManager |
myLoginManager
|
| Constructor Summary | |
|---|---|
Controller()
Default constructor which creates a new database and login manager |
|
| Method Summary | |
|---|---|
Database |
getDatabase()
Returns the Database currently being used. |
void |
loadChooser()
Disposes of the Login Manager and loads the chooser using the login credentials provided to the login manager and a specified database. |
void |
loadChooser(javax.swing.JFrame f)
Loads the chooser after disposing whatever frame was previously displayed to the user, either a login manager or a ranker GUI. |
void |
loadGui()
Loads the GUI for the ranker utility |
void |
logout()
Logs a given user out of the ranker utility and brings the user back to the login window. |
void |
reloadChooser()
Loads the chooser in the case a given user would like to perform another ranking without logging out. |
void |
startLoginManager()
Starts a new login manager so that the user can login |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Database myDatabase
public LoginManager myLoginManager
public Chooser myChooser
public GUI myGUI
public Cage cage
| Constructor Detail |
|---|
public Controller()
| Method Detail |
|---|
public void startLoginManager()
public void loadChooser()
throws java.sql.SQLException
java.sql.SQLException
public void reloadChooser()
throws java.sql.SQLException
java.sql.SQLException
public void loadChooser(javax.swing.JFrame f)
throws java.sql.SQLException
f -
java.sql.SQLExceptionpublic Database getDatabase()
public void loadGui()
throws Utils.FileIOException,
java.sql.SQLException
Utils.FileIOException
java.sql.SQLExceptionpublic void logout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||