public abstract class Screen extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAIN_SIZE
Description of the Field
|
| Constructor and Description |
|---|
Screen()
Constructor for the Screen object
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
convertMetachars(String token)
Description of the Method
|
protected static String |
convertMetacharsJavaCode(String token)
Description of the Method
|
protected abstract org.apache.ecs.Element |
createContent(WebSession s)
Description of the Method
|
LessonTracker |
createLessonTracker()
This allows the screens to provide a custom LessonTracker object if
needed.
|
LessonTracker |
createLessonTracker(Properties props)
Creates a new lessonTracker object.
|
String |
getContent()
Getter for the field
content. |
int |
getContentLength()
Returns the content length of the the html.
|
LessonTracker |
getLessonTracker(WebSession s)
Gets the lessonTracker attribute of the AbstractLesson object
|
LessonTracker |
getLessonTracker(WebSession s,
AbstractLesson lesson)
getLessonTracker.
|
LessonTracker |
getLessonTracker(WebSession s,
String userNameOverride)
getLessonTracker.
|
abstract String |
getRole()
getRole.
|
String |
getSponsor()
getSponsor.
|
String |
getSponsorLogoResource()
getSponsorLogoResource.
|
abstract String |
getTitle()
Fill in a descriptive title for this lesson
|
protected org.apache.ecs.Element |
makeLogo()
Description of the Method
|
protected org.apache.ecs.Element |
makeMessages(WebSession s)
Description of the Method
|
void |
output(PrintWriter out)
Description of the Method
|
protected static String |
pad(int x)
Description of the Method
|
protected void |
setContent(org.apache.ecs.Element content)
Setter for the field
content. |
protected abstract org.apache.ecs.Element createContent(WebSession s)
s - Description of the Parameterpublic LessonTracker createLessonTracker(Properties props)
props - The properties file that was used to persist the user data.public LessonTracker createLessonTracker()
public LessonTracker getLessonTracker(WebSession s)
s - a WebSession object.public LessonTracker getLessonTracker(WebSession s, String userNameOverride)
getLessonTracker.
s - a WebSession object.userNameOverride - a String object.LessonTracker object.public LessonTracker getLessonTracker(WebSession s, AbstractLesson lesson)
getLessonTracker.
s - a WebSession object.lesson - a AbstractLesson object.LessonTracker object.public abstract String getTitle()
protected void setContent(org.apache.ecs.Element content)
Setter for the field content.
content - a Element object.protected org.apache.ecs.Element makeLogo()
public String getSponsorLogoResource()
getSponsorLogoResource.
String object.protected org.apache.ecs.Element makeMessages(WebSession s)
s - Description of the Parameterpublic int getContentLength()
public void output(PrintWriter out)
out - Description of the Parameterprotected static String pad(int x)
x - Description of the Parameterprotected static String convertMetachars(String token)
token - Description of the ParameterCopyright © 2006–2016 OWASP. All rights reserved.