Author: nbelaevski
Date: 2007-12-13 15:22:49 -0500 (Thu, 13 Dec 2007)
New Revision: 4830
Modified:
branches/3.1.x/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java
branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
Log:
switchByClick switch added to listShuttleDemo
Modified:
branches/3.1.x/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java
===================================================================
---
branches/3.1.x/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java 2007-12-13
20:11:29 UTC (rev 4829)
+++
branches/3.1.x/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java 2007-12-13
20:22:49 UTC (rev 4830)
@@ -33,6 +33,16 @@
private boolean orderControlsVisible = true;
private boolean fastOrderControlsVisible = true;
+ private boolean switchByClick = false;
+
+ public boolean isSwitchByClick() {
+ return switchByClick;
+ }
+
+ public void setSwitchByClick(boolean switchByClick) {
+ this.switchByClick = switchByClick;
+ }
+
public ListShuttleDemoBean() {
super();
Modified: branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-12-13
20:11:29 UTC (rev 4829)
+++ branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-12-13
20:22:49 UTC (rev 4830)
@@ -49,6 +49,7 @@
sourceSelection="#{listShuttleDemoBean.sourceSelection}"
targetSelection="#{listShuttleDemoBean.targetSelection}"
+ switchByClick="#{listShuttleDemoBean.switchByClick}"
<h:column><h:outputText
value="#{item.name}" /></h:column>
<h:column><h:outputText value="#{item.price}"
/></h:column>
@@ -86,6 +87,10 @@
<h:outputText value="Fast move controls visible:" />
<h:selectBooleanCheckbox
value="#{listShuttleDemoBean.fastMoveControlsVisible}" />
+
+ <h:outputText value="Switch by click:" />
+ <h:selectBooleanCheckbox value="#{listShuttleDemoBean.switchByClick}"
/>
+
</h:panelGrid>
<a4j:status startText="...start..." />