public class BoolFormat extends DisplayFormat
logical
variables.Modifier and Type | Class and Description |
---|---|
private class |
BoolFormat.BoolBuf
Internal form of logical data.
|
DisplayFormat.Presentation
Modifier and Type | Field and Description |
---|---|
protected int |
fmtCommonLength
Length of common part in FALSE and TRUE strings.
|
protected java.lang.String |
fmtCommonPart
Lowercased common part of both strings.
|
protected java.lang.String |
fmtFalse
FALSE presentation.
|
protected java.lang.String |
fmtTrue
TRUE presentation.
|
editableSource, fmtScreenWidth
Constructor and Description |
---|
BoolFormat(java.lang.String pformat)
Constructs logical format from the Progress format string.
|
Modifier and Type | Method and Description |
---|---|
DisplayFormat.Presentation |
clear(DisplayFormat.Presentation pres)
Returns a new presentation instance with a default initialized insert
mode and cursor position.
|
DisplayFormat.Presentation |
fromVar(BaseDataType var)
Initializes a presentation for variable's value.
|
boolean |
isZapSupported()
Indicates that ZAP operation can be performed on field with this format.
|
clear, formatScreenValue, generateQuestions, generateSpaces, genValueCannotBeDisplayedError, getFormatDef, getScreenWidth, instanceOfType, instanceOfType, instanceOfType, isCharInterface, isFormatCheck, isRightPositioning, setCharInterface, setEditableSource
protected java.lang.String fmtFalse
protected java.lang.String fmtTrue
protected int fmtCommonLength
protected java.lang.String fmtCommonPart
public BoolFormat(java.lang.String pformat) throws ErrorConditionException
pformat
- Progress format string.ErrorConditionException
- Format is invalid.public boolean isZapSupported()
isZapSupported
in class DisplayFormat
public DisplayFormat.Presentation clear(DisplayFormat.Presentation pres)
clear
in class DisplayFormat
pres
- A Presentation instance which was constructed by this format.
May be null
. This presentation instance is not
changed in this method.public DisplayFormat.Presentation fromVar(BaseDataType var)
fromVar
in class DisplayFormat
var
- Variable which should be compatible with format.