public class ChooseData
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
private boolean |
autoReturn
AUTO-RETURN option
|
private Color |
color
Custom color
|
private java.lang.String[] |
fieldHelps
Holds the HELP text for the FIELD items
|
private boolean |
fieldMode
true if in FIELD mode, false for ROW mode. |
private int[] |
fields
Holds the IDs of field widgets in the FIELD mode
|
private java.lang.String[] |
goOn
Holds the GO-ON keys
|
private java.lang.String |
keysVar
highlight and navigation variable
|
private boolean |
noError
NO-ERROR option
|
private int |
pause
CHOOSE timeout
|
private java.lang.String |
rowHelp
Holds the HELP text for the ROW item
|
private int |
rowId
Holds the field widget in the ROW mode
|
private ScreenBuffer[] |
sb
The current record's data for all editable frames.
|
Constructor and Description |
---|
ChooseData()
Default constructor (only used for de-serialization).
|
ChooseData(int size,
int gosize)
Construct instance with specified size of the internal arrays.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Return color assigned to this CHOOSE statement.
|
int |
getField(int index)
Returns ID of the particular field.
|
java.lang.String |
getFieldHelp(int index)
Returns help string assigned for particular field.
|
java.lang.String[] |
getFieldHelps()
Returns array of help strings assigned for each field.
|
int[] |
getFields()
Return array of widget IDs of the fields.
|
java.lang.String[] |
getGoOn()
Returns array of GO-ON key labels.
|
java.lang.String |
getKeys()
Returns highlight and navigation variable.
|
int |
getPause()
Returns amount of time in seconds provided to perform the processing.
|
java.lang.String |
getRowHelp()
Returns help string assigned for the CHOOSE in ROW mode.
|
int |
getRowId()
Returns ID of the widget in ROW mode.
|
ScreenBuffer[] |
getScreenBuffers()
Gets the screen buffer for the associated frame and all editable ones.
|
boolean |
isAutoReturn()
Get AUTO-RETURN state.
|
boolean |
isFieldMode()
Gets the mode of the
CHOOSE . |
boolean |
isNoError()
Returns NO-ERROR flag state.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
(package private) void |
setAutoReturn(boolean autoReturn)
Set AUTO-RETURN value.
|
(package private) void |
setColor(ColorSpec color)
Set color specification.
|
(package private) void |
setFieldHelp(int index,
java.lang.String text)
Set help string for specified field.
|
(package private) void |
setFieldMode(boolean fieldMode)
Set the mode of the
CHOOSE . |
(package private) void |
setFields(int index,
int id)
Set widget ID for specified field.
|
(package private) void |
setGoOn(int index,
java.lang.String key)
Set GO-ON key for specified index.
|
void |
setKeys(java.lang.String keysVar)
Set highlight and navigation variable value.
|
(package private) void |
setNoError(boolean noError)
Set NO-ERROR flag value.
|
(package private) void |
setPause(int pause)
Set pause time in seconds.
|
(package private) void |
setRowHelp(java.lang.String rowHelp)
Set help text for the ROW mode.
|
(package private) void |
setRowId(int rowId)
Set field widget ID for the ROW mode.
|
void |
setScreenBuffers(ScreenBuffer[] sb)
Sets the screen buffer array for the associated frame and all editable ones.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
private boolean fieldMode
true
if in FIELD mode, false
for ROW mode.private int rowId
private java.lang.String rowHelp
private boolean autoReturn
private Color color
private java.lang.String keysVar
private boolean noError
private int pause
private int[] fields
private java.lang.String[] fieldHelps
private java.lang.String[] goOn
private ScreenBuffer[] sb
public ChooseData()
public ChooseData(int size, int gosize)
size
- Size of the internal arrays.gosize
- Size of the GO-ON keys list.public boolean isAutoReturn()
public Color getColor()
public java.lang.String[] getFieldHelps()
public java.lang.String getFieldHelp(int index)
index
- Index of the field for which help string is requested.public int[] getFields()
public int getField(int index)
index
- Index of the field for which ID is requested.public java.lang.String[] getGoOn()
public java.lang.String getKeys()
public boolean isNoError()
public int getPause()
public boolean isFieldMode()
CHOOSE
. true
means
FIELD
mode and false
means ROW
mode.CHOOSE
.public java.lang.String getRowHelp()
public int getRowId()
public ScreenBuffer[] getScreenBuffers()
public void setScreenBuffers(ScreenBuffer[] sb)
sb
- The screen buffer array.void setAutoReturn(boolean autoReturn)
autoReturn
- New value for the AUTO-RETURN attribute.void setColor(ColorSpec color)
color
- New color specification.void setFieldHelp(int index, java.lang.String text)
index
- Field index.text
- Help text.void setFields(int index, int id)
index
- Field index.id
- Field widget ID.void setGoOn(int index, java.lang.String key)
index
- Index of the key.key
- New key value.public void setKeys(java.lang.String keysVar)
keysVar
- New value for the variable.void setNoError(boolean noError)
noError
- New value of the flag.void setPause(int pause)
pause
- New value of the variable.void setFieldMode(boolean fieldMode)
CHOOSE
. true
selects
FIELD
mode and false
selects ROW
mode.fieldMode
- New mode flag.void setRowHelp(java.lang.String rowHelp)
rowHelp
- New help text.void setRowId(int rowId)
rowId
- New field widget ID.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.