All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.terminaldriver.tn5250j.exceptions.FieldNotEditableException Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
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