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| Modifier | Constructor and Description |
|---|---|
protected |
BoolFormat(BoolFormat orig)
Create a copy the original format.
|
|
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 |
duplicate()
Duplicate this instance.
|
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, fromVar4FieldValue, generateQuestions, generateSpaces, genValueCannotBeDisplayedError, getFormatDef, getScreenWidth, instanceOfType, instanceOfType, instanceOfType, isCharInterface, isFormatCheck, isRightPositioning, setCharInterface, setEditableSourceprotected 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.protected BoolFormat(BoolFormat orig)
orig - The format to copy.public DisplayFormat duplicate()
duplicate in class DisplayFormatpublic boolean isZapSupported()
isZapSupported in class DisplayFormatpublic DisplayFormat.Presentation clear(DisplayFormat.Presentation pres)
clear in class DisplayFormatpres - 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 DisplayFormatvar - Variable which should be compatible with format.