Hi Marco,
The problem is not that setText does not take a variable.
The problem is that VE does not understand more than one argument on a
property setter (this is my understanding from earlier interactions with the
VE team).
So you could define a method on DachMultiLangLabel like :
public String getString(String labelText1, String labelID,
Object[] args){
//....
return labelText1;
}
And then in
private DachMultiLangLabel getDachMultiLangLabel() {
if (dachMultiLangLabel == null) {
dachMultiLangLabel = new DachMultiLangLabel();
dachMultiLangLabel.setText(dachMultiLangLabel.getString("hallo",
"234", null));
}
return dachMultiLangLabel;
}
VE has limitation such that it understands a fixed set of code patterns.
I hope this helps.
Thanks and regards,
Janak
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Wednesday, October 04, 2006 12:31 PM
>To: [EMAIL PROTECTED]
>Subject: [ULC-developer] view variables in setText(String) method, ve
>problem
>
>
>
>Hi all,
>i have created following class:
>
>public class DachMultiLangLabel extends ULCLabel{
>
> public DachMultiLangLabel(){
> }
>
> public void setText(String labelText1, String labelID,
>Object[] args){
> this.setText(labelText1);
> ....
> }
>}
>
>.....
>
>private DachMultiLangLabel getDachMultiLangLabel() {
> if (dachMultiLangLabel == null) {
> dachMultiLangLabel = new DachMultiLangLabel();
> dachMultiLangLabel.setText("hallo","234", null);
> }
> return dachMultiLangLabel;
>}
>
>But I have a problem with ve, because the setText method cannot
>handle variables.
>I get the error message: labelText1 is too complicated
>Is there a way to view the text?
>Thx
> marco
>
>
>_______________________________________________
>ULC-developer mailing list
>[email protected]
>http://lists.canoo.com/mailman/listinfo/ulc-developer
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer