public class PainfullySimpleEntry extends Entry
A PainfullySimpleEntry is used by the PainfullySimpleForm in place of a regular Entry because it can be loaded from a string that takes a block of a Painfully Simple Form file as input. Like the Painfully Simple Form, the Painfully Simple Entry does not maintain any memory of the stream from which it created itself.
iComponentListener
Constructor and Description |
---|
PainfullySimpleEntry()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGroup()
This operations returns the group name that was assigned to this
PainfullySimpleEntry in the PSF.
|
void |
loadFromPSFBlock(java.util.ArrayList<java.lang.String> inputStrings)
This operation loads the Entry from a collection of strings each of which
should be an statement key-value pair (name=James T.
|
clone, copy, equals, getAllowedValues, getComment, getDefaultValue, getErrorMessage, getParent, getTag, getValue, getValueType, hashCode, isModified, isReady, isRequired, isSecret, setComment, setContentProvider, setParent, setReady, setRequired, setTag, setValue, 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 loadFromPSFBlock(java.util.ArrayList<java.lang.String> inputStrings) throws java.io.IOException
This operation loads the Entry from a collection of strings each of which should be an statement key-value pair (name=James T. Kirk) from a Painfully Simple Form Entry block. It expects only the statements from the block, not the empty lines that surround the block. It also does not use the "group=" statement and will ignore it. (The group statement is used by the PainfullySimpleForm to determine which DataComponent owns the Entry.) The order of the statements does not matter. It ignores any end-of-line comments in the statements. It throws an exception if an invalid key is detected in the set. The message of the exception will contain the invalid key-value pair.
inputStrings
- The set of PSF statements that pertain to this Entry.
java.io.IOException
public java.lang.String getGroup()
This operations returns the group name that was assigned to this PainfullySimpleEntry in the PSF. This group name is used to determine to which DataComponent the PainfullySimpleEntry should be added.
The group name