33 lines
786 B
TypeScript
33 lines
786 B
TypeScript
import { NativeClasses } from "../milsko";
|
|
import { Widget } from "../widget";
|
|
import { WidgetOptions } from "../types";
|
|
|
|
export class Entry extends Widget {
|
|
constructor(options: WidgetOptions) {
|
|
super(NativeClasses.Entry, options);
|
|
}
|
|
|
|
public setText(value: string): this {
|
|
return this.setString("Stext", value);
|
|
}
|
|
|
|
get text(): string {
|
|
return this.getString("Stext");
|
|
}
|
|
|
|
set text(value: string) {
|
|
this.setString("Stext", value);
|
|
}
|
|
|
|
public setHideInput(value: boolean): this {
|
|
return this.setInteger("IhideInput", +value);
|
|
}
|
|
|
|
get hideInput(): boolean {
|
|
return this.getInteger("IhideInput") != 0;
|
|
}
|
|
|
|
set hideInput(value: boolean) {
|
|
this.setInteger("IhideInput", +value);
|
|
}
|
|
}
|