import {JRTextElement} from "./JRTextElement";
import {JRExpression} from "../items/JRExpression";
export interface JRTextField extends JRTextElement {
isShrinkWithOverflow():boolean;
setShrinkWithOverflow(value:boolean):void;
/**
* Specifies whether the text field will stretch vertically if its text does not fit in one line.
* @return true if the text field will stretch vertically, false otherwise
*/
isStretchWithOverflow():boolean;
/**
* Set to true if the text field should stretch vertically if its text does not fit in one line.
*/
setStretchWithOverflow(isStretchWithOverflow:boolean):void;
/**
* Gets the pattern used for this text field. The pattern will be used in a SimpleDateFormat for dates
* and a DecimalFormat for numeric text fields. The pattern format must follow one of these two classes
* formatting rules, as specified in the JDK API docs.
* @return a string containing the pattern.
*/
getOwnPattern():string;
/**
* Indicates whether an empty string will be displayed if the field's expression evaluates to null.
* @return true if an empty string will be displayed instead of null values, false otherwise
*/
isOwnBlankWhenNull():boolean;
/**
* Gets the expression for this field. The result obtained after evaluating this expression will be dispayed as
* the field text.
*/
getExpression():JRExpression;
/**
* Gets the pattern expression, in case the patter needs to be dynamic.
* @see #getPattern()
*/
getPatternExpression():JRExpression;
}