public class FormatTable extends Object
Constructor and Description |
---|
FormatTable(Display5250 display,
DataStream5250 dataStream)
Creates a new format table that is empty.
|
Modifier and Type | Method and Description |
---|---|
int |
addField(boolean isInputField,
int addr,
int attr,
int ffw,
int[] fcw,
int fcwCount,
int len)
Adds a new field at the specified position.
|
boolean |
backTab(int addr)
Performs backtab to another nonbypass field.
|
boolean |
checkInputFields(boolean isEnterKey)
Checks all input fields for valid content.
|
void |
clear()
Clears the format table.
|
boolean |
eraseInput()
This function works only on the unprotected fields that the workstation
operator has modified.
|
int |
getFieldCount()
Get the count of fields.
|
Field |
getFieldFromAddress(int addr)
Locates a field from an address.
|
int |
getFieldIndexFromAddress(int addr)
Locates a field index from an address.
|
int |
getFirstNonBypassField()
Gets the address of the first possible field on the
screen.
|
int |
getInboundFieldData(short[] buf,
int pos,
boolean stripTrailingNulls,
boolean onlyMDT)
Gets the data of an inbound read command.
|
int |
getInboundFieldDataSizes(boolean stripTrailingNulls,
boolean onlyMDT)
Gets the size of an inbound read command.
|
int |
getRegenerationData(short[] buf,
int pos)
Gets the field regeneration data for the input fields into the provided buffer
at a starting position.
|
int |
getRegenerationDataSize()
Gets the size of the field regeneration data for the input fields.
|
boolean |
moveCursorToFirstField()
Moves the cursor to the first possible field on the
screen.
|
void |
nullNonBypass()
Nulls all nonbypass fields.
|
void |
nullNonBypassMDT()
Nulls all nonbypass fields with the MDT on (and clears the MDT).
|
void |
resetMDT()
Resets the MDT for all fields.
|
void |
resetNonBypassMDT()
Resets the MDT for all nonbypass fields.
|
int |
setRegenerationData(int fieldCount,
short[] buf,
int pos)
Sets the field regeneration data for the input fields specified in the provided buffer
at a starting position.
|
boolean |
tabForward(int addr,
boolean isFieldExit)
Performs tab to another nonbypass field.
|
public FormatTable(Display5250 display, DataStream5250 dataStream)
public int getFieldCount()
public void clear()
public void resetNonBypassMDT()
public void resetMDT()
public void nullNonBypass()
public void nullNonBypassMDT()
public boolean moveCursorToFirstField()
public int getFirstNonBypassField()
public int addField(boolean isInputField, int addr, int attr, int ffw, int[] fcw, int fcwCount, int len)
public Field getFieldFromAddress(int addr)
public int getFieldIndexFromAddress(int addr)
public int getInboundFieldDataSizes(boolean stripTrailingNulls, boolean onlyMDT)
public int getInboundFieldData(short[] buf, int pos, boolean stripTrailingNulls, boolean onlyMDT)
public boolean tabForward(int addr, boolean isFieldExit)
Finds the best suited entry field: after the current the current address (backtab).
public boolean backTab(int addr)
Finds the best suited entry field: before the current address.
public boolean eraseInput()
public int getRegenerationDataSize()
public int getRegenerationData(short[] buf, int pos)
public int setRegenerationData(int fieldCount, short[] buf, int pos)
public boolean checkInputFields(boolean isEnterKey)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.