Author: tkuprevich
Date: 2009-04-20 07:02:36 -0400 (Mon, 20 Apr 2009)
New Revision: 13681
Modified:
trunk/test-applications/jsp/src/main/java/pickList/PickList.java
trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp
trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/java/pickList/PickList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/pickList/PickList.java 2009-04-20 11:01:08
UTC (rev 13680)
+++ trunk/test-applications/jsp/src/main/java/pickList/PickList.java 2009-04-20 11:02:36
UTC (rev 13681)
@@ -1,5 +1,6 @@
package pickList;
+import java.lang.reflect.Array;
import java.util.ArrayList;
import javax.faces.context.FacesContext;
@@ -15,7 +16,6 @@
public String copyAllControlLabel;
public String copyControlLabel;
public boolean disabled;
- public boolean fastOrderControlsVisible;
public boolean immediate;
public String listsHeight;
public String localValueSet;
@@ -35,6 +35,9 @@
private String valueCL;
private HtmlPickList myPickList = null;
private String bindLabel;
+ private boolean fastMoveControlsVisible;
+ private boolean moveControlsVisible;
+ private SelectItem[] arrValue;
public void addHtmlPickList(){
ComponentInfo info = ComponentInfo.getInstance();
@@ -45,7 +48,9 @@
this.copyAllControlLabel = "copyAllControlLabel";
this.copyControlLabel = "copyControlLabel";
this.disabled = false;
- this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.fastMoveControlsVisible = true;
+
this.immediate = false;
this.listsHeight = "400";
this.valueCL = "---";
@@ -63,8 +68,10 @@
this.requiredMessage = "requiredMessage";
this.bindLabel = "Click Binding";
data = new ArrayList<SelectItem>();
- for (int i = 0; i < 10; i++)
+ for (int i = 0; i < 10; i++) {
data.add(new SelectItem("selectItems " + i));
+ arrValue[i] = new SelectItem("Row " + i);
+ }
}
public HtmlPickList getMyPickList() {
@@ -136,14 +143,6 @@
this.disabled = disabled;
}
- public boolean isFastOrderControlsVisible() {
- return fastOrderControlsVisible;
- }
-
- public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
- this.fastOrderControlsVisible = fastOrderControlsVisible;
- }
-
public boolean isImmediate() {
return immediate;
}
@@ -261,4 +260,30 @@
bindLabel = myPickList.getClientId(context);
}
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public SelectItem[] getArrValue() {
+ return arrValue;
+ }
+
+ public void setArrValue(SelectItem[] arrValue) {
+ this.arrValue = arrValue;
+ }
+
+
+
}
Modified: trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp 2009-04-20 11:01:08
UTC (rev 13680)
+++ trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp 2009-04-20 11:02:36
UTC (rev 13681)
@@ -3,7 +3,7 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="pickListSubviewID">
- <rich:pickList id="pickListID" value="#{pickList.value}"
+ <rich:pickList id="pickListID" value="#{pickList.arrValue}"
showButtonsLabel="#{pickList.showButtonLabels}"
valueChangeListener="#{pickList.valueChangeListener}"
controlClass="#{style.controlClass}"
@@ -23,6 +23,9 @@
targetListWidth="#{pickList.targetListWidth}"
required="#{pickList.required}"
requiredMessage="#{pickList.requiredMessage}"
+ moveControlsVisible="#{pickList.moveControlsVisible}"
+ fastMoveControlsVisible="#{pickList.fastMoveControlsVisible}"
+
onclick="#{event.onclick}"
ondblclick="#{event.ondblclick}"
onkeydown="#{event.onkeydown}"
Modified: trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp 2009-04-20
11:01:08 UTC (rev 13680)
+++ trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp 2009-04-20
11:02:36 UTC (rev 13681)
@@ -3,7 +3,7 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="pickListPropertySubviewID">
-<h:commandButton value="add test"
action="#{pickList.addHtmlPickList}"></h:commandButton>
+ <h:commandButton value="add test"
action="#{pickList.addHtmlPickList}"></h:commandButton>
<h:panelGrid columns="2">
<a4j:commandButton reRender="pickListTargenID" value="refresh
target"></a4j:commandButton>
<h:dataTable id="pickListTargenID" value="#{pickList.value}"
@@ -52,10 +52,14 @@
<h:outputText value="targetListWidth:"></h:outputText>
<h:inputText value="#{pickList.targetListWidth}"
onchange="submit();"></h:inputText>
- <h:outputText value="fastOrderControlsVisible:"></h:outputText>
- <h:selectBooleanCheckbox value="#{pickList.fastOrderControlsVisible}"
+ <h:outputText value="moveControlsVisible:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.moveControlsVisible}"
onchange="submit();"></h:selectBooleanCheckbox>
+ <h:outputText value="fastMoveControlsVisible:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{pickList.fastMoveControlsVisible}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
<h:outputText value="rendered:"></h:outputText>
<h:selectBooleanCheckbox value="#{pickList.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>