From richfaces-svn-commits at lists.jboss.org Fri Sep 3 10:08:47 2010 Content-Type: multipart/mixed; boundary="===============7776286093610437505==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r19113 - in branches/RF-7944: examples/output-demo/src/main/webapp/resources/tests and 5 other directories. Date: Fri, 03 Sep 2010 10:08:46 -0400 Message-ID: <201009031408.o83E8kQK003153@svn01.web.mwc.hst.phx2.redhat.com> --===============7776286093610437505== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: Alex.Kolonitsky Date: 2010-09-03 10:08:46 -0400 (Fri, 03 Sep 2010) New Revision: 19113 Added: branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tab.xhtml branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tabPanel.xht= ml branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/ri= chfaces-accordion-item-qunit.js branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/ri= chfaces-tab-panel-qunit.js branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/ri= chfaces-tab-qunit.js branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderAlignme= nt.java branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderPositio= n.java branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/Abst= ractTabPanel.java branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/html= /HtmlTab.java branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/html= /HtmlTabPanel.java branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/html= /TabPanelRenderer.java branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/html= /TabRenderer.java branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UICo= llapsiblePanelTest.java branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UITo= gglePanelTitledItemTest.java Log: RF-7944 Tab Panel Component Added: branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tab.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tab.xhtml = (rev 0) +++ branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tab.xhtml 2= 010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + Tab Example + Tab Example + + +

Page

+ + + + + + +
+ + + +
+
+
+
+ +
+
+
+
+
+ 3D""/ +
+
Tab = name 1 Active
+
+ 3D""/ +
+
+
+
+
+
+
+
+ 3D""/ +
+
Tab = name 1 Inactive
+
+ 3D""/ +
+
+
+
+
+
+
+
+ 3D""/ +
+
Tab = name 1 Disabled
+
+ 3D""/ +
+
+
+
+
+
+ +
+
+
+
+
+ 3D"" +
+
Tab = name 2 Active
+
+ 3D"" +
+
+
+
+
+
+
+
+ 3D"" +
+
Tab = name 2 Inactive
+
+ 3D"" +
+
+
+
+
+
+
+
+ 3D"" +
+
Tab = name 2 Disabled
+
+ 3D"" +
+
+
+
+
+
+ +
+
+
+
+
+ 3D"" +
+
Tab = name 3 Active
+
+ 3D"" +
+
+
+
+
+
+
+
+ 3D"" +
+
Tab = name 3 Inactive
+
+ 3D"" +
+
+
+
+
+
+
+
+ 3D"" +
+
Tab = name 3 Disabled
+
+ 3D"" +
+
+
+
+
+
+ +
+
+
+ +
=C2= =AB
+
=E2=86= =93
+
= =C2=BB
+
+ +
+ +
+
+ + Content 01 will be here. +
+
+ + Content 02 will be here. +
+
+ + Content 03 will be here. +
+
+
+ +
+ +

Result

