com.terminaldriver.tn5250j.exceptions.FieldNotEditableException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of terminaldriver-tn5250j Show documentation
Show all versions of terminaldriver-tn5250j Show documentation
terminal driver for 5250 telnet
package com.terminaldriver.tn5250j.exceptions;
import com.terminaldriver.tn5250j.obj.ScreenElement;
import com.terminaldriver.tn5250j.obj.ScreenField;
import com.terminaldriver.tn5250j.obj.ScreenTextBlock;
public class FieldNotEditableException extends RuntimeException{
/**
*
*/
private static final long serialVersionUID = 1L;
final ScreenElement screenElement;
public ScreenElement getScreenElement() {
return screenElement;
}
public FieldNotEditableException(final ScreenField field) {
super(String.format("Field %s [%s] is not editable",field.getFieldId(),field.getString()));
this.screenElement = field;
}
public FieldNotEditableException(final ScreenTextBlock field) {
super(String.format("Text block %sx%s [%s] is not editable",field.startRow(),field.startCol(),field.getString()));
this.screenElement = field;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy