- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file Multilinebox.java.
◆ Multilinebox() [1/2]
org.turro.zkoss.input.Multilinebox.Multilinebox |
( |
String |
value, |
|
|
int |
scale |
|
) |
| throws WrongValueException |
◆ Multilinebox() [2/2]
org.turro.zkoss.input.Multilinebox.Multilinebox |
( |
| ) |
|
◆ afterCompose()
void org.turro.zkoss.input.Multilinebox.afterCompose |
( |
| ) |
|
◆ formatValue()
static String org.turro.zkoss.input.Multilinebox.formatValue |
( |
String |
value | ) |
|
|
static |
Definition at line 67 of file Multilinebox.java.
68 return value ==
null ? null : ((String) value).replaceAll(
"\\n", Chars.nl().toString());
◆ getValue()
String org.turro.zkoss.input.Multilinebox.getValue |
( |
| ) |
throws WrongValueException |
Definition at line 62 of file Multilinebox.java.
63 String tmp = super.getValue();
64 return tmp ==
null ? null : tmp.replaceAll(Chars.nl().regexp().toString(),
"\n");
◆ onEvent()
void org.turro.zkoss.input.Multilinebox.onEvent |
( |
Event |
event | ) |
throws Exception |
Definition at line 77 of file Multilinebox.java.
79 Collection c = Listeners.cancelListener(
this, Events.ON_BLUR);
80 Messages.info(I_.get(
"Reference")).add(this.
getValue()).show();
81 Listeners.activateListeners(
this, Events.ON_BLUR, c);
83 final Collection c = Listeners.cancelListener(
this, Events.ON_BLUR);
84 InputDialog.getInput(getPage(), I_.get(
"Reference"),
"Description",
85 this.getValue(),
null, scale,
new Command() {
87 public Object execute(Context context) {
88 String value = (String) context.get(
"value");
96 public Object execute(Context context) {
97 Listeners.activateListeners(
Multilinebox.this, Events.ON_BLUR, c);
◆ setValue()
void org.turro.zkoss.input.Multilinebox.setValue |
( |
String |
value | ) |
throws WrongValueException |
Definition at line 53 of file Multilinebox.java.
54 if(value !=
null && value.contains(
"\n")) {
57 super.setValue(value);
The documentation for this class was generated from the following file: