Author: adubovsky
Date: 2008-06-10 08:55:24 -0400 (Tue, 10 Jun 2008)
New Revision: 8984
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/META-INF/MANIFEST.MF
Log:
Add new properties
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java 2008-06-10
12:48:53 UTC (rev 8983)
+++
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java 2008-06-10
12:55:24 UTC (rev 8984)
@@ -21,6 +21,7 @@
private boolean showAllSourceData;
private boolean showAllTargetData;
private boolean switchByClick;
+ private boolean rendered;
private ArrayList<Data> sourceValue;
private ArrayList<Data> targetValue;
private ArrayList<String> info;
@@ -40,6 +41,8 @@
private String sourceCaptionLabel;
private String targetCaptionLabel;
private String controlsType;
+ private String moveControlsVerticalAlign;
+ private String orderControlsVerticalAlign;
public ListShuttle() {
this.first = 1;
@@ -52,6 +55,7 @@
this.moveControlsVisible = true;
this.orderControlsVisible = true;
this.showButtonLabels = true;
+ this.rendered = true;
this.bottomControlLabel = "bottom";
this.copyAllControlLabel = "copy all";
this.copyControlLabel = "copy";
@@ -70,9 +74,35 @@
this.targetValue = new ArrayList<Data>();
this.sourceValue = new ArrayList<Data>();
this.controlsType = "button";
+ this.moveControlsVerticalAlign = "center";
+ this.orderControlsVerticalAlign = "center";
addNewItem();
}
+ public boolean getRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getMoveControlsVerticalAlign() {
+ return moveControlsVerticalAlign;
+ }
+
+ public void setMoveControlsVerticalAlign(String moveControlsVerticalAlign) {
+ this.moveControlsVerticalAlign = moveControlsVerticalAlign;
+ }
+
+ public String getOrderControlsVerticalAlign() {
+ return orderControlsVerticalAlign;
+ }
+
+ public void setOrderControlsVerticalAlign(String orderControlsVerticalAlign) {
+ this.orderControlsVerticalAlign = orderControlsVerticalAlign;
+ }
+
public String getControlsType() {
return controlsType;
}
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2008-06-10
12:48:53 UTC (rev 8983)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2008-06-10
12:55:24 UTC (rev 8984)
@@ -28,7 +28,11 @@
oncopyallclick="showEvent('oncopyallclickInputID', 'oncopyallclick
work!')"
oncopyclick="showEvent('oncopyclickInputID', 'oncopyclick
work!')"
onremoveallclick="showEvent('onremoveallclickInputID',
'onremoveallclick work!')"
- onremoveclick="showEvent('onremoveclickInputID', 'onremoveclick
work!')">
+ onremoveclick="showEvent('onremoveclickInputID', 'onremoveclick
work!')"
+
+ rendered="#{listShuttle.rendered}"
+ moveControlsVerticalAlign="#{listShuttle.moveControlsVerticalAlign}"
+ orderControlsVerticalAlign="#{listShuttle.orderControlsVerticalAlign}">
<h:column>
<f:facet name="header">
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-06-10
12:48:53 UTC (rev 8983)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-06-10
12:55:24 UTC (rev 8984)
@@ -26,6 +26,22 @@
<f:selectItem itemLabel="button" itemValue="button" />
<a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
</h:selectOneRadio>
+
+ <h:outputText value="moveControlsVerticalAlign" />
+ <h:selectOneRadio value="#{listShuttle.moveControlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="orderControlsVerticalAlign" />
+ <h:selectOneRadio value="#{listShuttle.orderControlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneRadio>
<h:outputText value="showButtonLabels" />
<h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
onchange="submit();" />
@@ -45,6 +61,9 @@
<h:outputText value="switchByClick" />
<h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
onchange="submit();" />
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{listShuttle.rendered}"
onchange="submit();" />
+
<h:outputText value="sourceCaptionLabel" />
<h:inputText value="#{listShuttle.sourceCaptionLabel}">
<a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/META-INF/MANIFEST.MF 2008-06-10
12:48:53 UTC (rev 8983)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/META-INF/MANIFEST.MF 2008-06-10
12:55:24 UTC (rev 8984)
@@ -1,4 +1,2 @@
Manifest-Version: 1.0
-Class-Path:
-f
\ No newline at end of file
Show replies by date