r2570 - in trunk/jaxx-demo/src/main: java/jaxx/demo/component/jaxx/editor java/jaxx/demo/entities resources/i18n resources/jaxx/demo/images
Author: kmorin Date: 2013-02-25 15:49:20 +0100 (Mon, 25 Feb 2013) New Revision: 2570 Url: http://nuiton.org/projects/jaxx/repository/revisions/2570 Log: refs #2535 Add filter and sorted on the BeanDoubleList widget Added: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.css trunk/jaxx-demo/src/main/resources/jaxx/demo/images/jim.jpg trunk/jaxx-demo/src/main/resources/jaxx/demo/images/joker.jpg Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.jaxx trunk/jaxx-demo/src/main/java/jaxx/demo/entities/DemoDataProvider.java trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties Copied: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.css (from rev 2566, trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanComboBoxDemo.css) =================================================================== --- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.css (rev 0) +++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.css 2013-02-25 14:49:20 UTC (rev 2570) @@ -0,0 +1,48 @@ +/* + * #%L + * JAXX :: Demo + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2008 - 2012 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ +#configurationPanel { + border: {new TitledBorder(_("jaxxdemo.beandoublelistdemo.configuration"))}; +} + +#filterableButton { + text: "jaxxdemo.beandoublelistdemo.filterable"; + selected: true; +} + +#showResetButton { + text: "jaxxdemo.beandoublelistdemo.showReset"; + selected: true; +} + +#showDecoratorButton { + text: "jaxxdemo.beandoublelistdemo.showDecorator"; + selected: true; +} + +#doubleList { + i18nPrefix: "jaxxdemo.common."; + filterable: {filterableButton.isSelected()}; + showReset: {showResetButton.isSelected()}; + showDecorator: {showDecoratorButton.isSelected()}; +} \ No newline at end of file Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.jaxx =================================================================== --- trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.jaxx 2013-02-25 14:49:04 UTC (rev 2569) +++ trunk/jaxx-demo/src/main/java/jaxx/demo/component/jaxx/editor/BeanDoubleListDemo.jaxx 2013-02-25 14:49:20 UTC (rev 2570) @@ -32,6 +32,15 @@ <Table fill='both'> <row> + <cell> + <JPanel id='configurationPanel' layout='{new GridLayout(0,1)}'> + <JCheckBox id='filterableButton'/> + <JCheckBox id='showResetButton'/> + <JCheckBox id='showDecoratorButton'/> + </JPanel> + </cell> + </row> + <row> <cell weighty='1' weightx='1'> <BeanDoubleList id='doubleList' genericType='People'/> </cell> Modified: trunk/jaxx-demo/src/main/java/jaxx/demo/entities/DemoDataProvider.java =================================================================== --- trunk/jaxx-demo/src/main/java/jaxx/demo/entities/DemoDataProvider.java 2013-02-25 14:49:04 UTC (rev 2569) +++ trunk/jaxx-demo/src/main/java/jaxx/demo/entities/DemoDataProvider.java 2013-02-25 14:49:20 UTC (rev 2570) @@ -58,6 +58,8 @@ People a = new People("0", "Jack", "Black", 35, "/jaxx/demo/images/jack.jpg"); People a2 = new People("1", "Héctor", "Jiménez", 28, "/jaxx/demo/images/hector.jpg"); People a3 = new People("2", "Ana", "de la Reguera", 34, "/jaxx/demo/images/ana.jpg"); + People a4 = new People("3", "Jack", "Nicholson", 76, "/jaxx/demo/images/joker.jpg"); + People a5 = new People("4", "Jim", "Parsons", 30, "/jaxx/demo/images/jim.jpg"); Movie m = new Movie("0", "Nacho libre", 1996, "/jaxx/demo/images/nacho.jpg"); m.addActor(a); @@ -74,6 +76,8 @@ peoples.put(a.getId(), a); peoples.put(a2.getId(), a2); peoples.put(a3.getId(), a3); + peoples.put(a4.getId(), a4); + peoples.put(a5.getId(), a5); } @Override Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties =================================================================== --- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2013-02-25 14:49:04 UTC (rev 2569) +++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_en_GB.properties 2013-02-25 14:49:20 UTC (rev 2570) @@ -175,6 +175,10 @@ jaxxdemo.beancomboboxdemo.selected.people=Selection\: %s jaxxdemo.beancomboboxdemo.showDecorator=Show decorator button jaxxdemo.beancomboboxdemo.showReset=Show Reset button +jaxxdemo.beandoublelistdemo.configuration=Configuration +jaxxdemo.beandoublelistdemo.filterable=Filterable +jaxxdemo.beandoublelistdemo.showDecorator=Show decorator button +jaxxdemo.beandoublelistdemo.showReset=Show Reset button jaxxdemo.common.actors=Actors jaxxdemo.common.age=Age jaxxdemo.common.firstName=First name Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties =================================================================== --- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2013-02-25 14:49:04 UTC (rev 2569) +++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_es_ES.properties 2013-02-25 14:49:20 UTC (rev 2570) @@ -175,6 +175,10 @@ jaxxdemo.beancomboboxdemo.selected.people= jaxxdemo.beancomboboxdemo.showDecorator= jaxxdemo.beancomboboxdemo.showReset= +jaxxdemo.beandoublelistdemo.configuration= +jaxxdemo.beandoublelistdemo.filterable= +jaxxdemo.beandoublelistdemo.showDecorator= +jaxxdemo.beandoublelistdemo.showReset= jaxxdemo.common.actors=Acteurs jaxxdemo.common.age=Age jaxxdemo.common.firstName=Prénom Modified: trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties =================================================================== --- trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2013-02-25 14:49:04 UTC (rev 2569) +++ trunk/jaxx-demo/src/main/resources/i18n/jaxx-demo_fr_FR.properties 2013-02-25 14:49:20 UTC (rev 2570) @@ -175,6 +175,10 @@ jaxxdemo.beancomboboxdemo.selected.people=Sélection \: %s jaxxdemo.beancomboboxdemo.showDecorator=Changer la décoration jaxxdemo.beancomboboxdemo.showReset=Pouvoir réinitialiser +jaxxdemo.beandoublelistdemo.configuration=Configuration +jaxxdemo.beandoublelistdemo.filterable=Filtrable +jaxxdemo.beandoublelistdemo.showDecorator=Changer la décoration +jaxxdemo.beandoublelistdemo.showReset=Pouvoir réinitialiser le filtre jaxxdemo.common.actors=Acteurs jaxxdemo.common.age=Age jaxxdemo.common.firstName=Prénom Added: trunk/jaxx-demo/src/main/resources/jaxx/demo/images/jim.jpg =================================================================== (Binary files differ) Property changes on: trunk/jaxx-demo/src/main/resources/jaxx/demo/images/jim.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/jaxx-demo/src/main/resources/jaxx/demo/images/joker.jpg =================================================================== (Binary files differ) Property changes on: trunk/jaxx-demo/src/main/resources/jaxx/demo/images/joker.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream
participants (1)
-
kmorin@users.nuiton.org