public interface Field
Modifier and Type | Method and Description |
---|---|
void |
clearField()
Clears the current field in an emulation-specific manner.
|
EnumSet<Attribute> |
getAttributes()
Returns the set of attributes specified for this field instance.
|
Color |
getBackgroundColor()
Returns the background color specified for this field instance
|
List<DataCell> |
getDataCells()
Returns a list of data cell instances that are included in the field.
|
Position |
getEnd()
Returns the ending position of the field, which is the position in the
presentation space containing the last character of the field.
|
Color |
getForegroundColor()
Returns the foreground color specified for this field instance
|
int |
getLength()
Returns the length of the field.
|
PresentationSpace |
getPresentationSpace()
Returns the PresentationSpace instance which contains this field
|
Position |
getStart()
Returns the starting position of the field, which is the position of the
first character of the field.
|
String |
getText()
Returns the text from the field.
|
void |
setText(String text)
Sets the field text.
|
EnumSet<Attribute> getAttributes()
Color getBackgroundColor()
Color getForegroundColor()
Position getStart()
Position getEnd()
int getLength()
String getText()
List<DataCell> getDataCells()
void setText(String text) throws PresentationSpaceException
text
- the text to be set on the field.ProtectedFieldException
- if the field is protected.PresentationSpaceException
- if an error occursvoid clearField() throws PresentationSpaceException
PresentationSpaceException
- if an error occurs or the clearField
method is not supported.PresentationSpace getPresentationSpace()
Copyright © 2020 Micro Focus. All rights reserved.