JBoss Rich Faces SVN: r8978 - branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-10 08:37:10 -0400 (Tue, 10 Jun 2008)
New Revision: 8978
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
Add events and parameters
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-10 12:34:55 UTC (rev 8977)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-10 12:37:10 UTC (rev 8978)
@@ -36,8 +36,8 @@
ontopclick="showEvent('ontopclickInputID', 'ontopclick work!')"
onupclick="showEvent('onupclickInputID', 'onupclick work!')"
ondownclick="showEvent('ondownclickInputID', 'ondownclick work!')"
- onbottomclick="alert('onbottomclick')"
- onheaderclick="alert('onheaderclick')"
+ onbottomclick="showEvent('onbottomclickInputID', 'onbottomclick work!')"
+ onheaderclick="showEvent('onheaderclickInputID', 'onheaderclick work!')"
activeItem="#{orderingList.activeItem}"
rowClasses="rowA, rowB" valueChangeListener="#{orderingList.valueChangeListener}">
<f:facet name="header">
@@ -94,7 +94,7 @@
<f:selectItem itemLabel="select2" itemValue="select2" />
<f:selectItem itemLabel="select3" itemValue="select3" />
<f:selectItem itemLabel="select4" itemValue="select4" />
- <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
</h:selectOneMenu>
</h:column>
@@ -111,6 +111,7 @@
</f:facet>
<h:graphicImage value="#{item.str3}" />
</h:column>
+
</rich:orderingList>
<h:panelGrid columns="2">
@@ -124,22 +125,22 @@
<h:outputText value="JavaScript API"></h:outputText>
<h:column></h:column>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide"
value="Hide"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow"
value="Show"></a4j:commandLink>
<a4j:commandLink
onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown)"
value="isShown"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.Enable()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doEnable"
value="Enable"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doDisable"
value="Disable"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled"
value="isEnabled"></a4j:commandLink>
<a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp"
16 years
JBoss Rich Faces SVN: r8977 - branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-10 08:34:55 -0400 (Tue, 10 Jun 2008)
New Revision: 8977
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
Log:
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2008-06-10 12:32:24 UTC (rev 8976)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2008-06-10 12:34:55 UTC (rev 8977)
@@ -9,7 +9,7 @@
<h:outputText value="Test1" />
<a4j:commandButton action="#{orderingList.bTest1}" value="run" reRender="richGridID"></a4j:commandButton>
<h:outputText value="#{msg.t1OrderingList}" />
-
+
<h:outputText value="Test2" />
<a4j:commandButton action="#{orderingList.bTest2}" value="run" reRender="richGridID"></a4j:commandButton>
<h:outputText value="#{msg.t2OrderingList}" />
16 years
JBoss Rich Faces SVN: r8976 - branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-10 08:32:24 -0400 (Tue, 10 Jun 2008)
New Revision: 8976
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
Log:
Add new events and parameters
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-06-10 12:30:59 UTC (rev 8975)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-06-10 12:32:24 UTC (rev 8976)
@@ -4,6 +4,12 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="listShuttleSubviewID">
+ <rich:messages ajaxRendered="true" showDetail="true">
+ <f:facet name="errorMarker">
+ <h:graphicImage value="/pics/error.gif" />
+ </f:facet>
+ </rich:messages>
+
<rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
@@ -15,8 +21,27 @@
showButtonLabels="#{listShuttle.showButtonLabels}" switchByClick="#{listShuttle.switchByClick}"
targetListWidth="#{listShuttle.targetListWidth}" sourceListWidth="#{listShuttle.sourceListWidth}"
listsHeight="#{listShuttle.listsHeight}" sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
- targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
- topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}">
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}" required="true"
+ controlsType="#{listShuttle.controlsType}" rendered="#{listShuttle.rendered}"
+ onmousemove="showEvent('onmousemoveInputID', 'onmousemove work!')"
+ onclick="showEvent('onclickInputID', 'onclick work!')"
+ ondblclick="showEvent('ondblclickInputID', 'ondblclick work!')"
+ onmouseout="showEvent('onmouseoutInputID', 'onmouseout work!')"
+ onmouseover="showEvent('onmouseoverInputID', 'onmouseover work!')"
+ onorderchanged="showEvent('onorderchangedInputID', 'onorderchanged work!')"
+ ontopclick="showEvent('ontopclickInputID', 'ontopclick work!')"
+ onupclick="showEvent('onupclickInputID', 'onupclick work!')"
+ ondownclick="showEvent('ondownclickInputID', 'ondownclick work!')"
+ onbottomclick="showEvent('onbottomclickInputID', 'onbottomclick work!')"
+ onlistchanged="showEvent('onlistchangedInputID', 'onlistchanged work!')"
+ oncopyallclick="showEvent('oncopyallclickInputID', 'oncopyallclick work!')"
+ oncopyclick="showEvent('oncopyclickInputID', 'oncopyclick work!')"
+ onremoveallclick="showEvent('onremoveallclickInputID', 'onremoveallclick work!')"
+ onremoveclick="showEvent('onremoveclickInputID', 'onremoveclick work!')"
+
+ moveControlsVerticalAlign="#{listShuttle.moveControlsVerticalAlign}"
+ orderControlsVerticalAlign="#{listShuttle.orderControlsVerticalAlign}">
<h:column>
<f:facet name="header">
@@ -63,7 +88,7 @@
<f:selectItem itemLabel="select2" itemValue="select2" />
<f:selectItem itemLabel="select3" itemValue="select3" />
<f:selectItem itemLabel="select4" itemValue="select4" />
- <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ <a4j:support event="onchange" reRender="listShuttleID"></a4j:support>
</h:selectOneMenu>
</h:column>
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-06-10 12:30:59 UTC (rev 8975)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-06-10 12:32:24 UTC (rev 8976)
@@ -23,6 +23,29 @@
<h:inputText value="#{listShuttle.first}">
<a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
</h:inputText>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{listShuttle.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <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();" />
@@ -41,6 +64,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}">
16 years
JBoss Rich Faces SVN: r8975 - branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Action.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-10 08:30:59 -0400 (Tue, 10 Jun 2008)
New Revision: 8975
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
Log:
Add new events
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2008-06-10 11:55:20 UTC (rev 8974)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/Action/EventInfo.jsp 2008-06-10 12:30:59 UTC (rev 8975)
@@ -136,4 +136,31 @@
<f:verbatim><div style="position: relative">
<input id="onshowInputID" type="hidden" value="don't work!" size="42" />
</div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="ontopclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onbottomclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onheaderclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onlistchangedInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="oncopyallclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="oncopyclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onremoveallclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onremoveclickInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
+ <f:verbatim><div style="position: relative">
+ <input id="onorderchangedInputID" type="hidden" value="don't work!" size="42" />
+ </div></f:verbatim>
</f:subview>
16 years
JBoss Rich Faces SVN: r8974 - branches/3.1.x/test-applications/jsp/src/main/java/listShuttle.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-10 07:55:20 -0400 (Tue, 10 Jun 2008)
New Revision: 8974
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
Log:
Modified: branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2008-06-10 10:52:49 UTC (rev 8973)
+++ branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2008-06-10 11:55:20 UTC (rev 8974)
@@ -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;
@@ -39,6 +40,9 @@
private String listsHeight;
private String sourceCaptionLabel;
private String targetCaptionLabel;
+ private String controlsType;
+ private String moveControlsVerticalAlign;
+ private String orderControlsVerticalAlign;
public ListShuttle() {
this.first = 1;
@@ -51,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";
@@ -68,9 +73,44 @@
this.targetCaptionLabel = "targetCaptionLabel";
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;
+ }
+
+ public void setControlsType(String controlsType) {
+ this.controlsType = controlsType;
+ }
+
public int getFirst() {
return first;
}
16 years
JBoss Rich Faces SVN: r8973 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-06-10 06:52:49 -0400 (Tue, 10 Jun 2008)
New Revision: 8973
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep2.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-3315
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2008-06-10 10:27:00 UTC (rev 8972)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2008-06-10 10:52:49 UTC (rev 8973)
@@ -6,7 +6,7 @@
xmlns:rich="http://richfaces.org/rich">
<div style="position:relative;height:140px">
- <h:panelGrid style="padding: 15px" rowClasses="s1row" columns="3" columnClasses="wfcol1,wfcol2,wfcol3">
+ <h:panelGrid rowClasses="s1row" columns="3" columnClasses="wfcol1,wfcol2,wfcol3">
<h:outputText value="First Name:" />
<h:inputText id="fn" value="#{profile.firstName}" label="First Name" required="true" />
<rich:message for="fn" />
@@ -19,7 +19,7 @@
<h:inputText id="comp" value="#{profile.company}" label="Company" required="true" />
<rich:message for="comp"/>
</h:panelGrid>
- <div>
+ <div class="navPanel">
<a4j:commandButton style="float:right" action="next" value="Next >>"/>
</div>
</div>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep2.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep2.xhtml 2008-06-10 10:27:00 UTC (rev 8972)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep2.xhtml 2008-06-10 10:52:49 UTC (rev 8973)
@@ -10,8 +10,6 @@
<h:outputText value="Notes:" />
<h:inputTextarea cols="20" rows="4" id="notes" value="#{profile.notes}" label="Notes" required="true" />
<rich:message for="notes" />
-
-
</h:panelGrid>
<div class="navPanel">
<a4j:commandButton value="<<Previous" style="float:left" immediate="true" action="previous"/>
16 years
JBoss Rich Faces SVN: r8972 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/scrollableDataTable/examples and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-06-10 06:27:00 -0400 (Tue, 10 Jun 2008)
New Revision: 8972
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-3262
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-06-10 10:00:44 UTC (rev 8971)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-06-10 10:27:00 UTC (rev 8972)
@@ -172,12 +172,16 @@
public String takeSelection() {
getSelectedCars().clear();
- Iterator<Object> iterator = getSelection().getKeys();
- while (iterator.hasNext()){
- Object key = iterator.next();
- table.setRowKey(key);
- if (table.isRowAvailable()) {
- getSelectedCars().add((DemoInventoryItem) table.getRowData());
+ if (getSelection().isSelectAll()){
+ getSelectedCars().addAll(allCars);
+ }else{
+ Iterator<Object> iterator = getSelection().getKeys();
+ while (iterator.hasNext()){
+ Object key = iterator.next();
+ table.setRowKey(key);
+ if (table.isRowAvailable()) {
+ getSelectedCars().add((DemoInventoryItem) table.getRowData());
+ }
}
}
return null;
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2008-06-10 10:00:44 UTC (rev 8971)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2008-06-10 10:27:00 UTC (rev 8972)
@@ -5,7 +5,13 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
-
+ <style>
+ .scrolls{
+ width:300px;
+ height:200px;
+ overflow:auto;
+ }
+ </style>
<h:form>
<rich:spacer height="30" />
<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px"
@@ -44,13 +50,14 @@
action="#{dataTableScrollerBean.takeSelection}"
oncomplete="javascript:Richfaces.showModalPanel('panel');"/>
</h:form>
- <rich:modalPanel id="panel" autosized="true">
+ <rich:modalPanel id="panel" autosized="false" keepVisualState="false" width="315" height="230">
<f:facet name="header">
<h:outputText value="Selected Rows"/>
</f:facet>
<f:facet name="controls">
<span style="cursor:pointer" onclick="javascript:Richfaces.hideModalPanel('panel')">X</span>
</f:facet>
+ <h:panelGroup layout="block" styleClass="scrolls">
<rich:dataTable value="#{dataTableScrollerBean.selectedCars}" var="sel" id="table">
<rich:column>
<f:facet name="header"><h:outputText value="Make" /></f:facet>
@@ -72,6 +79,7 @@
<f:facet name="header"><h:outputText value="Stock" /></f:facet>
<h:outputText value="#{sel.stock}" />
</rich:column>
- </rich:dataTable>
+ </rich:dataTable>
+ </h:panelGroup>
</rich:modalPanel>
</ui:composition>
\ No newline at end of file
16 years
JBoss Rich Faces SVN: r8971 - trunk/samples/richfaces-demo/src/main/webapp/css.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-06-10 06:00:44 -0400 (Tue, 10 Jun 2008)
New Revision: 8971
Modified:
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
Log:
http://jira.jboss.com/jira/browse/RF-3460
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-06-10 09:50:12 UTC (rev 8970)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-06-10 10:00:44 UTC (rev 8971)
@@ -37,13 +37,14 @@
background-color : White;
padding-top:428px;
font-family: Verdana;
+ font-size:11px;
}
.page_brick{
position : absolute;
top : 0px;
width : 998px;
-}
+}
li{
margin-top : 5px;
16 years
JBoss Rich Faces SVN: r8969 - trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-06-10 05:45:27 -0400 (Tue, 10 Jun 2008)
New Revision: 8969
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java
Log:
http://jira.jboss.com/jira/browse/RF-3599
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java 2008-06-10 09:45:25 UTC (rev 8968)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/paint2d/PaintBean.java 2008-06-10 09:45:27 UTC (rev 8969)
@@ -12,14 +12,17 @@
public void paint(Graphics2D g2d, Object obj) {
- PaintData data = (PaintData) obj;
+ PaintData data = (PaintData) obj;
+
+ g2d.setColor(Color.WHITE);
+ g2d.fillRect(0, 0, 300, 120);
- int testLenght = data.text.length();
- fontSize = testLenght < 8? 40 : 40 - (testLenght - 8);
+ int testLenght = data.text.length();
+ fontSize = testLenght < 8? 40 : 40 - (testLenght - 8);
if (fontSize < 12)fontSize = 12;
Font font = new Font("Serif", Font.HANGING_BASELINE, fontSize);
g2d.setFont(font);
-
+
int x = 10;
int y = fontSize*5/2;
g2d.translate(x, y);
16 years