[richfaces-svn-commits] JBoss Rich Faces SVN: r6292 - in trunk/sandbox/samples/inplaceSelect-sample/src/main: webapp/pages and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Feb 22 09:05:20 EST 2008


Author: abelevich
Date: 2008-02-22 09:05:20 -0500 (Fri, 22 Feb 2008)
New Revision: 6292

Modified:
   trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
   trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
   trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
Log:
extend demo

Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java	2008-02-22 14:04:49 UTC (rev 6291)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/java/org/richfaces/Bean.java	2008-02-22 14:05:20 UTC (rev 6292)
@@ -21,9 +21,141 @@
 
 package org.richfaces;
 /**
- * @author $Autor$
- *
+ * @author Anton Belevich
  */
 public class Bean {
 	
+	private String editEvent = "click";
+	
+	private String maxSelectWidth;
+	
+	private String minSelectWidth;
+	
+	private String selectWidth;
+	
+	private String defaultLabel;
+	
+	private String controlsPosition = "center";
+	
+	private String controlsHorizontalAlign = "right";
+	
+	private Object value = "New York";
+	
+	private String listWidth = "200px";
+	
+	private String listHeight = "200px";
+	
+	private boolean selectOnEdit;
+	
+	private boolean showControls;
+	
+	private boolean applyFromControlsOnly;
+
+
+
+	public String getEditEvent() {
+		return editEvent;
+	}
+
+	public void setEditEvent(String editEvent) {
+		this.editEvent = editEvent;
+	}
+
+	public String getMaxSelectWidth() {
+		return maxSelectWidth;
+	}
+
+	public void setMaxSelectWidth(String maxSelectWidth) {
+		this.maxSelectWidth = maxSelectWidth;
+	}
+
+	public String getMinSelectWidth() {
+		return minSelectWidth;
+	}
+
+	public void setMinSelectWidth(String minSelectWidth) {
+		this.minSelectWidth = minSelectWidth;
+	}
+
+	public String getSelectWidth() {
+		return selectWidth;
+	}
+
+	public void setSelectWidth(String selectWidth) {
+		this.selectWidth = selectWidth;
+	}
+
+	public String getDefaultLabel() {
+		return defaultLabel;
+	}
+
+	public void setDefaultLabel(String defaultLabel) {
+		this.defaultLabel = defaultLabel;
+	}
+
+	public boolean isShowControls() {
+		return showControls;
+	}
+
+	public void setShowControls(boolean showControls) {
+		this.showControls = showControls;
+	}
+
+	public String getControlsPosition() {
+		return controlsPosition;
+	}
+
+	public void setControlsPosition(String controlsPosition) {
+		this.controlsPosition = controlsPosition;
+	}
+
+	public String getControlsHorizontalAlign() {
+		return controlsHorizontalAlign;
+	}
+
+	public void setControlsHorizontalAlign(String controlsHorizontalAlign) {
+		this.controlsHorizontalAlign = controlsHorizontalAlign;
+	}
+
+	public boolean getApplyFromControlsOnly() {
+		return applyFromControlsOnly;
+	}
+
+	public void setApplyFromControlsOnly(boolean applyFromControlsOnly) {
+		this.applyFromControlsOnly = applyFromControlsOnly;
+	}
+
+	public boolean isSelectOnEdit() {
+		return selectOnEdit;
+	}
+
+	public void setSelectOnEdit(boolean selectOnEdit) {
+		this.selectOnEdit = selectOnEdit;
+	}
+
+	public Object getValue() {
+		return value;
+	}
+
+	public void setValue(Object value) {
+		this.value = value;
+	}
+
+	public String getListWidth() {
+		return listWidth;
+	}
+
+	public void setListWidth(String listWidth) {
+		this.listWidth = listWidth;
+	}
+
+	public String getListHeight() {
+		return listHeight;
+	}
+
+	public void setListHeight(String listHeight) {
+		this.listHeight = listHeight;
+	}
+	
+	
 }
\ No newline at end of file

Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp	2008-02-22 14:04:49 UTC (rev 6291)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.jsp	2008-02-22 14:05:20 UTC (rev 6292)
@@ -13,9 +13,67 @@
 				<h:outputText value="Current skin: #{skinBean.skin}"/><br />
 			</h:form>
 	  		<h:form>
-			   <div style="width: 300px">
+	  			<h:panelGrid columns="2">
+	  				<h:outputText value="editEvent is: "></h:outputText>
+	  				<h:inputText value="#{bean.editEvent}"></h:inputText>
+	  				
+	  				<h:outputText value="maxSelectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.maxSelectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="minSelectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.minSelectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="selectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.selectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="defaultLabel is: "></h:outputText>
+	  				<h:inputText value="#{bean.defaultLabel}"></h:inputText>
+	  				
+	  				<h:outputText value="controlsPosition is: "></h:outputText>
+	  				<h:inputText value="#{bean.controlsPosition}"></h:inputText>
+	  				
+	  				<h:outputText value="controlsHorizontalAlign is: "></h:outputText>
+	  				<h:inputText value="#{bean.controlsHorizontalAlign}"></h:inputText>
+	  				
+	  				<h:outputText value="value is: "></h:outputText>
+	  				<h:inputText value="#{bean.value}"></h:inputText>
+	  				
+	  				<h:outputText value="listWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.listWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="listHeight is: "></h:outputText>
+	  				<h:inputText value="#{bean.listHeight}"></h:inputText>
+	  				
+	  				<h:outputText value="selectOnEdit (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.selectOnEdit}" />
+	  				
+	  				<h:outputText value="showControls (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.showControls}" />
+					
+					<h:outputText value="applyFromControlsOnly (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.applyFromControlsOnly}" />
+	  				
+	  			  			
+	  			</h:panelGrid>
+	  			  		
+	  			<div style="width: 300px">
 	  			Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
