org.problets.lib.io.output
Class DataOutputModel
java.lang.Object
org.problets.lib.io.output.DataOutputModel
public class DataOutputModel
- extends java.lang.Object
Holds the routine strings that the SessionManager prints
- Author:
- Amruth Kumar
Field Summary |
static java.lang.String |
IMAGE
|
static java.lang.String |
LABEL
|
static java.lang.String |
PROGRESSBAR
|
static java.lang.String |
SUBTITLE
|
static java.lang.String |
TEXT
|
static java.lang.String |
TEXTAREA
|
static java.lang.String |
TITLE
|
Method Summary |
static java.util.Vector |
getContentVector(java.lang.String fileName,
StudentModel student)
This method reads the file passed as parameter,
processes its contents into a string and returns it to be displayed by DataOutputView. |
static void |
main(java.lang.String[] args)
|
static java.util.Vector |
process(java.util.Vector contents,
StudentModel student)
All entries are delimited by #
First item in an entry is the display type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEXT
public static final java.lang.String TEXT
- See Also:
- Constant Field Values
TITLE
public static final java.lang.String TITLE
- See Also:
- Constant Field Values
SUBTITLE
public static final java.lang.String SUBTITLE
- See Also:
- Constant Field Values
TEXTAREA
public static final java.lang.String TEXTAREA
- See Also:
- Constant Field Values
LABEL
public static final java.lang.String LABEL
- See Also:
- Constant Field Values
IMAGE
public static final java.lang.String IMAGE
- See Also:
- Constant Field Values
PROGRESSBAR
public static final java.lang.String PROGRESSBAR
- See Also:
- Constant Field Values
DataOutputModel
public DataOutputModel()
getContentVector
public static java.util.Vector getContentVector(java.lang.String fileName,
StudentModel student)
- This method reads the file passed as parameter,
processes its contents into a string and returns it to be displayed by DataOutputView.
Can pass null for student if no customization is involved
process
public static java.util.Vector process(java.util.Vector contents,
StudentModel student)
- All entries are delimited by #
First item in an entry is the display type.
If this is not a recognized type, skip past next #
Remaining items are specific to the display type.
Make a vector of these
Make a vector of these two items and insert into the return vector
main
public static void main(java.lang.String[] args)