Author: mvitenkov
Date: 2008-04-17 12:41:29 -0400 (Thu, 17 Apr 2008)
New Revision: 7903
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
Log:
+binding
+accessKey
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2008-04-17
16:24:09 UTC (rev 7902)
+++
branches/3.1.x/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2008-04-17
16:41:29 UTC (rev 7903)
@@ -1,6 +1,9 @@
package inputNumberSlider;
import javax.faces.event.ValueChangeEvent;
+import org.richfaces.component.html.HtmlInputNumberSlider;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
public class InputNumberSlider {
@@ -20,6 +23,7 @@
private String tipStyle;
private String handleStyle;
private String valueChangeListener;
+ private String bindLabel;
private boolean immediate;
private boolean required;
private boolean showToolTip;
@@ -28,7 +32,29 @@
private boolean rendered;
private boolean enableManualInput;
private boolean showBoundaryValues;
+ private HtmlInputNumberSlider myInputSlider;
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlInputNumberSlider getMyInputSlider() {
+ return myInputSlider;
+ }
+
+ public void setMyInputSlider(HtmlInputNumberSlider myInputSlider) {
+ this.myInputSlider = myInputSlider;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInputSlider.getClientId(context).toString();
+ }
+
public InputNumberSlider() {
immediate = false;
rendered = false;
@@ -44,6 +70,7 @@
maxValue="100";
step="5";
btnLabel="On";
+ bindLabel = "default";
barStyle=null;
inputStyle=null;
tipStyle=null;
@@ -53,6 +80,7 @@
rendered=true;
enableManualInput = true;
showBoundaryValues=true;
+ myInputSlider = new HtmlInputNumberSlider();
}
public void changeListener(ValueChangeEvent event) {
Show replies by date