-	  			    <is:inplaceSelect showControls="true" value="New York">
+	  			    <is:inplaceSelect 
+	  			    	editEvent="#{bean.editEvent}"
+	  			    	maxSelectWidth="#{bean.maxSelectWidth}"
+	  			    	minSelectWidth="#{bean.minSelectWidth}"
+	  			    	selectWidth="#{bean.selectWidth}"
+	  			    	defaultLabel="#{bean.defaultLabel}"
+	  			    	controlsPosition="#{bean.controlsPosition}"
+	  			    	controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+	  			    	value="#{bean.value}"
+	  			    	listWidth="#{bean.listWidth}"
+	  			    	listHeight="#{bean.listHeight}"
+	  			    	selectOnEdit="#{bean.selectOnEdit}"
+	  			    	showControls="#{bean.showControls}"
+	  			    	applyFromControlsOnly="#{bean.applyFromControlsOnly}"
+	  			    	
+	  			    >
 						<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
 						<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
 						<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
@@ -28,6 +86,9 @@
 					</is:inplaceSelect>
 				 Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
 				</div>
+				<br/>
+				<h:outputText value="value is: #{bean.value}"></h:outputText>			
+				<h:commandButton value="submit"></h:commandButton>	
 			</h:form>
 		</f:view>
 	  </body>	

Modified: trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml	2008-02-22 14:04:49 UTC (rev 6291)
+++ trunk/sandbox/samples/inplaceSelect-sample/src/main/webapp/pages/index.xhtml	2008-02-22 14:05:20 UTC (rev 6292)
@@ -19,9 +19,67 @@
 			</h:form>
 	  		
 	  		<h:form>
+	  			<h:panelGrid columns="2">
+	  				<h:outputText value="editEvent is: "></h:outputText>
+	  				<h:inputText value="#{bean.editEvent}"></h:inputText>
+	  				
+	  				<h:outputText value="maxSelectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.maxSelectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="minSelectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.minSelectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="selectWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.selectWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="defaultLabel is: "></h:outputText>
+	  				<h:inputText value="#{bean.defaultLabel}"></h:inputText>
+	  				
+	  				<h:outputText value="controlsPosition is: "></h:outputText>
+	  				<h:inputText value="#{bean.controlsPosition}"></h:inputText>
+	  				
+	  				<h:outputText value="controlsHorizontalAlign is: "></h:outputText>
+	  				<h:inputText value="#{bean.controlsHorizontalAlign}"></h:inputText>
+	  				
+	  				<h:outputText value="value is: "></h:outputText>
+	  				<h:inputText value="#{bean.value}"></h:inputText>
+	  				
+	  				<h:outputText value="listWidth is: "></h:outputText>
+	  				<h:inputText value="#{bean.listWidth}"></h:inputText>
+	  				
+	  				<h:outputText value="listHeight is: "></h:outputText>
+	  				<h:inputText value="#{bean.listHeight}"></h:inputText>
+	  				
+	  				<h:outputText value="selectOnEdit (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.selectOnEdit}" />
+	  				
+	  				<h:outputText value="showControls (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.showControls}" />
+					
+					<h:outputText value="applyFromControlsOnly (default: false): " />
+					<h:selectBooleanCheckbox value="#{bean.applyFromControlsOnly}" />
+	  				
+	  			  			
+	  			</h:panelGrid>
+	  			  		
 	  			<div style="width: 300px">
 	  			Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
-	  			    <is:inplaceSelect showControls="true" value="New York">
+	  			    <is:inplaceSelect 
+	  			    	editEvent="#{bean.editEvent}"
+	  			    	maxSelectWidth="#{bean.maxSelectWidth}"
+	  			    	minSelectWidth="#{bean.minSelectWidth}"
+	  			    	selectWidth="#{bean.selectWidth}"
+	  			    	defaultLabel="#{bean.defaultLabel}"
+	  			    	controlsPosition="#{bean.controlsPosition}"
+	  			    	controlsHorizontalAlign="#{bean.controlsHorizontalAlign}"
+	  			    	value="#{bean.value}"
+	  			    	listWidth="#{bean.listWidth}"
+	  			    	listHeight="#{bean.listHeight}"
+	  			    	selectOnEdit="#{bean.selectOnEdit}"
+	  			    	showControls="#{bean.showControls}"
+	  			    	applyFromControlsOnly="#{bean.applyFromControlsOnly}"
+	  			    	
+	  			    >
 						<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
 						<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
 						<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
@@ -33,8 +91,12 @@
 						<f:selectItem itemLabel="option 9" itemValue="New York"/>
 					</is:inplaceSelect>
 				 Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
-				</div>	
+				</div>
+				<br/>
+				<h:outputText value="value is: #{bean.value}"></h:outputText>			
+				<h:commandButton value="submit"></h:commandButton>	
 			</h:form>
+			
 		</f:view>
 	  </body> 	 	 
        




More information about the richfaces-svn-commits mailing list