public class PainfullySimpleForm extends Form
The PainfullySimpleForm is a Form that is initialized from a InputStream that contains the serialized contents of a Form in the Painfully Simple Form file format (PSF). A description of the file format may also be found in the internal ICE documentation. The Painfully Simple Form does not maintain any memory of the stream from which it created itself.
iComponentVisitor
iComponentListener
Constructor and Description |
---|
PainfullySimpleForm()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
loadFromPSF(java.util.ArrayList<java.lang.String> inputLines)
This operation loads the PainfullySimpleForm from an set of strings that
contains the contents of the Form in the Painfully Simple Form file
format.
|
accept, addComponent, clone, copy, equals, getActionList, getComponent, getComponents, getItemID, getNumberOfComponents, hashCode, isReady, markReady, removeComponent, setActionList, setItemID, update
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister
getClass, notify, notifyAll, toString, wait, wait, wait
register, unregister
getDescription, getId, getName, setDescription, setId, setName
public void loadFromPSF(java.util.ArrayList<java.lang.String> inputLines) throws java.io.IOException
This operation loads the PainfullySimpleForm from an set of strings that contains the contents of the Form in the Painfully Simple Form file format. Each string in the set should be a separate line from the PSF file. If it is unable to load the properties in the strings or determines that the contents of the strings are not consistent with the PSF format, then it will throw an IOException. Although it seems strange to throw an IOException when reading through an array of strings, the assumption here is that the strings came directly from a file and that the work to parse it has been delegated to the PSF, which means that it is its duty to throw the error.
inputLines
- The lines of the PSF file as a set of strings with each string being a different line.
java.io.IOException