JBoss Rich Faces SVN: r5705 - management/design/inplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-01-29 10:17:26 -0500 (Tue, 29 Jan 2008)
New Revision: 5705
Modified:
management/design/inplaceInput/FuncSpec - InplaceInput.doc
Log:
Modified: management/design/inplaceInput/FuncSpec - InplaceInput.doc
===================================================================
(Binary files differ)
16 years, 11 months
JBoss Rich Faces SVN: r5704 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-29 09:53:05 -0500 (Tue, 29 Jan 2008)
New Revision: 5704
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
Log:
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:52:07 UTC (rev 5703)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:53:05 UTC (rev 5704)
@@ -324,9 +324,6 @@
</u:selector>
<u:selector name=".rich-combobox-button-hovered">
- <u:style name="border-top-color" skin="selectControlColor"/>
- <u:style name="border-left-color" skin="selectControlColor"/>
- <u:style name="border-bottom-color" skin="selectControlColor"/>
- <u:style name="border-right-color" skin="selectControlColor"/>
+ <u:style name="border-color" skin="selectControlColor"/>
</u:selector>
</f:template>
16 years, 11 months
JBoss Rich Faces SVN: r5703 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-29 09:52:07 -0500 (Tue, 29 Jan 2008)
New Revision: 5703
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
Log:
fix hovered class applying
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:42:10 UTC (rev 5702)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:52:07 UTC (rev 5703)
@@ -9,10 +9,6 @@
.rich-combobox-button-pressed {
}
-.rich-combobox-button-hovered {
- border-width : 1px solid;
- border-style : solid;
-}
.rich-combobox-input-width {
width : 250px;
@@ -199,6 +195,10 @@
background : center no-repeat; cursor : pointer;
}
+.rich-combobox-button-hovered {
+ border-width : 1px;
+ border-style : solid;
+}
.rich-combobox-shadow{ top:10; left:0; position : absolute;}
.rich-combobox-shadow-tl{repeat-x top left;}
@@ -255,10 +255,6 @@
</u:style>
</u:selector>
- <u:selector name=".rich-combobox-button-hovered">
- <u:style name="border-color" skin="selectControlColor"/>
- </u:selector>
-
<u:selector name=".rich-combobox-button">
<u:style name="border-top-color" skin="panelBorderColor"/>
<u:style name="border-left-color" skin="panelBorderColor"/>
@@ -327,5 +323,10 @@
<u:style name="background" skin="tableBackgroundColor"/>
</u:selector>
-
+ <u:selector name=".rich-combobox-button-hovered">
+ <u:style name="border-top-color" skin="selectControlColor"/>
+ <u:style name="border-left-color" skin="selectControlColor"/>
+ <u:style name="border-bottom-color" skin="selectControlColor"/>
+ <u:style name="border-right-color" skin="selectControlColor"/>
+ </u:selector>
</f:template>
16 years, 11 months
JBoss Rich Faces SVN: r5702 - in management/design: inplaceInput and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-01-29 09:42:10 -0500 (Tue, 29 Jan 2008)
New Revision: 5702
Added:
management/design/inplaceInput/
management/design/inplaceInput/FuncSpec - InplaceInput.doc
management/design/inplaceInput/InplaceInput Vision.doc
Log:
Added: management/design/inplaceInput/FuncSpec - InplaceInput.doc
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/FuncSpec - InplaceInput.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: management/design/inplaceInput/InplaceInput Vision.doc
===================================================================
(Binary files differ)
Property changes on: management/design/inplaceInput/InplaceInput Vision.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 11 months
JBoss Rich Faces SVN: r5701 - in trunk/sandbox/ui/pickList/src/main: resources/org/richfaces/renderkit/html/scripts and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-01-29 09:22:06 -0500 (Tue, 29 Jan 2008)
New Revision: 5701
Modified:
trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js
trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickListSI.js
Log:
pickList component
Modified: trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-01-29 14:14:23 UTC (rev 5700)
+++ trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-01-29 14:22:06 UTC (rev 5701)
@@ -48,7 +48,7 @@
private static final String HIDDEN_SUFFIX = "valueKeeper";
private static final String FUNCTION_ADD_TO_SELECTED = "myfaces_picklist_addToSelected";
private static final String FUNCTION_REMOVE_FROM_SELECTED = "myfaces_picklist_removeFromSelected";
- protected static final OrderingComponentRendererBase.ControlsHelper[] SHUTTLE_HELPERS = PickListControlsHelper.HELPERS;
+ protected static final OrderingComponentRendererBase.ControlsHelper[] SHUTTLE_HELPERS = ListShuttleControlsHelper.HELPERS;
protected final static String SHOW_LABELS_ATTRIBUTE_NAME = "showButtonLabels";
private static final String MESSAGE_BUNDLE_NAME = OrderingListRendererBase.class.getPackage().getName() + "ListShuttle";
@@ -158,201 +158,6 @@
}
}
- /*protected void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
-
- UIPickList picklist = (UIPickList) component;
-
- String availableListClientId = picklist.getClientId(context) + AVAILABLE_SUFFIX;
- String selectedListClientId = picklist.getClientId(context) + SELECTED_SUFFIX;
- String hiddenFieldCliendId = picklist.getClientId(context) + HIDDEN_SUFFIX;
-
- List <SelectItem> selectItemList = SelectUtils.getSelectItems(context,picklist);
- Converter converter = PickListUtils.findUISelectManyConverterFailsafe(context, picklist);
- Set lookupSet = PickListUtils.getSubmittedOrSelectedValuesAsSet(true, picklist, context, converter);
- List selectItemsForSelectedValues = selectItemsForSelectedList(context, picklist, selectItemList, converter, lookupSet);
- List selectItemsForAvailableList = selectItemsForAvailableList(context, picklist, selectItemList, selectItemsForSelectedValues, converter);
-
- writer.startElement("table", picklist);
- writer.writeAttribute(HTML.id_ATTRIBUTE, picklist.getClientId(context), null);
- writer.startElement(HTML.TR_ELEMENT, picklist);
- writer.startElement(HTML.td_ELEM, picklist);
-
- encodeSelect(context, picklist, availableListClientId, picklist.isDisabled(), picklist.getSize(), selectItemsForAvailableList, converter, writer);
-
- writer.endElement(HTML.td_ELEM);
-
- // encode buttons
- writer.startElement(HTML.td_ELEM, picklist);
-
- String javascriptAddToSelected = FUNCTION_ADD_TO_SELECTED + "('"
- + availableListClientId + "','" + selectedListClientId + "','"
- + hiddenFieldCliendId + "')";
- String javascriptRemoveFromSelected = FUNCTION_REMOVE_FROM_SELECTED
- + "('" + availableListClientId + "','" + selectedListClientId
- + "','" + hiddenFieldCliendId + "')";
-
- encodeSwapButton(context, picklist, javascriptAddToSelected,true,writer);
-
- writer.startElement("br", picklist);
- writer.endElement("br");
-
- encodeSwapButton(context, picklist, javascriptRemoveFromSelected, false, writer);
-
- writer.endElement(HTML.td_ELEM);
-
- // encode selected list
- writer.startElement(HTML.td_ELEM, picklist);
- encodeSelect(context, picklist, selectedListClientId, picklist.isDisabled(), picklist.getSize(),
- selectItemsForSelectedValues, converter, writer);
-
- // hidden field with the selected values
- encodeHiddenField(context, picklist, hiddenFieldCliendId, lookupSet,writer);
-
- writer.endElement(HTML.td_ELEM);
- writer.endElement(HTML.TR_ELEMENT);
- writer.endElement("table");
- }*/
-
- /*private void encodeSelect(FacesContext context, UIPickList picklist, String clientId, boolean disabled,
- int size, List selectItemsToDisplay, Converter converter, ResponseWriter writer) throws IOException {
-
- writer.startElement("select", picklist);
- writer.writeAttribute("id", clientId, "id");
- writer.writeAttribute("name", clientId, null);
- writer.writeAttribute("multiple", "true", null);
- getUtils().encodePassThruWithExclusions(context, picklist,"size,id,dir,multiple,name,class,style,styleClass,disabled");
-
-
- String computeStyleClass = "rich-pick-list rich-pick-list-outputlist";
-
- String outputStyle = (String)picklist.getAttributes().get("style");
- String outputStyleClass = (String)picklist.getAttributes().get("styleClass");
-
- if (outputStyle != null) {
- outputStyle = outputStyle.trim();
- if(!outputStyle.endsWith(";")) {
- outputStyle = outputStyle + ";";
- }
- }
-
- if(outputStyleClass != null) {
- computeStyleClass = computeStyleClass + " " + outputStyleClass;
- }
-
- if (picklist.isDisplayValueOnly()) {
- String displayValueOnlyStyleClass = picklist.getDisplayValueOnlyStyleClass();
- String displayValueOnlyStyle = picklist.getDisplayValueOnlyStyle();
-
- if (displayValueOnlyStyleClass != null) {
- computeStyleClass = computeStyleClass != null ? computeStyleClass + " "
- + displayValueOnlyStyleClass : computeStyleClass;
- }
-
- if (displayValueOnlyStyle != null) {
-
- displayValueOnlyStyle = displayValueOnlyStyle.trim();
- if(!displayValueOnlyStyle.endsWith(";")) {
- displayValueOnlyStyle = displayValueOnlyStyle + ";";
- }
-
- outputStyle = outputStyle != null ? outputStyle + " " + displayValueOnlyStyle : outputStyle;
- }
- }
-
- if (disabled) {
- String disabledStyleClass = (String)picklist.getAttributes().get("disabledStyleClass");
- if (disabledStyleClass != null) {
- computeStyleClass = computeStyleClass + " " + disabledStyleClass;
- }
-
- String disabledStyle = (String)picklist.getAttributes().get("disabledStyle");
- if (disabledStyle != null) {
- outputStyle = outputStyle != null ? outputStyle + " " + disabledStyle : disabledStyle;
- }
- writer.writeAttribute(HTML.DISABLED_ATTR, Boolean.TRUE, null);
-
- } else {
- String enabledStyleClass = (String)picklist.getAttributes().get("enabledStyleClass");
- if (enabledStyleClass != null) {
- computeStyleClass = computeStyleClass + " " + enabledStyleClass;
- }
-
- String enabledStyle = (String)picklist.getAttributes().get("enabledStyle");
- if(enabledStyle != null) {
- outputStyle = outputStyle != null ? outputStyle + "; " + enabledStyle : enabledStyle;
- }
- }
-
- writer.writeAttribute("class", computeStyleClass, null);
- writer.writeAttribute(HTML.style_ATTRIBUTE, outputStyle, null);
- writer.writeAttribute(HTML.STYLE_CLASS_ATTR, outputStyleClass, null);
-
- if (size == 0) {
- writer.writeAttribute("size", Integer.toString(selectItemsToDisplay.size()), null);
- } else {
- writer.writeAttribute("size", Integer.toString(size), null);
- }
-
- renderSelectOptions(context, picklist, converter, Collections.EMPTY_SET, selectItemsToDisplay);
- writer.writeText("", null);
- writer.endElement("select");
- }*/
-
- /*public void renderSelectOptions(FacesContext context, UIComponent component, Converter converter, Set lookupSet,
- List selectItemList) throws IOException {
- ResponseWriter writer = context.getResponseWriter();
-
- for (Iterator it = selectItemList.iterator(); it.hasNext();) {
- SelectItem selectItem = (SelectItem) it.next();
-
- if (selectItem instanceof SelectItemGroup) {
- writer.startElement("optgroup", component);
- writer.writeAttribute("label", selectItem.getLabel(), null);
- SelectItem[] selectItems = ((SelectItemGroup) selectItem).getSelectItems();
- renderSelectOptions(context, component, converter, lookupSet, Arrays.asList(selectItems));
- writer.endElement("optgroup");
- } else {
- String itemStrValue = PickListUtils.getConvertedStringValue(context, component, converter, selectItem.getValue());
- writer.write('\t');
- writer.startElement("option", component);
-
- if (itemStrValue != null) {
- writer.writeAttribute(HTML.value_ATTRIBUTE, itemStrValue, null);
- }
-
- if (lookupSet.contains(itemStrValue)) { //TODO/FIX: we always compare the String vales, better fill lookupSet with Strings only when useSubmittedValue==true, else use the real item value Objects
- writer.writeAttribute("selected", "selected", null);
- }
-
- boolean disabled = selectItem.isDisabled();
- if (disabled) {
- writer.writeAttribute(HTML.DISABLED_ATTR, HTML.DISABLED_ATTR, null);
- }
-
- boolean componentDisabled = isTrue(component.getAttributes().get("disabled"));
- String labelClass = null;
- if (componentDisabled || disabled) {
- labelClass = (String) component.getAttributes().get("disabledClass");
- } else {
- labelClass = (String) component.getAttributes().get("enabled");
- }
-
- if (labelClass != null) {
- writer.writeAttribute("class", labelClass, "labelClass");
- }
-
- boolean escape = isTrue(component.getAttributes().get("escape"));
-
- if (escape) {
- writer.writeText(selectItem.getLabel(), null);
- } else {
- writer.write(selectItem.getLabel());
- }
-
- writer.endElement("option");
- }
- }
- }*/
private void encodeRows(FacesContext context, UIComponent component, boolean source) throws IOException {
List <SelectItem> selectItemsList = SelectUtils.getSelectItems(context,component);
@@ -601,32 +406,17 @@
public void encodePickListControlsFacets(FacesContext context, UIComponent component)
throws IOException {
- String clientId = component.getClientId(context);
-
- ResponseWriter writer = context.getResponseWriter();
-
- int divider = SHUTTLE_HELPERS.length / 2;
-
- for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
- /*SelectionState state = (i < divider ? sourceSelectionState : targetSelectionState);
- boolean enabled;
- if (i <= 1 || i >= SHUTTLE_HELPERS.length - 2) {
- enabled = state.isItemExist();
- } else {
- enabled = state.isSelected();
- }
-
- if (i % 2 == 1) {
- enabled = !enabled;
- }*/
-
- if (SHUTTLE_HELPERS[i].isRendered(context, null)) {
- //proper assumption about helpers ordering
- encodeControlFacet(context, component, SHUTTLE_HELPERS[i], clientId, writer, true,
- "rich-list-shuttle-button", " rich-shuttle-control");
- }
+ String clientId = component.getClientId(context);
+
+ ResponseWriter writer = context.getResponseWriter();
+
+ int divider = SHUTTLE_HELPERS.length / 2;
+
+ for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
+ encodeControlFacet(context, component, SHUTTLE_HELPERS[i], clientId, writer, true,
+ "rich-list-shuttle-button", " rich-shuttle-control");
+ }
}
- }
protected void encodeControlFacet(FacesContext context,
UIComponent component, OrderingComponentRendererBase.ControlsHelper helper,
Modified: trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js
===================================================================
--- trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js 2008-01-29 14:14:23 UTC (rev 5700)
+++ trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickList.js 2008-01-29 14:22:06 UTC (rev 5701)
@@ -13,8 +13,8 @@
},
moveItemByClick : function($super, event, sourceComponent, targetComponent, layoutManager) {
+ this.saveState([this.sourceList.getEventTargetRow(event)], this.isAdd(sourceComponent));
$super(event, sourceComponent, targetComponent, layoutManager);
- this.saveState([this.sourceList.getEventTargetRow(event)], this.isAdd(sourceComponent));
},
saveState : function(items, isAdd) {
Modified: trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickListSI.js
===================================================================
--- trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickListSI.js 2008-01-29 14:14:23 UTC (rev 5700)
+++ trunk/sandbox/ui/pickList/src/main/resources/org/richfaces/renderkit/html/scripts/PickListSI.js 2008-01-29 14:22:06 UTC (rev 5701)
@@ -3,6 +3,8 @@
Richfaces.PickListSI = Class.create(Richfaces.SelectItem, {
initialize : function($super, label, id, node) {
$super(label, id, node);
+ this.selected = false;
+ this.active = false;
},
saveState : function() {}
16 years, 11 months
JBoss Rich Faces SVN: r5700 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-29 09:14:23 -0500 (Tue, 29 Jan 2008)
New Revision: 5700
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
Log:
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:08:58 UTC (rev 5699)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:14:23 UTC (rev 5700)
@@ -10,6 +10,8 @@
}
.rich-combobox-button-hovered {
+ border-width : 1px solid;
+ border-style : solid;
}
.rich-combobox-input-width {
@@ -254,10 +256,7 @@
</u:selector>
<u:selector name=".rich-combobox-button-hovered">
- <u:style name="border-top-color" skin="selectControlColor"/>
- <u:style name="border-bottom-color" skin="selectControlColor"/>
- <u:style name="border-left-color" skin="selectControlColor"/>
- <u:style name="border-right-color" skin="selectControlColor"/>
+ <u:style name="border-color" skin="selectControlColor"/>
</u:selector>
<u:selector name=".rich-combobox-button">
16 years, 11 months
JBoss Rich Faces SVN: r5699 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-29 09:08:58 -0500 (Tue, 29 Jan 2008)
New Revision: 5699
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
Log:
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 13:34:16 UTC (rev 5698)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 14:08:58 UTC (rev 5699)
@@ -23,7 +23,7 @@
left : 0;
padding-left :3px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-width: 1px;
border-left-color: #000000;
border-top-color: #000000;
@@ -38,7 +38,7 @@
left : 0;
padding-left :3px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-width: 1px;
border-left-color: #000000;
border-top-color: #000000;
@@ -53,7 +53,7 @@
left : 0;
padding-left :3px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-width: 1px;
border-left-color: #000000;
border-top-color: #000000;
@@ -122,7 +122,7 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-right-color: #000000;
border-bottom-color: #000000;
border-width: 1px;
@@ -136,7 +136,7 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-right-color: #000000;
border-bottom-color: #000000;
border-width:1px;
@@ -151,7 +151,7 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border-style: groove;
+ border-style: solid;
border-right-color: #000000;
border-bottom-color: #000000;
border-width:1px;
16 years, 11 months
JBoss Rich Faces SVN: r5698 - trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-01-29 08:34:16 -0500 (Tue, 29 Jan 2008)
New Revision: 5698
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
Log:
Apply combo ecological styling
Modified: trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
--- trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 13:27:04 UTC (rev 5697)
+++ trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-29 13:34:16 UTC (rev 5698)
@@ -23,8 +23,10 @@
left : 0;
padding-left :3px;
margin : 0px;
+ border-style: groove;
border-width: 1px;
- border-color : #000000;
+ border-left-color: #000000;
+ border-top-color: #000000;
background-position:left top;
background-repeat:repeat-x;
}
@@ -35,9 +37,11 @@
top : 0px;
left : 0;
padding-left :3px;
- margin : 0px;
+ margin : 0px;
+ border-style: groove;
border-width: 1px;
- border-color : #000000;
+ border-left-color: #000000;
+ border-top-color: #000000;
background-position:left top;
background-repeat:repeat-x;
}
@@ -48,9 +52,11 @@
top : 0px;
left : 0;
padding-left :3px;
- margin : 0px;
+ margin : 0px;
+ border-style: groove;
border-width: 1px;
- border-color : #000000;
+ border-left-color: #000000;
+ border-top-color: #000000;
background-position:left top;
background-repeat:repeat-x;
}
@@ -116,7 +122,10 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border : 1px solid #c0c0c0;
+ border-style: groove;
+ border-right-color: #000000;
+ border-bottom-color: #000000;
+ border-width: 1px;
}
.rich-combobox-button-disabled {
@@ -127,7 +136,11 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border : 1px solid #c0c0c0;
+ border-style: groove;
+ border-right-color: #000000;
+ border-bottom-color: #000000;
+ border-width:1px;
+
}
.rich-combobox-button-inactive {
@@ -138,7 +151,11 @@
padding-left : 0px;
padding-right : 0px;
margin : 0px;
- border : 1px solid #c0c0c0;
+ border-style: groove;
+ border-right-color: #000000;
+ border-bottom-color: #000000;
+ border-width:1px;
+
}
.rich-combobox-button-background {
@@ -237,20 +254,26 @@
</u:selector>
<u:selector name=".rich-combobox-button-hovered">
- <u:style name="border-color" skin="selectControlColor"/>
+ <u:style name="border-top-color" skin="selectControlColor"/>
+ <u:style name="border-bottom-color" skin="selectControlColor"/>
+ <u:style name="border-left-color" skin="selectControlColor"/>
+ <u:style name="border-right-color" skin="selectControlColor"/>
</u:selector>
<u:selector name=".rich-combobox-button">
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-top-color" skin="panelBorderColor"/>
+ <u:style name="border-left-color" skin="panelBorderColor"/>
</u:selector>
<u:selector name=".rich-combobox-button-inactive">
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-top-color" skin="panelBorderColor"/>
+ <u:style name="border-left-color" skin="panelBorderColor"/>
</u:selector>
<u:selector name=".rich-combobox-button-disabled">
- <u:style name="border-color" skin="panelBorderColor"/>
- </u:selector>
+ <u:style name="border-top-color" skin="panelBorderColor"/>
+ <u:style name="border-left-color" skin="panelBorderColor"/>
+ </u:selector>
<u:selector name=".rich-combobox-font">
<u:style name="font-size" skin="generalSizeFont"/>
@@ -271,17 +294,20 @@
<u:selector name=".rich-combobox-input">
<u:style name="background-color" skin="controlBackgroundColor"/>
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="border-right-color" skin="panelBorderColor"/>
</u:selector>
<u:selector name=".rich-combobox-input-disabled">
<u:style name="background-color" skin="controlBackgroundColor"/>
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="border-right-color" skin="panelBorderColor"/>
</u:selector>
<u:selector name=".rich-combobox-input-inactive">
<u:style name="background-color" skin="controlBackgroundColor"/>
- <u:style name="border-color" skin="panelBorderColor"/>
+ <u:style name="border-bottom-color" skin="panelBorderColor"/>
+ <u:style name="border-right-color" skin="panelBorderColor"/>
</u:selector>
<u:selector name=".rich-combobox-item">
16 years, 11 months
JBoss Rich Faces SVN: r5697 - trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-01-29 08:27:04 -0500 (Tue, 29 Jan 2008)
New Revision: 5697
Modified:
trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
pickList component
Modified: trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-01-29 13:12:03 UTC (rev 5696)
+++ trunk/sandbox/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-01-29 13:27:04 UTC (rev 5697)
@@ -419,6 +419,7 @@
writer.startElement(HTML.td_ELEM, component);
Object width = component.getAttributes().get("width");
+ writer.writeAttribute(HTML.class_ATTRIBUTE, cellClassName, null);
if (width != null) {
writer.writeAttribute("style", "width: " + HtmlUtil.qualifySize(width.toString()), null);
}
16 years, 11 months
JBoss Rich Faces SVN: r5696 - in trunk/sandbox/ui/pickList/src/main: templates and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vmolotkov
Date: 2008-01-29 08:12:03 -0500 (Tue, 29 Jan 2008)
New Revision: 5696
Added:
trunk/sandbox/ui/pickList/src/main/templates/
trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
Log:
Added: trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx
===================================================================
--- trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx (rev 0)
+++ trunk/sandbox/ui/pickList/src/main/templates/htmlPickList.jspx 2008-01-29 13:12:03 UTC (rev 5696)
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:jsp=" http://ajax4jsf.org/cdk/jsp"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ baseclass="org.richfaces.renderkit.PickListRenderer"
+ class="org.richfaces.renderkit.html.PickListRendererGen"
+ component="org.richfaces.component.UIPickList">
+
+ <jsp:directive.page import="org.richfaces.component.util.HtmlUtil" />
+
+ <h:styles>css/picklist.xcss</h:styles>
+
+ <h:scripts>
+ new org.ajax4jsf.javascript.PrototypeScript(),
+ scripts/ShuttleUtils.js
+ scripts/SelectItem.js,
+ scripts/PickListSI.js,
+ scripts/LayoutManager.js
+ scripts/Control.js,
+ scripts/ListBase.js,
+ scripts/ListShuttle.js,
+ scripts/PickList.js
+ </h:scripts>
+
+ <f:clientId var="clientId"/>
+
+ <table id="#{clientId}" class="rich-list-shuttle #{component.attributes['styleClass']}"
+ cellspacing="0" cellpadding="0"
+ x:passThruWithExclusions="id, class, styleClass">
+ <tbody>
+ <vcp:body>
+ <f:clientId var="clientId"/>
+
+ <jsp:scriptlet>
+ <![CDATA[
+ //SelectionState sourceSelectionState = new SelectionState();
+ //variables.setVariable("selectionState", sourceSelectionState);
+ //String encodedSourceRows = encodeRows(context, component, true);
+
+ //SelectionState targetSelectionState = new SelectionState();
+ //variables.setVariable("selectionState", targetSelectionState);
+ //String encodedTargetRows = encodeRows(context, component, false);
+
+ Boolean switchByClick = (Boolean) component.getAttributes().get("switchByClick");
+ variables.setVariable("switchByClick", switchByClick);
+
+ variables.setVariable("baseClientId", component.getBaseClientId(context));
+ ]]>
+ </jsp:scriptlet>
+
+ <tr>
+ <td>
+ <div class="rich-shuttle-source-items #{component.listClass}">
+ <input id="#{clientId}focusKeeper" type="button" value="" style="width: 1px; position: absolute; left: -32767px;"/>
+
+ <table id="#{clientId}table" cellpadding="0" cellspacing="0" class="rich-shuttle-body">
+ <tbody>
+ <tr>
+ <td style="border:0px;padding : 0px;">
+ <div id="#{clientId}headerBox" class="rich-shuttle-list">
+ <jsp:scriptlet>
+ <![CDATA[
+ String contentContainerStyle = "";
+ String sourceListWidthValue = (String) component.getAttributes().get("sourceListWidth");
+ if (sourceListWidthValue != null) {
+ contentContainerStyle = contentContainerStyle.concat("width:").concat(HtmlUtil.qualifySize(sourceListWidthValue)).concat(";");
+ variables.setVariable("contentContainerStyle", contentContainerStyle);
+ }
+ ]]>
+ </jsp:scriptlet>
+ <jsp:scriptlet>
+ <![CDATA[
+ String listHeightValue = (String) component.getAttributes().get("listsHeight");
+ if (listHeightValue != null) {
+ contentContainerStyle = contentContainerStyle.concat("height:").concat(HtmlUtil.qualifySize(listHeightValue)).concat(";");
+ variables.setVariable("contentContainerStyle", contentContainerStyle);
+ }
+ ]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}contentBox" class="rich-shuttle-list-content" style="#{contentContainerStyle}">
+ <table id="#{clientId}internal_tab" class="rich-shuttle-internal-tab" cellpadding="0" cellspacing="0">
+ <tbody id="#{clientId}tbody">
+ <f:call name="encodeSourceRows" />
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </td>
+ <td style="vertical-align: #{component.moveControlsVerticalAlign};" >
+ <div class="rich-shuttle-controls">
+ <jsp:scriptlet><![CDATA[
+ encodePickListControlsFacets(context, component);
+ ]]></jsp:scriptlet>
+ </div>
+
+ </td>
+ <td>
+ <div class="rich-shuttle-target-items #{component.listClass}" >
+ <input type="hidden" value=":" style="display: none;" name="#{baseClientId}" />
+ <f:call name="encodeHiddenField" />
+ <input id="#{clientId}tlFocusKeeper" type="button" value="" style="width: 1px; position: absolute; left: -32767px;"/>
+
+ <table id="#{clientId}tlTable" cellpadding="0" cellspacing="0" class="rich-shuttle-body">
+ <tbody>
+ <tr>
+ <td style="border:0px;padding : 0px;">
+ <div id="#{clientId}tlHeaderBox" class="rich-shuttle-list">
+ <jsp:scriptlet>
+ <![CDATA[
+ String trContentContainerStyle = "";
+ String targetListWidthValue = (String) component.getAttributes().get("targetListWidth");
+ if (targetListWidthValue != null) {
+ trContentContainerStyle = trContentContainerStyle.concat("width:").concat(HtmlUtil.qualifySize(targetListWidthValue)).concat(";");
+ variables.setVariable("trContentContainerStyle", trContentContainerStyle);
+ }
+ ]]>
+ </jsp:scriptlet>
+ <jsp:scriptlet>
+ <![CDATA[
+ if (listHeightValue != null) {
+ trContentContainerStyle = trContentContainerStyle.concat("height:").concat(HtmlUtil.qualifySize(listHeightValue)).concat(";");
+ variables.setVariable("trContentContainerStyle", trContentContainerStyle);
+ }
+ ]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}tlContentBox" class="rich-shuttle-list-content" style="#{trContentContainerStyle}">
+ <table id="#{clientId}tlInternal_tab" class="rich-shuttle-internal-tab" cellpadding="0" cellspacing="0">
+ <tbody id="#{clientId}tlTbody">
+ <f:call name="encodeTargetRows" />
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </td>
+ </tr>
+ <script type="text/javascript">
+ var clientId = '#{clientId}';
+ Event.onReady(function() {
+ var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
+ var listShuttleCotrolsIdPrefix = [['copy', 'discopy'], ['copyAll', 'discopyAll'], ['remove', 'disremove'], ['removeAll','disremoveAll']];
+
+ var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
+ var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
+
+ var listShuttle = new Richfaces.PickList(new Richfaces.PickList.Target('#{clientId}', '#{clientId}tlInternal_tab', '#{clientId}tlInternal_header_tab', '#{clientId}tlFocusKeeper', undefined, Richfaces.PickList.Target.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
+ new Richfaces.PickList.Source('#{clientId}', '#{clientId}internal_tab', '#{clientId}internal_header_tab', '#{clientId}focusKeeper', undefined, Richfaces.PickList.Source.SelectItem, #{this:getColumnClassesAsJSArray(context, component)}, #{this:getRowClassesAsJSArray(context, component)}),
+ "#{clientId}", listShuttleCotrolsIdPrefix, "#{switchByClick}", sourceLayoutManager, targetLayoutManager, #{this:getAsEventHandler(context, component, "onlistchanged")},
+ "#{clientId}valueKeeper");
+ var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
+ var targetLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
+ sourceLayoutManager.widthSynchronization();
+ targetLayoutManager.widthSynchronization();
+ });
+ </script>
+ </vcp:body>
+ </tbody>
+ </table>
+</f:root>
\ No newline at end of file
16 years, 11 months