Author: lfryc(a)redhat.com
Date: 2011-02-07 09:16:39 -0500 (Mon, 07 Feb 2011)
New Revision: 21505
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java
Log:
rich:panelMenu - added attributes encapsulation (RFPL-950)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java 2011-02-07
14:15:28 UTC (rev 21504)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPanelMenuItemBean.java 2011-02-07
14:16:39 UTC (rev 21505)
@@ -57,6 +57,7 @@
attributes =
Attributes.getComponentAttributesFromFacesConfig(UIPanelMenuItem.class, getClass());
attributes.setAttribute("rendered", true);
+ attributes.setAttribute("selectable", true);
// already defined in source directly
attributes.remove("action");
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java
(rev 0)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java 2011-02-07
14:16:39 UTC (rev 21505)
@@ -0,0 +1,187 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richPanelMenu;
+
+import org.richfaces.PanelMenuMode;
+import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
+
+/**
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class PanelMenuAttributes extends AbstractComponentAttributes {
+ public void setBubbleSelection(Boolean bubbleSelection) {
+ setProperty("bubbleSelection", bubbleSelection);
+ }
+
+ public void setCollapseEvent(String collapseEvent) {
+ setProperty("collapseEvent", collapseEvent);
+ }
+
+ public void setDisabled(Boolean disabled) {
+ setProperty("disabled", disabled);
+ }
+
+ public void setExpandEvent(String expandEvent) {
+ setProperty("expandEvent", expandEvent);
+ }
+
+ public void setExpandSingle(String expandSingle) {
+ setProperty("expandSingle", expandSingle);
+ }
+
+ public void setGroupClass(String groupClass) {
+ setProperty("groupClass", groupClass);
+ }
+
+ public void setGroupCollapsedLeftIcon(String groupCollapsedLeftIcon) {
+ setProperty("groupCollapsedLeftIcon", groupCollapsedLeftIcon);
+ }
+
+ public void setGroupCollapsedRightIcon(String groupCollapsedRightIcon) {
+ setProperty("groupCollapsedRightIcon", groupCollapsedRightIcon);
+ }
+
+ public void setGroupDisabledClass(String groupDisabledClass) {
+ setProperty("groupDisabledClass", groupDisabledClass);
+ }
+
+ public void setGroupDisabledLeftIcon(String groupDisabledLeftIcon) {
+ setProperty("groupDisabledLeftIcon", groupDisabledLeftIcon);
+ }
+
+ public void setGroupDisabledRightIcon(String groupDisabledRightIcon) {
+ setProperty("groupDisabledRightIcon", groupDisabledRightIcon);
+ }
+
+ public void setGroupExpandedLeftIcon(String groupExpandedLeftIcon) {
+ setProperty("groupExpandedLeftIcon", groupExpandedLeftIcon);
+ }
+
+ public void setGroupExpandedRightIcon(String groupExpandedRightIcon) {
+ setProperty("groupExpandedRightIcon", groupExpandedRightIcon);
+ }
+
+ public void setGroupMode(PanelMenuMode groupMode) {
+ setProperty("groupMode", groupMode);
+ }
+
+ public void setItemClass(String itemClass) {
+ setProperty("itemClass", itemClass);
+ }
+
+ public void setItemDisabledClass(String itemDisabledClass) {
+ setProperty("itemDisabledClass", itemDisabledClass);
+ }
+
+ public void setItemDisabledLeftIcon(String itemDisabledLeftIcon) {
+ setProperty("itemDisabledLeftIcon", itemDisabledLeftIcon);
+ }
+
+ public void setItemDisabledRightIcon(String itemDisabledRightIcon) {
+ setProperty("itemDisabledRightIcon", itemDisabledRightIcon);
+ }
+
+ public void setLeftIcon(String leftIcon) {
+ setProperty("leftIcon", leftIcon);
+ }
+
+ public void setItemMode(PanelMenuMode itemMode) {
+ setProperty("itemMode", itemMode);
+ }
+
+ public void setItemRightIcon(String itemRightIcon) {
+ setProperty("itemRightIcon", itemRightIcon);
+ }
+
+ public void setRendered(Boolean rendered) {
+ setProperty("rendered", rendered);
+ }
+
+ public void setStyle(String style) {
+ setProperty("style", style);
+ }
+
+ public void setStyleClass(String styleClass) {
+ setProperty("styleClass", styleClass);
+ }
+
+ public void setTopGroupClass(String topGroupClass) {
+ setProperty("topGroupClass", topGroupClass);
+ }
+
+ public void setTopGroupCollapsedLeftIcon(String topGroupCollapsedLeftIcon) {
+ setProperty("topGroupCollapsedLeftIcon", topGroupCollapsedLeftIcon);
+ }
+
+ public void setTopGroupCollapsedRightIcon(String topGroupCollapsedRightIcon) {
+ setProperty("topGroupCollapsedRightIcon", topGroupCollapsedRightIcon);
+ }
+
+ public void setTopGroupDisabledClass(String topGroupDisabledClass) {
+ setProperty("topGroupDisabledClass", topGroupDisabledClass);
+ }
+
+ public void setTopGroupDisabledLeftIcon(String topGroupDisabledLeftIcon) {
+ setProperty("topGroupDisabledLeftIcon", topGroupDisabledLeftIcon);
+ }
+
+ public void setTopGroupDisabledRightIcon(String topGroupDisabledRightIcon) {
+ setProperty("topGroupDisabledRightIcon", topGroupDisabledRightIcon);
+ }
+
+ public void setTopGroupExpandedLeftIcon(String topGroupExpandedLeftIcon) {
+ setProperty("topGroupExpandedLeftIcon", topGroupExpandedLeftIcon);
+ }
+
+ public void setTopGroupExpandedRightIcon(String topGroupExpandedRightIcon) {
+ setProperty("topGroupExpandedRightIcon", topGroupExpandedRightIcon);
+ }
+
+ public void setTopItemClass(String topItemClass) {
+ setProperty("topItemClass", topItemClass);
+ }
+
+ public void setTopItemDisabledClass(String topItemDisabledClass) {
+ setProperty("topItemDisabledClass", topItemDisabledClass);
+ }
+
+ public void setTopItemDisabledLeftIcon(String topItemDisabledLeftIcon) {
+ setProperty("topItemDisabledLeftIcon", topItemDisabledLeftIcon);
+ }
+
+ public void setTopItemDisabledRightIcon(String topItemDisabledRightIcon) {
+ setProperty("topItemDisabledRightIcon", topItemDisabledRightIcon);
+ }
+
+ public void setTopItemLeftIcon(String topItemLeftIcon) {
+ setProperty("topItemLeftIcon", topItemLeftIcon);
+ }
+
+ public void setTopItemRightIcon(String topItemRightIcon) {
+ setProperty("topItemRightIcon", topItemRightIcon);
+ }
+
+ public void setWidth(Integer width) {
+ setProperty("width", width);
+ }
+}
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java
(rev 0)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java 2011-02-07
14:16:39 UTC (rev 21505)
@@ -0,0 +1,123 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richPanelMenuGroup;
+
+import org.richfaces.PanelMenuMode;
+import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
+
+/**
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class PanelMenuGroupAttributes extends AbstractComponentAttributes {
+ public void setBypassUpdates(Boolean bypassUpdates) {
+ setProperty("bypassUpdates", bypassUpdates);
+ }
+
+ public void setCollapseEvent(String collapseEvent) {
+ setProperty("collapseEvent", collapseEvent);
+ }
+
+ public void setData(String data) {
+ setProperty("data", data);
+ }
+
+ public void setDisabled(Boolean disabled) {
+ setProperty("disabled", disabled);
+ }
+
+ public void setDisabledClass(String disabledClass) {
+ setProperty("disabledClass", disabledClass);
+ }
+
+ public void setExecute(String execute) {
+ setProperty("execute", execute);
+ }
+
+ public void setExpandEvent(String expandEvent) {
+ setProperty("expandEvent", expandEvent);
+ }
+
+ public void setExpanded(Boolean expanded) {
+ setProperty("expanded", expanded);
+ }
+
+ public void setImmediate(Boolean immediate) {
+ setProperty("immediate", immediate);
+ }
+
+ public void setLeftCollapsedIcon(String leftCollapsedIcon) {
+ setProperty("leftCollapsedIcon", leftCollapsedIcon);
+ }
+
+ public void setLeftDisabledIcon(String leftDisabledIcon) {
+ setProperty("leftDisabledIcon", leftDisabledIcon);
+ }
+
+ public void setLeftExpandedIcon(String leftExpandedIcon) {
+ setProperty("leftExpandedIcon", leftExpandedIcon);
+ }
+
+ public void setLimitRender(String limitRender) {
+ setProperty("limitRender", limitRender);
+ }
+
+ public void setMode(PanelMenuMode mode) {
+ setProperty("mode", mode);
+ }
+
+ public void setRender(String render) {
+ setProperty("render", render);
+ }
+
+ public void setRendered(Boolean rendered) {
+ setProperty("rendered", rendered);
+ }
+
+ public void setRightCollapsedIcon(String rightCollapsedIcon) {
+ setProperty("rightCollapsedIcon", rightCollapsedIcon);
+ }
+
+ public void setRightDisabledIcon(String rightDisabledIcon) {
+ setProperty("rightDisabledIcon", rightDisabledIcon);
+ }
+
+ public void setRightExpandedIcon(String rightExpandedIcon) {
+ setProperty("rightExpandedIcon", rightExpandedIcon);
+ }
+
+ public void setSelectable(Boolean selectable) {
+ setProperty("selectable", selectable);
+ }
+
+ public void setStatus(String status) {
+ setProperty("status", status);
+ }
+
+ public void setStyle (String style) {
+ setProperty("style", style);
+ }
+
+ public void setStyleClass(String styleClass) {
+ setProperty("styleClass", styleClass);
+ }
+}
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java
(rev 0)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java 2011-02-07
14:16:39 UTC (rev 21505)
@@ -0,0 +1,107 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richPanelMenuItem;
+
+import org.richfaces.PanelMenuMode;
+import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
+
+/**
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class PanelMenuItemAttributes extends AbstractComponentAttributes {
+ public void setBypassUpdates(Boolean bypassUpdates) {
+ setProperty("bypassUpdates", bypassUpdates);
+ }
+
+ public void setData(String data) {
+ setProperty("data", data);
+ }
+
+ public void setDisabled(Boolean disabled) {
+ setProperty("disabled", disabled);
+ }
+
+ public void setDisabledClass(String disabledClass) {
+ setProperty("disabledClass", disabledClass);
+ }
+
+ public void setExecute(String execute) {
+ setProperty("execute", execute);
+ }
+
+ public void setImmediate(Boolean immediate) {
+ setProperty("immediate", immediate);
+ }
+
+ public void setLeftDisabledIcon(String leftDisabledIcon) {
+ setProperty("leftDisabledIcon", leftDisabledIcon);
+ }
+
+ public void setLeftExpandedIcon(String leftExpandedIcon) {
+ setProperty("leftIcon", leftExpandedIcon);
+ }
+
+ public void setLeftIconClass(String leftIconClass) {
+ setProperty("leftIconClass", leftIconClass);
+ }
+
+ public void setLimitRender(String limitRender) {
+ setProperty("limitRender", limitRender);
+ }
+
+ public void setMode(PanelMenuMode mode) {
+ setProperty("mode", mode);
+ }
+
+ public void setRender(String render) {
+ setProperty("render", render);
+ }
+
+ public void setRendered(Boolean rendered) {
+ setProperty("rendered", rendered);
+ }
+
+ public void setRightDisabledIcon(String rightDisabledIcon) {
+ setProperty("rightDisabledIcon", rightDisabledIcon);
+ }
+
+ public void setRightIconClass(String rightIconClass) {
+ setProperty("rightIconClass", rightIconClass);
+ }
+
+ public void setSelectable(Boolean selectable) {
+ setProperty("selectable", selectable);
+ }
+
+ public void setStatus(String status) {
+ setProperty("status", status);
+ }
+
+ public void setStyle (String style) {
+ setProperty("style", style);
+ }
+
+ public void setStyleClass(String styleClass) {
+ setProperty("styleClass", styleClass);
+ }
+}