|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.problets.lib.log.LogModel
public class LogModel
To hold the logged data Constructor creates the log ActionPerformed makes entries in the log Only CodeModel (thru CodeView) and TutorModel directly add to the log addToLog(String) is provided just in case, although it is not expected to be used extensively recordLog() will either save the log in a file (if application) or send it to the user (if applet) LogView displays the log
| Field Summary | |
|---|---|
static java.lang.String |
ACTUAL_ANSWER_LINE
|
static java.lang.String |
DIAGNOSIS_LINE
|
static java.lang.String |
GRADE_LINE
|
static java.lang.String |
LEARN_OBJ_SUMMARY_HEADER
|
static java.lang.String |
POSTTEST_STRING
|
static java.lang.String |
PRACTICE_STRING
|
static java.lang.String |
PRETEST_STRING
|
static java.lang.String |
PROBLEM_LINE
|
static java.lang.String |
PROBLEM_NUMBER_LINE
|
static java.lang.String |
PROBLEM_STAGE
|
static java.lang.String |
REFLECTION_LINE
|
static java.lang.String |
SEPARATOR
|
static java.lang.String |
STUDENT_ANSWER_LINE
|
static java.lang.String |
TEMPLATE_LINE
|
static java.lang.String |
TIME_LINE
|
static java.lang.String |
TIME_SPENT_LINE
|
| Constructor Summary | |
|---|---|
LogModel(CommunicationManager inCommunicationManager)
Allocates space for the log |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
addToLog(java.lang.String s,
int type)
Adds a local copy of the string to the log |
void |
addToLog(java.util.Vector data,
int type)
Method to enter in aggregate into the log |
void |
clearLog()
Method to remove all entries from the log Expected to be used when changing modes |
java.util.Vector |
getLog()
Returns a reference to the entire log |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
registerLog()
Method to register the log: |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SEPARATOR
public static final java.lang.String PROBLEM_NUMBER_LINE
public static final java.lang.String TEMPLATE_LINE
public static final java.lang.String PROBLEM_LINE
public static final java.lang.String ACTUAL_ANSWER_LINE
public static final java.lang.String STUDENT_ANSWER_LINE
public static final java.lang.String GRADE_LINE
public static final java.lang.String DIAGNOSIS_LINE
public static final java.lang.String TIME_LINE
public static final java.lang.String REFLECTION_LINE
public static final java.lang.String LEARN_OBJ_SUMMARY_HEADER
public static final java.lang.String PROBLEM_STAGE
public static final java.lang.String PRETEST_STRING
public static final java.lang.String PRACTICE_STRING
public static final java.lang.String POSTTEST_STRING
public static final java.lang.String TIME_SPENT_LINE
| Constructor Detail |
|---|
public LogModel(CommunicationManager inCommunicationManager)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic java.util.Vector getLog()
public void addToLog(java.lang.String s,
int type)
public void addToLog(java.util.Vector data,
int type)
public void clearLog()
public void registerLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||