+
+
    + +
    Main Test Div
    +
    + +
    +
    + + + Added: branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tabPanel= .xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tabPanel.xh= tml (rev 0) +++ branches/RF-7944/examples/output-demo/src/main/webapp/qunit/tabPanel.xh= tml 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + TABPANEL Example + TABPANEL Example + + +

    Page

    + + + + + + + + +

    Result

    +
    +
      + +
      Main Test Div
      + +
      + +
      +
      + + + Added: branches/RF-7944/examples/output-demo/src/main/webapp/resources/test= s/richfaces-accordion-item-qunit.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-accordion-item-qunit.js (rev 0) +++ branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-accordion-item-qunit.js 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,76 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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. + */ + +RichFaces.QUnit.run(function() { + module("richfaces-accordion-item"); + + var ACCORDION_ITEM_ID =3D "f:panel"; + + test("RichFaces.ui.AccordionItem test constructor", function () { + var c =3D RichFaces.$(ACCORDION_ITEM_ID); + + ok(c instanceof RichFaces.ui.AccordionItem, "inctance of RichFaces= .ui.AccordionItem"); + equals(c.id, ACCORDION_ITEM_ID, "id"); + // TODO other params + + }); + + test("RichFaces.ui.AccordionItem test public api", function () { + var c =3D RichFaces.$(ACCORDION_ITEM_ID); + + var PUBLIC_API =3D [/* ... */]; + + for (i in PUBLIC_API) { + var funcName =3D PUBLIC_API[i]; + ok(c.[funcName], funcName + "present in component") + // TODO check other functions + check is it function + } + }); + + test("RichFaces.ui.AccordionItem test events", function () { + var componentId =3D ACCORDION_ITEM_ID; + var c =3D RichFaces.$(componentId); + + expect(5); + var beforeitemchngeHandler =3D function (event, comp, data) { + ok(true, "beforeitemchnge handler invouked"); + + same(data.id, componentId, "component id"); + same(data.oldItem.getName(), c.items[0].getName(), "old item"); + same(data.newItem.getName(), c.items[1].getName(), "new item"); + + return true; + }; + + var beforeitemchngeHandlerWrapper =3D RichFaces.Event.bindById(com= ponentId, "beforeitemchange", beforeitemchngeHandler); + + var itemchangeHandler =3D handler("itemchnge handler invouked", un= defined); + var itemchangeHandlerWrapper =3D RichFaces.Event.bindById(componen= tId, "itemchange", itemchangeHandler); + + c.switchToItem("name2"); + + RichFaces.Event.unbindById(componentId, "beforeitemchange", before= itemchngeHandlerWrapper); + RichFaces.Event.unbindById(componentId, "itemchange", itemchangeHa= ndlerWrapper); + + c.switchToItem("name1"); + }); +}); Added: branches/RF-7944/examples/output-demo/src/main/webapp/resources/test= s/richfaces-tab-panel-qunit.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-tab-panel-qunit.js (rev 0) +++ branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-tab-panel-qunit.js 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,76 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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. + */ + +RichFaces.QUnit.run(function() { + module("richfaces-tab-panel"); + + var TAB_PANEL_ID =3D "f:panel"; + + test("RichFaces.ui.TabPanel test constructor", function () { + var c =3D RichFaces.$(TAB_PANEL_ID); + + ok(c instanceof RichFaces.ui.TabPanel, "inctance of RichFaces.ui.T= abPanel"); + equals(c.id, TAB_PANEL_ID, "id"); + // TODO other params + + }); + + test("RichFaces.ui.TabPanel test public api", function () { + var c =3D RichFaces.$(TAB_PANEL_ID); + + var PUBLIC_API =3D [/* ... */]; + + for (i in PUBLIC_API) { + var funcName =3D PUBLIC_API[i]; + ok(c.[funcName], funcName + "present in component") + // TODO check other functions + check is it function + } + }); + + test("RichFaces.ui.TabPanel test events", function () { + var componentId =3D TAB_PANEL_ID; + var c =3D RichFaces.$(componentId); + + expect(5); + var beforeitemchngeHandler =3D function (event, comp, data) { + ok(true, "beforeitemchnge handler invouked"); + + same(data.id, componentId, "component id"); + same(data.oldItem.getName(), c.items[0].getName(), "old item"); + same(data.newItem.getName(), c.items[1].getName(), "new item"); + + return true; + }; + + var beforeitemchngeHandlerWrapper =3D RichFaces.Event.bindById(com= ponentId, "beforeitemchange", beforeitemchngeHandler); + + var itemchangeHandler =3D handler("itemchnge handler invouked", un= defined); + var itemchangeHandlerWrapper =3D RichFaces.Event.bindById(componen= tId, "itemchange", itemchangeHandler); + + c.switchToItem("name2"); + + RichFaces.Event.unbindById(componentId, "beforeitemchange", before= itemchngeHandlerWrapper); + RichFaces.Event.unbindById(componentId, "itemchange", itemchangeHa= ndlerWrapper); + + c.switchToItem("name1"); + }); +}); Added: branches/RF-7944/examples/output-demo/src/main/webapp/resources/test= s/richfaces-tab-qunit.js =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-tab-qunit.js (rev 0) +++ branches/RF-7944/examples/output-demo/src/main/webapp/resources/tests/r= ichfaces-tab-qunit.js 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,76 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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. + */ + +RichFaces.QUnit.run(function() { + module("richfaces-tab"); + + var TAB_ID =3D "f:panel"; + + test("RichFaces.ui.Tab test constructor", function () { + var c =3D RichFaces.$(TAB_ID); + + ok(c instanceof RichFaces.ui.Tab, "inctance of RichFaces.ui.Tab"); + equals(c.id, TAB_ID, "id"); + // TODO other params + + }); + + test("RichFaces.ui.Tab test public api", function () { + var c =3D RichFaces.$(TAB_ID); + + var PUBLIC_API =3D [/* ... */]; + + for (var i in PUBLIC_API) { + var funcName =3D PUBLIC_API[i]; + ok(c.[funcName], funcName + "present in component"); + // TODO check other functions + check is it function + } + }); + + test("RichFaces.ui.Tab test events", function () { + var componentId =3D TAB_ID; + var c =3D RichFaces.$(componentId); + + expect(5); + var beforeitemchngeHandler =3D function (event, comp, data) { + ok(true, "beforeitemchnge handler invouked"); + + same(data.id, componentId, "component id"); + same(data.oldItem.getName(), c.items[0].getName(), "old item"); + same(data.newItem.getName(), c.items[1].getName(), "new item"); + + return true; + }; + + var beforeitemchngeHandlerWrapper =3D RichFaces.Event.bindById(com= ponentId, "beforeitemchange", beforeitemchngeHandler); + + var itemchangeHandler =3D handler("itemchnge handler invouked", un= defined); + var itemchangeHandlerWrapper =3D RichFaces.Event.bindById(componen= tId, "itemchange", itemchangeHandler); + + c.switchToItem("name2"); + + RichFaces.Event.unbindById(componentId, "beforeitemchange", before= itemchngeHandlerWrapper); + RichFaces.Event.unbindById(componentId, "itemchange", itemchangeHa= ndlerWrapper); + + c.switchToItem("name1"); + }); +}); Added: branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderAli= gnment.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderAlignm= ent.java (rev 0) +++ branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderAlignm= ent.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,9 @@ +package org.richfaces; + +/** + * @author akolonitsky + * @since Aug 24, 2010 + */ +public enum HeaderAlignment { + left, center, right, bottom, top +} Added: branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderPos= ition.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderPositi= on.java (rev 0) +++ branches/RF-7944/ui/output/api/src/main/java/org/richfaces/HeaderPositi= on.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,9 @@ +package org.richfaces; + +/** + * @author akolonitsky + * @since Aug 24, 2010 + */ +public enum HeaderPosition { + top, left, right, bottom +} Added: branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/= AbstractTabPanel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/Abs= tractTabPanel.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/Abs= tractTabPanel.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,48 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.component; + + + +/** + * @author akolonitsky + * @since 2010-08-24 + */ +public abstract class AbstractTabPanel extends UITogglePanel { + + public static final String COMPONENT_TYPE =3D "org.richfaces.TabPanel"; + + public static final String COMPONENT_FAMILY =3D "org.richfaces.TabPane= l"; + + protected AbstractTabPanel() { + setRendererType("org.richfaces.TabPanel"); + } + + @Override + public String getFamily() { + return COMPONENT_FAMILY; + } + + + +} Added: branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/= html/HtmlTab.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/htm= l/HtmlTab.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/htm= l/HtmlTab.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,304 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.component.html; + +import org.richfaces.component.UITogglePanelTitledItem; +import javax.faces.component.behavior.ClientBehaviorHolder; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +/** + * @author akolonitsky + * @since 2010-08-27 + */ +public class HtmlTab extends UITogglePanelTitledItem implements ClientBeha= viorHolder { + + public static final String COMPONENT_TYPE =3D "org.richfaces.TogglePan= elTitledItem"; + + public static final String COMPONENT_FAMILY =3D "org.richfaces.ToggleP= anelTitledItem"; + + private static final Collection EVENT_NAMES =3D Collections.un= modifiableCollection(Arrays.asList( + "headerclick", + "headerdblclick", + "headermousedown", + "headermousemove", + "headermouseup", + "enter", + "leave", + "click", + "dblclick", + "mousedown", + "mousemove", + "mouseout", + "mouseover", + "mouseup" + )); + + + public enum PropertyKeys { + headerClassActive, + headerClassDisabled, + headerClassInactive, + headerClass, + headerStyle, + contentClass, + onheaderclick, + onheaderdblclick, + onheadermousedown, + onheadermousemove, + onheadermouseup, + onenter, + onleave, + lang, + title, + style, + styleClass, + dir, + onclick, + ondblclick, + onmousedown, + onmousemove, + onmouseout, + onmouseover, + onmouseup + } + + public HtmlTab() { + setRendererType("org.richfaces.Tab"); + } + + @Override + public String getFamily() { + return COMPONENT_FAMILY; + } + + public String getHeaderClassActive() { + return (String) getStateHelper().eval(PropertyKeys.headerClassActi= ve); + } + + public void setHeaderClassActive(String headerClassActive) { + getStateHelper().put(PropertyKeys.headerClassActive, headerClassAc= tive); + } + + public String getHeaderClassDisabled() { + return (String) getStateHelper().eval(PropertyKeys.headerClassDisa= bled); + } + + public void setHeaderClassDisabled(String headerClassDisabled) { + getStateHelper().put(PropertyKeys.headerClassDisabled, headerClass= Disabled); + } + + public String getHeaderClassInactive() { + return (String) getStateHelper().eval(PropertyKeys.headerClassInac= tive); + } + + public void setHeaderClassInactive(String headerClassInactive) { + getStateHelper().put(PropertyKeys.headerClassInactive, headerClass= Inactive); + } + + public String getHeaderClass() { + return (String) getStateHelper().eval(PropertyKeys.headerClass); + } + + public void setHeaderClass(String headerClass) { + getStateHelper().put(PropertyKeys.headerClass, headerClass); + } + + public String getHeaderStyle() { + return (String) getStateHelper().eval(PropertyKeys.headerStyle); + } + + public void setHeaderStyle(String headerStyle) { + getStateHelper().put(PropertyKeys.headerStyle, headerStyle); + } + + public String getContentClass() { + return (String) getStateHelper().eval(PropertyKeys.contentClass); + } + + public void setContentClass(String contentClass) { + getStateHelper().put(PropertyKeys.contentClass, contentClass); + } + + public String getOnheaderclick() { + return (String) getStateHelper().eval(PropertyKeys.onheaderclick); + } + + public void setOnheaderclick(String onheaderclick) { + getStateHelper().put(PropertyKeys.onheaderclick, onheaderclick); + } + + public String getOnheaderdblclick() { + return (String) getStateHelper().eval(PropertyKeys.onheaderdblclic= k); + } + + public void setOnheaderdblclick(String onheaderdblclick) { + getStateHelper().put(PropertyKeys.onheaderdblclick, onheaderdblcli= ck); + } + + public String getOnheadermousedown() { + return (String) getStateHelper().eval(PropertyKeys.onheadermousedo= wn); + } + + public void setOnheadermousedown(String onheadermousedown) { + getStateHelper().put(PropertyKeys.onheadermousedown, onheadermouse= down); + } + + public String getOnheadermousemove() { + return (String) getStateHelper().eval(PropertyKeys.onheadermousemo= ve); + } + + public void setOnheadermousemove(String onheadermousemove) { + getStateHelper().put(PropertyKeys.onheadermousemove, onheadermouse= move); + } + + public String getOnheadermouseup() { + return (String) getStateHelper().eval(PropertyKeys.onheadermouseup= ); + } + + public void setOnheadermouseup(String onheadermouseup) { + getStateHelper().put(PropertyKeys.onheadermouseup, onheadermouseup= ); + } + + public String getOnenter() { + return (String) getStateHelper().eval(PropertyKeys.onenter); + } + + public void setOnenter(String onenter) { + getStateHelper().put(PropertyKeys.onenter, onenter); + } + + public String getOnleave() { + return (String) getStateHelper().eval(PropertyKeys.onleave); + } + + public void setOnleave(String onleave) { + getStateHelper().put(PropertyKeys.onleave, onleave); + } + + public String getLang() { + return (String) getStateHelper().eval(PropertyKeys.lang); + } + + public void setLang(String lang) { + getStateHelper().put(PropertyKeys.lang, lang); + } + + public String getTitle() { + return (String) getStateHelper().eval(PropertyKeys.title); + } + + public void setTitle(String title) { + getStateHelper().put(PropertyKeys.title, title); + } + + public String getStyle() { + return (String) getStateHelper().eval(PropertyKeys.style); + } + + public void setStyle(String style) { + getStateHelper().put(PropertyKeys.style, style); + } + + public String getStyleClass() { + return (String) getStateHelper().eval(PropertyKeys.styleClass); + } + + public void setStyleClass(String styleClass) { + getStateHelper().put(PropertyKeys.styleClass, styleClass); + } + + public String getDir() { + return (String) getStateHelper().eval(PropertyKeys.dir); + } + + public void setDir(String dir) { + getStateHelper().put(PropertyKeys.dir, dir); + } + + public String getOnclick() { + return (String) getStateHelper().eval(PropertyKeys.onclick); + } + + public void setOnclick(String onclick) { + getStateHelper().put(PropertyKeys.onclick, onclick); + } + + public String getOndblclick() { + return (String) getStateHelper().eval(PropertyKeys.ondblclick); + } + + public void setOndblclick(String ondblclick) { + getStateHelper().put(PropertyKeys.ondblclick, ondblclick); + } + + public String getOnmousedown() { + return (String) getStateHelper().eval(PropertyKeys.onmousedown); + } + + public void setOnmousedown(String onmousedown) { + getStateHelper().put(PropertyKeys.onmousedown, onmousedown); + } + + public String getOnmousemove() { + return (String) getStateHelper().eval(PropertyKeys.onmousemove); + } + + public void setOnmousemove(String onmousemove) { + getStateHelper().put(PropertyKeys.onmousemove, onmousemove); + } + + public String getOnmouseout() { + return (String) getStateHelper().eval(PropertyKeys.onmouseout); + } + + public void setOnmouseout(String onmouseout) { + getStateHelper().put(PropertyKeys.onmouseout, onmouseout); + } + + public String getOnmouseover() { + return (String) getStateHelper().eval(PropertyKeys.onmouseover); + } + + public void setOnmouseover(String onmouseover) { + getStateHelper().put(PropertyKeys.onmouseover, onmouseover); + } + + public String getOnmouseup() { + return (String) getStateHelper().eval(PropertyKeys.onmouseup); + } + + public void setOnmouseup(String onmouseup) { + getStateHelper().put(PropertyKeys.onmouseup, onmouseup); + } + + + + @Override + public Collection getEventNames() { + return EVENT_NAMES; + } +} + Added: branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/= html/HtmlTabPanel.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/htm= l/HtmlTabPanel.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/component/htm= l/HtmlTabPanel.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,265 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.component.html; + +import org.richfaces.HeaderPosition; +import org.richfaces.HeaderAlignment; +import org.richfaces.component.AbstractTabPanel; +import javax.faces.component.behavior.ClientBehaviorHolder; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +/** + * @author akolonitsky + * @since 2010-08-27 + */ +public class HtmlTabPanel extends AbstractTabPanel implements ClientBehavi= orHolder { + + public static final String COMPONENT_TYPE =3D "org.richfaces.TabPanel"; + + public static final String COMPONENT_FAMILY =3D "org.richfaces.TabPane= l"; + + private static final Collection EVENT_NAMES =3D Collections.un= modifiableCollection(Arrays.asList( + "itemchange", + "beforeitemchange", + "click", + "dblclick", + "mousedown", + "mousemove", + "mouseout", + "mouseover", + "mouseup" + )); + + + public enum PropertyKeys { + headerPosition, + headerAlignment, + tabHeaderClassActive, + tabHeaderClassDisabled, + tabHeaderClassInactive, + tabContentClass, + tabHeaderClass, + onitemchange, + onbeforeitemchange, + lang, + title, + style, + styleClass, + dir, + onclick, + ondblclick, + onmousedown, + onmousemove, + onmouseout, + onmouseover, + onmouseup + } + + public HtmlTabPanel() { + setRendererType("org.richfaces.TabPanel"); + } + + @Override + public String getFamily() { + return COMPONENT_FAMILY; + } + + public HeaderPosition getHeaderPosition() { + return (HeaderPosition) getStateHelper().eval(PropertyKeys.headerP= osition); + } + + public void setHeaderPosition(HeaderPosition headerPosition) { + getStateHelper().put(PropertyKeys.headerPosition, headerPosition); + } + + public HeaderAlignment getHeaderAlignment() { + return (HeaderAlignment) getStateHelper().eval(PropertyKeys.header= Alignment); + } + + public void setHeaderAlignment(HeaderAlignment headerAlignment) { + getStateHelper().put(PropertyKeys.headerAlignment, headerAlignment= ); + } + + public String getTabHeaderClassActive() { + return (String) getStateHelper().eval(PropertyKeys.tabHeaderClassA= ctive); + } + + public void setTabHeaderClassActive(String tabHeaderClassActive) { + getStateHelper().put(PropertyKeys.tabHeaderClassActive, tabHeaderC= lassActive); + } + + public String getTabHeaderClassDisabled() { + return (String) getStateHelper().eval(PropertyKeys.tabHeaderClassD= isabled); + } + + public void setTabHeaderClassDisabled(String tabHeaderClassDisabled) { + getStateHelper().put(PropertyKeys.tabHeaderClassDisabled, tabHeade= rClassDisabled); + } + + public String getTabHeaderClassInactive() { + return (String) getStateHelper().eval(PropertyKeys.tabHeaderClassI= nactive); + } + + public void setTabHeaderClassInactive(String tabHeaderClassInactive) { + getStateHelper().put(PropertyKeys.tabHeaderClassInactive, tabHeade= rClassInactive); + } + + public String getTabContentClass() { + return (String) getStateHelper().eval(PropertyKeys.tabContentClass= ); + } + + public void setTabContentClass(String tabContentClass) { + getStateHelper().put(PropertyKeys.tabContentClass, tabContentClass= ); + } + + public String getTabHeaderClass() { + return (String) getStateHelper().eval(PropertyKeys.tabHeaderClass); + } + + public void setTabHeaderClass(String tabHeaderClass) { + getStateHelper().put(PropertyKeys.tabHeaderClass, tabHeaderClass); + } + + public String getOnitemchange() { + return (String) getStateHelper().eval(PropertyKeys.onitemchange); + } + + public void setOnitemchange(String onitemchange) { + getStateHelper().put(PropertyKeys.onitemchange, onitemchange); + } + + public String getOnbeforeitemchange() { + return (String) getStateHelper().eval(PropertyKeys.onbeforeitemcha= nge); + } + + public void setOnbeforeitemchange(String onbeforeitemchange) { + getStateHelper().put(PropertyKeys.onbeforeitemchange, onbeforeitem= change); + } + + public String getLang() { + return (String) getStateHelper().eval(PropertyKeys.lang); + } + + public void setLang(String lang) { + getStateHelper().put(PropertyKeys.lang, lang); + } + + public String getTitle() { + return (String) getStateHelper().eval(PropertyKeys.title); + } + + public void setTitle(String title) { + getStateHelper().put(PropertyKeys.title, title); + } + + public String getStyle() { + return (String) getStateHelper().eval(PropertyKeys.style); + } + + public void setStyle(String style) { + getStateHelper().put(PropertyKeys.style, style); + } + + public String getStyleClass() { + return (String) getStateHelper().eval(PropertyKeys.styleClass); + } + + public void setStyleClass(String styleClass) { + getStateHelper().put(PropertyKeys.styleClass, styleClass); + } + + public String getDir() { + return (String) getStateHelper().eval(PropertyKeys.dir); + } + + public void setDir(String dir) { + getStateHelper().put(PropertyKeys.dir, dir); + } + + public String getOnclick() { + return (String) getStateHelper().eval(PropertyKeys.onclick); + } + + public void setOnclick(String onclick) { + getStateHelper().put(PropertyKeys.onclick, onclick); + } + + public String getOndblclick() { + return (String) getStateHelper().eval(PropertyKeys.ondblclick); + } + + public void setOndblclick(String ondblclick) { + getStateHelper().put(PropertyKeys.ondblclick, ondblclick); + } + + public String getOnmousedown() { + return (String) getStateHelper().eval(PropertyKeys.onmousedown); + } + + public void setOnmousedown(String onmousedown) { + getStateHelper().put(PropertyKeys.onmousedown, onmousedown); + } + + public String getOnmousemove() { + return (String) getStateHelper().eval(PropertyKeys.onmousemove); + } + + public void setOnmousemove(String onmousemove) { + getStateHelper().put(PropertyKeys.onmousemove, onmousemove); + } + + public String getOnmouseout() { + return (String) getStateHelper().eval(PropertyKeys.onmouseout); + } + + public void setOnmouseout(String onmouseout) { + getStateHelper().put(PropertyKeys.onmouseout, onmouseout); + } + + public String getOnmouseover() { + return (String) getStateHelper().eval(PropertyKeys.onmouseover); + } + + public void setOnmouseover(String onmouseover) { + getStateHelper().put(PropertyKeys.onmouseover, onmouseover); + } + + public String getOnmouseup() { + return (String) getStateHelper().eval(PropertyKeys.onmouseup); + } + + public void setOnmouseup(String onmouseup) { + getStateHelper().put(PropertyKeys.onmouseup, onmouseup); + } + + + + @Override + public Collection getEventNames() { + return EVENT_NAMES; + } +} + Added: branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/= html/TabPanelRenderer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/htm= l/TabPanelRenderer.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/htm= l/TabPanelRenderer.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,61 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.renderkit.html; + +import org.richfaces.component.AbstractTabPanel; + +import javax.faces.application.ResourceDependencies; +import javax.faces.application.ResourceDependency; +import javax.faces.component.UIComponent; +import javax.faces.context.FacesContext; +import javax.faces.context.ResponseWriter; +import java.io.IOException; + +/** + * @author akolonitsky + * @since 2010-08-24 + */ +(a)ResourceDependencies( { // TODO review + @ResourceDependency(library =3D "javax.faces", name =3D "jsf.js"), + @ResourceDependency(name =3D "jquery.js"), + @ResourceDependency(name =3D "richfaces.js"), + @ResourceDependency(name =3D "richfaces-base-component.js"), + @ResourceDependency(name =3D "script/TabPanel.js") }) +public class TabPanelRenderer extends TogglePanelRenderer { + + @Override + protected void doEncodeBegin(ResponseWriter writer, FacesContext conte= xt, UIComponent component) throws IOException { + super.doEncodeBegin(writer, context, component); + } + + @Override + protected void doEncodeEnd(ResponseWriter writer, FacesContext context= , UIComponent component) throws IOException { + super.doEncodeEnd(writer, context, component); + } + + @Override + protected Class getComponentClass() { + return AbstractTabPanel.class; + } +} + Added: branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/= html/TabRenderer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/htm= l/TabRenderer.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/main/java/org/richfaces/renderkit/htm= l/TabRenderer.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,61 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.renderkit.html; + +import org.richfaces.component.AbstractTogglePanelTitledItem; + +import javax.faces.application.ResourceDependencies; +import javax.faces.application.ResourceDependency; +import javax.faces.component.UIComponent; +import javax.faces.context.FacesContext; +import javax.faces.context.ResponseWriter; +import java.io.IOException; + +/** + * @author akolonitsky + * @since 2010-08-24 + */ +(a)ResourceDependencies( { // TODO review + @ResourceDependency(library =3D "javax.faces", name =3D "jsf.js"), + @ResourceDependency(name =3D "jquery.js"), + @ResourceDependency(name =3D "richfaces.js"), + @ResourceDependency(name =3D "richfaces-base-component.js"), + @ResourceDependency(name =3D "script/Tab.js") }) +public class TabRenderer extends TogglePanelItemRenderer { + + @Override + protected void doEncodeBegin(ResponseWriter writer, FacesContext conte= xt, UIComponent component) throws IOException { + super.doEncodeBegin(writer, context, component); + } + + @Override + protected void doEncodeEnd(ResponseWriter writer, FacesContext context= , UIComponent component) throws IOException { + super.doEncodeEnd(writer, context, component); + } + + @Override + protected Class getComponentClass() { + return AbstractTogglePanelTitledItem.class; + } +} + Added: branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/= UICollapsiblePanelTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UIC= ollapsiblePanelTest.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UIC= ollapsiblePanelTest.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,50 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.component; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import javax.faces.component.UIComponent; +import java.util.List; + +/** + * @author akolonitsky + * @since 2010-08-27 + */ +public class UICollapsiblePanelTest { + + private UICollapsiblePanel collapsiblePanel; + + @Before + public void setUp () { + collapsiblePanel =3D new UICollapsiblePanel(); + } + + @Test + public void testSomething() { + Assert.assertNotNull(collapsiblePanel); + } +} + Added: branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/= UITogglePanelTitledItemTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UIT= ogglePanelTitledItemTest.java (rev 0) +++ branches/RF-7944/ui/output/ui/src/test/java/org/richfaces/component/UIT= ogglePanelTitledItemTest.java 2010-09-03 14:08:46 UTC (rev 19113) @@ -0,0 +1,50 @@ +/* + * JBoss, Home of Professional Open Source + * Copyright ${year}, 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.component; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; + +import javax.faces.component.UIComponent; +import java.util.List; + +/** + * @author akolonitsky + * @since 2010-08-24 + */ +public class UITogglePanelTitledItemTest { + + private UITogglePanelTitledItem togglePanelTitledItem; + + @Before + public void setUp () { + togglePanelTitledItem =3D new UITogglePanelTitledItem(); + } + + @Test + public void testSomething() { + Assert.assertNotNull(togglePanelTitledItem); + } +} + --===============7776286093610437505==--