pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duto <olivier.dutri...@pasteur.fr>
Subject Re: Question of new dynamic data binding model of pivot 2.0
Date Mon, 23 Aug 2010 19:19:25 GMT

In fact the problem is to transform a class to a other,
In my case the problem is I have TableView.selectedRanges propertie (to
indicate the modification of item selection) and the the PushButton.enabled
propertie. If I have a mecanism to transform the TableView.selectedRanges to
Boolean via a method (myMethod) it's will be nice like this :

<ListView bxml:id="listView">
<PusButton bxml:id="pushBtn" enable="${myMethod(listView.selectedRanges)}/>

and my method :

public Boolean myMethod(ListSelection selectedRanges) {
  return (selectedRanges.getLength() == 0) ? false : true;

I don't think if it's possible and solve all problems but it's a start ^^

View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Question-of-new-dynamic-data-binding-model-of-pivot-2-0-tp1292820p1297981.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message