JBoss Tools SVN: r13844 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-02-26 11:56:10 -0500 (Thu, 26 Feb 2009)
New Revision: 13844
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItem.jsp.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItems.jsp.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectManyCheckbox.jsp.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3860
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItem.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItem.jsp.xml 2009-02-26 16:55:47 UTC (rev 13843)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItem.jsp.xml 2009-02-26 16:56:10 UTC (rev 13844)
@@ -3,11 +3,7 @@
<SPAN>
<INPUT TYPE="checkbox" />
- <LABEL CLASS="myClass1">
- <SPAN>
- check1
- </SPAN>
- </LABEL>
+ <LABEL CLASS="myClass1">check1</LABEL>
</SPAN>
</test>
<test id="selectItem2">
@@ -64,11 +60,7 @@
<test id="selectItem4">
<SPAN >
<INPUT TYPE="checkbox" DIR="ltr" />
- <LABEL CLASS="myClass">
- <SPAN>
- check1
- </SPAN>
- </LABEL>
+ <LABEL CLASS="myClass">check1</LABEL>
</SPAN>
</test>
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItems.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItems.jsp.xml 2009-02-26 16:55:47 UTC (rev 13843)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectItems.jsp.xml 2009-02-26 16:56:10 UTC (rev 13844)
@@ -2,9 +2,7 @@
<test id="selectItems1">
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox"/>
- <LABEL>
- <SPAN>someValue</SPAN>
- </LABEL>
+ <LABEL>someValue</LABEL>
</SPAN>
</test>
<test id="selectItems2">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectManyCheckbox.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectManyCheckbox.jsp.xml 2009-02-26 16:55:47 UTC (rev 13843)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/components/selectManyCheckbox.jsp.xml 2009-02-26 16:56:10 UTC (rev 13844)
@@ -6,9 +6,7 @@
<TD>
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN> check1</SPAN>
- </LABEL>
+ <LABEL> check1 </LABEL>
</SPAN>
</TD>
</TR>
@@ -16,9 +14,7 @@
<TD>
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN> check2</SPAN>
- </LABEL>
+ <LABEL> check2 </LABEL>
</SPAN>
</TD>
</TR>
@@ -26,9 +22,7 @@
<TD>
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN> check3</SPAN>
- </LABEL>
+ <LABEL>check3</LABEL>
</SPAN>
</TD>
</TR>
@@ -43,33 +37,21 @@
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN>
- check1
- </SPAN>
- </LABEL>
+ <LABEL>check1</LABEL>
</SPAN>
</TD>
<TD>
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN>
- check2
- </SPAN>
- </LABEL>
+ <LABEL>check2</LABEL>
</SPAN>
</TD>
<TD>
<SPAN STYLE="-moz-user-modify: read-write;">
<INPUT TYPE="checkbox" />
- <LABEL>
- <SPAN>
- check3
- </SPAN>
- </LABEL>
+ <LABEL>check3</LABEL>
</SPAN>
</TD>
</TR>
15 years, 10 months
JBoss Tools SVN: r13843 - trunk/portlet/docs/reference/en/images/starting_project.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-26 11:55:47 -0500 (Thu, 26 Feb 2009)
New Revision: 13843
Modified:
trunk/portlet/docs/reference/en/images/starting_project/starting_project_2.png
trunk/portlet/docs/reference/en/images/starting_project/starting_project_3.png
trunk/portlet/docs/reference/en/images/starting_project/starting_project_4.png
trunk/portlet/docs/reference/en/images/starting_project/starting_project_5.png
Log:
https://jira.jboss.org/jira/browse/JBDS-552 - updating the images;
Modified: trunk/portlet/docs/reference/en/images/starting_project/starting_project_2.png
===================================================================
(Binary files differ)
Modified: trunk/portlet/docs/reference/en/images/starting_project/starting_project_3.png
===================================================================
(Binary files differ)
Modified: trunk/portlet/docs/reference/en/images/starting_project/starting_project_4.png
===================================================================
(Binary files differ)
Modified: trunk/portlet/docs/reference/en/images/starting_project/starting_project_5.png
===================================================================
(Binary files differ)
15 years, 10 months
JBoss Tools SVN: r13842 - trunk/portlet/docs/reference/en/images/starting_project.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-26 11:17:46 -0500 (Thu, 26 Feb 2009)
New Revision: 13842
Added:
trunk/portlet/docs/reference/en/images/starting_project/portlet_preferences.png
trunk/portlet/docs/reference/en/images/starting_project/server_runtime_environment.png
Log:
https://jira.jboss.org/jira/browse/JBDS-552 - adding new images;
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_preferences.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_preferences.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/server_runtime_environment.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/server_runtime_environment.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 10 months
JBoss Tools SVN: r13841 - in workspace/kukeltje/xforms/plugins: .settings and 59 other directories.
by jbosstools-commits@lists.jboss.org
Author: kukeltje
Date: 2009-02-26 11:16:57 -0500 (Thu, 26 Feb 2009)
New Revision: 13841
Added:
workspace/kukeltje/xforms/plugins/.classpath
workspace/kukeltje/xforms/plugins/.project
workspace/kukeltje/xforms/plugins/.settings/
workspace/kukeltje/xforms/plugins/.settings/org.eclipse.jdt.core.prefs
workspace/kukeltje/xforms/plugins/META-INF/
workspace/kukeltje/xforms/plugins/META-INF/MANIFEST.MF
workspace/kukeltje/xforms/plugins/bin/
workspace/kukeltje/xforms/plugins/bin/nl/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.class
workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.class
workspace/kukeltje/xforms/plugins/build.properties
workspace/kukeltje/xforms/plugins/example/
workspace/kukeltje/xforms/plugins/example/widgets.xhtml
workspace/kukeltje/xforms/plugins/lib/
workspace/kukeltje/xforms/plugins/lib/jhighlight-1.0.jar
workspace/kukeltje/xforms/plugins/plugin.xml
workspace/kukeltje/xforms/plugins/resources/
workspace/kukeltje/xforms/plugins/resources/calendar/
workspace/kukeltje/xforms/plugins/resources/calendar/calendar.css
workspace/kukeltje/xforms/plugins/resources/calendar/calendar.gif
workspace/kukeltje/xforms/plugins/resources/calendar/disabled_button.gif
workspace/kukeltje/xforms/plugins/resources/calendar/separator.gif
workspace/kukeltje/xforms/plugins/resources/column/
workspace/kukeltje/xforms/plugins/resources/column/sortable.gif
workspace/kukeltje/xforms/plugins/resources/comboBox/
workspace/kukeltje/xforms/plugins/resources/comboBox/background-arrows.gif
workspace/kukeltje/xforms/plugins/resources/comboBox/bg_shadow.png
workspace/kukeltje/xforms/plugins/resources/comboBox/comboBox.css
workspace/kukeltje/xforms/plugins/resources/comboBox/down-disabled.gif
workspace/kukeltje/xforms/plugins/resources/comboBox/down.gif
workspace/kukeltje/xforms/plugins/resources/comboBox/spacer.gif
workspace/kukeltje/xforms/plugins/resources/common/
workspace/kukeltje/xforms/plugins/resources/common/background.gif
workspace/kukeltje/xforms/plugins/resources/common/spacer.gif
workspace/kukeltje/xforms/plugins/resources/dataDefinitionList/
workspace/kukeltje/xforms/plugins/resources/dataDefinitionList/dataDefinitionList.css
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-input.png
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-range.png
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css.tmp
workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/pos.gif
workspace/kukeltje/xforms/plugins/resources/dataList/
workspace/kukeltje/xforms/plugins/resources/dataList/dataList.css
workspace/kukeltje/xforms/plugins/resources/dataOrderedList/
workspace/kukeltje/xforms/plugins/resources/dataOrderedList/dataOrderedList.css
workspace/kukeltje/xforms/plugins/resources/dataTable/
workspace/kukeltje/xforms/plugins/resources/dataTable/dataTable.css
workspace/kukeltje/xforms/plugins/resources/dataTableScroller/
workspace/kukeltje/xforms/plugins/resources/dataTableScroller/dataTableScroller.css
workspace/kukeltje/xforms/plugins/resources/dropDownMenu/
workspace/kukeltje/xforms/plugins/resources/dropDownMenu/dropDownMenu.css
workspace/kukeltje/xforms/plugins/resources/dropDownMenu/list-bg.png
workspace/kukeltje/xforms/plugins/resources/dropDownMenu/menuComponents.css
workspace/kukeltje/xforms/plugins/resources/editor/
workspace/kukeltje/xforms/plugins/resources/editor/editor.css
workspace/kukeltje/xforms/plugins/resources/editor/editor_toolbar.gif
workspace/kukeltje/xforms/plugins/resources/extendedDataTable/
workspace/kukeltje/xforms/plugins/resources/extendedDataTable/extendedDataTable.css
workspace/kukeltje/xforms/plugins/resources/extendedDataTable/sortable.gif
workspace/kukeltje/xforms/plugins/resources/fileUpload/
workspace/kukeltje/xforms/plugins/resources/fileUpload/fileUpload.css
workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_add.gif
workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_clear.gif
workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_start.gif
workspace/kukeltje/xforms/plugins/resources/inplaceInput/
workspace/kukeltje/xforms/plugins/resources/inplaceInput/applyButton.gif
workspace/kukeltje/xforms/plugins/resources/inplaceInput/bg_shadow.png
workspace/kukeltje/xforms/plugins/resources/inplaceInput/cancelButton.gif
workspace/kukeltje/xforms/plugins/resources/inplaceInput/inplaceInput.css
workspace/kukeltje/xforms/plugins/resources/inplaceInput/red_arrow.gif
workspace/kukeltje/xforms/plugins/resources/inplaceInput/spacer.gif
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/arrow.gif
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/bg_shadow.png
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/button_bg.gif
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/inplaceSelect.css
workspace/kukeltje/xforms/plugins/resources/inplaceSelect/spacer.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/handler.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/input.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/numberSlider.css
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/spacer.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/track.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.jpg
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.png
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-input.png
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/down.gif
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/inputNumberSpinner.css
workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/up.gif
workspace/kukeltje/xforms/plugins/resources/menuGroup/
workspace/kukeltje/xforms/plugins/resources/menuGroup/arrow.gif
workspace/kukeltje/xforms/plugins/resources/menuGroup/menuGroup.css
workspace/kukeltje/xforms/plugins/resources/menuGroup/spacer.gif
workspace/kukeltje/xforms/plugins/resources/menuItem/
workspace/kukeltje/xforms/plugins/resources/menuItem/menuItem.css
workspace/kukeltje/xforms/plugins/resources/menuItem/spacer.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/
workspace/kukeltje/xforms/plugins/resources/orderingList/bottom.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/button_bg.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/down.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/orderingList.css
workspace/kukeltje/xforms/plugins/resources/orderingList/table_header_cell_bg.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/top.gif
workspace/kukeltje/xforms/plugins/resources/orderingList/up.gif
workspace/kukeltje/xforms/plugins/resources/paint2D/
workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.css
workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.gif
workspace/kukeltje/xforms/plugins/resources/panel/
workspace/kukeltje/xforms/plugins/resources/panel/panel.css
workspace/kukeltje/xforms/plugins/resources/panelBar/
workspace/kukeltje/xforms/plugins/resources/panelBar/background.gif
workspace/kukeltje/xforms/plugins/resources/panelBar/panelBar.css
workspace/kukeltje/xforms/plugins/resources/panelMenu/
workspace/kukeltje/xforms/plugins/resources/panelMenu/style.css
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevron.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronDown.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronUp.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/disc.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/grid.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/spacer.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/style.css
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/topGroupBkgImg.png
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangle.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleDown.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleUp.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuItem/
workspace/kukeltje/xforms/plugins/resources/panelMenuItem/points.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuItem/spacer.gif
workspace/kukeltje/xforms/plugins/resources/panelMenuItem/style.css
workspace/kukeltje/xforms/plugins/resources/pickList/
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy_all.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_down.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_first.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_last.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove_all.gif
workspace/kukeltje/xforms/plugins/resources/pickList/arrow_up.gif
workspace/kukeltje/xforms/plugins/resources/pickList/button.gif
workspace/kukeltje/xforms/plugins/resources/pickList/header.gif
workspace/kukeltje/xforms/plugins/resources/pickList/pickList.css
workspace/kukeltje/xforms/plugins/resources/pickList/spacer.gif
workspace/kukeltje/xforms/plugins/resources/progressBar/
workspace/kukeltje/xforms/plugins/resources/progressBar/progressBar.css
workspace/kukeltje/xforms/plugins/resources/progressBar/upload_status.gif
workspace/kukeltje/xforms/plugins/resources/scrollableDataTable/
workspace/kukeltje/xforms/plugins/resources/scrollableDataTable/scrollableDataTable.css
workspace/kukeltje/xforms/plugins/resources/separator/
workspace/kukeltje/xforms/plugins/resources/separator/separator.css
workspace/kukeltje/xforms/plugins/resources/shuttle/
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy_all.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_down.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_first.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_last.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove_all.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_up.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/button.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/header.gif
workspace/kukeltje/xforms/plugins/resources/shuttle/shuttle.css
workspace/kukeltje/xforms/plugins/resources/simpleTogglePanel/
workspace/kukeltje/xforms/plugins/resources/simpleTogglePanel/simpleTogglePanel.css
workspace/kukeltje/xforms/plugins/resources/spacer/
workspace/kukeltje/xforms/plugins/resources/spacer/spacer.css
workspace/kukeltje/xforms/plugins/resources/spacer/spacer.gif
workspace/kukeltje/xforms/plugins/resources/tabPanel/
workspace/kukeltje/xforms/plugins/resources/tabPanel/active.gif
workspace/kukeltje/xforms/plugins/resources/tabPanel/border.gif
workspace/kukeltje/xforms/plugins/resources/tabPanel/disabled.gif
workspace/kukeltje/xforms/plugins/resources/tabPanel/inactive.gif
workspace/kukeltje/xforms/plugins/resources/tabPanel/tabPanel.css
workspace/kukeltje/xforms/plugins/resources/toolBar/
workspace/kukeltje/xforms/plugins/resources/toolBar/separatorDisc.gif
workspace/kukeltje/xforms/plugins/resources/toolBar/separatorGrid.gif
workspace/kukeltje/xforms/plugins/resources/toolBar/separatorLine.gif
workspace/kukeltje/xforms/plugins/resources/toolBar/separatorSquare.gif
workspace/kukeltje/xforms/plugins/resources/toolBar/toolBar.css
workspace/kukeltje/xforms/plugins/resources/tree/
workspace/kukeltje/xforms/plugins/resources/tree/divLine.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNode.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNodeWithLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsed.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsedWithLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconLeaf.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconLeafWithLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNode.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLine.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsed.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithAllLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithLines.gif
workspace/kukeltje/xforms/plugins/resources/tree/leftLine.gif
workspace/kukeltje/xforms/plugins/resources/tree/line.gif
workspace/kukeltje/xforms/plugins/resources/tree/rightLine.gif
workspace/kukeltje/xforms/plugins/resources/tree/tree.css
workspace/kukeltje/xforms/plugins/resources/tree/unresolved.gif
workspace/kukeltje/xforms/plugins/resources/xforms/
workspace/kukeltje/xforms/plugins/resources/xforms/xforms.css
workspace/kukeltje/xforms/plugins/src/
workspace/kukeltje/xforms/plugins/src/nl/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java
workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java
workspace/kukeltje/xforms/plugins/templates/
workspace/kukeltje/xforms/plugins/templates/vpe.xml
workspace/kukeltje/xforms/plugins/templates/vpe.xsd
workspace/kukeltje/xforms/plugins/templates/xforms.xml
Log:
Initial checkin
Added: workspace/kukeltje/xforms/plugins/.classpath
===================================================================
--- workspace/kukeltje/xforms/plugins/.classpath (rev 0)
+++ workspace/kukeltje/xforms/plugins/.classpath 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="lib" path="lib/jhighlight-1.0.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: workspace/kukeltje/xforms/plugins/.project
===================================================================
--- workspace/kukeltje/xforms/plugins/.project (rev 0)
+++ workspace/kukeltje/xforms/plugins/.project 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>nl.fortythree.jbosstools.vpe.xforms</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: workspace/kukeltje/xforms/plugins/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/kukeltje/xforms/plugins/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/kukeltje/xforms/plugins/.settings/org.eclipse.jdt.core.prefs 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,70 @@
+#Wed Feb 25 14:33:54 CET 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.5
Added: workspace/kukeltje/xforms/plugins/META-INF/MANIFEST.MF
===================================================================
--- workspace/kukeltje/xforms/plugins/META-INF/MANIFEST.MF (rev 0)
+++ workspace/kukeltje/xforms/plugins/META-INF/MANIFEST.MF 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,23 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Xforms Editor Plug-in
+Bundle-SymbolicName: nl.fortythree.jbosstools.vpe.xforms;singleton:=true
+Bundle-Activator: nl.fortythree.jbosstools.vpe.xforms.XFormsTemplatesActivator
+Bundle-Version: 0.1.0
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.vpe,
+ org.jboss.tools.jst.jsp,
+ org.jboss.tools.common.model,
+ org.eclipse.wst.sse.ui,
+ org.eclipse.ui.workbench.texteditor,
+ org.eclipse.ui.ide,
+ org.mozilla.xpcom,
+ org.eclipse.wst.sse.core,
+ org.jboss.tools.vpe.xulrunner
+Eclipse-LazyStart: true
+Bundle-Vendor: Fortythree
+Bundle-ClassPath: lib/jhighlight-1.0.jar,
+ .
+Export-Package: nl.fortythree.jbosstools.vpe.xforms,
+ nl.fortythree.jbosstools.vpe.xforms.template.util
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.class
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/bin/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/build.properties
===================================================================
--- workspace/kukeltje/xforms/plugins/build.properties (rev 0)
+++ workspace/kukeltje/xforms/plugins/build.properties 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,9 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ resources/,\
+ templates/,\
+ plugin.xml,\
+ lib/jhighlight-1.0.jar
+src.includes =src/,resources/,templates/
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/example/widgets.xhtml
===================================================================
--- workspace/kukeltje/xforms/plugins/example/widgets.xhtml (rev 0)
+++ workspace/kukeltje/xforms/plugins/example/widgets.xhtml 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,1626 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:xf="http://www.w3.org/2002/xforms"
+ xmlns:ev="http://www.w3.org/2001/xml-events"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ lang="de">
+<head>
+ <title>All Chiba Components</title>
+
+ <xf:model id="model-1">
+ <xf:instance id="instance-1" xmlns="">
+ <data>
+ <input constraint="false" readonly="false" required="true" relevant="true">
+ <value></value>
+ </input>
+ <input constraint="true" readonly="false" required="true" relevant="true">
+ <value>true</value>
+ </input>
+ <input constraint="true" readonly="false" required="true" relevant="true">
+ <value>2007-11-11</value>
+ </input>
+ <range constraint="true" readonly="false" required="true" relevant="true">
+ <value>5</value>
+ </range>
+ <range constraint="true" readonly="false" required="true" relevant="true">
+ <value>3</value>
+ </range>
+ <secret constraint="true" readonly="false" required="true" relevant="true">
+ <value>password</value>
+ </secret>
+ <output constraint="true" readonly="true" required="true" relevant="true">
+ <value>foo</value>
+ </output>
+ <output constraint="true" readonly="true" required="true" relevant="true">
+ <value>http://chiba.sourceforge.net</value>
+ </output>
+ <output constraint="true" readonly="true" required="true" relevant="true">
+ <value><![CDATA[<b>Providing</b> <i>basic</i> HTML <u>formatting</u>]]></value>
+ </output>
+ <output constraint="true" readonly="true" required="true" relevant="true">
+ <value>../resources/images/chiba50t.gif</value>
+ </output>
+ <textarea constraint="true" readonly="false" required="true" relevant="true">
+ <value>Enter your text here. If the text is to long the textarea pane scrolls</value>
+ </textarea>
+ <textarea constraint="true" readonly="false" required="true" relevant="true">
+ <value><![CDATA[
+ <div style="color:darkblue;font-weight:bolder;">Textarea</div><div style="color:black;font-weight:normal;"> with <i>mediatype='text/html'</i>
+ <ul>
+ <li>Textarea based on <a href="http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/advanced-editing-a..." target="_blank">dijit.Editor</a></li>
+ <li>other Inline Editors can be plugged in easily</li>
+ <li><a href="http://www.w3.org/TR/xforms/#ui-textarea" target="_blank">W3C XForms 1.0 Textarea Specification</a></li>
+ </ul>
+ </div>
+ ]]></value>
+ </textarea>
+ <textarea constraint="true" readonly="false" required="true" relevant="true">
+ <value>Enter some more text and see how the textarea grows</value>
+ </textarea>
+ <upload constraint="true" readonly="false" required="true" relevant="true">
+ <value type="" file=""/>
+ </upload>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Trigger 1</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Trigger 2</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Trigger 3</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Debug (all)</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Debug (partial)</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Load (new)</label>
+ </trigger>
+ <trigger constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ <label>Load (new)</label>
+ </trigger>
+ </data>
+ </xf:instance>
+
+ <xf:bind nodeset="input[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="input[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="boolean"/>
+ </xf:bind>
+
+ <xf:bind nodeset="input[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="date"/>
+ </xf:bind>
+
+ <xf:bind nodeset="range[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="integer"/>
+ </xf:bind>
+ <xf:bind nodeset="range[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="integer"/>
+ </xf:bind>
+
+ <xf:bind nodeset="secret">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="output[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="output[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="anyURI"/>
+ </xf:bind>
+ <xf:bind nodeset="output[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="output[4]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="textarea[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="textarea[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="textarea[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="upload[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"
+ type="anyURI"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[4]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[5]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[6]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="trigger[7]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+
+ <xf:instance id="lang" xmlns="">
+ <strings selected="">
+ <string key="">
+ <lang code="de">deutsch</lang>
+ <lang code="en">english</lang>
+ </string>
+ </strings>
+ </xf:instance>
+
+ </xf:model>
+
+<xf:model id="countries">
+ <xf:submission id="s-debug-all-codes"
+ action="{$contextroot}/resources/jsp/debug-instance.jsp"
+ method="post"
+ replace="all"
+ validate="false"/>
+
+ <xf:submission id="s-debug-one-code"
+ action="{$contextroot}/resources/jsp/debug-instance.jsp"
+ method="post"
+ replace="all"
+ ref="instance('codes')/country[1]"
+ validate="false"/>
+
+ <xf:instance xmlns="">
+ <data>
+ <select1 constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select1>
+ <select1 constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select1>
+ <select1 constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select1>
+ <select1 constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select1>
+ <select1 constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select1>
+
+ <select constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select>
+ <select constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select>
+ <select constraint="true" readonly="false" required="true" relevant="true">
+ <value/>
+ </select>
+ </data>
+ </xf:instance>
+
+ <xf:bind nodeset="select1[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="select1[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="select1[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="select1[4]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="select1[5]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="select[1]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:bind nodeset="select[2]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+ <xf:bind nodeset="select[3]">
+ <xf:bind nodeset="value"
+ constraint="boolean-from-string(../@constraint)"
+ readonly="boolean-from-string(../@readonly)"
+ required="boolean-from-string(../@required)"
+ relevant="boolean-from-string(../@relevant)"/>
+ </xf:bind>
+
+ <xf:instance id="codes" xmlns="">
+ <countrylist lang="en">
+ <country>
+ <country-name>AFGHANISTAN</country-name>
+ <code>AF</code>
+ </country>
+ <country>
+ <country-name>LAND ISLANDS</country-name>
+ <code>AX</code>
+ </country>
+ <country>
+ <country-name>ALBANIA</country-name>
+ <code>AL</code>
+ </country>
+ <country>
+ <country-name>ALGERIA</country-name>
+ <code>DZ</code>
+ </country>
+ <country>
+ <country-name>AMERICAN SAMOA</country-name>
+ <code>AS</code>
+ </country>
+ <country>
+ <country-name>ANDORRA</country-name>
+ <code>AD</code>
+ </country>
+ <country>
+ <country-name>ANGOLA</country-name>
+ <code>AO</code>
+ </country>
+ <country>
+ <country-name>ANGUILLA</country-name>
+ <code>AI</code>
+ </country>
+ <country>
+ <country-name>ANTARCTICA</country-name>
+ <code>AQ</code>
+ </country>
+ </countrylist>
+ </xf:instance>
+</xf:model>
+
+<style type="text/css">
+
+
+#control-attributes {
+ width: 800px;
+ border: 1px dotted black;
+ margin: 0;
+ padding: 5px;
+}
+
+#input-attributes .disabled {
+ display: none;
+}
+
+#input-attributes label {
+ width: 7em;
+ float: none;
+}
+
+#outer {
+ margin:0px;
+ padding:0px;
+}
+
+#switch1 .case .input, .select1 {
+ margin-top: 15px;
+}
+
+.boolean {
+ margin: 1pt;
+}
+
+#triggerpane tr {
+ margin-bottom: 10px;
+ display: block;
+}
+
+.xfControl {
+ margin-bottom: 16px;
+ valign: top;
+}
+
+.xfControl .xfLabel {
+ width: 160px;
+ text-align: right;
+ vertical-align: top;
+}
+
+.xfGroup>.xfLabel {
+ width: 160px;
+ text-align: left;
+ vertical-align: top;
+ font-weight: bold;
+ font-size: larger;
+ clear: both;
+ text-transform: uppercase;
+ display: block;
+ margin-bottom: 15px;
+ margin-top: 5px;
+ color: blue;
+}
+
+.xfInput .xfLabel,
+ .xfSecret .xfLabel,
+ .xfUpload .xfLabel,
+ .xfOutput .xfLabel,
+ .xfSelect .xfLabel,
+ .xfSelect1 .xfLabel {
+ width: 200px;
+ text-align: right;
+ margin-right: 10px;
+ float: left;
+}
+
+.xfControl select {
+ background-color: white;
+}
+
+.dijitButtonHover .dijitButtonNode,
+ .dijitButtonNodeHover,
+ .dijitToggleButtonHover .dijitButtonNode,
+ .dijitDropDownButtonHover .dijitButtonNode,
+ .dijitComboButtonHover .dijitButtonContents,
+ .dijitComboButtonDownArrowHover .dijitDownArrowButton,
+ .dijitComboBoxHover .dijitDownArrowButton,
+ .dijitSpinnerUpArrowHover .dijitUpArrowButton,
+ .dijitSpinnerDownArrowHover .dijitDownArrowButton {
+ border: 0;
+ background:transparent;
+}
+
+html, body, #main{
+ width: 100%; /* make the body expand to fill the visible window */
+ height: 100%;
+ overflow: auto; /* erase window level scrollbars */
+ padding: 0 0 0 0;
+ margin: 0 0 0 0;
+ font: 10pt Arial,Myriad,Tahoma,Verdana,sans-serif;
+}
+
+.dijitBorderContainer {
+ position:absolute;
+}
+
+.xfSelect .xfLabel,
+ .xfSelect1 .xfLabel {
+ width: 140px;
+ text-align: right;
+ float: left;
+
+}
+
+.xfSelectorItem .xfLabel {
+ width: 140px;
+ text-align: right;
+ display: inline;
+ float: none;
+}
+
+.xfRange .xfLabel {
+ width: 100px;
+ display: block;
+ text-align: left;
+ float: left;
+}
+
+.xfUpload.xfLabel {
+ width: 110px;
+}
+
+.xfRange .xfHelpIcon {
+ float: none;
+ display: block;
+}
+
+.xfTextarea .xfLabel {
+ width: 200px;
+ text-align: left;
+ display: block;
+ float: left;
+}
+
+.xfTextarea .xfHelpIcon {
+ float: none;
+ display: block;
+}
+
+.xfTrigger {
+ width: 140px;
+}
+
+.xfHelpIcon {
+ float: left;
+}
+
+.row {
+ height: 50px;
+
+}
+
+.entry {
+ padding-right: 10px;
+ vertical-align: top;
+}
+
+.mips {
+ margin: 0;
+ padding: 0;
+ border: none;
+}
+
+.mips .xfLabel {
+ width: 80px;
+ text-align: left;
+ position: absolute;
+ left: 45px;
+}
+
+
+
+#switch1 {
+ width:600px; /* make the body expand to fill the visible window */
+
+}
+
+#reportBug{
+ display:inline;
+}
+
+#caSelect1Table{
+ padding-left:0px;
+ padding-top:15px;
+}
+
+</style>
+
+</head>
+<body class="tundra" style="width:100%;height:100%;margin:0;padding:0;overflow:auto;" >
+<div dojotype="dijit.layout.ContentPane" style="padding:40px;">
+
+ <xf:switch appearance="dijit:TabContainer" id="switch1">
+ <xf:case name="switch-toggles" selected="false">
+ <xf:trigger id="t-intro">
+ <xf:label/>
+ <xf:toggle case="intro"/>
+ </xf:trigger>
+ <xf:trigger id="t-input">
+ <xf:label/>
+ <xf:toggle case="input"/>
+ </xf:trigger>
+ <xf:trigger id="t-output">
+ <xf:label/>
+ <xf:toggle case="output"/>
+ </xf:trigger>
+ <xf:trigger id="t-range">
+ <xf:label/>
+ <xf:toggle case="range"/>
+ </xf:trigger>
+ <xf:trigger id="t-select1">
+ <xf:label/>
+ <xf:toggle case="select1"/>
+ </xf:trigger>
+ <xf:trigger id="t-select">
+ <xf:label/>
+ <xf:toggle case="select"/>
+ </xf:trigger>
+ <xf:trigger id="t-textarea">
+ <xf:label/>
+ <xf:toggle case="textarea"/>
+ </xf:trigger>
+ <xf:trigger id="t-trigger">
+ <xf:label/>
+ <xf:toggle case="trigger"/>
+ </xf:trigger>
+<!--
+ <xf:trigger id="t-upload">
+ <xf:label/>
+ <xf:toggle case="upload"/>
+ </xf:trigger>
+-->
+ <xf:trigger id="t-source">
+ <xf:label/>
+ <xf:toggle case="source"/>
+ </xf:trigger>
+ </xf:case>
+<xf:case id="intro" selected="true">
+ <xf:label>INTRO</xf:label>
+
+ <div style="margin:10px;font-size:14pt;border:thin dotted;padding:0px 50px 50px 50px;background-color:#eee;height:80%;">
+ <br/>
+ Chiba Widget Set
+ <br/><br/>
+ <div style="font-size:11pt;">
+ This page serves several purposes:
+ <ul>
+ <li>as a Demo of a complex form</li>
+ <li>as live reference for how to use certain Controls</li>
+ <li>as primary test case</li>
+ </ul>
+
+ Features:
+ <ul>
+ <li>shows all controls in all possible XForms states</li>
+ <li>show proper keyboard navigation. Tab are navigatable with left/right arrows. Note that only
+ the controls will get focus. Helper elements/buttons have been excluded from navigation.</li>
+ <li>show code snippets as help - not complete yet</li>
+ <li>show locally rendered validation error messages</li>
+ <li>error indicator icon rendered on tabs with contain invalid controls</li>
+ <li>switch mouse cursor when hovering readonly controls</li>
+ </ul>
+
+
+ </div>
+ </div>
+</xf:case>
+
+<xf:case id="input" class="caInput">
+
+<xf:label>Input</xf:label>
+<table class="caInputTable">
+
+<tr class="row">
+ <td class="entry" valign="top">
+ <xf:input ref="input[1]/value">
+ <xf:label >a standard input</xf:label>
+ <xf:hint>This is a standard input control</xf:hint>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ <tr>
+ <td>type</td>
+ <td><i>boolean</i>,<i>date</i>,<i>float</i>,<i>decimal</i>,<b><i>string</i></b></td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ </table>
+<pre><xf:bind nodeset="input[1]/value"
+ type="string"
+ readonly="true()
+ constraint="boolean-from-string(.)=true()" />
+<xf:input ref="input[1]/value" incremental="true">
+ <xf:label>a standard input</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:input></pre>
+ </xf:help>
+ <xf:alert>A value for standard input is required</xf:alert>
+ </xf:input>
+ </td>
+
+</tr>
+
+<tr class="row">
+ <td class="entry">
+ <xf:input ref="input[2]/value">
+ <xf:label>a boolean input</xf:label>
+ <xf:hint>This is a input control bound to a boolean node</xf:hint>
+ <xf:help>see standard input help</xf:help>
+ <xf:alert>A value for boolean input is required</xf:alert>
+ </xf:input>
+ </td>
+
+</tr>
+<tr class="row">
+ <td class="entry">
+ <xf:input ref="input[3]/value">
+ <xf:label>a date input</xf:label>
+ <xf:hint>This is a input control bound to a date node</xf:hint>
+ <xf:help>see standard input help</xf:help>
+ <xf:alert>A value for date input is required</xf:alert>
+ </xf:input>
+ </td>
+</tr>
+<tr class="row">
+ <td class="entry">
+ <xf:secret ref="secret/value">
+ <xf:label>secret</xf:label>
+ <xf:help>
+<pre><xf:secret ref="secret/value">
+ <xf:label>secret control for passwords</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:secret>
+</pre>
+ </xf:help>
+ <xf:hint>secrect hint</xf:hint>
+ <xf:hint>hint text</xf:hint>
+ <xf:alert>A value for secret control is required</xf:alert>
+ </xf:secret>
+ </td>
+</tr>
+
+</table>
+</xf:case>
+
+
+<xf:case id="output" class="caOutput">
+ <xf:label>Output</xf:label>
+
+ <table class="caOutputTable">
+ <tr>
+ <td/>
+ <td align="center" width="9%"/>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:output ref="output[1]/value" mediatype="text">
+ <xf:label>a standard output</xf:label>
+ <xf:hint>This is a standard output control</xf:hint>
+ <xf:help>Media output in text
+ </xf:help>
+ <xf:alert>A value for standard output is required</xf:alert>
+ </xf:output>
+ </td>
+ </tr>
+ <tr class="row">
+ <td class="entry">
+ <xf:output ref="output[2]/value">
+ <xf:label>anyURI output</xf:label>
+ <xf:hint>This is a output control bound to an anyURI typed node</xf:hint>
+ <xf:help>see standard output</xf:help>
+ <xf:alert>A value for standard output is required</xf:alert>
+ </xf:output>
+ </td>
+ </tr>
+ <tr class="row">
+ <td class="entry">
+ <xf:output ref="output[3]/value" mediatype="text/html">
+ <xf:label>mediatype text/html</xf:label>
+ <xf:hint>This is a output control with mediatype=text/html </xf:hint>
+ <xf:help>see standard output</xf:help>
+ <xf:alert>A value for standard output is required</xf:alert>
+ </xf:output>
+ </td>
+ </tr>
+ <tr class="row">
+ <td class="entry">
+ <xf:output ref="output[4]/value" mediatype="image/gif">
+ <xf:label>mediatype image/gif</xf:label>
+ <xf:hint>This is an output control with mediatype image/gif</xf:hint>
+ <xf:help>see standard output</xf:help>
+ <xf:alert>A value for standard output is required</xf:alert>
+ </xf:output>
+ </td>
+ </tr>
+ </table>
+
+</xf:case>
+
+<xf:case id="range" selected="false">
+ <xf:label>Range</xf:label>
+ <table>
+ <tr>
+ <td/>
+ <td align="center" width="9%;"/>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:range start="2" end="10" step="1" ref="range[1]/value">
+ <xf:label>a range control</xf:label>
+ <xf:hint>a range hint</xf:hint>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ </table>
+<pre><xf:range start="2" end="10" step="1" ref="range[1]/value">
+ <xf:label>a range control</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:range>
+</pre>
+ </xf:help>
+ <xf:alert>Must be greater 5</xf:alert>
+ </xf:range>
+ </td>
+ </tr>
+ <tr class="row">
+ <td class="entry">
+ <xf:range end="5" ref="range[2]/value" appearance="chiba:rating">
+ <xf:label>a range control</xf:label>
+ <xf:hint>a range hint</xf:hint>
+ <xf:help>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>appearance</td>
+ <td></td>
+ </tr>
+
+ </table>
+<pre><xf:range end="5" ref="range[2]/value" appearance="chiba:rating">
+ <xf:label>a range control</xf:label>
+ <xf:label>a range control</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:range>
+</pre>
+ </xf:help>
+ <xf:alert>Must be greater 5</xf:alert>
+ </xf:range>
+ </td>
+ </tr>
+ </table>
+</xf:case>
+
+<!-- ***** SELECT1 ***** -->
+<xf:case id="select1" selected="false">
+<xf:label>Select1</xf:label>
+ <table id="caSelect1Table">
+ <tr class="row">
+ <td class="entry">
+ <xf:select1 model="countries" ref="select1[1]/value">
+ <xf:label>minimal</xf:label>
+ <xf:hint>select1 appearance='minimal'</xf:hint>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>appearance</td>
+ <td></td>
+ </tr>
+
+ </table>
+<pre><xf:select1 model="countries" ref="select1[1]/value">
+ <xf:label>standard select1 [appearance='minimal']</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+ <xf:itemset nodeset="instance('codes')/country">
+ <xf:label ref="country-name"/>
+ <xf:value ref="code"/>
+ </xf:itemset>
+</xf:select1>
+</pre>
+ </xf:help>
+ <xf:alert>The select value is not valid</xf:alert>
+ <xf:itemset nodeset="instance('codes')/country">
+ <xf:label ref="country-name"/>
+ <xf:value ref="code"/>
+ </xf:itemset>
+ </xf:select1>
+ </td>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:select1 model="countries" ref="select1[2]/value" appearance="compact">
+ <xf:label>compact</xf:label>
+ <xf:hint>select1 appearance='compact'</xf:hint>
+ <xf:help>see standard select1 [appearance='minimal']</xf:help>
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select1>
+ </td>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:select1 model="countries" ref="select1[3]/value" appearance="full">
+ <xf:label>full</xf:label>
+ <xf:hint>select1 appearance='full'</xf:hint>
+ <xf:help>see standard select1 [appearance='minimal']*</xf:help>
+ <xf:hint>select hint</xf:hint>
+ <xf:alert>The input value is not valid</xf:alert>
+
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select1>
+ </td>
+ </tr>
+ </table>
+ <table>
+ <tr class= "row">
+ <td class="entry">
+ <xf:select1 model="countries" ref="select1[4]/value" selection="open" appearance="minimal">
+ <xf:label>selection open</xf:label>
+ <xf:hint>select1 selection='open'</xf:hint>
+ <xf:help>see standard select1 [appearance='minimal'] help</xf:help>
+ <xf:hint>select hint</xf:hint>
+ <xf:alert>The input value is not valid</xf:alert>
+
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select1>
+ </td>
+
+ </tr>
+ <tr class= "row">
+ <td class="entry">
+ <div id="dojo-sample1" class="xfControl xfSelect1 xsdString xfEnabled xfReadWrite xfRequired xfValid">
+ <label for="dojo-sample1" id="dojo-sample1-label" class="xfLabel">in dialog</label>
+ <div style="float:left;height:5px;width:24px;" tabindex="-1" ></div>
+ <span id="dojo-sample1-helptext" class="xfHelpText" style="display:none;"><b>Syntax:</b><br/>
+ </span>
+
+ <div id="dojo-sample1-value" class="xfValue">
+ <div dojoType="dijit.form.DropDownButton" label="click me">
+ <div dojoType="dijit.TooltipDialog">
+ <table>
+ <tr class="row">
+ <td class="entry">
+ <xf:select1 model="countries" ref="select1[3]/value" appearance="full">
+ <xf:label>standard select1 [appearance='full']</xf:label>
+ <xf:help>see standard select1 [appearance='minimal']*</xf:help>
+ <xf:hint>select hint</xf:hint>
+ <xf:alert>The input value is not valid</xf:alert>
+
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select1>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </table>
+</xf:case>
+
+
+<!-- ***** SELECT ***** -->
+<xf:case id="select" selected="false">
+<xf:label>Select</xf:label>
+<table>
+<tr class="row">
+ <td class="entry">
+ <xf:select model="countries" ref="select[1]/value">
+ <xf:label>minimal</xf:label>
+ <xf:hint>a standard select with appearance='minimal '</xf:hint>
+ <xf:alert>The input value is not valid</xf:alert>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>appearance</td>
+ <td></td>
+ </tr>
+
+ </table>
+<pre><xf:bind nodeset="select[1]/value"/>
+<xf:instance id="codes" xmlns="">
+ <countrylist lang="en">
+ <country>
+ <country-name>AFGHANISTAN</country-name>
+ <code>AF</code>
+ </country>
+ <country>
+ <country-name>LAND ISLANDS</country-name>
+ <code>AX</code>
+ </country>
+ </countrylist>
+</xf:instance>
+<xf:select model="countries" ref="select[1]/value">
+ <xf:label>a standard select with minimal appearance</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+ <xf:itemset nodeset="instance('codes')/country">
+ <xf:label ref="country-name"/>
+ <xf:value ref="code"/>
+ </xf:itemset>
+</xf:select>
+</pre>
+ </xf:help>
+ <xf:itemset nodeset="instance('codes')/country">
+ <xf:label ref="country-name"/>
+ <xf:value ref="code"/>
+ </xf:itemset>
+ </xf:select>
+ </td>
+ </tr>
+
+<tr class="row">
+ <td class="entry">
+ <xf:select model="countries" ref="select[2]/value" appearance="compact">
+ <xf:label>Compact</xf:label>
+ <xf:hint>a standard select with appearance='compact'</xf:hint>
+ <xf:help>see standard select [appearance='minimal']*</xf:help>
+ <xf:alert>The select value is not valid</xf:alert>
+
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select>
+ </td>
+</tr>
+<tr>
+ <td class="entry">
+ <div id="dojo-sample2" class="xfControl xfSelect1 xsdString xfEnabled xfReadWrite xfRequired xfValid">
+ <label for="dojo-sample2" id="dojo-sample2-label" class="xfLabel">in dialog</label>
+ <div style="float:left;height:5px;width:24px;" tabindex="-1" ></div>
+ <div id="dojo-sample2-helptext" class="xfHelpText" style="display:none;"><b>Syntax:</b><br/></div>
+
+
+ <div id="dojo-sample2-value" class="xfValue">
+ <div dojoType="dijit.form.DropDownButton" label="click me">
+ <div dojoType="dijit.TooltipDialog">
+ <table>
+ <tr class="row">
+ <td class="entry">
+ <xf:select model="countries" ref="select[2]/value" appearance="full">
+ <xf:label>a standard select with full appearance'</xf:label>
+ <xf:help>see standard select [appearance='minimal']*</xf:help>
+ <xf:hint>select hint</xf:hint>
+ <xf:choices>
+ <xf:item>
+ <xf:label>foo</xf:label>
+ <xf:value>foo</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>bar</xf:label>
+ <xf:value>bar</xf:value>
+ </xf:item>
+ <xf:item>
+ <xf:label>baz</xf:label>
+ <xf:value>baz</xf:value>
+ </xf:item>
+ </xf:choices>
+ </xf:select>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </td>
+
+</tr>
+</table>
+</xf:case>
+
+<xf:case id="textarea" selected="false">
+ <xf:label>Textarea</xf:label>
+ <table>
+ <tr>
+ <td/>
+ <td align="center" width="9%;"/>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:textarea ref="textarea[1]/value">
+ <xf:label>a standard textarea</xf:label>
+ <xf:hint>This is a standard textarea control</xf:hint>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>mediatype</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>appearance</td>
+ <td></td>
+ </tr>
+ </table>
+<pre><xf:textarea ref="textarea[1]/value">
+ <xf:label>a textarea</xf:label>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:textarea>
+</pre>
+ </xf:help>
+ <xf:alert>The input value is not valid</xf:alert>
+ </xf:textarea>
+ </td>
+ </tr>
+
+ <tr class="row">
+ <td class="entry">
+ <xf:textarea ref="textarea[3]/value" mediatype="dojo">
+ <xf:label>textarea [mediatype="dojo"]</xf:label>
+ <xf:hint>textarea hint</xf:hint>
+ <xf:help>see standard textarea</xf:help>
+ <xf:alert>The input value is not valid</xf:alert>
+ </xf:textarea>
+ </td>
+ </tr>
+ </table>
+ <table>
+ <tr class="row">
+ <td class="entry">
+ <xf:textarea id="xfTextareaHTML" ref="textarea[2]/value" mediatype="text/html">
+ <xf:label>textarea [mediatype="text/html"]</xf:label>
+ <xf:hint>textarea hint</xf:hint>
+ <xf:help>see standard textarea</xf:help>
+ <xf:alert>The input value is not valid</xf:alert>
+ </xf:textarea>
+ </td>
+ </tr>
+ </table>
+</xf:case>
+
+<xf:case id="trigger" selected="false">
+<xf:label>Trigger</xf:label>
+<div dojoType="dijit.layout.TabContainer" style="width:700px;height:500px" >
+ <div id="triggerTab1" dojoType="dijit.layout.ContentPane" title="Trigger Appearances" selected="true" >
+ <table>
+ <tr>
+ <td width="100px">Trigger with attribute appearance='minimal'</td>
+ <td class="entry">
+ <xf:trigger ref="trigger[1]/value" appearance="minimal">
+ <xf:label ref="../label"/>
+ <xf:message level="modal">Clicked link trigger</xf:message>
+ </xf:trigger>
+ </td>
+ </tr>
+ <tr>
+ <td>standard Trigger</td>
+ <td class="entry">
+ <xf:trigger ref="trigger[2]/value">
+ <xf:label ref="../label"/>
+ <xf:message>Clicked standard trigger</xf:message>
+ </xf:trigger>
+ </td>
+ </tr>
+ <tr>
+ <td>Trigger with attribute 'src' pointing to a picture</td>
+ <td class="entry">
+ <xf:trigger appearance="compact" src="../resources/images/chiba50t.gif" ref="trigger[3]/value">
+ <xf:label ref="../label"/>
+ <xf:message level="modal">Clicked image trigger</xf:message>
+ </xf:trigger>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="triggerTab2" dojoType="dijit.layout.ContentPane" title="Trigger Actions">
+ <table>
+ <tr>
+ <td>Trigger sends debug subnission</td>
+ <td class="entry">
+ <xf:trigger id="t-debug-model-2" ref="trigger[4]/value">
+ <xf:label ref="../label" />
+ <xf:action>
+ <xf:send submission="s-debug-all-codes"/>
+ </xf:action>
+ </xf:trigger>
+ </td>
+ </tr>
+ <tr>
+ <td>Trigger sends debug subnission</td>
+ <td class="entry">
+ <xf:trigger id="t-debug-country-codes" ref="trigger[5]/value">
+ <xf:label ref="../label"/>
+ <xf:action>
+ <xf:send submission="s-debug-one-code"/>
+ </xf:action>
+ </xf:trigger>
+ </td>
+ </tr>
+ <tr>
+ <td>Trigger sends load action with attribute show='new'</td>
+ <td class="entry">
+ <xf:trigger id="t-load-new" ref="trigger[6]/value">
+ <xf:label ref="../label"/>
+ <xf:action>
+ <xf:load resource="http://chiba.sourceforge.net" show="new"/>
+ </xf:action>
+ </xf:trigger>
+ </td>
+
+ </tr>
+ <tr>
+ <td>Trigger sends load action with attribute show='replace'</td>
+ <td class="entry">
+ <xf:trigger id="t-load-replace" ref="trigger[7]/value">
+ <xf:label ref="../label"/>
+ <xf:action>
+ <xf:load resource="http://chiba.sourceforge.net" show="replace"/>
+ </xf:action>
+ </xf:trigger>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+</xf:case>
+
+<!--<xf:case id="upload" selected="false">
+ <xf:label>Upload</xf:label>
+ <table>
+ <tr class="row">
+ <td class="entry" style="width:450px;">
+ <xf:upload ref="upload[1]/value">
+ <xf:label>a standard input</xf:label>
+ <xf:hint>upload hint </xf:hint>
+ <xf:help><table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Bind Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>readonly</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>required</td>
+ <td>expressions evaluating to <i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ <tr>
+ <td>relevant</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>constraint</td>
+ <td>expressions evaluating to <b><i>true</i></b> or <i>false</i></td>
+ </tr>
+ <tr>
+ <td>calculate</td>
+ <td>calculates a value for the referenced node</td>
+ </tr>
+ <tr>
+ <td>type</td>
+ <td>anyURI</td>
+ </tr>
+ </table>
+ <table class="helpAttributeTable">
+ <tr class="helpAttributeTableHeader">
+ <td style="width:102px">Control Attribute</td>
+ <td style="width:220px">Value (default value is displayed bold)</td>
+ </tr>
+ <tr>
+ <td>incremental</td>
+ <td><i>true</i> or <b><i>false</i></b></td>
+ </tr>
+ </table>
+
+<pre><xf:upload ref="upload[1]/value">
+ <xf:label>a standard input</xf:label>
+ <xf:filename ref="attribute::file"/>
+ <xf:mediatype ref="attribute::type"/>
+ <xf:hint>Hint Text</xf:hint>
+ <xf:help>Help Text</xf:help>
+ <xf:alert>Alert Text</xf:alert>
+</xf:upload>
+</pre>
+ </xf:help>
+
+ <xf:alert>A value for upload control is required</xf:alert>
+ <xf:filename ref="attribute::file"/>
+ <xf:mediatype ref="attribute::type"/>
+ </xf:upload>
+ </td>
+ <td valign="top">
+ <div dojoType="dijit.form.DropDownButton" label="" showLabel="false" tabindex="-1">
+ <div dojoType="dijit.TooltipDialog" title="edit Model Item Properties">
+ <table width="120px;" cellspacing="5px">
+ <tr>
+ <td>
+ <xf:input navindex="-1" style="width:10px;"
+ ref="upload[1]/@readonly"
+ class="mips"
+ incremental="true">
+ <xf:label>readonly</xf:label>
+ </xf:input>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xf:input navindex="-1"
+ ref="upload[1]/@required" style="width:10px;"
+ class="mips"
+ incremental="true">
+ <xf:label>required</xf:label>
+ </xf:input>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xf:input navindex="-1"
+ ref="upload[1]/@relevant" style="width:10px;"
+ class="mips"
+ incremental="true">
+ <xf:label>relevant</xf:label>
+ </xf:input>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xf:input navindex="-1"
+ ref="upload[1]/@constraint" style="width:10px;"
+ class="mips"
+ incremental="true">
+ <xf:label>valid</xf:label>
+ </xf:input>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ </td>
+ </tr>
+ </table>
+</xf:case>-->
+<xf:case id="source" selected="false">
+ <xf:label>Report a bug</xf:label>
+ <div style="display:block;height:30px;padding-top:50px;">
+ <center>
+ <span style="font-size:12pt;">If you find problems or have suggestions about this page, please open up a ticket on our Wiki.</span>
+ <br/><br/>
+ <xf:trigger id="reportBug">
+ <xf:label>Report a Bug</xf:label>
+ <xf:load resource="https://r15z.de/trac/newticket?summary=Repeat%20Test%20Bug&descriptio..." show="new"/>
+ </xf:trigger>
+ </center>
+ </div>
+<!--
+ <div dojoType="dijit.layout.ContentPane">
+ <div class="head1" style="margin:5px;font-size:large;">allcomponents.xhtml Source Code Viewer</div>
+ <div dojoType="dijit.layout.ContentPane" href="http://localhost:8080/chiba-web/resources/jsp/showSource.jsp?sourceFile=/..." ></div>
+ </div>
+-->
+
+</xf:case>
+</xf:switch>
+</div>
+</body>
+</html>
Added: workspace/kukeltje/xforms/plugins/lib/jhighlight-1.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/lib/jhighlight-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/plugin.xml
===================================================================
--- workspace/kukeltje/xforms/plugins/plugin.xml (rev 0)
+++ workspace/kukeltje/xforms/plugins/plugin.xml 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.vpe.templates">
+ <templates
+ name="XForms generic template"
+ path="templates/xforms.xml"></templates>
+ </extension>
+
+</plugin>
Added: workspace/kukeltje/xforms/plugins/resources/calendar/calendar.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/calendar/calendar.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/calendar/calendar.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,171 @@
+.rich-calendar-input {
+}
+
+.rich-calendar-button {
+ cursor: pointer;
+ vertical-align: middle;
+}
+
+.rich-calendar-exterior {
+ border: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.rich-calendar-header {
+ border-right: 0 solid;
+ border-bottom: 1px solid;
+ border-bottom-color: #C4C0B9;
+ background-color: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.rich-calendar-tool {
+ vertical-align: middle;
+ text-align: center;
+ width: 20px;
+ height: 22px;
+ background-color: #D4CFC7;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+ font-weight: bold;
+ color: #000;
+}
+
+.rich-calendar-month {
+ vertical-align: middle;
+ text-align: center;
+ height: 22px;
+ background-color: #D4CFC7;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+ font-weight: bold;
+ color: #000;
+ white-space: nowrap;
+}
+
+.rich-calendar-tool-close {
+ padding: 2px 2px 2px 4px;
+ background-repeat: no-repeat;
+ background-position: left center;
+}
+
+.rich-calendar-days {
+
+ border-bottom: 1px solid;
+ border-right: 0 solid;
+ vertical-align: middle;
+ text-align: center;
+ height: 22px;
+ border-bottom-color: #C4C0B9;
+ border-right-color: #C4C0B9;
+ background: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.rich-calendar-weekends {
+ color: red;
+}
+
+.rich-calendar-week {
+
+ border-bottom: 1px solid;
+ border-right: 1px solid;
+ vertical-align: middle;
+ text-align: center;
+ width: 25px;
+ background: #F1EEE9;
+ border-bottom-color: #C4C0B9;
+ background-color: #F1EEE9;
+ border-right-color: #C4C0B9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.rich-calendar-cell {
+ background-color: #FFFFFF;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ border-bottom: 1px solid #C4C0B9;
+ border-right: 1px solid #C4C0B9;
+ padding: 0pt;
+ text-align: center;
+ vertical-align: middle;
+}
+
+.rich-calendar-cell-size {
+ height: 22px;
+ width: 25px;
+}
+
+.rich-calendar-holly {
+ background-color: #FFEBDA; /*unknown parameter - need to add*/
+ color: #FF7800; /*unknown parameter - need to add*/
+}
+
+.rich-calendar-boundary-dates {
+ color: #A0A0A0;
+}
+
+.rich-calendar-btn {
+ cursor: pointer;
+ padding: 2px 3px 2px 3px;
+ white-space: nowrap;
+}
+
+.rich-calendar-today {
+ background-color: #ff7800; /*unknown parameter - need to add*/
+ color: #ffebda; /*unknown parameter - need to add*/
+ font-weight: bold;
+}
+
+.rich-calendar-select {
+ background-color: #224986; /*headerBackgroundColor*/
+ color: #FFFFFF; /*headerTextColor*/
+ font-weight: bold;
+}
+
+.rich-calendar-toolfooter {
+ height: 22px;
+ padding: 1px 2px 1px 1px;
+ background: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+ background-repeat: no-repeat;
+ background-position: right center;
+}
+
+.rich-calendar-footer {
+ border-top: 1px solid;
+ border-right: 0 solid;
+ border-top-color: #C4C0B9;
+ border-right-color: #C4C0B9;
+ background: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.rich-calendar-header-optional {
+ border-bottom: 1px solid;
+ padding: 7px;
+ height: 22px;
+ font-weight: bold;
+ border-bottom-color: #C4C0B9;
+ background-color: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.rich-calendar-footer-optional {
+ border-top: 1px solid;
+ border-right: 0 solid;
+ padding: 7px;
+ height: 22px;
+ font-weight: bold;
+ border-top-color: #C4C0B9;
+ border-right-color: #C4C0B9;
+ background: #F1EEE9;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/calendar/calendar.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/calendar/calendar.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/calendar/disabled_button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/calendar/disabled_button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/calendar/separator.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/calendar/separator.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/column/sortable.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/column/sortable.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/background-arrows.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/comboBox/background-arrows.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/comboBox/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/comboBox.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/comboBox/comboBox.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/comboBox/comboBox.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,155 @@
+.rich-combobox-font {
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-combobox {
+
+}
+
+.rich-combobox-shell {
+ position: relative;
+}
+
+.rich-combobox-font-disabled {
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+input.rich-combobox-font-disabled {
+ color: #AAAAAA;
+}
+
+input.rich-combobox-input-inactive {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border-left: 1px solid #000000;
+ border-style: solid;
+ border-top: 1px solid #000000;
+ border-width: 1px;
+ left: 0pt;
+ margin: 0pt;
+ padding-left: 3px;
+ position: absolute;
+ top: 0pt;
+ width: 240px;
+}
+
+.rich-combobox-input-inactive {
+ background-color: #FFFFFF;
+ border-bottom-color: #C4C0B9;
+ border-right-color: #C4C0B9;
+}
+
+.rich-combobox-font-inactive {
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-combobox-button-background {
+ background-color: #E3DED5;
+ background-image: url(background-arrows.jpg);
+}
+
+input.rich-combobox-button-inactive {
+ border-bottom: 1px solid #000000;
+ border-right: 1px solid #000000;
+ border-style: solid;
+ border-width: 1px;
+ margin: 0pt;
+ padding-left: 0pt;
+ padding-right: 0pt;
+ position: absolute;
+ right: 0pt;
+ top: 0pt;
+ width: 17px;
+}
+
+input.rich-combobox-button-inactive {
+ border-left-color: #C4C0B9;
+ border-top-color: #C4C0B9;
+}
+
+input.rich-combobox-button-icon-inactive, input.rich-combobox-button-icon-disabled {
+ background: transparent none no-repeat scroll center;
+ cursor: pointer;
+}
+
+input.rich-combobox-button-icon-inactive {
+ background-image: url(down.gif);
+}
+
+input.rich-combobox-button-icon-disabled {
+ background-image: url(down-disabled.gif);
+}
+
+.rich-combobox-strut {
+ border: 1px solid #C0C0C0;
+ margin: 0pt;
+ padding-left: 3px;
+ position: relative;
+ visibility: hidden;
+ width: 240px;
+}
+
+.rich-combobox-shadow {
+ position: absolute;
+}
+
+.rich-combobox-list-cord {
+ position: relative;
+}
+
+.rich-combobox-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-combobox-shadow-tr {
+ background-position: right top;
+ background-repeat: repeat-x;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-combobox-shadow-bl {
+ background-position: left bottom;
+ background-repeat: repeat-x;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-combobox-shadow-br {
+ background-position: right bottom;
+ background-repeat: repeat-x;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-combobox-list-position {
+ left: 0pt;
+ position: absolute;
+ top: 1px;
+}
+
+.rich-combobox-list-decoration {
+ background: #FFFFFF none repeat scroll 0%;
+ border-color: #C4C0B9;
+ background: #FFFFFF none repeat scroll 0%;
+ border: 1px solid #C0C0C0;
+ padding: 0pt;
+}
+
+.rich-combobox-list-scroll {
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+
+.rich-combobox-item {
+ display: block;
+ padding: 2px;
+ white-space: nowrap;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/down-disabled.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/comboBox/down-disabled.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/comboBox/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/comboBox/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/comboBox/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/common/background.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/common/background.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/common/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/common/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/dataDefinitionList/dataDefinitionList.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataDefinitionList/dataDefinitionList.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataDefinitionList/dataDefinitionList.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,8 @@
+.headerClass{
+
+}
+.columnClass{
+
+}
+.listClass{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-input.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-input.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-range.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/background-range.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,60 @@
+@CHARSET "UTF-8";
+
+.slider-container {
+ background-color: transparent;
+ position: relative;
+ width: 100%;
+}
+
+.range {
+ background-image: url(background-range.png);
+ background-color: transparent;
+ border: 1px solid #C4C0B9;
+ border-color: #FFFFFF;
+ float: left;
+ height: 10px;
+ overflow: hidden;
+}
+
+.range-decor {
+ border: 1px solid;
+ height: 100%;
+ width: 100%;
+}
+
+.trailer {
+ background-color: transparent;
+ background-position: right top;
+ background-repeat: repeat-x;
+ height: 10px;
+}
+
+.track {
+ background-color: transparent;
+ height: 8px;
+ overflow: hidden;
+ position: absolute;
+}
+
+.handle {
+ background-color: transparent;
+ font-size: 1px;
+ height: 8px;
+ width: 10px;
+ position: absolute;
+ line-height: 1px;
+}
+
+.slider-input-field {
+ background-image: url(background-input.png);
+ background: #FFFFFF transparent none repeat-x scroll left top;
+ border: 1px solid;
+ border-color: #C4C0B9 #FFFFFF #FFFFFF #C4C0B9;
+ color: #000000;
+ float: left;
+ margin: 0 0 0 10px;
+ padding: 0 0 0 3px;
+ width: 40px;
+ font-family: Arial,Verdana,sans-serif;
+ font-size: 11px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css.tmp
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css.tmp (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/dataFilterSlider.css.tmp 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,62 @@
+@CHARSET "UTF-8";
+.slider-container {
+background-color:transparent;
+position:relative;
+height : 20px;
+}
+.range {
+background-color:transparent;
+border:1px solid #C4C0B9;
+float:left;
+height:10px;
+overflow:hidden;
+}
+.range-decor {
+border:1px solid #FFFFFF;
+height:100%;
+width:100%;
+}
+.trailer {
+background-color:transparent;
+background-position:right top;
+background-repeat:repeat-x;
+height:10px;
+}
+.track {
+background-color:transparent;
+height:8px;
+overflow:hidden;
+position:absolute;
+}
+.handle {
+background-color:transparent;
+height:10px;
+position:absolute;
+width:10px;
+left : 114px;
+}
+.dr-tbpnl-cntnt {
+border-style:solid;
+color:#000000;
+font-family:verdana;
+font-size:11px;
+}
+.slider-input-field {
+background:#FFFFFF url() repeat-x scroll left top;
+border-color:#000000 rgb(176, 176, 176) rgb(176, 176, 176) rgb(0, 0, 0);
+border-style:solid;
+border-width:1px;
+color:#000000;
+float:left;
+font-family:arial,sans-serif;
+font-size:11px;
+font-size-adjust:none;
+font-stretch:normal;
+font-style:normal;
+font-variant:normal;
+font-weight:normal;
+line-height:normal;
+margin:0px 0px 0px 10px;
+padding:0px 0px 0px 3px;
+width:40px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/pos.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/dataFilterSlider/pos.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/dataList/dataList.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataList/dataList.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataList/dataList.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,3 @@
+.dr-spr{
+ display: block;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataOrderedList/dataOrderedList.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataOrderedList/dataOrderedList.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataOrderedList/dataOrderedList.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,3 @@
+.dr-spr{
+ display: block;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataTable/dataTable.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataTable/dataTable.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataTable/dataTable.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,116 @@
+.dr-table {
+ border-top: 1px solid;
+ border-left: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.dr-table-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-header {
+ background-color: #D4CFC7;
+ background-position: top left;
+ background-repeat: repeat-x;
+}
+
+.dr-table-header-continue {
+ background-color: #D4CFC7;
+}
+
+.dr-table-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: center;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subheader {
+ background-color: #F1EEE9;
+}
+
+.dr-table-subfooter {
+ background-color:#F1F1F1;
+}
+
+.dr-table-subheadercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: left;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subfootercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-header {
+ background-color: #F1EEE9;
+}
+
+.dr-subtable-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+}
+
+.dr-spr {
+ display: block;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dataTableScroller/dataTableScroller.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dataTableScroller/dataTableScroller.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dataTableScroller/dataTableScroller.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,38 @@
+.rich-datascr {
+ /*width : 600px;
+ display: table;*/
+}
+.rich-dtascroller-table {
+ background-color:#FFFFFF;
+ border:1px solid #C0C0C0;
+}
+
+.rich-datascr-button, .rich-datascr-button-dsbld {
+ background-color:#F1EEE9;
+ border:1px solid #C0C0C0;
+ cursor:pointer;
+ font-family:verdana;
+ font-size:11px;
+ width:25px;
+}
+
+.rich-datascr-button-dsbld {
+ color: gray;
+}
+
+.rich-datascr-act {
+ border-top:2px solid #000000;
+ color:#000000;
+ font-family:verdana;
+ font-size:11px;
+ width:25px;
+}
+
+.rich-datascr-inact {
+ border-top:2px solid #D4CFC7;
+ color: #D4CFC7;
+ cursor:pointer;
+ font-family:verdana;
+ font-size:11px;
+ width:25px;
+}
Added: workspace/kukeltje/xforms/plugins/resources/dropDownMenu/dropDownMenu.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dropDownMenu/dropDownMenu.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dropDownMenu/dropDownMenu.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,75 @@
+.rich-ddmenu-label {
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ height:auto;
+ left:0pt;
+ top:0pt;
+ white-space:nowrap;
+ width:auto;
+}
+.rich-ddmenu-label-unselect {
+ border:0pt solid transparent;
+}
+.rich-ddmenu-label-select {
+
+}
+.rich-ddmenu-label-disabled {
+
+}
+.rich-label-text-decor {
+ font-weight:bold;
+}
+.rich-menu-list-border {
+ font-family:Arial,Verdana,sans-serif;
+ background-color:#F1EEE9;
+ border-color:#C4C0B9;
+ border:1px solid;
+}
+.rich-menu-list-bg {
+ background:transparent none repeat-y scroll left center;
+ background-image:url(list-bg.png);
+ background-color:#F1EEE9;
+}
+
+[vpe-ddm-menu-ul],
+[vpe-ddm-menu-title-ul],
+[vpe-ddm-menu-children-ul] {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ width: 150px;
+ display: block;
+ cursor: pointer;
+}
+[vpe-ddm-menu-li],
+[vpe-ddm-menu-title-li] {
+ position: relative;
+ height: 20px;
+}
+[vpe-ddm-menu-li] ul,
+[vpe-ddm-menu-title-li] ul {
+ position: absolute;
+ left: 149px; /* Set 1px less than menu width */
+ top: 0;
+ display: none;
+}
+/*
+* Droping-down for top menu elements
+*/
+[vpe-ddm-menu-title-ul]:hover > li,
+[vpe-ddm-menu-title-ul]:hover > li > ul,
+[vpe-ddm-menu-title-ul]:hover > li > ul > li {
+ display: block;
+}
+/*
+* Droping-down for nested items
+*/
+[vpe-ddm-menu-li]:hover > ul,
+[vpe-ddm-menu-li]:hover > li {
+ display: block;
+}
+.dr-menu-top-div {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/dropDownMenu/list-bg.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/dropDownMenu/list-bg.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/dropDownMenu/menuComponents.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/dropDownMenu/menuComponents.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/dropDownMenu/menuComponents.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,57 @@
+.dr-menu-separator {
+ font-size : 0px;
+ border-top: 1px solid #bfbfc0;
+ margin : 2px 0px 2px 24px;
+}
+.dr-menu-item {
+ padding : 1px 35px 1px 1px;
+ white-space : nowrap;
+ position : relative;
+}
+.dr-menu-item-enabled {
+ border : 0px solid transparent;
+ padding : 2px 36px 2px 2px;
+}
+.dr-menu-item-hover {
+ border : 1px solid #4a70ab;
+ cursor : pointer;
+}
+.dr-menu-item-disabled {
+ border : 0px solid transparent;
+ cursor : default;
+ color : #839eca;
+}
+.dr-menu-icon {
+ margin-right : 10px;
+}
+.dr-menu-icon img {
+ vertical-align: middle;
+}
+.dr-menu-item a {
+ color : #000000;
+ text-decoration : none;
+}
+.dr-menu-node {
+ position : absolute;
+ background : url(node.gif) no-repeat top;
+ width : 7px;
+ height : 7px;
+ top : 7px;
+ right : 6px;
+ font-size : 1px;
+}
+.dr-menu-item-disabled .dr-menu-node {
+ background-position : bottom;
+}
+.dr-menu-separator{
+border-top-color:#C4C0B9;}
+.dr-menu-item{
+font-family:Arial, Verdana, sans-serif ;font-size:11px;}
+.dr-menu-item-disabled{
+color:#B1ADA7;}
+.dr-menu-item-hover{
+background-image: url(/Dropdownmenu-sample1/faces/a4j.res/org.richfaces.renderkit.html.images.background.MenuItemBackground/DATA/eAFb85aBtbiIQS-.KF2vKDM5Iy0xObVYryg1LyW1KDuzRC-jJDdHzymxONW9KDElMzWvRMUlsSRRgvvk-.vXvjExMTD5MIhmpCYCVTslJmenF-WX5qU45-fkF5UwCPtkJZYl6uck5qXre-aVpKanFln7MAhDVMOMA6stZKhjYKwoALpDEKRFD6RFD6pF6NGCJd8b2y2YGBg9GVjLEnNKUyuKGAQQ6vxKc5NSi9rWTJXlnvKgm4mBoaLg.8d3L4tBhjL.f3zvKgD4a1Wb);background-position:top left;background-repeat:repeat-x;border-color:#D4CFC7;background-color:#E3DED5;}
+.dr-menu-node{
+background-image: url(/Dropdownmenu-sample1/faces/a4j.res/org.richfaces.renderkit.html.images.MenuNodeImage/DATA/eAFb85aBtbiIwTm.KF2vKDM5Iy0xObVYryg1LyW1KDuzRC-jJDdHLzM3MR0o6puaV-qXn5LqCeKqoPBcEksSJbhPvr9.7RszEwOTDwNvSmZxYlJOaopzfk5-UQmDsE9WYlmifk5iXrq-Z15JanpqkbUPA096al5qUWIOWFEhQx0DY0UB0DWCILV6ILV6ULVCjxYs-d7YbsHEwOjJwFqWmFOaWlHEIIBQ51eam5Ra1LZmqiz3lAfdTAwMFQX.N65dXgwylPn.lfPHAffIVsA_);}
+.dr-menu-item a{
+color:#000000;}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/editor/editor.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/editor/editor.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/editor/editor.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,41 @@
+.richfacesSimpleSkin {
+ position:relative;
+}
+
+.richfacesSimpleSkin table.mceLayout {
+ background:#ECF4FE none repeat scroll 0 0;
+ border:1px solid #BED6F8;
+}
+
+.richfacesSimpleSkin * {
+ background:transparent none repeat scroll 0 0;
+ border:0 none;
+ color:#000000;
+ cursor:default;
+ font-weight:normal;
+ margin:0;
+ padding:0;
+ text-decoration:none;
+ white-space:nowrap;
+}
+
+.mceToolbar, .mceToolbarTable {
+ height:26px;
+}
+
+.mceToolbarTable {
+ position:relative;
+ margin-left:auto;
+ margin-right:auto;
+}
+
+.mceIframeContainer {
+ background:#FFFFFF none repeat scroll 0 0;
+}
+div.mce_panel {
+ display:block;
+ height:22px;
+ width:215px;
+ background-repeat:no-repeat;
+ background-image: url(editor_toolbar.gif);
+}
Added: workspace/kukeltje/xforms/plugins/resources/editor/editor_toolbar.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/editor/editor_toolbar.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/extendedDataTable/extendedDataTable.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/extendedDataTable/extendedDataTable.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/extendedDataTable/extendedDataTable.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,129 @@
+.dr-table {
+ border-top: 1px solid;
+ border-left: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.dr-table-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.extendedTable-input {
+ border-color:#C4C0B9;
+ border-style: inset;
+ border-width:1px;
+ width:100%;
+}
+
+.dr-table-header {
+ background-color: #D4CFC7;
+ background-position: top left;
+ background-repeat: repeat-x;
+}
+
+.dr-table-header-continue {
+ background-color: #D4CFC7;
+}
+
+.dr-table-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: center;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subheader {
+ background-color: #F1EEE9;
+}
+
+.dr-table-subheadercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: left;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subfootercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ background-color: #F1EEE9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-header {
+ background-color: #F1EEE9;
+}
+
+.dr-subtable-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+}
+
+.dr-spr {
+ display: block;
+}
+
+.dr-table-hidden {
+ overflow: hidden;
+ border: solid 1px #C4C0C9;
+}
+
+.dr-body-table-tr td {
+ overflow:hidden;
+}
Added: workspace/kukeltje/xforms/plugins/resources/extendedDataTable/sortable.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/extendedDataTable/sortable.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/fileUpload/fileUpload.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/fileUpload/fileUpload.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/fileUpload/fileUpload.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,54 @@
+.rich-fileupload-list-decor {
+ background-color: #FFFFFF;
+ border: 1px solid #C4C0C9;
+}
+
+.rich-fileupload-toolbar-decor {
+ background-color: #F1EEE9;
+ border-bottom: 1px solid #C4C0C9;
+ border-left: 1px solid #FFFFFF;
+ border-top: 1px solid #FFFFFF;
+ padding: 2px;
+ width: 100%;
+}
+
+.rich-fileupload-button-border {
+ border: 1px solid #C4C0C9;
+ margin: 2px;
+}
+
+.rich-fileupload-button-content {
+ padding: 2px 6px 2px 3px;
+ text-align: left;
+ white-space: nowrap;
+}
+
+.rich-fileupload-font {
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-fileupload-ico {
+ background-position: 0pt 50%;
+ background-repeat: no-repeat;
+ padding-left: 19px;
+ vertical-align: middle;
+}
+
+.rich-fileupload-ico-add {
+ background-image: url(ico_add.gif);
+}
+
+.rich-fileupload-ico-start {
+ background-image: url(ico_start.gif);
+}
+
+a.rich-fileupload-button-selection {
+ color: #000000;
+ display: block;
+ text-decoration: none;
+}
+
+.rich-fileupload-ico-clear {
+ background-image:url(ico_clear.gif);
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_add.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_add.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_clear.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_clear.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_start.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/fileUpload/ico_start.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/applyButton.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceInput/applyButton.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceInput/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/cancelButton.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceInput/cancelButton.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/inplaceInput.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/inplaceInput/inplaceInput.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/inplaceInput/inplaceInput.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,84 @@
+.rich-inplace-changed {
+ background-color: #F1F1F1;
+ background-image: url(red_arrow.gif);
+ border-bottom-color: #000000;
+ background-position: left top;
+ background-repeat: no-repeat;
+ border-bottom-style: dashed;
+ border-bottom-width: 1px;
+}
+
+.rich-inplace-view {
+ border:0px;
+ background-color: #F1F1F1;
+ border-bottom-color: #000000;
+ border-bottom-style: dashed;
+ border-bottom-width: 1px;
+
+ white-space: nowrap;
+}
+
+.rich-inplace-edit {
+
+}
+
+input.rich-inplace-field {
+ border-style: inset;
+ border-width: 1px;
+ left: 0pt;
+ margin: 0pt;
+ padding: 0pt;
+ position: relative;
+ top: 0pt;
+ background-color: #FEFFDA;
+ background-image: url(spacer.gif);
+ border-color: #C4C0B9;
+}
+
+.rich-inplace-input-controls-set {
+ white-space: nowrap;
+ z-index: 3;
+}
+
+.rich-inplace-shadow {
+ font-size: 11px;
+ position: absolute;
+}
+
+.rich-inplace-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 0pt none !important; .
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-shadow-tr {
+ background-position: right top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-shadow-bl {
+ background-position: left bottom;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-shadow-br {
+ background-position: right bottom;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-control {
+ background-position: center top;
+ background-repeat: repeat-x;
+ border-style: outset;
+ border-width: 1px;
+ margin: 0pt;
+ padding: 0pt;
+}
+
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/red_arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceInput/red_arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceInput/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceInput/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/button_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/button_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/inplaceSelect.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/inplaceSelect/inplaceSelect.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/inplaceSelect/inplaceSelect.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,190 @@
+.rich-inplace-view {
+ BORDER-BOTTOM-COLOR: #000;
+ BACKGROUND-COLOR: #f1f1f1
+}
+
+.rich-inplace-select-view {
+ border-bottom-style: dashed;
+ border-bottom-width: 1px;
+ white-space: nowrap;
+}
+
+.rich-inplace-select-edit {
+
+}
+
+input.rich-inplace-select-field {
+ border-style: inset;
+ border-width: 1px;
+ font-family: inherit;
+ font-size: inherit;
+ font-size-adjust: inherit;
+ font-stretch: inherit;
+ font-style: inherit;
+ font-variant: inherit;
+ font-weight: inherit;
+ left: 0pt;
+ line-height: inherit;
+ margin: 0pt;
+ padding: 0pt;
+ position: relative;
+ top: 0pt;
+}
+
+.rich-inplace-select-field {
+ border-style: inset;
+ border-width: 1px;
+ font-family: inherit;
+ font-size: inherit;
+ font-size-adjust: inherit;
+ font-stretch: inherit;
+ font-style: inherit;
+ font-variant: inherit;
+ font-weight: inherit;
+ left: 0pt;
+ line-height: inherit;
+ margin: 0pt;
+ padding: 0pt;
+ position: absolute;
+ top: 0pt;
+}
+
+input.rich-inplace-select-field {
+ background-color: #FEFFDA;
+ background-image: url(spacer.gif);
+ border-color: #C4C0B9;
+}
+
+.rich-inplace-select-field {
+ background-color: #FEFFDA;
+ border-color: #C4C0B9;
+}
+
+input.rich-inplace-select-arrow {
+ background-position: right center;
+ background-repeat: no-repeat;
+ border: 0pt none;
+ font-family: inherit;
+ font-size: inherit;
+ font-size-adjust: inherit;
+ font-stretch: inherit;
+ font-style: inherit;
+ font-variant: inherit;
+ font-weight: inherit;
+ line-height: inherit;
+ margin: 0pt;
+ padding: 0pt;
+ position: absolute;
+ width: 12px;
+}
+
+input.rich-inplace-select-arrow {
+ background-color: #FEFFDA;
+ background-image: url(arrow.gif);
+}
+
+.rich-inplace-select-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-br {
+ background-position: right bottom;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-list-position {
+ left: 0pt;
+ position: absolute;
+ top: -1px;
+}
+
+.rich-inplace-select-list-decoration {
+ border-style: outset;
+ border-width: 1px;
+ padding: 0pt;
+ background-color: #FEFFDA;
+ border-color: #C4C0B9;
+}
+
+.rich-inplace-select-item {
+ display: block;
+ padding: 2px;
+}
+
+.rich-inplace-select-font {
+ white-space: nowrap;
+}
+
+.rich-inplace-select-control-set {
+ white-space: nowrap;
+}
+
+.rich-inplace-select-shadow {
+ font-size: 11px;
+ left: 0pt;
+ position: absolute;
+ top: 0pt;
+}
+
+.rich-inplace-select-shadow-tl {
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-tr {
+ background-position: right top;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-bl {
+ background-position: left bottom;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-shadow-br {
+ background-position: right bottom;
+ background-repeat: repeat-x;
+ border: 0pt none !important;
+ background-image: url(bg_shadow.png);
+}
+
+.rich-inplace-select-control {
+ background-position: center top;
+ background-repeat: repeat-x;
+ border-style: outset;
+ border-width: 1px;
+ margin: 0pt;
+ padding: 0pt;
+ background-color: #E3DED5;
+ background-image: url(button_bg.gif);
+ border-color: #C4C0B9;
+}
+
+.rich-inplace-select-list-scroll {
+ overflow: auto;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inplaceSelect/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/handler.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/handler.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/input.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/input.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/numberSlider.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/numberSlider.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/numberSlider.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,90 @@
+.dr-insldr {
+ height: 20px;
+}
+
+.dr-insldr-field {
+ background-image: url(input.gif);
+ background-color: #FFFFFF;
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 1px inset;
+ border-color: #C4C0B9;
+ padding: 0 0 0 3px;
+ margin-top: 0;
+ margin-bottom: 0;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.dr-insldr-field-left {
+ margin-right: 10px;
+}
+
+.dr-insldr-field-right {
+ margin-left: 10px;
+}
+
+.dr-insldr-left-num {
+ text-align: left;
+ border-left: 1px solid;
+ padding: 0 3px;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ color: #000000;
+ border-color: #C4C0B9;
+ line-height: 11px;
+}
+
+.dr-insldr-right-num {
+ text-align: right;
+ border-right: 1px solid;
+ padding: 0 3px;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ color: #000000;
+ border-color: #C4C0B9;
+ line-height: 11px;
+}
+
+.dr-insldr-size {
+ width: 100%;
+}
+
+.dr-insldr-vert-spacer {
+ padding-top: 3px;
+}
+
+.dr-insldr-handler {
+ background-image: url(handler.gif);
+ background-color: transparent;
+ width: 7px;
+ height: 8px;
+ font-size: 1px;
+ position: absolute;
+ text-align: center;
+ z-index: 1;
+}
+
+.dr-insldr-track {
+ background-image: url(track.gif);
+ background-color: #ffffff;
+ background-position: left top;
+ background-repeat: repeat-x;
+ height: 8px;
+ font-size: 1px;
+}
+
+.rich-inslider-track {
+}
+
+.dr-insldr-track-decor-1 {
+ height: 100%;
+ width: 100%;
+ border: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.dr-insldr-track-decor-2 {
+ border: 1px solid white;
+ border-color: #ffffff;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/track.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSlider/track.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.jpg
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-arrows.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-input.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/background-input.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/inputNumberSpinner.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/inputNumberSpinner.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/inputNumberSpinner.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,41 @@
+.dr-spnr-c {
+}
+
+.dr-spnr-i {
+ border: 0 none;
+ padding: 0px 0px 0px 3px;
+ background: transparent none repeat scroll 0 0;
+ margin: 0px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-spnr-e {
+ background-image: url(background-input.png);
+ background-color: #ffffff;
+ padding: 0px;
+ margin: 0px;
+ background-position: left top;
+ background-repeat: repeat-x;
+ border-color: #D4CFC7;
+ border-width: 1px 0 1px 1px;
+ border-style: inset;
+}
+
+.dr-spnr-bn {
+ border-style: none;
+ display: block;
+ margin: 0 1px 1px 0;
+}
+
+.dr-spnr-b {
+ background-image: url(background-arrows.png);
+ background-color: #D4CFC7;
+ border-color: #D4CFC7;
+ border-style: solid;
+ padding: 0px;
+ margin: 0px;
+ background-position: left top;
+ background-repeat: repeat-x;
+ font-size: 0px;
+ border-width: 1px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/inputNumberSpinner/up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/menuGroup/arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/menuGroup/arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/menuGroup/menuGroup.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/menuGroup/menuGroup.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/menuGroup/menuGroup.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,50 @@
+.rich-menu-group {
+ font-family:Arial,Verdana,sans-serif;
+ color:#000000;
+ font-size:11px;
+}
+.rich-menu-group-label {
+ padding-left: 10px; /*padding for group icon*/
+}
+.rich-menu-group-folder {
+ padding-left: 10px; /*padding for group folder icon*/
+ padding-right: 10px; /*padding for group folder icon*/
+}
+.rich-menu-group-over {
+
+}
+.rich-menu-item-label {
+
+}
+.rich-menu-item-icon {
+
+}
+.rich-menu-item-folder {
+
+}
+.rich-menu-item-label-disabled {
+
+}
+.rich-menu-item-icon-disabled {
+
+}
+.rich-menu-item-folder-disabled {
+
+}
+.rich-menu-item-icon-enabled {
+ border:0pt solid transparent;
+}
+.rich-menu-item-icon-selected {
+
+}
+.rich-menu-list-border {
+
+}
+.rich-menu-list-bg {
+
+}
+.dr-menu-group-top-div {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/menuGroup/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/menuGroup/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/menuItem/menuItem.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/menuItem/menuItem.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/menuItem/menuItem.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,42 @@
+.rich-menu-item {
+ font-family:Arial,Verdana,sans-serif;
+}
+.rich-menu-item-label {
+ /*padding-left: 10px;*/ /*padding for item icon*/
+}
+.rich-menu-item-icon {
+ padding:2px 10px 2px 2px;
+ border:0pt solid transparent;
+}
+.rich-menu-item-disabled {
+
+}
+.rich-menu-item-enabled {
+
+}
+.rich-menu-item-hover {
+
+}
+.rich-menu-item-label-disabled {
+
+}
+.rich-menu-item-icon-disabled {
+
+}
+.rich-menu-item-label-enabled {
+
+}
+.rich-menu-item-icon-enabled {
+
+}
+.rich-menu-item-label-selected {
+
+}
+.rich-menu-item-icon-selected {
+
+}
+.dr-menu-item-top-div {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/menuItem/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/menuItem/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/bottom.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/bottom.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/button_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/button_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/orderingList.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/orderingList/orderingList.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/orderingList/orderingList.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,135 @@
+.dr-buttons-border {
+ border:1px solid;
+ margin-bottom:3px;
+ border-color: #000000
+}
+
+.rich-ordering-list-caption {
+ white-space: normal;
+ word-wrap: break-word;
+ font-weight: bold;
+ font-size:12px;
+}
+
+/* BUTTONS DIV */
+.rich-ordering-list-button-valign {
+ vertical-align:middle;
+}
+
+.rich-ordering-list-button-layout {
+ padding:15px 8px 15px 0pt;
+}
+
+.rich-ordering-controls {
+ font-family:Arial,Verdana,sans-serif;
+ margin-bottom:2px;
+ background-repeat: repeat-x;
+}
+.rich-ordering-control-top {
+
+}
+.rich-ordering-control-bottom {
+
+}
+.rich-ordering-control-up {
+
+}
+.rich-ordering-control-down {
+
+}
+
+.rich-ordering-list-button {
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ cursor: pointer;
+}
+
+.rich-ordering-list-button-content {
+ font-family:Arial,Verdana,sans-serif;
+ padding:0pt 4px 0pt 1px;
+ font-size:11px;
+ text-align:left;
+ white-space:nowrap;
+ /*border-width:0px;*/
+}
+
+a.rich-ordering-list-button-selection:visited, a.rich-ordering-list-button-selection:link, a.rich-ordering-list-button-a-disabled:visited, a.rich-ordering-list-button-a-disabled:link {
+ text-decoration:none;
+}
+
+
+.rich-ordering-list-button-content img {
+ margin-right:2px;
+ vertical-align:middle;
+}
+*/
+
+/* TABLE CONTENT */
+
+.rich-ordering-list-body {
+ /*border:0pt solid;*/
+}
+
+.rich-ordering-list-output {
+ font-family:Arial,Verdana,sans-serif;
+ border-color:#C0C0C0;
+ border-width:1px;
+ width: 100%;
+}
+
+.rich-ordering-list-content {
+ font-family:Arial,Verdana,sans-serif;
+ overflow:hidden;
+ width:100%;
+}
+.rich-ordering-list-header {
+ font-family:Arial,Verdana,sans-serif;
+ overflow:hidden;
+ width:100%;
+ font-size:11px;
+ text-align: center;
+}
+
+.rich-ordering-list-footer {
+ font-family:Arial,Verdana,sans-serif;
+ overflow:hidden;
+ width:100%;
+ font-size:11px;
+ text-align: center;
+}
+
+.rich-ordering-list-table-header {
+ background-repeat: repeat-x;
+}
+
+.rich-ordering-list-table-header-cell{
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ text-align: center;
+}
+
+.rich-ordering-list-table-footer {
+ background-repeat: repeat-x;
+}
+
+.rich-ordering-list-table-footer-cell{
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ text-align: center;
+}
+
+.rich-ordering-list-items {
+ width:100%;
+}
+
+.rich-ordering-list-row {
+ font-size:11px;
+}
+
+.rich-ordering-list-cell {
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ white-space:normal;
+ text-align: center;
+ width: 100%;
+}
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/table_header_cell_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/table_header_cell_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/top.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/top.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/orderingList/up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/orderingList/up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,2 @@
+.rich-paint2D{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/paint2D/paint2D.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panel/panel.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/panel/panel.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/panel/panel.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,28 @@
+.dr-pnl{
+ border-width: 1px;
+ border-style: solid;
+ padding: 1px;
+ background-color: #FFFFFF;
+ border-color: #C4C0B9;
+}
+
+.dr-pnl-h{
+ padding: 2px;
+ border-width: 1px;
+ border-style: solid;
+ background-position: top left;
+ background-repeat: repeat-x;
+ background-color: #D4CFC7;
+ border-color: #D4CFC7;
+ font-size: 11px;
+ color: #000000;
+ font-weight: bold;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-pnl-b{
+ padding : 10px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/panelBar/background.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelBar/background.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelBar/panelBar.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/panelBar/panelBar.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/panelBar/panelBar.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,55 @@
+.dr-pnlbar{
+ border: 1px solid;
+ padding: 1px;
+ border-color: #D4CFC7;
+}
+.dr-pnlbar-ext{
+ border-bottom: 0px !important;
+ background-color: #FFFFFF;
+}
+.dr-pnlbar-h{
+ border: 0px solid red;
+ padding: 0px 1px 1px 5px;
+ cursor: pointer;
+ background-position: top left;
+ background-repeat: repeat-x;
+ vertical-align: middle;
+ color: #000000;
+ background-color: #D4CFC7;
+ background-image: url(background.gif);
+ background-position : left top;
+ background-repeat: repeat-x;
+ font-size: 11px;
+ font-weight: bold;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-pnlbar-h-act{
+ border: 0px solid red;
+ padding: 0px 1px 1px 5px;
+ cursor: pointer;
+ background-color: #D4CFC7;
+ background-image: url(background.gif);
+ background-position: top left;
+ background-repeat: repeat-x;
+ vertical-align: middle;
+ color: #000000;
+ background-color: #D4CFC7;
+ font-size: 11px;
+ font-weight: bold;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-pnlbar-c{
+ padding: 10px;
+ text-align: left;
+ vertical-align: top;
+ color: #000000;
+}
+
+.dr-pnlbar-b{
+ border-top-width: 0px !important;
+ border-left-width: 0px !important;
+ border-right-width: 0px !important;
+ padding : 0px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/panelMenu/style.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/panelMenu/style.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/panelMenu/style.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,4 @@
+.rich-pmenu {
+ overflow:hidden;
+ padding-right:4px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevron.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevron.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronDown.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronDown.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronUp.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/chevronUp.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/disc.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/disc.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/grid.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/grid.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/style.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/style.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/style.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,57 @@
+.rich-pmenu-group{
+
+}
+.rich-pmenu-group-icon {
+ width: 16;
+ height: 16;
+ vspace: 0;
+ hspace: 0;
+ vertical-align: middle;
+}
+
+.dr-pmenu-top-group-div, .dr-pmenu-group-div {
+ overflow:hidden;
+ padding:1px;
+ width:100%;
+ cursor: pointer;
+}
+
+.dr-pmenu-top-group-div {
+ border:1px solid #C4C0B9;
+ margin-bottom:3px;
+}
+
+.dr-pmenu-group {
+ border-top: 1px solid;
+ border-top-color: #C4C0B9;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ cursor: pointer;
+ padding:2px 1px 2px 2px;
+}
+
+.dr-pmenu-top-group {
+ background-color: #D4CFC7;
+ background-image: url(topGroupBkgImg.png);
+ background-position: left top;
+ background-repeat: repeat-x;
+ height: 20px;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ cursor: pointer;
+ padding:2px 1px 2px 2px;
+}
+
+.rich-pmenu-top-group-self-label, .rich-pmenu-group-self-label {
+ /*padding-left: 5px;
+ width: 100%;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: bold;*/
+}
+
+.rich-pmenu-disabled-element {
+ /*color: #B1ADA7;*/
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/topGroupBkgImg.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/topGroupBkgImg.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangle.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangle.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleDown.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleDown.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleUp.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuGroup/triangleUp.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuItem/points.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuItem/points.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuItem/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/panelMenuItem/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/panelMenuItem/style.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/panelMenuItem/style.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/panelMenuItem/style.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,28 @@
+.rich-pmenu-item-label, .rich-pmenu-top-item-label {
+ padding-left: 5px;
+ width: 100%;
+}
+
+.rich-pmenu-item, .rich-pmenu-top-item {
+ cursor:pointer;
+ padding: 0px;
+ color:#000000;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+}
+
+.dr-pmenu-nowrap {
+ white-space: nowrap;
+}
+
+.dr-pmenu-top-self-div {
+ border-top: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.rich-pmenu-disabled-element {
+ color:#B1ADA7;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ width: 100%;
+}
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_copy_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_first.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_first.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_last.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_last.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_remove_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/arrow_up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/header.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/header.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/pickList/pickList.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/pickList/pickList.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/pickList/pickList.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,78 @@
+.rich-list-picklist {
+ moz-user-select: -moz-none;
+}
+.rich-picklist-list {
+ background-color:#FFFFFF;
+ border-style:none;
+ border-width:0pt;
+}
+.rich-picklist-target-items {
+ BORDER-RIGHT: #c4c0c9 1px solid;
+ BORDER-TOP: #c4c0c9 1px solid;
+ BORDER-LEFT: #c4c0c9 1px solid;
+ BORDER-BOTTOM: #c4c0c9 1px solid;
+ BACKGROUND-COLOR: #fff
+}
+
+.rich-picklist-source-items {
+ BORDER-RIGHT: #c4c0c9 1px solid;
+ BORDER-TOP: #c4c0c9 1px solid;
+ BORDER-LEFT: #c4c0c9 1px solid;
+ BORDER-BOTTOM: #c4c0c9 1px solid;
+ BACKGROUND-COLOR: #fff
+}
+
+.rich-picklist-controls {
+ PADDING-RIGHT: 8px;
+ PADDING-LEFT: 8px;
+ PADDING-BOTTOM: 5px;
+ PADDING-TOP: 0px
+}
+
+.rich-picklist-list-content {
+ overflow:auto;
+}
+
+.rich-picklist-control-button-class {
+ BORDER-RIGHT: 1px solid;
+ BORDER-TOP: 1px solid;
+ MARGIN-BOTTOM: 3px;
+ BORDER-LEFT: 1px solid;
+ BORDER-BOTTOM: 1px solid;
+ BORDER-LEFT-COLOR: #c4c0c9;
+ BORDER-BOTTOM-COLOR: #c4c0c9;
+ BORDER-TOP-COLOR: #c4c0c9;
+ BORDER-RIGHT-COLOR: #c4c0c9
+}
+
+.rich-list-picklist-button {
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ cursor: pointer;
+}
+.rich-list-picklist-button-content{
+ PADDING-RIGHT: 4px;
+ PADDING-LEFT: 1px;
+ PADDING-BOTTOM: 0px;
+ PADDING-TOP: 0px;
+ WHITE-SPACE: nowrap;
+ TEXT-ALIGN: left;
+ FONT-SIZE: 11px;
+ FONT-FAMILY: Arial,Verdana,sans-serif
+
+}
+.rich-list-picklist-button-content IMG {
+ VERTICAL-ALIGN: middle;
+ MARGIN-RIGHT: 2px
+}
+.rich-picklist-internal-tab {
+width:100%;
+}
+
+.rich-picklist-source-cell, .rich-picklist-target-cell, .rich-picklist-source-cell *, .rich-picklist-target-cell * {
+color:#000000;
+font-family:Arial,Verdana,sans-serif;
+font-size:11px;
+white-space:nowrap;
+}
Added: workspace/kukeltje/xforms/plugins/resources/pickList/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/pickList/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/progressBar/progressBar.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/progressBar/progressBar.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/progressBar/progressBar.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,32 @@
+.rich-progress-bar-block {
+ white-space: nowrap;
+}
+
+.rich-progress-bar-width {
+ width: 200px;
+}
+
+.rich-progress-bar-shell {
+ border: 1px solid;
+ margin-bottom: 2px;
+}
+
+.rich-progress-bar-height {
+ height: 13px;
+}
+
+.rich-progress-bar-uploaded {
+ background-repeat: repeat-x;
+ background-color: #E79A00;
+ background-image: url(upload_status.gif);
+}
+
+.rich-progress-bar-remained {
+ font-weight: bold;
+ position: relative;
+ text-align: center;
+}
+
+.rich-progress-bar-padding {
+ padding: 0pt;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/progressBar/upload_status.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/progressBar/upload_status.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/scrollableDataTable/scrollableDataTable.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/scrollableDataTable/scrollableDataTable.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/scrollableDataTable/scrollableDataTable.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,121 @@
+.dr-table {
+ border-top: 1px solid;
+ border-left: 1px solid;
+ border-color: #C4C0B9;
+}
+
+.dr-table-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-cell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-header {
+ background-color: #D4CFC7;
+ background-position: top left;
+ background-repeat: repeat-x;
+}
+
+.dr-table-header-continue {
+ background-color: #D4CFC7;
+}
+
+.dr-table-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: center;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subheader {
+ background-color: #F1EEE9;
+}
+
+.dr-table-subheadercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ font-color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: left;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-table-subfootercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-header {
+ background-color: #F1EEE9;
+}
+
+.dr-subtable-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: center;
+ font-size: 11px;
+ color: #000000;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+.dr-subtable-footercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ text-align: left;
+}
+
+.dr-spr {
+ display: block;
+}
+
+.dr-table-hidden {
+ overflow: hidden;
+ border: solid 1px #C4C0C9;
+}
+
+.dr-sdt-hr {
+ background-color:#BED6F8;
+}
Added: workspace/kukeltje/xforms/plugins/resources/separator/separator.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/separator/separator.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/separator/separator.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,25 @@
+@CHARSET "UTF-8";
+.td-parentdiv {
+font-size: 0px;}
+.separator-color {
+ border-color: #D4CFC7;}
+
+ .dr-table-headercell {
+ border-right: 1px solid;
+ border-bottom: 1px solid;
+ border-color: #C4C0B9;
+ padding: 4px 4px 4px 4px;
+ color: #000000;
+ text-align: center;
+ font-weight: bold;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+.dr-table-header-continue {
+ background-color: #D4CFC7;
+}
+.dr-table-header {
+ background-color: #D4CFC7;
+ background-position: top left;
+ background-repeat: repeat-x;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_copy_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_first.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_first.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_last.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_last.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_remove_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/arrow_up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/header.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/shuttle/header.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/shuttle/shuttle.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/shuttle/shuttle.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/shuttle/shuttle.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,89 @@
+.rich-list-shuttle {
+}
+
+.rich-shuttle-source-caption,.rich-shuttle-target-caption {
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ font-weight: bold;
+ text-align:left;
+}
+
+.rich-shuttle-list-header {
+ overflow: hidden;
+}
+
+.rich-shuttle-header-tab-cell {
+ padding: 2px;
+ border-style: solid;
+ font-weight: normal;
+ white-space: nowrap;
+ background-repeat: repeat-x;
+ border-top: 0;
+ border-left: 0;
+ background-color: #E3DED5;
+ color: #000;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+ border-right-width: 1px;
+ border-bottom-width: 1px;
+ border-right-color: #C4C0C9;
+ border-bottom-color: #C4C0C9;
+
+}
+
+.
+rich-shuttle-header-tab-cell-last {
+ border-right-width: 0;
+}
+
+.rich-shuttle-list-content {
+ background-color: #FFF;
+ border-color: #C0C0C0;
+ border-width: 1px;
+ border-style: solid;
+ overflow: auto; //
+ display: block;
+}
+
+.rich-shuttle-source-row,.rich-shuttle-target-row {
+
+}
+
+.rich-shuttle-controls {
+ padding: 0 8px 5px 8px;
+}
+
+.rich-shuttle-control {
+ border: 1px solid;
+ margin-bottom: 3px;
+ border-color: #C0C0C0;
+}
+
+.rich-shuttle-meta-button {
+ background: top left repeat-x;
+ background-color: #E3DED5;
+
+}
+
+.rich-shuttle-button {
+ background: top left repeat-x;
+ padding: 2px;
+ cursor: pointer;
+ //background-color: #E3DED5;
+ color: #000;
+ ont-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-shuttle-button-content {
+ padding: 0 4px 0 1px;
+ text-align: left;
+ white-space: nowrap;
+ font-family: Arial, Verdana, sans-serif;
+ font-size: 11px;
+}
+
+.rich-shuttle-button-content img { //
+ margin-right: 2px;
+ vertical-align: middle;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/simpleTogglePanel/simpleTogglePanel.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/simpleTogglePanel/simpleTogglePanel.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/simpleTogglePanel/simpleTogglePanel.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,43 @@
+.dr-stglpnl{
+ border: 1px solid #678FC5;
+ background-color: #BFD0E9;
+ padding: 1px;
+ background-position: top right;
+ background-repeat: no-repeat;
+ background-color: #FFFFFF;
+ border-color: #C4C0B9;
+}
+
+.dr-stglpnl-h{
+ border-width: 1px;
+ border-style: solid;
+ background-color: #224986;
+ font-size: 11px;
+ color: #ffffff;
+ cursor: pointer;
+ font-weight: bold;
+ font-family: verdana;
+ padding: 2px;
+ background-image: url(coll_panel_bg.gif);
+ background-position: top left;
+ background-repeat: repeat-x;
+ background-color: #D4CFC7;
+ border-color: #D4CFC7;
+ font-size: 11px;
+ color: #000000;
+ font-weight: bold;
+ font-family: Arial, Verdana, sans-serif;
+ height: 14px;
+}
+
+.dr-stglpnl-b{
+ font-size: 11px;
+ color: #000000;
+ font-family: verdana;
+ padding: 10px;
+ text-align: left;
+ vertical-align: top;
+ background-color: #FFFFFF;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/spacer/spacer.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/spacer/spacer.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/spacer/spacer.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,2 @@
+.rich-spacer{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/spacer/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/spacer/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tabPanel/active.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tabPanel/active.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tabPanel/border.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tabPanel/border.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tabPanel/disabled.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tabPanel/disabled.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tabPanel/inactive.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tabPanel/inactive.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tabPanel/tabPanel.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/tabPanel/tabPanel.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/tabPanel/tabPanel.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,88 @@
+
+.rich-tabpanel{
+
+}
+
+.rich-tabpanel-content {
+ border-width: 1px;
+ border-style: solid;
+ font-size: 11px;
+ font-family: verdana;
+ color: #000000;
+ vertical-align: top;
+ background-color: #FFFFFF;
+ border-color: #C4C0B9;
+}
+
+.rich-tabpanel-content-position {
+ top: -1px;
+ height: 100%;
+}
+
+.rich-tabhdr-side-border {
+}
+
+.rich-tabhdr-side-cell {
+
+}
+
+.rich-tabhdr-cell-active {
+
+}
+
+.rich-tabhdr-cell-inactive {
+ padding-top: 2px;
+ padding-bottom: 1px;
+}
+
+.rich-tabhdr-cell-disabled {
+ padding-top: 2px;
+ padding-bottom: 1px;
+}
+
+.rich-tab-header {
+ border-style: solid;
+ border-width: 1px 1px 0pt;
+ /*border-top-width: 1px;
+ border-top-style: solid;
+ border-top-color: #C4C0B9;*/
+ background-repeat: no-repeat;
+ background-position: top;
+ padding: 2px 10px 2px 10px;
+ text-align: center;
+ color: #000000;
+ font-size: 11px;
+ font-family: Arial, Verdana, sans-serif;
+}
+
+rich-tab-label {
+
+}
+
+.rich-tab-active {
+ background-image: url(active.gif);
+ background-repeat: repeat-x;
+ background-position: top;
+ cursor: default;
+ color:#000000;
+ border-color: #FFFFFF;
+ background-color:#FFFFFF;
+}
+
+.rich-tab-inactive {
+ background-image: url(inactive.gif);
+ background-repeat: repeat-x;
+ background-position: top;
+ cursor: default;
+ border-color: #ffffff;
+}
+
+.rich-tab-disabled {
+ background-image: url(disabled.gif);
+ background-repeat: repeat-x;
+ background-position: top;
+ cursor: default;
+ border-color: #ffffff;
+ color: #848079;
+}
+
Added: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorDisc.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorDisc.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorGrid.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorGrid.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorSquare.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/toolBar/separatorSquare.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/toolBar/toolBar.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/toolBar/toolBar.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/toolBar/toolBar.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,17 @@
+.dr-toolbar-ext {
+ border:1px solid;
+ border-color:#C4C0B9;
+ padding:0px;
+ background-color:#D4CFC7;
+ background-position:top left;
+ background-repeat:repeat-x;
+}
+
+.dr-toolbar-int{
+ font-size:11px;
+ color:#000000;
+ font-weight:bold;
+ font-family:Arial, Verdana, sans-serif;
+ padding:2px 10px 2px 10px;
+ white-space:nowrap;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/resources/tree/divLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/divLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNode.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNode.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNodeWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconClosedNodeWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsed.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsedWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconCollapsedWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconLeaf.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconLeaf.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconLeafWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconLeafWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNode.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNode.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNodeWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsed.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithAllLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithAllLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/iconNotCollapsedWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/leftLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/leftLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/line.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/line.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/rightLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/rightLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/tree/tree.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/tree/tree.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/tree/tree.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,24 @@
+.treePictureStyle {
+ width: 22px;
+ height: 22px;
+}
+
+.treeNodeNameStyle {
+ width: 100%;
+ vertical-align: middle;
+ text-align: left;
+}
+
+.dr-tree-h-ic-div {
+ margin-left: 10px;
+ padding-left: 12px;
+}
+
+.dr-tree-full-width {
+ width: 100%;
+}
+
+.dr-tree-h-ic-line-position {
+ background-position: center;
+ background-repeat: repeat-y;
+}
Added: workspace/kukeltje/xforms/plugins/resources/tree/unresolved.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/plugins/resources/tree/unresolved.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/plugins/resources/xforms/xforms.css
===================================================================
--- workspace/kukeltje/xforms/plugins/resources/xforms/xforms.css (rev 0)
+++ workspace/kukeltje/xforms/plugins/resources/xforms/xforms.css 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,117 @@
+.xfDisabled {
+ display: none;
+}
+
+.xfEnabled {
+
+}
+
+.xfGroup .xfGroup {
+ border-top-color: black;
+ border-top-style: solid;
+ border-top-width: 1px;
+ margin-top: 20px;
+ margin-left: 30px;
+ margin-bottom: 40px;
+ border-bottom-color: black;
+ border-bottom-style: solid;
+ border-bottom-width: 1px;
+}
+
+.xfGroup>.xfLabel {
+ width: 160px;
+ text-align: left;
+ vertical-align: top;
+ font-weight: bold;
+ font-size: larger;
+ clear: both;
+ text-transform: uppercase;
+ display: block;
+ margin-bottom: 15px;
+ margin-top: 5px;
+ color: grey;
+}
+
+.xfInput .xfLabel,.xfSecret .xfLabel,.xfUpload .xfLabel,.xfOutput .xfLabel, .xfSelect .xfLabel,.xfSelect1 .xfLabel
+ {
+ width: 140px;
+ text-align: right;
+ float: left;
+ margin-right: 10px;
+}
+
+html,body,#main {
+ width: 100%; /* make the body expand to fill the visible window */
+ height: 100%;
+ overflow: hidden; /* erase window level scrollbars */
+ padding: 0 0 0 0;
+ margin: 0 0 0 0;
+ font: 10pt Arial, Myriad, Tahoma, Verdana, sans-serif;
+}
+
+.xfSelectorItem .xfLabel {
+ width: 140px;
+ text-align: right;
+ display: inline;
+ float: none;
+}
+
+.xfRequired .xfLabel::before {
+ content: "* ";
+ color: red;
+}
+
+.xfRange .xfLabel {
+ width: 100px;
+ display: block;
+ text-align: left;
+ float: left;
+}
+
+.xfUpload.xfLabel {
+ width: 110px;
+}
+
+.xfRange .xfHelpIcon {
+ float: none;
+ display: block;
+}
+
+.xfTextarea .xfLabel {
+ width: 200px;
+ text-align: left;
+ display: block;
+ float: left;
+}
+
+.xfTextarea .xfHelpIcon {
+ float: none;
+ display: block;
+}
+
+.xfTrigger {
+ width: 140px;
+}
+
+.xfHelpIcon {
+ float: left;
+}
+
+.row {
+ height: 50px;
+}
+
+.entry {
+ padding-right: 10px;
+ vertical-align: top;
+}
+
+input.xfValue.xfInvalid {
+ background-color: rgb(255, 128, 128);
+}
+
+span.xfValue.xfInvalid::after {
+ color: red;
+ content: " (!)";
+}
+
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,1015 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package nl.fortythree.jbosstools.vpe.xforms;
+
+
+import java.io.File;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IFileEditorInput;
+import org.eclipse.ui.editors.text.ILocationProvider;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.ElService;
+import org.jboss.tools.vpe.editor.util.FileUtil;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.xpcom.XPCOMException;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
+
+/**
+ * The Class ComponentUtil.
+ */
+public class ComponentUtil {
+
+ /** The Constant EMPTY_SELECT_ITEM_VALUE. */
+ private static final String EMPTY_SELECT_ITEM_VALUE = "<f:selectItem/>"; //$NON-NLS-1$
+
+ /** The Constant EMPTY_SELECT_ITEMS_VALUE. */
+ private static final String EMPTY_SELECT_ITEMS_VALUE = "<f:selectItems/>"; //$NON-NLS-1$
+
+ /** The Constant SELECT_ITEMS. */
+ private static final String SELECT_ITEMS = "selectItems"; //$NON-NLS-1$
+
+ /** The Constant SELECT_ITEM. */
+ private static final String SELECT_ITEM = "selectItem"; //$NON-NLS-1$
+
+ /**
+ * Gets child of Facet element by name. If facet has a few children the
+ * method will return first one.
+ *
+ * @param sourceElement the source element
+ * @param facetName the facet name
+ * @param returnTextNode return child text node if facet doesn't have any child elements;
+ *
+ * @return the facet
+ */
+ public static Node getFacet(Element sourceElement, String facetName, boolean returnTextNode) {
+ NodeList children = sourceElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node node = children.item(i);
+ if (node instanceof Element && node.getNodeName() != null && node.getNodeName().indexOf(":facet") > 0) { //$NON-NLS-1$
+ Element element = (Element) node;
+ String name = element.getAttribute("name"); //$NON-NLS-1$
+ if (facetName.equals(name)) {
+ NodeList childNodes = element.getChildNodes();
+ Text textNode = null;
+ for (int j = 0; j < childNodes.getLength(); j++) {
+ Node child = childNodes.item(j);
+ if (child instanceof Element) {
+ return child;
+ } else if (child instanceof Text) {
+ textNode = (Text) child;
+ }
+ }
+ if (returnTextNode) {
+ return textNode;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Gets all facets of sourceElement. If facet has a few children the method
+ * will return first one.
+ *
+ * @param sourceElement the source element
+ * @param facetName *
+ * param returnTextNode return child text node if facet doesn't have
+ * any child elements;
+ * @param returnTextNode the return text node
+ *
+ * @return the facets
+ */
+ public static ArrayList<Node> getFacets(Element sourceElement, boolean returnTextNode) {
+ ArrayList<Node> facets = new ArrayList<Node>();
+ NodeList children = sourceElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node node = children.item(i);
+ if (node instanceof Element && "f:facet".equals(node.getNodeName())) { //$NON-NLS-1$
+ Element element = (Element) node;
+ NodeList childNodes = element.getChildNodes();
+ Text textNode = null;
+ for (int j = 0; j < childNodes.getLength(); j++) {
+ Node child = childNodes.item(j);
+ if (child instanceof Element) {
+ facets.add(child);
+ break;
+ } else if (child instanceof Text) {
+ textNode = (Text) child;
+ }
+ }
+ if (returnTextNode && facets.isEmpty()) {
+ facets.add(textNode);
+ }
+ }
+ }
+ return facets;
+ }
+
+ /**
+ * Gets child of Facet element by name. If facet has a few children the
+ * method will return first one.
+ *
+ * @param sourceElement the source element
+ * @param facetName the facet name
+ *
+ * @return the facet
+ */
+ public static Element getFacet(Element sourceElement, String facetName) {
+ return (Element) getFacet(sourceElement, facetName, false);
+ }
+
+ /**
+ * Gets the facet element.
+ *
+ * @param sourceElement the source element
+ * @param facetName the facet name
+ * @param returnTextNode the return text node
+ *
+ * @return the facet element
+ */
+ public static Element getFacetElement(Element sourceElement,
+ String facetName) {
+ NodeList children = sourceElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node node = children.item(i);
+ if (node instanceof Element && node.getNodeName() != null
+ && node.getNodeName().indexOf(":facet") > 0) { //$NON-NLS-1$
+ Element facetElement = (Element) node;
+ String name = facetElement.getAttribute("name"); //$NON-NLS-1$
+ if (facetName.equals(name)) {
+ return facetElement;
+ }
+ }
+ }
+ return null;
+ }
+
+
+ /**
+ *
+ * @param parentElement
+ * @param facetName
+ * @param order
+ * - indicate what facet should take first or last.
+ * @return
+ */
+ public static Element getFacetElement(Element parentElement,
+ String facetName, boolean last) {
+
+ NodeList children = parentElement.getChildNodes();
+
+ if (children != null) {
+
+ int index = last ? children.getLength()-1 : 0;
+ int step = last ? -1 : 1;
+ int stopIndex = last ? -1 : children.getLength();
+
+ while (index != stopIndex) {
+
+ Node child = children.item(index);
+
+ if ((child.getNodeType() == Node.ELEMENT_NODE)
+ && XForms.TAG_FACET.equals(child.getLocalName())
+ && facetName.equals(((Element) child)
+ .getAttribute(XForms.ATTR_NAME))) {
+ return (Element) child;
+ }
+
+ index += step;
+
+ }
+
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns true if "rendered" attribute of source element does not contain
+ * "false" value.
+ *
+ * @param sourceElement the source element
+ *
+ * @return true, if is rendered
+ */
+ public static boolean isRendered(Element sourceElement) {
+ return !Constants.FALSE.equalsIgnoreCase(sourceElement.getAttribute("rendered")); //$NON-NLS-1$
+ }
+
+ /**
+ * Sets CSS link in visual html document.
+ *
+ * @param ext the ext
+ * @param pageContext the page context
+ * @param cssHref the css href
+ */
+ public static void setCSSLink(VpePageContext pageContext, String cssHref, String ext) {
+ String pluginPath = XFormsTemplatesActivator.getPluginResourcePath();
+ IPath pluginFile = new Path(pluginPath);
+ File cssFile = pluginFile.append(cssHref).toFile();
+ if (cssFile.exists()) {
+ String cssPath = "file:///" + cssFile.getPath().replace('\\', '/'); //$NON-NLS-1$
+ pageContext.getVisualBuilder().replaceLinkNodeToHead(cssPath, ext, true);
+ }
+ }
+
+ /**
+ * Gets the absolute resource path.
+ *
+ * @param resourcePathInPlugin the resource path in plugin
+ *
+ * @return the absolute resource path
+ */
+ public static String getAbsoluteResourcePath(String resourcePathInPlugin) {
+ String pluginPath = XFormsTemplatesActivator.getPluginResourcePath();
+ IPath pluginFile = new Path(pluginPath);
+ File file = pluginFile.append(resourcePathInPlugin).toFile();
+ if (file.exists()) {
+ return file.getAbsolutePath();
+ } else {
+ throw new IllegalArgumentException("Can't get path for " //$NON-NLS-1$
+ + resourcePathInPlugin);
+ }
+ }
+
+ /**
+ * Gets the absolute workspace path.
+ *
+ * @param resourcePathInWorkspace the relative path in workspace
+ *
+ * @return the absolute workspace path
+ */
+ public static String getAbsoluteWorkspacePath(
+ String resourcePathInWorkspace, VpePageContext pageContext) {
+
+ String resolvedValue = resourcePathInWorkspace
+ .replaceFirst(
+ "^\\s*(\\#|\\$)\\{facesContext.externalContext.requestContextPath\\}", Constants.EMPTY); //$NON-NLS-1$
+
+ IFile file = null;
+ if (pageContext.getVisualBuilder().getCurrentIncludeInfo() != null)
+ file = pageContext.getVisualBuilder().getCurrentIncludeInfo()
+ .getFile();
+
+ if (file == null)
+ return resolvedValue;
+
+ resolvedValue = ElService.getInstance().replaceEl(file, resolvedValue);
+
+ URI uri = null;
+ try {
+ uri = new URI(resolvedValue);
+ } catch (URISyntaxException e) {
+ }
+
+ if ((uri != null)
+ && (uri.isAbsolute() || (new File(resolvedValue)).exists()))
+ return resolvedValue;
+
+ return Constants.FILE_PREFIX
+ + FileUtil.getFile(resolvedValue, file).getLocation()
+ .toPortableString();
+ }
+
+ /**
+ * Adds image as attribute to IMG tag.
+ *
+ * @param img the img
+ * @param fileImageName the file image name
+ */
+ public static void setImg(nsIDOMElement img, String fileImageName) {
+ img.setAttribute(HTML.ATTR_SRC, "file://" //$NON-NLS-1$
+ + getAbsoluteResourcePath(fileImageName).replace('\\', '/'));
+ }
+
+ /**
+ * Sets the attribute to element children
+ *
+ * @param attrName
+ * attribute name
+ * @param attrValue
+ * attribute value
+ * @param children
+ * children
+ */
+ public static void applyAttributeValueOnChildren(String attrName,
+ String attrValue, List<nsIDOMElement> children) {
+ if (children == null || attrName == null || attrValue == null) {
+ return;
+ }
+ for (nsIDOMElement child : children) {
+ child.setAttribute(attrName, attrValue);
+ applyAttributeValueOnChildren(attrName, attrValue,
+ getElementChildren(child));
+ }
+ }
+
+ /**
+ * Gets element's children of type nsIDOMElement. No text nodes will be
+ * returned.
+ *
+ * @param element
+ * the element
+ * @return children the list of the elements
+ */
+ public static List<nsIDOMElement> getElementChildren(nsIDOMElement element) {
+ List<nsIDOMElement> result = new ArrayList<nsIDOMElement>();
+ if (element.hasChildNodes()) {
+ nsIDOMNodeList children = element.getChildNodes();
+ if (null != children) {
+ long len = children.getLength();
+ for (int i = 0; i < len; i++) {
+ nsIDOMNode item = children.item(i);
+ try {
+ nsIDOMElement elem = (nsIDOMElement) item
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ result.add(elem);
+ } catch (XPCOMException ex) {
+ // just ignore this exception
+ }
+ }
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Returns all child source elements of component but facets.
+ *
+ * @param returnTextNodes return child text nodes and elements or elements only;
+ * @param sourceElement the source element
+ *
+ * @return the children
+ */
+ public static List<Node> getChildren(Element sourceElement, boolean returnTextNodes) {
+ ArrayList<Node> children = new ArrayList<Node>();
+ NodeList nodeList = sourceElement.getChildNodes();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ Node child = nodeList.item(i);
+ if ((child instanceof Element || returnTextNodes) && (!child.getNodeName().equals("f:facet"))) { //$NON-NLS-1$
+ children.add(child);
+ }
+ }
+ return children;
+ }
+
+ /**
+ * Returns all child source elements of component but facets.
+ *
+ * @param sourceElement the source element
+ *
+ * @return the children
+ */
+ public static List<Node> getChildren(Element sourceElement) {
+ return getChildren(sourceElement, false);
+ }
+
+ /**
+ * Returns all child visual elements of component but facets.
+ *
+ * @param returnTextNodes the return text nodes
+ * @param visualElement the visual element
+ *
+ * @return the children
+ *
+ * return returnTextNodes return child text nodes and elements or elements
+ * only;
+ */
+ public static List<nsIDOMNode> getChildren(nsIDOMElement visualElement, boolean returnTextNodes) {
+ ArrayList<nsIDOMNode> children = new ArrayList<nsIDOMNode>();
+ nsIDOMNodeList nodeList = visualElement.getChildNodes();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ nsIDOMNode child = nodeList.item(i);
+ if ((child instanceof nsIDOMElement || returnTextNodes) && (!child.getNodeName().equals("f:facet"))) { //$NON-NLS-1$
+ children.add(child);
+ }
+ }
+ return children;
+ }
+
+ /**
+ * Returns all child visual elements of component but facets.
+ *
+ * @param visualElement the visual element
+ *
+ * @return the children
+ */
+ public static List<nsIDOMNode> getChildren(nsIDOMElement visualElement) {
+ return getChildren(visualElement, false);
+ }
+
+ /**
+ * Returns true if sourceNode is Facet.
+ *
+ * @param sourceNode the source node
+ * @param facetName the facet name
+ *
+ * @return true, if is facet
+ */
+ public static boolean isFacet(Node sourceNode, String facetName) {
+ if (sourceNode != null && sourceNode instanceof Element && sourceNode.getNodeName().equals("f:facet")) { //$NON-NLS-1$
+ String name = ((Element) sourceNode).getAttribute("name"); //$NON-NLS-1$
+ if (facetName.equals(name)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Returns Style with default background image for default XForms skin.
+ *
+ * @return the header backgound img style
+ */
+ public static String getHeaderBackgoundImgStyle() {
+ return getBackgoundImgStyle("common/background.gif"); //$NON-NLS-1$
+ }
+
+ /**
+ * Returns Style with background image for default XForms skin.
+ *
+ * @param imagePath the image path
+ *
+ * @return the backgound img style
+ */
+ public static String getBackgoundImgStyle(String imagePath) {
+ String imgPath = ComponentUtil.getAbsoluteResourcePath(imagePath);
+ String style = "background-image: url(file:///" //$NON-NLS-1$
+ + imgPath.replace('\\', '/') + ");"; //$NON-NLS-1$
+ return style;
+ }
+
+ // public static createStyleClass(String content){
+ //
+ // }
+
+ /**
+ * Returns value of attribute.
+ *
+ * @param attributeName the attribute name
+ * @param sourceElement the source element
+ *
+ * @return the attribute
+ */
+ public static String getAttribute(Element sourceElement, String attributeName) {
+ String attribute = sourceElement.getAttribute(attributeName);
+ if (attribute == null) {
+ attribute = Constants.EMPTY;
+ }
+ return attribute;
+ }
+
+ /**
+ * Returns value of attribute.
+ *
+ * @param attributeName the attribute name
+ * @param sourceElement the source element
+ * @param defaultValue the default value
+ *
+ * @return the attribute
+ */
+ public static String getAttribute(Element sourceElement, String attributeName, String defaultValue) {
+ String attribute = sourceElement.getAttribute(attributeName);
+ if (attribute == null) {
+ attribute = defaultValue;
+ }
+ return attribute;
+ }
+
+ /**
+ * Returns value of attribute.
+ *
+ * @param attributeName the attribute name
+ * @param sourceElement the source element
+ *
+ * @return the attribute
+ */
+ public static String getAttribute(nsIDOMElement sourceElement, String attributeName) {
+ String attribute = sourceElement.getAttribute(attributeName);
+ if (attribute == null) {
+ attribute = Constants.EMPTY;
+ }
+ return attribute;
+ }
+
+ /**
+ * Parameter present.
+ *
+ * @param style the style
+ * @param name the name
+ *
+ * @return true, if parameter present
+ */
+ public static boolean parameterPresent(String style, String name) {
+ if (style != null && style.length() > 0) {
+ String[] styles = style.split(Constants.SEMICOLON);
+ for (int i = 0; i < styles.length; i++) {
+ String[] pair = styles[i].split(Constants.COLON);
+ if (pair[0].trim().equals(name)) {
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ /**
+ * Gets the style parametr.
+ *
+ * @param style the style
+ * @param name the name
+ *
+ * @return the style parametr
+ */
+ public static String getStyleParametr(String style, String name) {
+ if (style != null && style.length() > 0) {
+ String[] styles = style.split(Constants.SEMICOLON);
+ for (int i = 0; i < styles.length; i++) {
+ String[] pair = styles[i].split(Constants.COLON);
+ if (pair[0].trim().equals(name)) {
+ return pair[1].trim();
+ }
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Adds the parameter.
+ *
+ * @param element the element
+ * @param style the style
+ *
+ * @return the string
+ */
+ public static String addParameter(String style, String element) {
+ String s = style.trim();
+ return style + (s.length() == 0 || s.endsWith(Constants.SEMICOLON) ? Constants.EMPTY : Constants.SEMICOLON)
+ + element;
+ }
+
+ /**
+ * Adds image as attribute to IMG tag from users workspace.
+ *
+ * @param img image element to set picture to
+ * @param pageContext Page Context
+ * @param undefinedImgName default image when image is undefined
+ * @param fileImageName image name
+ */
+ public static void setImgFromResources(VpePageContext pageContext, nsIDOMElement img, String fileImageName, String undefinedImgName) {
+ IEditorInput input = pageContext.getEditPart().getEditorInput();
+ IPath inputPath = getInputParentPath(input);
+ //Fix For JBIDE-3030
+ if(pageContext.getVisualBuilder().getCurrentIncludeInfo()==null) {
+ return;
+ }
+ String path = ElService.getInstance().replaceEl(pageContext.getVisualBuilder().getCurrentIncludeInfo().getFile(), fileImageName);
+ File file = new File(inputPath.toOSString() + File.separator + path);
+ if (file.exists()) {
+ img.setAttribute(HTML.ATTR_SRC, HtmlComponentUtil.FILE_PROTOCOL + inputPath.toString() + "/" //$NON-NLS-1$
+ + path.replace('\\', '/'));
+ } else {
+ img.setAttribute(HTML.ATTR_SRC, undefinedImgName.replace('\\', '/'));
+ }
+ }
+
+ /**
+ * Open file.
+ *
+ * @param fileName file name
+ * @param pageContext Page Context
+ *
+ * @return file
+ */
+ public static File openFile(VpePageContext pageContext, String fileName) {
+ IEditorInput input = pageContext.getEditPart().getEditorInput();
+ IPath inputPath = getInputParentPath(input);
+ File file = new File(inputPath.toOSString() + File.separator + fileName);
+ return file;
+ }
+
+ /**
+ * Returns locale of user input.
+ *
+ * @param input the input
+ *
+ * @return the input parent path
+ */
+ public static IPath getInputParentPath(IEditorInput input) {
+ IPath inputPath = null;
+ if (input instanceof ILocationProvider) {
+ inputPath = ((ILocationProvider) input).getPath(input);
+ } else if (input instanceof IFileEditorInput) {
+ IFile inputFile = ((IFileEditorInput) input).getFile();
+ if (inputFile != null) {
+ inputPath = inputFile.getLocation();
+ }
+ }
+ if (inputPath != null && !inputPath.isEmpty()) {
+ inputPath = inputPath.removeLastSegments(1);
+ }
+ return inputPath;
+ }
+
+ /**
+ * Move attributes from sourceNode to targetNode.
+ *
+ * @param sourceNode source node to copy the attribute from
+ * @param targetNode target visual node
+ * @param sourceAttrName source attribute name to copy the attribute value from
+ * @param targetAttrName target attribute name
+ * @param prefValue the value that will be concatenated with source attribute and set to
+ * target attribute if the source attribute exists
+ * @param defValue the value that will be set to target attribute is the source node
+ * does not have specified attribute
+ */
+ public static void correctAttribute(Element sourceNode, nsIDOMElement targetNode,
+ String sourceAttrName, String targetAttrName,
+ String prefValue, String defValue) {
+ String attrValue = ((Element) sourceNode).getAttribute(sourceAttrName);
+ if (prefValue != null && prefValue.trim().length() > 0 && attrValue != null) {
+ attrValue = prefValue.trim() + Constants.WHITE_SPACE + attrValue;
+ }
+ if (attrValue != null) {
+ targetNode.setAttribute(targetAttrName, attrValue);
+ } else if (defValue != null) {
+ targetNode.setAttribute(targetAttrName, defValue);
+ } else {
+ // FIXME: probably a bugged line -
+ // removing source attribute from target node [commented by yradtsevich]
+ targetNode.removeAttribute(sourceAttrName);
+ }
+ }
+
+ /**
+ * Parses string value retrieved from sourceElement.getAttribure(..) method
+ * to its boolean value.
+ * <p>
+ * <code>false</code> is returned only if it specified explicitly, otherwise
+ * <code>true</code> is returned.
+ *
+ * @param str the string to parse
+ *
+ * @return boolean value from string
+ */
+ public static boolean string2boolean(String str) {
+ if (Constants.FALSE.equals(str)) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
+ /**
+ * find elements by name.
+ *
+ * @param node - current node
+ * @param name - name element
+ * @param elements - list of found elements
+ */
+ static public void findElementsByName(Node node, List<Node> elements, String name) {
+ // get children
+ NodeList children = node.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ // if current child is required then add his to list
+ if (name.equalsIgnoreCase((child.getNodeName()))) {
+ elements.add(child);
+ } else {
+ findElementsByName(child, elements, name);
+ }
+ }
+ }
+
+ /**
+ * find all elements by name.
+ *
+ * @param node - current node
+ * @param name - name element
+ * @param elements - list of found elements
+ */
+ static public void findAllElementsByName(nsIDOMNode node, List<nsIDOMNode> elements, String name) {
+
+ try {
+ nsIDOMNodeList list = node.getChildNodes();
+ if (node.getNodeName().equalsIgnoreCase(name)) {
+ elements.add(node);
+ }
+ for (int i = 0; i < list.getLength(); i++) {
+ findAllElementsByName(list.item(i), elements, name);
+ }
+ } catch (XPCOMException e) {
+ // Ignore
+ return;
+ }
+ }
+
+
+ /**
+ * Parses the width height value.
+ *
+ * @param value the value
+ *
+ * @return the integer
+ */
+ public static Integer parseWidthHeightValue(String value) {
+ Integer rst = null;
+
+ if ((value == null) || (value.trim().length() == 0)) {
+ throw new NumberFormatException("Passed value is empty "); //$NON-NLS-1$
+ }
+
+ if (value.endsWith(Constants.PIXEL)) {
+ rst = Integer.parseInt(value.substring(0, value.length() - 2));
+ } else {
+ rst = Integer.parseInt(value);
+ }
+
+ return rst;
+ }
+
+ /**
+ * Parses the size attribute.
+ *
+ * @param sourceElement the source element
+ * @param attributeName the attribute name
+ * @param defaultValue the default value
+ *
+ * @return the int size
+ */
+ public static int parseSizeAttribute(Element sourceElement, String attributeName,
+ int defaultValue) {
+
+ if (sourceElement.hasAttribute(attributeName)) {
+ String attrValue = sourceElement.getAttribute(attributeName);
+
+ if (attrValue.endsWith(Constants.PIXEL))
+ attrValue = attrValue.substring(0, attrValue.length()
+ - Constants.PIXEL.length());
+
+ try {
+ /*
+ * Decoding attribute's value
+ */
+ int intValue = Integer.decode(attrValue);
+ return intValue;
+ } catch (NumberFormatException e) {
+ /*
+ * if attribute's value is not a number do nothing
+ * return default value
+ */
+ }
+ }
+ return defaultValue;
+ }
+
+ /**
+ * Parses the number attribute.
+ *
+ * @param sourceElement the source element
+ * @param attributeName the attribute name
+ * @param defaultValue the default value
+ *
+ * @return the int number
+ */
+ public static int parseNumberAttribute(Element sourceElement,
+ String attributeName, int defaultValue) {
+
+ if (sourceElement.hasAttribute(attributeName)) {
+ String attrValue = sourceElement.getAttribute(attributeName);
+
+ try {
+ /*
+ * Decoding attribute's value
+ */
+ int intValue = Integer.decode(attrValue);
+ return intValue;
+ } catch (NumberFormatException e) {
+ /*
+ * if attribute's value is not a number do nothing
+ * return default value
+ */
+ }
+ }
+ return defaultValue;
+ }
+
+ /**
+ * Checks if is blank.
+ *
+ * @param value the value
+ *
+ * @return true, if is blank
+ */
+ public static boolean isBlank(String value) {
+ return ((value == null) || (value.trim().length() == 0));
+ }
+
+ /**
+ * Checks if is not blank.
+ *
+ * @param value the value
+ *
+ * @return true, if is not blank
+ */
+ public static boolean isNotBlank(String value) {
+ return !isBlank(value);
+ }
+
+ /**
+ * Gets the select items.
+ *
+ * @param children the children
+ *
+ * @return the select items
+ */
+ public static List<Element> getSelectItems(NodeList children) {
+ final List<Element> selectItems = new ArrayList<Element>();
+
+ for (int i = 0; i < children.getLength(); i++) {
+ final Node child = children.item(i);
+
+ if ((child instanceof Element) && (child.getNodeName().indexOf(SELECT_ITEM)) > 1) {
+ selectItems.add((Element) child);
+ }
+ }
+ return selectItems;
+ }
+
+ /**
+ * Gets the select item value.
+ *
+ * @param e the e
+ *
+ * @return the select item value
+ */
+ public static String getSelectItemValue(Element e) {
+ String value = e.getAttribute(XForms.ATTR_SELECT_ITEM_LABEL);
+
+ if (isBlank(value)) {
+ value = e.getAttribute(XForms.ATTR_SELECT_ITEM_VALUE);
+ if (ComponentUtil.isBlank(value)) {
+ if (e.getNodeName().endsWith(SELECT_ITEMS)) {
+ value = e.getAttribute(XForms.ATTR_VALUE);
+
+ if (ComponentUtil.isBlank(value)) {
+ value = EMPTY_SELECT_ITEMS_VALUE;
+ }
+ } else if (e.getNodeName().endsWith(SELECT_ITEM)) {
+ value = EMPTY_SELECT_ITEM_VALUE;
+ }
+ }
+ }
+ return value;
+ }
+
+ /**
+ * Encodes style class
+ * @param parentPredefined
+ * @param predefined
+ * @param parent
+ * @param custom
+ * @return
+ */
+ public static String encodeStyleClass(Object parentPredefined,
+ Object predefined, Object parent, Object custom) {
+ StringBuffer styleClass = new StringBuffer();
+ // Construct predefined classes
+ if (null != parentPredefined) {
+ styleClass.append(parentPredefined).append(Constants.WHITE_SPACE);
+ } else if (null != predefined) {
+ styleClass.append(predefined).append(Constants.WHITE_SPACE);
+ }
+ // Append class from parent component.
+ if (null != parent) {
+ styleClass.append(parent).append(Constants.WHITE_SPACE);
+ }
+ if (null != custom) {
+ styleClass.append(custom);
+ }
+ if (styleClass.length() > 0) {
+ return styleClass.toString();
+ }
+ return null;
+ }
+
+
+ /**
+ * Returns columns with facet.
+ * @param columns
+ * @param facetName
+ * @return list of columns with facet
+ */
+ public static ArrayList<Element> getColumnsWithFacet(
+ ArrayList<Element> columns, String facetName) {
+ ArrayList<Element> columnsWithFacet = new ArrayList<Element>();
+ for (Element column : columns) {
+ Element body = getFacet(column, facetName);
+ if (body != null) {
+ columnsWithFacet.add(column);
+ }
+ }
+ return columnsWithFacet;
+ }
+
+ public static Node getBindNode(Element sourceElement, StringTokenizer st) {
+
+ Element docElement = sourceElement.getOwnerDocument().getDocumentElement();
+
+ Element head = ComponentUtil.getChildElementByTagname(docElement, "head");
+ Element model = ComponentUtil.getChildElementByTagname(head, "model");
+
+ if (model == null) {
+ Element parentNode = (Element) sourceElement.getParentNode();
+ while (!"form".equalsIgnoreCase(parentNode.getLocalName())) {
+ parentNode = (Element) parentNode.getParentNode();
+ if ("body".equalsIgnoreCase(parentNode.getLocalName())){ break; }
+ }
+ model = ComponentUtil.getChildElementByTagname(parentNode, "model");
+ }
+
+ Element element = model;
+
+ if (model == null) { return null; }
+
+ while (st.hasMoreElements()) {
+
+ String nodesetValue = st.nextToken();
+ element = ComponentUtil.getBindNodeByNodeset(element, nodesetValue);
+
+ }
+
+ return (Node) element;
+
+ }
+
+ public static Element getBindNodeByNodeset(Element sourceElement, String nodesetValue) {
+
+ Node returnNode = null;
+ List<Node> nl = ComponentUtil.getChildren(sourceElement);
+ for (Node node : nl) {
+
+ Element el = (Element) node;
+ if (el.getNodeType() == Node.ELEMENT_NODE && "bind".equals(el.getLocalName())) {
+
+ if(nodesetValue.equals(el.getAttribute("nodeset"))) {
+
+ returnNode = node;
+ break;
+ }
+ }
+ }
+ return (Element) returnNode;
+ }
+
+ public static Element getChildElementByTagname(Element sourceElement, String tag) {
+
+ Node returnNode = null;
+
+
+ List<Node> nl = ComponentUtil.getChildren(sourceElement);
+ for (Node node : nl) {
+
+ Element el = (Element) node;
+
+ if (el.getNodeType() == Node.ELEMENT_NODE && tag.equals(el.getLocalName())) {
+ returnNode = node;
+ break;
+ }
+ }
+
+ return (Element) returnNode;
+ }
+
+
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,288 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package nl.fortythree.jbosstools.vpe.xforms;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.jboss.tools.vpe.editor.util.HTML;
+
+/**
+ * Util class which contains basic html tags.
+ *
+ * @deprecated use org.jboss.tools.vpe.editor.util.HTML and
+ * nl.fortythree.jbosstools.vpe.xforms.template.util.XForms
+ * @author Max Areshkau
+ * @author yradtsevich
+ */
+public class HtmlComponentUtil {
+
+ /**
+ * @deprecated use {@link HTML#TAG_DL} instead
+ */
+ public static final String HTML_TAG_DL = "dl"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_BR} instead
+ */
+ public static final String HTML_TAG_BR = "br"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_COLGROUP} instead
+ */
+ public static final String HTML_TAG_COLGROUP = "colgroup"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_THEAD} instead
+ */
+ public static final String HTML_TAG_THEAD = "thead"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TFOOT} instead
+ */
+ public static final String HTML_TAG_TFOOT = "tfoot"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_CAPTION} instead
+ */
+ public static final String HTML_TAG_CAPTION = "caption"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_DT} instead
+ */
+ public static final String HTML_TAG_DT = "dt"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_DD} instead
+ */
+ public static final String HTML_TAG_DD = "dd"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TABLE} instead
+ */
+ public static final String HTML_TAG_TABLE = "TABLE"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TBODY} instead
+ */
+ public static final String HTML_TAG_TBODY = "TBODY"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TR} instead
+ */
+ public static final String HTML_TAG_TR = "TR"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TD} instead
+ */
+ public static final String HTML_TAG_TD = "TD"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_TH} instead
+ */
+ public static final String HTML_TAG_TH = "TH"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_INPUT} instead
+ */
+ public static final String HTML_TAG_INPUT = "INPUT"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_IMG} instead
+ */
+ public static final String HTML_TAG_IMG = "IMG"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_DIV} instead
+ */
+ public static final String HTML_TAG_DIV = "DIV"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_SPAN} instead
+ */
+ public static final String HTML_TAG_SPAN = "SPAN"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_A} instead
+ */
+ public static final String HTML_TAG_A = "A"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_B} instead
+ */
+ public static final String HTML_TAG_B = "B"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_LI} instead
+ */
+ public static final String HTML_TAG_LI = "LI"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_COLSPAN} instead
+ */
+ public static final String HTML_TABLE_COLSPAN = "colspan"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_HEIGHT} instead
+ */
+ public static final String HTML_HEIGHT_ATTR = "height"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link XForms#ATTR_STYLE_CLASS} instead
+ */
+ public static final String HTML_STYLECLASS_ATTR = "styleClass"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_CLASS} instead
+ */
+ public static final String HTML_CLASS_ATTR = "class"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_CELLSPACING} instead
+ */
+ public static final String HTML_CELLSPACING_ATTR = "cellspacing"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_CELLPADDING} instead
+ */
+ public static final String HTML_CELLPADDING_ATTR = "cellpadding"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#VALUE_ALIGN_LEFT} instead
+ */
+ public static final String HTML_ALIGN_LEFT_VALUE = "left"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#VALUE_ALIGN_RIGHT} instead
+ */
+ public static final String HTML_ALIGN_RIGHT_VALUE = "right"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#VALUE_ALIGN_CENTER} instead
+ */
+ public static final String HTML_ALIGN_CENTER_VALUE = "center"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_WIDTH} instead
+ */
+ public static final String HTML_ATR_WIDTH = "width"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_HEIGHT} instead
+ */
+ public static final String HTML_ATR_HEIGHT = "height"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_SRC} instead
+ */
+ public static final String HTML_ATR_SRC = "src"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_STYLE} instead
+ */
+ public static final String HTML_STYLE_ATTR = "style"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_SCOPE} instead
+ */
+ public static final String HTML_SCOPE_ATTR = "scope"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_BORDER} instead
+ */
+ public static final String HTML_BORDER_ATTR = "border"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_ALIGN} instead
+ */
+ public static final String HTML_ALIGN_ATTR = "align"; //$NON-NLS-1$
+
+ // TODO: move the constant from this class to somewhere
+ public static final String FILE_PROTOCOL = "file://"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_COLSPAN} instead
+ */
+ public static final String HTML_COLSPAN_ATTR = "colspan"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_ROWSPAN} instead
+ */
+ public static final String HTML_ROWSPAN_ATTR = "rowspan"; //$NON-NLS-1$
+
+ /** @deprecated there is no tag with row attribute */
+ // TODO: remove the attribute from the code
+ public static final String HTML_ROW_ATTR = "row"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_SIZE} instead
+ */
+ public static final String HTML_SIZE_ATTR = "size"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_TYPE} instead
+ */
+ public static final String HTML_TYPE_ATTR = "type"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_READONLY} instead
+ */
+ public static final String HTML_READONLY_ATTR = "readonly"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#TAG_BUTTON} instead
+ */
+ public static final String HTML_TAG_BUTTON = "button"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_VALUE} instead
+ */
+ public static final String HTML_VALUE_ATTR = "value"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#STYLE_PARAMETER_BORDER_WIDTH} instead
+ */
+ public static final String CSS_BORDER_WIDTH = "border-width"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#STYLE_PARAMETER_BORDER_STYLE} instead
+ */
+ public static final String CSS_BORDER_STYLE = "border-style"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#STYLE_PARAMETER_DISPLAY} instead
+ */
+ public static final String CSS_DISPLAY = "display"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_WIDTH} instead
+ */
+ public static final String HTML_WIDTH_ATTR = "width"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_VALIGN} instead
+ */
+ public static final String HTML_ATTR_VALIGN = "valign"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#STYLE_VALUE_MIDDLE} instead
+ */
+ public static final String HTML_ATTR_VALIGN_MIDDLE_VALUE = "middle"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_BACKGROUND} instead
+ */
+ public static final String HTML_ATTR_BACKGROUND = "background"; //$NON-NLS-1$
+
+ /**
+ * @deprecated use {@link HTML#ATTR_DISABLED} instead
+ */
+ public static final String HTML_ATTR_DISABLED = "disabled"; //$NON-NLS-1$
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package nl.fortythree.jbosstools.vpe.xforms;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.jboss.tools.common.log.IPluginLog;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class XFormsTemplatesActivator extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "nl.fortythree.jbosstools.vpe.xforms";
+
+ // The shared instance
+ private static XFormsTemplatesActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public XFormsTemplatesActivator() {
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static XFormsTemplatesActivator getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle.getEntry("/resources"));
+ } catch (IOException e) {
+ url = bundle.getEntry("/resources");
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+ public static IPluginLog getPluginLog() {
+ return getDefault();
+ }
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,122 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public abstract class AbstractXFormsSelectTemplate extends AbstractXFormsTemplate {
+
+ public AbstractXFormsSelectTemplate() {
+ }
+
+ abstract public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument);
+
+
+ protected List<String> getLabels(Element sourceElement) {
+
+ List<String> selectLabels = new ArrayList<String>();
+
+ List<Node> childNodes = ComponentUtil.getChildren(sourceElement);
+
+ for (Node node : childNodes) {
+
+ if (node.getNodeType() == Node.ELEMENT_NODE && node.getLocalName().equals(XForms.TAG_CHOICES)) {
+
+ List<Node> itemNodes = ComponentUtil.getChildren((Element) node);
+
+ for (Node node2 : itemNodes) {
+
+ if (node2.getNodeType() == Node.ELEMENT_NODE && node2.getLocalName().equals(XForms.TAG_ITEM)) {
+
+ List<Node> itemChildNodes = ComponentUtil.getChildren((Element) node2);
+
+ for (Node node3 : itemChildNodes) {
+
+ if (node3.getNodeType() == Node.ELEMENT_NODE && node3.getLocalName().equals(XForms.TAG_ITEM_LABEL)) {
+ selectLabels.add(node3.getFirstChild().getNodeValue());
+ }
+ }
+ }
+ }
+ }
+
+ if (node.getNodeType() == Node.ELEMENT_NODE && node.getLocalName().equals(XForms.TAG_ITEMSET)) {
+
+ List<Node> itemsetChildNodes = ComponentUtil.getChildren((Element) node);
+
+ for (Node node2 : itemsetChildNodes) {
+ if (node2.getNodeType() == Node.ELEMENT_NODE && node2.getLocalName().equals(XForms.TAG_ITEM_LABEL)) {
+ //TODO: really follow the ref and display what is referenced
+ selectLabels.add(node2.getAttributes().getNamedItem("ref").getNodeValue());
+ }
+ }
+ }
+
+ }
+
+ if (selectLabels.size() == 0) {
+ selectLabels.add("<No items yet?>");
+ selectLabels.add("<No items yet?>");
+ selectLabels.add("<No items yet?>");
+ }
+
+ return selectLabels;
+ }
+
+ protected void addOptions(nsIDOMDocument visualDocument, nsIDOMElement select, Element sourceElement) {
+ nsIDOMElement option;
+ List<String> labels = getLabels(sourceElement);
+ for (String label : labels) {
+ option = visualDocument.createElement(HTML.TAG_OPTION);
+ option.appendChild(visualDocument.createTextNode(label));
+ select.appendChild(option);
+ }
+ }
+
+ protected void addChoices(nsIDOMDocument visualDocument, nsIDOMElement table, List<String> labels, String type) {
+ boolean lineDirection = true;
+ boolean pageDirection = !lineDirection;
+
+ nsIDOMElement tr = null;
+ nsIDOMElement td;
+ nsIDOMElement radio_checkbox;
+
+ if (lineDirection) {
+ tr = visualDocument.createElement(HTML.TAG_TR);
+ table.appendChild(tr);
+ }
+ for (String label : labels) {
+
+ if (pageDirection) {
+ tr = visualDocument.createElement(HTML.TAG_TR);
+ table.appendChild(tr);
+ }
+
+ td = visualDocument.createElement(HTML.TAG_TD);
+
+ radio_checkbox = visualDocument.createElement(HTML.TAG_INPUT);
+ radio_checkbox.setAttribute(HTML.ATTR_TYPE, type);
+ td.appendChild(radio_checkbox);
+
+ tr.appendChild(td);
+
+ td = visualDocument.createElement(HTML.TAG_TD);
+ td.appendChild(visualDocument.createTextNode(label));
+ tr.appendChild(td);
+ }
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,231 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public abstract class AbstractXFormsTemplate extends VpeAbstractTemplate {
+
+ /* xf:style attributes */
+ protected String style;
+ protected String styleClass;
+
+ protected String relevant;
+ protected String constraint;
+ protected String required;
+ protected String readonly;
+ protected String mipClasses;
+
+ protected String type;
+
+ protected nsIDOMElement grInput;
+ protected nsIDOMElement grTopDiv;
+ protected nsIDOMElement grLabelSpan;
+ protected nsIDOMElement grHelperSpan;
+
+ /**
+ * list of visible children
+ */
+ protected static List<String> CHILDREN_LIST = new ArrayList<String>();
+
+ /**
+ *
+ */
+ public AbstractXFormsTemplate() {
+ }
+
+ abstract public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument);
+
+ protected String getLabel(Element sourceElement) {
+
+ String label = null;
+
+ label = getLabelNode(sourceElement).getFirstChild().getNodeValue();
+
+ return label;
+
+ }
+
+ protected void createBaseVisualElements(nsIDOMDocument visualDocument, String control) {
+
+ /*
+ * Creating visual elements
+ */
+
+ /*
+ * The base div
+ */
+ grTopDiv = visualDocument.createElement(HTML.TAG_DIV);
+ grTopDiv.setAttribute(HTML.ATTR_STYLE, style);
+ grTopDiv.setAttribute(HTML.ATTR_CLASS, control + " " + mipClasses);
+
+
+ /*
+ * The Label span
+ */
+ grLabelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ grLabelSpan.setAttribute(HTML.ATTR_CLASS, control + " " + mipClasses);
+ grTopDiv.appendChild(grLabelSpan);
+
+ }
+
+ protected void addHelperElements(Element sourceElement, VpeCreationData creationData) {
+ /*
+ * Adding child nodes:
+ * <xf:label>, <xf:hint>, <xf:alert> and <xf:help>
+ */
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ boolean missingChildContainer = true;
+ for (Node child : children) {
+ if (child.getNodeType() == Node.ELEMENT_NODE) {
+ if (child.getNodeName().endsWith(XForms.CHILD_LABEL_NAME)) {
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grLabelSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ if (child.getNodeName().endsWith(XForms.CHILD_HINT_NAME) || child.getNodeName().endsWith(XForms.CHILD_HELP_NAME)
+ || child.getNodeName().endsWith(XForms.CHILD_ALERT_NAME)) {
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grHelperSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ }
+ }
+
+ }
+
+ protected Node getLabelNode(Element sourceElement) {
+
+ Node labelNode = null;
+ List<Node> childNodes = ComponentUtil.getChildren(sourceElement);
+
+ for (Node node : childNodes) {
+
+ if (node.getNodeType() == Node.ELEMENT_NODE && node.getLocalName().equals(XForms.TAG_LABEL)) {
+ labelNode = node;
+ }
+ }
+
+ return labelNode;
+
+ }
+
+ protected void addLabel(nsIDOMElement labelSpan, nsIDOMDocument visualDocument, VpeCreationData creationData,
+ Element sourceElement) {
+ Node labelNode = getLabelNode(sourceElement);
+
+ if (labelNode != null) {
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(labelSpan);
+ childDivInfo.addSourceChild(labelNode);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ else {
+ labelSpan.appendChild(visualDocument.createTextNode("Do not forget to add a label"));
+ }
+ }
+
+
+ /**
+ * Read attributes from the source element.
+ *
+ * @param sourceNode
+ * the source node
+ */
+ protected void readAttributes(Node sourceNode) {
+ Element source = (Element) sourceNode;
+ style = source.getAttribute(XForms.ATTR_STYLE);
+ styleClass = source.getAttribute(XForms.ATTR_STYLE_CLASS);
+ }
+
+ protected void readMipsAttributes(Element sourceElement) {
+
+ Element mipElement = null;
+
+ type = sourceElement.getAttribute("datatype");
+
+ if (type == null) { // no datatype on XFormsForHTML, so find type and all the rest via bind
+ String ref = ComponentUtil.getAttribute(sourceElement, "ref", "");
+ StringTokenizer st = new StringTokenizer(ref, "/");
+ Node bindNode = ComponentUtil.getBindNode(sourceElement, st);
+ mipElement = (Element) bindNode;
+ if (bindNode != null) {
+ type = mipElement.getAttribute("type");
+ }
+ }
+ else {
+ mipElement = sourceElement;
+ }
+
+ required = mipElement.getAttribute("required");
+ required = "false".equalsIgnoreCase(required) ? "false" : required;
+ required = "false()".equalsIgnoreCase(required) ? "false" : required;
+ required = "true()".equalsIgnoreCase(required) ? "true" : required;
+ required = "true".equalsIgnoreCase(required) ? "true" : "false";
+
+ relevant = mipElement.getAttribute("relevant");
+ relevant = "true()".equalsIgnoreCase(relevant) ? "true" : relevant;
+ relevant = "true".equalsIgnoreCase(relevant) ? "true" : relevant;
+ relevant = "false()".equalsIgnoreCase(relevant) ? "false" : relevant;
+ relevant = "false".equalsIgnoreCase(relevant) ? "false" : "true";
+
+ constraint = mipElement.getAttribute("constraint");
+ constraint = "true".equalsIgnoreCase(constraint) ? "true" : constraint;
+ constraint = "true()".equalsIgnoreCase(constraint) ? "true" : constraint;
+ constraint = "false()".equalsIgnoreCase(constraint) ? "false" : constraint;
+ constraint = "false".equalsIgnoreCase(constraint) ? "false" : "true";
+
+ readonly = mipElement.getAttribute("readonly");
+ readonly = "false".equalsIgnoreCase(readonly) ? "false" : readonly;
+ readonly = "false()".equalsIgnoreCase(readonly) ? "false" : readonly;
+ readonly = "true()".equalsIgnoreCase(readonly) ? "true" : readonly;
+ readonly = "true".equalsIgnoreCase(readonly) ? "true" : "false";
+
+
+
+ mipClasses = (relevant.equals("true") ? " xfEnabled" : " xfDisabled");
+ mipClasses = mipClasses + (required.equals("true") ? " xfRequired" : " xfOptional");
+ mipClasses = mipClasses + (readonly.equals("true") ? " xfReadOnly" : " xfReadWrite");
+ mipClasses = mipClasses + (constraint.equals("true") ? " xfValid" : " xfInvalid");
+
+ }
+
+ /**
+ * Checks is attribute presents.
+ *
+ * @param attr
+ * the attribute
+ *
+ * @return true, if successful
+ */
+ protected boolean attrPresents(String attr) {
+ return ((null != attr) && (attr.length() != 0));
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, VpeCreationData data) {
+ if (data.getNode() != null) {
+
+ }
+ }
+
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext, Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,327 @@
+
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import nl.fortythree.jbosstools.vpe.xforms.HtmlComponentUtil;
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.ResourceUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsCaseTemplate extends VpeAbstractTemplate {
+
+
+
+
+ public static final String TAB_HEADER_ATTR = "tabheaderattr"; //$NON-NLS-1$
+ public static final String YES = "yes"; //$NON-NLS-1$
+ public static final String DISABLED_ELEMENT_STYLE = "none"; //$NON-NLS-1$
+ public static final String TAB_BODY_ATTR = "tabbodyattr"; //$NON-NLS-1$
+
+ private final static String SPACER_FILE_PATH = "common/spacer.gif"; //$NON-NLS-1$
+ private final static String BORDER_FILE_PATH = "tabPanel/border.gif"; //$NON-NLS-1$
+
+ private final static String VPE_USER_TOGGLE_ID = "vpe-user-toggle-id"; //$NON-NLS-1$
+
+ private static final String DISABLED = "disabled"; //$NON-NLS-1$
+ private static final String LABEL = "label"; //$NON-NLS-1$
+ private static final String LABEL_WIDTH = "labelWidth"; //$NON-NLS-1$
+
+ private static final String CSS_HEADER = "rich-tab-header"; //$NON-NLS-1$
+ private static final String CSS_LABEL = "rich-tab-label"; //$NON-NLS-1$
+ private static final String CSS_ACTIVE = "rich-tab-active"; //$NON-NLS-1$
+ private static final String CSS_INACTIVE = "rich-tab-inactive"; //$NON-NLS-1$
+ private static final String CSS_DISABLED = "rich-tab-disabled"; //$NON-NLS-1$
+
+ private static final String ZERO = "0"; //$NON-NLS-1$
+ private static final String ONE = "1"; //$NON-NLS-1$
+ private static final String TEN = "10"; //$NON-NLS-1$
+ private static final String SPACE = " "; //$NON-NLS-1$
+ private static final String EMPTY = ""; //$NON-NLS-1$
+
+ private static final String HUNDRED_PERCENTS = "100%"; //$NON-NLS-1$
+ private static final String HEIGHT_STYLE_NAME = "height: "; //$NON-NLS-1$
+ private static final String WIDTH_STYLE_NAME = "width: "; //$NON-NLS-1$
+ private static final String STYLE_SEMICOLUMN = "; "; //$NON-NLS-1$
+ private static final String PX = "px"; //$NON-NLS-1$
+
+ private static final String BODY_TABLE_STYLE = "position: relative; z-index: 1;"; //$NON-NLS-1$
+ private static final String HEADER_TABLE_STYLE = "height : 100%; position : relative; z-index : 2;"; //$NON-NLS-1$
+ private static final String HEADER_TD_STYLE = "height: 100%; vertical-align: bottom;"; //$NON-NLS-1$
+ private static final String TRUE = "true"; //$NON-NLS-1$
+
+ /**
+ * Encode body of tab
+ * @param creationData
+ * @param sourceElement
+ * @param visualDocument
+ * @param parentTr
+ * @param active
+ * @param contentClass
+ * @param contentStyle
+ * @return the tab body
+ */
+ public static VpeCreationData encodeBody(VpeCreationData creationData,
+ Element sourceElement,
+ nsIDOMDocument visualDocument,
+ nsIDOMElement parentTr,
+ boolean active,
+ String contentClass,
+ String contentStyle) {
+
+ nsIDOMElement td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+
+ if(creationData==null) {
+ creationData = new VpeCreationData(td);
+ } else {
+ parentTr.appendChild(td);
+ }
+ if(!active) {
+ return creationData;
+ }
+// td.setAttribute("style", "position: relative;");
+ td.setAttribute(HtmlComponentUtil.HTML_HEIGHT_ATTR, HUNDRED_PERCENTS);
+
+ nsIDOMElement table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ td.appendChild(table);
+ table.setAttribute(HTML.ATTR_BORDER, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, TEN);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_WIDTH_ATTR, HUNDRED_PERCENTS);
+ table.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,XFormsSwitchTemplate.CSS_CONTENT_POSITION);
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, BODY_TABLE_STYLE);
+
+ nsIDOMElement tr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
+ table.appendChild(tr);
+ td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr.appendChild(td);
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ ComponentUtil.getAttribute(sourceElement, HtmlComponentUtil.HTML_STYLECLASS_ATTR)
+ + SPACE + contentClass);
+ td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ ComponentUtil.getAttribute(sourceElement, HtmlComponentUtil.HTML_STYLE_ATTR)
+ + STYLE_SEMICOLUMN + contentStyle);
+
+ List<Node> children = ComponentUtil.getChildren(sourceElement, true);
+ VpeChildrenInfo bodyInfo = new VpeChildrenInfo(td);
+ for (Node child : children) {
+ bodyInfo.addSourceChild(child);
+ }
+ creationData.addChildrenInfo(bodyInfo);
+
+ return creationData;
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ nsIDOMElement table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ //table.setAttribute("include-tab", "");
+ VpeCreationData creationData = new VpeCreationData(table);
+ nsIDOMElement headerTable = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ headerTable.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
+ headerTable.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
+ headerTable.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ headerTable.setAttribute(TAB_HEADER_ATTR, YES);
+ headerTable.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.CSS_DISPLAY
+ + ":" + DISABLED_ELEMENT_STYLE + STYLE_SEMICOLUMN); //$NON-NLS-1$
+ headerTable.appendChild(encodeHeader(pageContext, creationData, (Element)sourceNode, visualDocument, table, false, EMPTY, EMPTY, EMPTY, EMPTY,EMPTY));
+ nsIDOMElement bodyTable = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ bodyTable.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
+ bodyTable.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
+ bodyTable.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ bodyTable.setAttribute(TAB_BODY_ATTR, YES);
+ //bodyTable.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, HtmlComponentUtil.CSS_DISPLAY+" : "+DISABLED_ELEMENT_STYLE+";"); //$NON-NLS-1$ //$NON-NLS-2$
+ table.appendChild(headerTable);
+ table.appendChild(bodyTable);
+ encodeBody(creationData, (Element)sourceNode, visualDocument, bodyTable, true, EMPTY, EMPTY);
+ return creationData;
+
+ }
+
+ /**
+ * Encode Header of tab
+ * @param sourceElement
+ * @param visualDocument
+ * @param parentTr
+ * @param active
+ * @param activeTabClass
+ * @param inactiveTabClass
+ * @param disabledTabClass
+ */
+ public static nsIDOMElement encodeHeader(
+ VpePageContext pageContext,
+ VpeCreationData creationData,
+ Element sourceElement,
+ nsIDOMDocument visualDocument,
+ nsIDOMElement parentTr,
+ boolean active,
+ String headerClass,
+ String activeTabClass,
+ String inactiveTabClass,
+ String disabledTabClass,
+ String toggleId) {
+
+ nsIDOMElement headerTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ parentTr.appendChild(headerTd);
+ headerTd.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, HEADER_TD_STYLE);
+ String styleClass = XFormsSwitchTemplate.CSS_CELL_DISABLED
+ + SPACE + CSS_DISABLED;
+ if(!TRUE.equalsIgnoreCase(sourceElement.getAttribute(DISABLED))) {
+ if(active) {
+ styleClass = XFormsSwitchTemplate.CSS_CELL_ACTIVE;
+ } else {
+ styleClass = XFormsSwitchTemplate.CSS_CELL_INACTIVE;
+ }
+ }
+ headerTd.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+ headerTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+
+ nsIDOMElement table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ headerTd.appendChild(table);
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, HEADER_TABLE_STYLE);
+ table.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+
+ nsIDOMElement mainTr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
+ table.appendChild(mainTr);
+ encodeSpacer(mainTr, visualDocument);
+
+ nsIDOMElement mainTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ mainTr.appendChild(mainTd);
+ mainTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+
+ table = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ mainTd.appendChild(table);
+
+ String labelWidth = ComponentUtil.getAttribute(sourceElement, LABEL_WIDTH);
+ String tableStyle = HEIGHT_STYLE_NAME + HUNDRED_PERCENTS + STYLE_SEMICOLUMN;
+ if ((null != labelWidth) && (!EMPTY.equalsIgnoreCase(labelWidth))) {
+ int val = -1;
+ try {
+ val = Integer.parseInt(labelWidth);
+ } catch (NumberFormatException e) {
+ /*
+ * Ignore
+ */
+ }
+ if (val > 0) {
+ labelWidth = val + PX;
+ }
+ } else {
+ labelWidth = HUNDRED_PERCENTS;
+ }
+ tableStyle += WIDTH_STYLE_NAME + labelWidth + STYLE_SEMICOLUMN;
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, tableStyle);
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, ZERO);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, ZERO);
+ table.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+
+ nsIDOMElement tr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
+ table.appendChild(tr);
+ mainTd = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr.appendChild(mainTd);
+
+ styleClass = CSS_HEADER
+ + SPACE + CSS_LABEL
+ + SPACE + CSS_DISABLED
+ + SPACE + disabledTabClass;
+
+ if(!TRUE.equalsIgnoreCase(sourceElement.getAttribute(DISABLED))) {
+ if(active) {
+ styleClass = CSS_HEADER
+ + SPACE + CSS_LABEL
+ + SPACE + CSS_ACTIVE
+ + SPACE + activeTabClass;
+ } else {
+ styleClass = CSS_HEADER
+ + SPACE + CSS_LABEL
+ + SPACE + CSS_INACTIVE
+ + SPACE + inactiveTabClass;
+ }
+ }
+ String tabStyleClass = ComponentUtil.getAttribute(sourceElement, HtmlComponentUtil.HTML_STYLECLASS_ATTR);
+ styleClass += SPACE + headerClass + SPACE + tabStyleClass;
+ mainTd.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, styleClass);
+
+ mainTd.setAttribute(VPE_USER_TOGGLE_ID, toggleId);
+ Node labelFacet = ComponentUtil.getFacet(sourceElement, LABEL, true);
+ List<Node> childNodes = ComponentUtil.getChildren(sourceElement);
+
+ for (Node child : childNodes) {
+ if (child.getNodeType() == Node.ELEMENT_NODE) {
+ if (child.getNodeName().endsWith(XForms.CHILD_LABEL_NAME)) {
+ mainTd.appendChild(visualDocument.createTextNode(child.getFirstChild().getNodeValue()));
+// VpeChildrenInfo childDivInfo = new VpeChildrenInfo(mainTd);
+// childDivInfo.addSourceChild(child);
+// creationData.addChildrenInfo(childDivInfo);
+ }
+
+ //TODO Kukel: where to put this???
+// if (child.getNodeName().endsWith(CHILD_HINT_NAME) || child.getNodeName().endsWith(CHILD_HELP_NAME)
+// || child.getNodeName().endsWith(CHILD_ALERT_NAME)) {
+//
+// VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grAdditionalSpan);
+// childDivInfo.addSourceChild(child);
+// creationData.addChildrenInfo(childDivInfo);
+// }
+ }
+ }
+
+
+
+
+// if (null != labelFacet) {
+// VpeChildrenInfo child = new VpeChildrenInfo(mainTd);
+// child.addSourceChild(labelFacet);
+// creationData.addChildrenInfo(child);
+// } else if (sourceElement.hasAttribute(LABEL)) {
+// Attr labelAttr = sourceElement.getAttributeNode(LABEL);
+// if (null != labelAttr) {
+// String bundleValue = ResourceUtil.getBundleValue(pageContext, labelAttr);
+// mainTd.appendChild(visualDocument.createTextNode(bundleValue));
+// }
+// } else {
+// char space = 160;
+// mainTd.appendChild(visualDocument.createTextNode(EMPTY + space));
+// }
+ encodeSpacer(mainTr, visualDocument);
+ return headerTd;
+ }
+
+ /*
+ * Add <td class="dr-tbpnl-tbbrdr rich-tabhdr-side-border"><img src="#{spacer}" width="1" height="1" alt="" border="0" /></td>
+ */
+ private static void encodeSpacer(nsIDOMElement parentTr, nsIDOMDocument visualDocument) {
+ nsIDOMElement td = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TD);
+ parentTr.appendChild(td);
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ XFormsSwitchTemplate.CSS_SIDE_CELL
+ + SPACE +
+ XFormsSwitchTemplate.CSS_SIDE_BORDER);
+ String style = ComponentUtil.getBackgoundImgStyle(BORDER_FILE_PATH);
+ td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ nsIDOMElement img = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_IMG);
+ td.appendChild(img);
+ ComponentUtil.setImg(img, SPACER_FILE_PATH);
+ img.setAttribute(HtmlComponentUtil.HTML_WIDTH_ATTR, ONE);
+ img.setAttribute(HtmlComponentUtil.HTML_HEIGHT_ATTR, ONE);
+ img.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, ZERO);
+
+ }
+
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,55 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsGroupTemplate extends AbstractXFormsTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readMipsAttributes(sourceElement);
+
+
+ readAttributes(sourceNode);
+
+ /*
+ * Creating visual elements
+ */
+
+ createBaseVisualElements(visualDocument, "xfGroup");
+
+ creationData = new VpeCreationData(grTopDiv);
+
+ /*
+ * Adding all child nodes:
+ * <xf:label>, <xf:hint>, <xf:alert> and <xf:help>
+ */
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ for (Node child : children) {
+ if (child.getNodeType() == Node.ELEMENT_NODE) {
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grTopDiv);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ }
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,103 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+import java.util.StringTokenizer;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+
+import org.eclipse.jdt.internal.compiler.ReadManager;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+public class XFormsInputTemplate extends AbstractXFormsTemplate {
+
+ private String size;
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readMipsAttributes(sourceElement);
+
+ readInputAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfInput");
+
+ /*
+ * The pseudo class ::value (corresponds to an html form control
+ */
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_SIZE, size);
+ grInput.setAttribute(HTML.ATTR_CLASS, "xfValue " + mipClasses);
+ // Decide the type;
+ String htmlType = HTML.VALUE_TYPE_TEXT;
+ if ("boolean".equals(type)) {
+ htmlType = HTML.VALUE_TYPE_CHECKBOX;
+ }
+ else if ("date".equals(type)) {
+ //htmlType = "radio";
+ grInput.setAttribute(HTML.ATTR_VALUE, "TDB: datepicker");
+ }
+ grInput.setAttribute(HTML.ATTR_TYPE, htmlType);
+ grTopDiv.appendChild(grInput);
+
+ if ("date".equals(type)) {
+
+ String DEFAULT_BUTTON_ICON = "calendar/calendar.gif"; //$NON-NLS-1$
+ String buttonIcon;
+ buttonIcon = Constants.FILE_PREFIX
+ + ComponentUtil
+ .getAbsoluteResourcePath(DEFAULT_BUTTON_ICON);
+ buttonIcon = buttonIcon.replace('\\', '/');
+ nsIDOMElement grCalendar = visualDocument.createElement(HTML.TAG_IMG);
+ grCalendar.setAttribute(HTML.ATTR_SRC, buttonIcon);
+
+ grTopDiv.appendChild(grCalendar);
+
+ }
+
+ nsIDOMElement grErrorSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ grErrorSpan.setAttribute(HTML.ATTR_CLASS, "xfValue " + mipClasses);
+ grTopDiv.appendChild(grErrorSpan);
+
+ // Do I need to add this?
+ grHelperSpan = visualDocument.createElement(HTML.TAG_SPAN);
+
+ creationData = new VpeCreationData(grTopDiv);
+
+ addHelperElements(sourceElement, creationData);
+
+ return creationData;
+ }
+
+ /**
+ * Read specific attributes from the source element.
+ *
+ * @param sourceElement
+ * the source node
+ */
+ private void readInputAttributes(Element sourceElement) {
+
+ if (null == sourceElement) {
+ return;
+ }
+ super.readAttributes(sourceElement);
+ size = sourceElement.getAttribute(HTML.ATTR_COLS);
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,62 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsLabelTemplate extends AbstractXFormsTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readAttributes(sourceElement);
+
+ nsIDOMElement label;
+
+ label = visualDocument.createElement(HTML.TAG_LABEL);
+
+ creationData = new VpeCreationData(label);
+
+ label.setAttribute(HTML.ATTR_CLASS, "xfLabel");
+
+ label.appendChild(visualDocument.createTextNode(sourceElement.getFirstChild().getNodeValue()));
+
+ return creationData;
+ }
+
+ /**
+ * Read attributes from the source element.
+ *
+ * @param sourceNode
+ * the source node
+ */
+ private void readMenuGroupAttributes(Element sourceElement) {
+ if (null == sourceElement) {
+ return;
+ }
+ style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ styleClass = sourceElement.getAttribute(XForms.ATTR_STYLE_CLASS);
+ }
+
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext, Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,27 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsModelTemplate extends AbstractXFormsTemplate {
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+
+ nsIDOMElement meta = visualDocument.createElement("meta");
+ meta.setAttribute("content", "xforms");
+ creationData = new VpeCreationData(meta);
+
+ ComponentUtil.setCSSLink(pageContext, "xforms/xforms.css", "xforms"); //$NON-NLS-1$
+
+ return creationData;
+ }
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,130 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsOutputTemplate extends VpeAbstractTemplate {
+
+ private static final String CHILD_ALERT_NAME = ":alert"; //$NON-NLS-1$
+ private static final String CHILD_LABEL_NAME = ":label"; //$NON-NLS-1$
+ private static final String CHILD_HINT_NAME = ":hint"; //$NON-NLS-1$
+ private static final String CHILD_HELP_NAME = ":help"; //$NON-NLS-1$
+
+
+ /*
+ * rich:menuGroup css styles and classes attributes
+ */
+ private String mg_iconClass;
+ private String mg_iconStyle;
+ private String mg_labelClass;
+ private String mg_selectClass;
+ private String mg_selectStyle;
+ private String mg_style;
+ private String mg_styleClass;
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readMenuGroupAttributes(sourceElement);
+
+ /*
+ * MenuGroup component structure.
+ * In order of nesting.
+ */
+ nsIDOMElement ddmMainUL;
+ nsIDOMElement grChildrenUL;
+ nsIDOMElement ddmChildrenLI;
+
+ nsIDOMElement grInput;
+ nsIDOMElement grTopSpan;
+ nsIDOMElement grLabelSpan;
+ nsIDOMElement grAdditionalSpan;
+
+ /*
+ * Creating visual elements
+ */
+
+
+
+ grTopSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ grTopSpan.setAttribute(HTML.ATTR_CLASS, "xfInput xfControl");
+ grLabelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+
+ grAdditionalSpan = visualDocument.createElement(HTML.TAG_SPAN);
+
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_TYPE, HTML.VALUE_TYPE_PASSWORD);
+
+ grTopSpan.appendChild(grLabelSpan);
+ grTopSpan.appendChild(grInput);
+
+ creationData = new VpeCreationData(grTopSpan);
+
+ /*
+ * Nesting elements
+ */
+
+ grTopSpan.appendChild(grInput);
+
+ /*
+ * Adding child nodes:
+ * <xf:label>, <xf:hint>, <xf:alert> and <xf:help>
+ */
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ boolean missingChildContainer = true;
+ for (Node child : children) {
+ if (child.getNodeType() == Node.ELEMENT_NODE) {
+ if (child.getNodeName().endsWith(CHILD_LABEL_NAME)) {
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grLabelSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ if (child.getNodeName().endsWith(CHILD_HINT_NAME) || child.getNodeName().endsWith(CHILD_HELP_NAME)
+ || child.getNodeName().endsWith(CHILD_ALERT_NAME)) {
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grAdditionalSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ }
+ }
+
+ return creationData;
+ }
+
+ /**
+ * Read attributes from the source element.
+ *
+ * @param sourceNode
+ * the source node
+ */
+ private void readMenuGroupAttributes(Element sourceElement) {
+ if (null == sourceElement) {
+ return;
+ }
+ mg_style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ mg_styleClass = sourceElement.getAttribute(XForms.ATTR_STYLE_CLASS);
+ }
+
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext, Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,72 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSecretTemplate extends AbstractXFormsSelectTemplate {
+
+ private String size;
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readSecretAttributes(sourceElement);
+
+ readSecretAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfSecret");
+
+
+ /*
+ * The pseudo class ::value (corresponds to an html form control
+ */
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_SIZE, size);
+ grInput.setAttribute(HTML.ATTR_CLASS, "xfValue " + mipClasses);
+
+ grInput.setAttribute(HTML.ATTR_TYPE, HTML.VALUE_TYPE_PASSWORD);
+ grTopDiv.appendChild(grInput);
+
+
+ // Do I need to add this?
+ grHelperSpan = visualDocument.createElement(HTML.TAG_SPAN);
+
+ creationData = new VpeCreationData(grTopDiv);
+
+ addHelperElements(sourceElement, creationData);
+
+ return creationData;
+
+ }
+
+ /**
+ * Read specific attributes from the source element.
+ *
+ * @param sourceElement
+ * the source node
+ */
+ private void readSecretAttributes(Element sourceElement) {
+
+ if (null == sourceElement) {
+ return;
+ }
+ super.readAttributes(sourceElement);
+ size = sourceElement.getAttribute(HTML.ATTR_COLS);
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1CompactTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,59 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelect1CompactTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelect1CompactTemplate() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+ div.appendChild(labelSpan);
+
+ // create select element
+ nsIDOMElement select = visualDocument.createElement(HTML.TAG_SELECT);
+
+ select.setAttribute(HTML.ATTR_SIZE, "5");
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ div.setAttribute(HTML.ATTR_CLASS, "select1");
+
+ Element sourceElement = (Element) sourceNode;
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ addOptions(visualDocument, select, sourceElement);
+
+ div.appendChild(select);
+
+ return creationData;
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, VpeCreationData data) {
+ if (data.getNode() != null) {
+
+ //????
+
+ }
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1FullTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,55 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelect1FullTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelect1FullTemplate() {
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ readAttributes(sourceNode);
+
+ Element sourceElement = (Element) sourceNode;
+
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+ div.appendChild(labelSpan);
+
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+ div.appendChild(table);
+
+ if (attrPresents(style)) {
+ table.setAttribute(HTML.ATTR_STYLE, style);
+ }
+ if (attrPresents(styleClass)) {
+ table.setAttribute(HTML.ATTR_CLASS, styleClass);
+ }
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ List<String> labels = getLabels(sourceElement);
+ addChoices(visualDocument, table, labels, "radio");
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1MinimalTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,56 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelect1MinimalTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelect1MinimalTemplate() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+ div.appendChild(labelSpan);
+
+ // create select element
+ nsIDOMElement select = visualDocument.createElement(HTML.TAG_SELECT);
+
+ select.setAttribute(HTML.ATTR_SIZE, "1");
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ Element sourceElement = (Element) sourceNode;
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ addOptions(visualDocument, select, sourceElement);
+
+ div.appendChild(select);
+
+ return creationData;
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument, VpeCreationData data) {
+ if (data.getNode() != null) {
+
+ }
+ }
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectCompactTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,51 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelectCompactTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelectCompactTemplate() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+ div.appendChild(labelSpan);
+
+ // create select element
+ nsIDOMElement select = visualDocument.createElement(HTML.TAG_SELECT);
+
+ select.setAttribute(HTML.ATTR_SIZE, "5");
+ select.setAttribute(HTML.ATTR_MULTIPLE, "true");
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ div.setAttribute(HTML.ATTR_CLASS, "select");
+
+ Element sourceElement = (Element) sourceNode;
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ addOptions(visualDocument, select, sourceElement);
+
+ div.appendChild(select);
+
+ return creationData;
+ }
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectFullTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,56 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelectFullTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelectFullTemplate() {
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ readAttributes(sourceNode);
+
+ Element sourceElement = (Element) sourceNode;
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfInput");
+ div.appendChild(labelSpan);
+
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+ div.appendChild(table);
+
+ if (attrPresents(style)) {
+ table.setAttribute(HTML.ATTR_STYLE, style);
+ }
+ if (attrPresents(styleClass)) {
+ table.setAttribute(HTML.ATTR_CLASS, styleClass);
+ }
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ List<String> labels = getLabels(sourceElement);
+
+ div.setAttribute(HTML.ATTR_CLASS, "select xfSelect");
+
+ addChoices(visualDocument, table, labels, HTML.VALUE_TYPE_CHECKBOX);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectMinimalTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,50 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSelectMinimalTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelectMinimalTemplate() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+
+ nsIDOMElement labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfSelect1");
+ div.appendChild(labelSpan);
+
+ // create select element
+ nsIDOMElement select = visualDocument.createElement(HTML.TAG_SELECT);
+
+ select.setAttribute(HTML.ATTR_SIZE, "2");
+ select.setAttribute(HTML.ATTR_MULTIPLE, "true");
+
+ VpeCreationData creationData = new VpeCreationData(div);
+
+ Element sourceElement = (Element) sourceNode;
+
+ addLabel(labelSpan, visualDocument, creationData, sourceElement);
+
+ addOptions(visualDocument, select, sourceElement);
+
+ div.appendChild(select);
+
+ return creationData;
+ }
+
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,111 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSubmitTemplate extends VpeAbstractTemplate {
+
+ private static final String CHILD_ALERT_NAME = ":alert"; //$NON-NLS-1$
+ private static final String CHILD_LABEL_NAME = ":label"; //$NON-NLS-1$
+ private static final String CHILD_HINT_NAME = ":hint"; //$NON-NLS-1$
+ private static final String CHILD_HELP_NAME = ":help"; //$NON-NLS-1$
+
+ private String mg_style;
+ private String mg_styleClass;
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readMenuGroupAttributes(sourceElement);
+
+ nsIDOMElement grInput;
+ nsIDOMElement grTopSpan;
+ nsIDOMElement grLabelSpan;
+ nsIDOMElement grAdditionalSpan;
+
+ /*
+ * Creating visual elements
+ */
+
+
+
+ grTopSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ grLabelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ grAdditionalSpan = visualDocument.createElement(HTML.TAG_SPAN);
+
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_TYPE, HTML.VALUE_TYPE_BUTTON);
+
+ grTopSpan.appendChild(grInput);
+
+ creationData = new VpeCreationData(grTopSpan);
+
+ /*
+ * Nesting elements
+ */
+
+ grTopSpan.appendChild(grInput);
+
+ /*
+ * Adding child nodes:
+ * <xf:label>, <xf:hint>, <xf:alert> and <xf:help>
+ */
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ boolean missingChildContainer = true;
+ for (Node child : children) {
+ if (child.getNodeType() == Node.ELEMENT_NODE) {
+ if (child.getNodeName().endsWith(CHILD_LABEL_NAME)) {
+ grInput.setAttribute(HTML.ATTR_VALUE, child.getFirstChild().getNodeValue());
+// VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grLabelSpan);
+// childDivInfo.addSourceChild(child);
+// creationData.addChildrenInfo(childDivInfo);
+ }
+ if (child.getNodeName().endsWith(CHILD_LABEL_NAME) || child.getNodeName().endsWith(CHILD_HELP_NAME)
+ || child.getNodeName().endsWith(CHILD_ALERT_NAME)) {
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(grAdditionalSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ }
+ }
+
+ return creationData;
+ }
+
+ /**
+ * Read attributes from the source element.
+ *
+ * @param sourceNode
+ * the source node
+ */
+ private void readMenuGroupAttributes(Element sourceElement) {
+ if (null == sourceElement) {
+ return;
+ }
+ mg_style = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ mg_styleClass = sourceElement.getAttribute(XForms.ATTR_STYLE_CLASS);
+ }
+
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext, Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,387 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+import org.jboss.tools.vpe.editor.VpeVisualDomBuilder;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.template.VpeToggableTemplate;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.xpcom.XPCOMException;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class XFormsSwitchTemplate extends VpeAbstractTemplate implements VpeToggableTemplate {
+
+ public static final String CSS_PANEL = "rich-tabpanel"; //$NON-NLS-1$
+ public static final String CSS_CONTENT = "rich-tabpanel-content"; //$NON-NLS-1$
+ public static final String CSS_CONTENT_POSITION = "rich-tabpanel-content-position"; //$NON-NLS-1$
+ public static final String CSS_SIDE_BORDER = "rich-tabhdr-side-border"; //$NON-NLS-1$
+ public static final String CSS_SIDE_CELL = "rich-tabhdr-side-cell"; //$NON-NLS-1$
+ public static final String CSS_CELL_ACTIVE = "rich-tabhdr-cell-active"; //$NON-NLS-1$
+ public static final String CSS_CELL_INACTIVE = "rich-tabhdr-cell-inactive"; //$NON-NLS-1$
+ public static final String CSS_CELL_DISABLED = "rich-tabhdr-cell-disabled"; //$NON-NLS-1$
+
+ private static final String RICH_FACES_TAB_PANEL = "richFacesTabPanel"; //$NON-NLS-1$
+ private static final String CSS_FILE_PATH = "tabPanel/tabPanel.css"; //$NON-NLS-1$
+ private static final String SPACER_FILE_PATH = "common/spacer.gif"; //$NON-NLS-1$
+ private static final String INCLUDE_TAG = ":include"; //$NON-NLS-1$
+ private static final String YES = "yes"; //$NON-NLS-1$
+
+ private final String HEADER_ALINGMENT = "headerAlignment"; //$NON-NLS-1$
+ private final String HEADER_SPACING = "headerSpacing"; //$NON-NLS-1$
+ private final String SELECTED_TAB = "selectedTab"; //$NON-NLS-1$
+ private final String DIR = "dir"; //$NON-NLS-1$
+ private final String DIR_RTL = "RTL"; //$NON-NLS-1$
+ private final String DIR_LTR = "LTR"; //$NON-NLS-1$
+
+ private final String HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ private final String CONTENT_CLASS = "contentClass"; //$NON-NLS-1$
+ private final String CONTENT_STYLE = "contentStyle"; //$NON-NLS-1$
+ private final String TAB_CLASS = "tabClass"; //$NON-NLS-1$
+ private final String ACTIVE_TAB_CLASS = "activeTabClass"; //$NON-NLS-1$
+ private final String INACTIVE_TAB_CLASS = "inactiveTabClass"; //$NON-NLS-1$
+ private final String DISABLED_TAB_CLASS = "disabledTabClass"; //$NON-NLS-1$
+
+ private final String ZERO = "0"; //$NON-NLS-1$
+ private final String ONE = "1"; //$NON-NLS-1$
+ private final String TWO = "2"; //$NON-NLS-1$
+ private final String SPACE = " "; //$NON-NLS-1$
+ private final String EMPTY = ""; //$NON-NLS-1$
+
+ private final String CASE = ":case"; //$NON-NLS-1$
+ private final String NAME = "name"; //$NON-NLS-1$
+
+ private List<nsIDOMElement> storedTabHeaders = new ArrayList<nsIDOMElement>();
+ private static Map toggleMap = new HashMap();
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ Element sourceElement = (Element)sourceNode;
+
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+ nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
+ div.appendChild(table);
+ VpeCreationData creationData = new VpeCreationData(div);
+ ComponentUtil.setCSSLink(pageContext, CSS_FILE_PATH, RICH_FACES_TAB_PANEL);
+ setDirAttr(table, sourceElement);
+ table.setAttribute(HTML.ATTR_CLASS,
+ ComponentUtil.getAttribute(sourceElement, XForms.ATTR_STYLE_CLASS)
+ + SPACE + CSS_PANEL);
+ table.setAttribute(HTML.ATTR_BORDER, ZERO);
+ table.setAttribute(HTML.ATTR_CELLPADDING, ZERO);
+ table.setAttribute(HTML.ATTR_CELLSPACING, ZERO);
+ table.setAttribute(HTML.ATTR_STYLE, getStyle(sourceElement));
+
+ nsIDOMElement tbody = visualDocument.createElement(HTML.TAG_TBODY);
+ table.appendChild(tbody);
+ nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
+ tbody.appendChild(tr);
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+ tr.appendChild(td);
+ td.setAttribute(HTML.ATTR_ALIGN, getHeaderAlignment(sourceElement));
+ td.setAttribute(HTML.ATTR_CLASS, ComponentUtil
+ .getAttribute(sourceElement, HEADER_CLASS));
+ nsIDOMElement inerTable = visualDocument.createElement(HTML.TAG_TABLE);
+ td.appendChild(inerTable);
+ inerTable.setAttribute(HTML.ATTR_BORDER, ZERO);
+ inerTable.setAttribute(HTML.ATTR_CELLPADDING, ZERO);
+ inerTable.setAttribute(HTML.ATTR_CELLSPACING, ZERO);
+
+ // Encode header
+ nsIDOMElement inerTr = visualDocument.createElement(HTML.TAG_TR);
+ inerTable.appendChild(inerTr);
+ nsIDOMElement inerTd = visualDocument.createElement(HTML.TAG_TD);
+ inerTr.appendChild(inerTd);
+ nsIDOMElement img = visualDocument.createElement(HTML.TAG_IMG);
+ inerTd.appendChild(img);
+ ComponentUtil.setImg(img, SPACER_FILE_PATH);
+ img.setAttribute(HTML.ATTR_WIDTH, TWO);
+ img.setAttribute(HTML.ATTR_HEIGHT, ONE);
+ img.setAttribute(HTML.ATTR_BORDER, ZERO);
+
+ String headerSpacing = sourceElement.getAttribute(HEADER_SPACING);
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ int activeId = getActiveId(sourceElement, children);
+ int i = 0;
+ for (Node child : children) {
+ boolean active = (i == activeId);
+
+ if (child.getNodeName().endsWith(INCLUDE_TAG)) {
+ VpeChildrenInfo vpeChildrenInfo = new VpeChildrenInfo(inerTr);
+ creationData.addChildrenInfo(vpeChildrenInfo);
+ vpeChildrenInfo.addSourceChild(child);
+ }
+
+ if(child.getNodeName().endsWith(CASE)) {
+ /*
+ * Adds spacer before first tab
+ */
+ if (i == 0) {
+ addSpacer(visualDocument, inerTr, headerSpacing);
+ }
+
+ nsIDOMElement headerTd = XFormsCaseTemplate.encodeHeader(
+ pageContext,
+ creationData,
+ (Element) child,
+ visualDocument, inerTr, active,
+ ComponentUtil.getAttribute(sourceElement,
+ TAB_CLASS),
+ ComponentUtil.getAttribute(sourceElement,
+ ACTIVE_TAB_CLASS)
+ + SPACE + CSS_CELL_ACTIVE,
+ ComponentUtil.getAttribute(sourceElement,
+ INACTIVE_TAB_CLASS)
+ + SPACE + CSS_CELL_INACTIVE,
+ ComponentUtil.getAttribute(sourceElement,
+ DISABLED_TAB_CLASS)
+ + SPACE + CSS_CELL_DISABLED,
+ String.valueOf(i));
+ i++;
+ addSpacer(visualDocument, inerTr, headerSpacing);
+ storedTabHeaders.add(headerTd);
+ }
+ }
+
+ inerTd = visualDocument.createElement(HTML.TAG_TD);
+ inerTr.appendChild(inerTd);
+ img = visualDocument.createElement(HTML.TAG_IMG);
+ inerTd.appendChild(img);
+ ComponentUtil.setImg(img, SPACER_FILE_PATH);
+ img.setAttribute(HTML.ATTR_WIDTH, ONE);
+ img.setAttribute(HTML.ATTR_HEIGHT, ONE);
+ img.setAttribute(HTML.ATTR_BORDER, ZERO);
+
+ // Encode first child tab
+ inerTr = visualDocument.createElement(HTML.TAG_TR);
+ tbody.appendChild(inerTr);
+ children = ComponentUtil.getChildren(sourceElement);
+ i = 0;
+ for (Node child : children) {
+ boolean active = (i == activeId);
+ if(child.getNodeName().endsWith(CASE)) {
+ i++;
+ if (active) {
+ XFormsCaseTemplate.encodeBody(creationData,
+ (Element) child, visualDocument, inerTr, true,
+ ComponentUtil.getAttribute(sourceElement,
+ CONTENT_CLASS)
+ + SPACE + CSS_PANEL
+ + SPACE + CSS_CONTENT
+ + SPACE + CSS_CONTENT_POSITION,
+ ComponentUtil.getAttribute(sourceElement,
+ CONTENT_STYLE));
+ break;
+ }
+ }
+ }
+
+ return creationData;
+ }
+
+ /**
+ * Adds the spacer.
+ * Add <td><img src="#{spacer}" height="1" alt="" border="0" style="#{this:encodeHeaderSpacing(context, component)}"/></td>
+ *
+ * @param visualDocument the visual document
+ * @param parentTr the parent tr
+ * @param headerSpacing the header spacing
+ */
+ private void addSpacer(nsIDOMDocument visualDocument, nsIDOMElement parentTr, String headerSpacing) {
+ nsIDOMElement spaceTd = visualDocument.createElement(HTML.TAG_TD);
+ parentTr.appendChild(spaceTd);
+ nsIDOMElement spaceImg = visualDocument.createElement(HTML.TAG_IMG);
+ spaceTd.appendChild(spaceImg);
+ ComponentUtil.setImg(spaceImg, SPACER_FILE_PATH);
+ spaceImg.setAttribute(HTML.ATTR_HEIGHT, ONE);
+ spaceImg.setAttribute(HTML.ATTR_BORDER, ZERO);
+ if(headerSpacing==null) {
+ headerSpacing = ONE;
+ }
+ spaceImg.setAttribute(HTML.ATTR_STYLE, "width: " + headerSpacing + Constants.PIXEL); //$NON-NLS-1$
+ }
+
+ private int getActiveId(Element sourceElement, List<Node> children) {
+ int activeId = -1;
+ try {
+ activeId = Integer.valueOf((String)toggleMap.get(sourceElement));
+ } catch (NumberFormatException nfe) {
+ activeId = -1;
+ }
+
+ if (activeId == -1) {
+ activeId = getTabId(children, sourceElement.getAttribute(SELECTED_TAB));
+ }
+
+ if (activeId == -1)
+ activeId = 0;
+
+ int count = getChildrenCount(children);
+ if (count - 1 < activeId) {
+ activeId = count - 1;
+ }
+
+ return activeId;
+ }
+
+ private int getChildrenCount(List<Node> children) {
+ int count = 0;
+ for (Node child : children) {
+ if (child.getNodeName().endsWith(CASE)) {
+ count++;
+ }
+ }
+ return count;
+ }
+
+ private int getTabId(List<Node> children, String tabName) {
+ if (tabName == null) return -1;
+ int count = 0;
+ for (Node child : children) {
+ if (child.getNodeName().endsWith(CASE)) {
+ if (!(child instanceof Element))
+ continue;
+
+ String name = ((Element)child).getAttribute(NAME);
+ if (tabName.equals(name))
+ return count;
+
+ count++;
+ }
+ }
+ return -1;
+ }
+
+ private String getStyle(Element sourceElement) {
+
+ String widthAttrValue = sourceElement.getAttribute(HTML.ATTR_WIDTH);
+ String heightAttrValue = sourceElement.getAttribute(HTML.ATTR_HEIGHT);
+ String styleAttrValue = sourceElement.getAttribute(HTML.ATTR_STYLE);
+ String style = styleAttrValue != null ? styleAttrValue : EMPTY;
+
+ if (!ComponentUtil.parameterPresent(styleAttrValue, HTML.ATTR_WIDTH)) {
+ String width = (widthAttrValue != null && widthAttrValue.length() > 0) ? widthAttrValue : "100%"; //$NON-NLS-1$
+ style = ComponentUtil.addParameter(style, "width:" + width); //$NON-NLS-1$
+ }
+
+ if (!ComponentUtil.parameterPresent(styleAttrValue, HTML.ATTR_HEIGHT)) {
+ String height = (heightAttrValue != null && heightAttrValue.length() > 0) ? heightAttrValue : EMPTY;
+ if (height.length() > 0) {
+ style =ComponentUtil.addParameter(style, "height:" + height); //$NON-NLS-1$
+ }
+ }
+
+ return style;
+ }
+
+
+ /**
+ * Sets the dir attribute to the element.
+ *
+ * @param element the element
+ * @param dir the dir value
+ */
+ private void setDirAttr(nsIDOMElement element, Element sourceElement) {
+ String dir = ComponentUtil.getAttribute(sourceElement, DIR);
+ if ((null != dir) && (!EMPTY.equals(dir))){
+ if ((DIR_LTR.equalsIgnoreCase(dir)) || (DIR_RTL.equalsIgnoreCase(dir))) {
+ element.setAttribute(DIR, dir);
+ }
+ }
+ }
+
+ private String getHeaderAlignment(Element sourceElement) {
+ String headerAlignment = sourceElement.getAttribute(HEADER_ALINGMENT);
+ if(headerAlignment==null) {
+ headerAlignment = HTML.VALUE_ALIGN_LEFT;
+ }
+ return headerAlignment;
+ }
+
+ public void toggle(VpeVisualDomBuilder builder, Node sourceNode, String toggleId) {
+ toggleMap.put(sourceNode, toggleId);
+ }
+
+ public void stopToggling(Node sourceNode) {
+ toggleMap.remove(sourceNode);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.vpe.editor.template.VpeAbstractTemplate#isRecreateAtAttrChange(org.jboss.tools.vpe.editor.context.VpePageContext, org.w3c.dom.Element, org.mozilla.interfaces.nsIDOMDocument, org.mozilla.interfaces.nsIDOMElement, java.lang.Object, java.lang.String, java.lang.String)
+ */
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+ /**
+ * Is invoked after construction of all child nodes of the current visual node.
+ * @param pageContext Contains the information on edited page.
+ * @param sourceNode The current node of the source tree.
+ * @param visualDocument The document of the visual tree.
+ * @param data Object <code>VpeCreationData</code>, built by a method <code>create</code>
+ */
+ public void validate(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, VpeCreationData data) {
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+ ComponentUtil.findAllElementsByName(data.getNode(), elements, HTML.TAG_TABLE);
+ for (nsIDOMNode node : elements) {
+ try {
+ nsIDOMElement element = (nsIDOMElement) node.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ if (ComponentUtil.getAttribute(element, XFormsCaseTemplate.TAB_HEADER_ATTR).equalsIgnoreCase(YES)) {
+ element.removeAttribute(HTML.ATTR_STYLE);
+ }
+ if (ComponentUtil.getAttribute(element, XFormsCaseTemplate.TAB_BODY_ATTR).equalsIgnoreCase(YES)) {
+ element.setAttribute(HTML.ATTR_STYLE, HTML.ATTR_DISPLAY
+ + Constants.COLON
+ + XFormsCaseTemplate.DISABLED_ELEMENT_STYLE
+ + Constants.SEMICOLON);
+ }
+ } catch (XPCOMException exeption) {
+ // Ignore
+ }
+ }
+
+ super.validate(pageContext, sourceNode, visualDocument, data);
+ if ((storedTabHeaders == null) || (storedTabHeaders.size() < 1)){
+ return;
+ }
+
+ for (nsIDOMElement tab : storedTabHeaders) {
+ String value = tab.getAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID);
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_ID,
+ value,ComponentUtil.getElementChildren(tab));
+ ComponentUtil.applyAttributeValueOnChildren(
+ VpeVisualDomBuilder.VPE_USER_TOGGLE_LOOKUP_PARENT,
+ Constants.TRUE, ComponentUtil.getElementChildren(tab));
+ }
+
+ }
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,90 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package nl.fortythree.jbosstools.vpe.xforms.template.util;
+
+import nl.fortythree.jbosstools.vpe.xforms.ComponentUtil;
+import org.w3c.dom.Element;
+
+/**
+ * A wrapper of DOM Element that can extract its attributes as objects of different types.
+ * The methods of the class never throw any exception. In case if parsing is impossible they
+ * always return a correct value(see methods descriptions).
+ *
+ * @author yradtsevich
+ * @see Element
+ */
+public class AttributeMap {
+ private static final String FALSE_VALUE = "false"; //$NON-NLS-1$
+ private static final String TRUE_VALUE = "true"; //$NON-NLS-1$
+ private Element element;
+
+ public AttributeMap(Element element) {
+ this.element = element;
+ }
+
+ /**
+ * A wrapper of <code>ComponentUtil.getAttribute(sourceElement, attributeName)</code>
+ *
+ * @param attributeName attribute name
+ * @return <code>ComponentUtil.getAttribute(sourceElement, attributeName)</code>
+ *
+ * @see ComponentUtil
+ */
+ public String getString(String attributeName) {
+ return ComponentUtil.getAttribute(element, attributeName);
+ }
+
+ /**
+ * Returns Boolean representation of the attribute.
+ *
+ * @param attributeName attribute name
+ * @return attribute value.
+ * <code>Boolean.TRUE</code>, if the attribute equals "true",
+ * <code>Boolean.False</code>, if the attribute equals "false",
+ * <code>null</code> otherwise.
+ */
+ public Boolean getBoolean(String attributeName) {
+ String attribute = element.getAttribute(attributeName);
+
+ Boolean ret;
+
+ if (TRUE_VALUE.equals(attribute)) {
+ ret = Boolean.TRUE;
+ } else if (FALSE_VALUE.equals(attribute)) {
+ ret = Boolean.FALSE;
+ } else {
+ ret = null;
+ }
+
+ return ret;
+ }
+
+ public void setAttribute(String name, boolean value) {
+ if (value) {
+ element.setAttribute(name, TRUE_VALUE);
+ } else {
+ element.setAttribute(name, FALSE_VALUE);
+ }
+ }
+
+ /**
+ * Tests if its parameter is blank string
+ *
+ * @param attributeName
+ * @return <code>true</code> if and only if <code>attributeName</code> is
+ * either <code>null</code>, or blank, or contains non-printable characters only
+ */
+ public boolean isBlank(String attributeName) {
+ String value = getString(attributeName);
+ return ComponentUtil.isBlank(value);
+ }
+
+}
Added: workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java
===================================================================
--- workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java (rev 0)
+++ workspace/kukeltje/xforms/plugins/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,155 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package nl.fortythree.jbosstools.vpe.xforms.template.util;
+
+import org.jboss.tools.vpe.editor.template.expression.VpeExpression;
+import org.jboss.tools.vpe.editor.template.expression.VpeExpressionBuilder;
+import org.jboss.tools.vpe.editor.template.expression.VpeExpressionBuilderException;
+
+/**
+ * contain rich faces tags and general attributes.
+ *
+ * @author Sergey Dzmitrovich
+ */
+public class XForms {
+ /**
+ * The Constructor.
+ */
+ private XForms() {
+ }
+
+ /** The Constant ATTR_ADD_CONTROL_LABEL. */
+ public static final String ATTR_ADD_CONTROL_LABEL = "addControlLabel"; //$NON-NLS-1$
+ public static final String ATTR_ALIGN = "align"; //$NON-NLS-1$
+ public static final String ATTR_BREAK_BEFORE = "breakBefore"; //$NON-NLS-1$
+
+ public static final String ATTR_CAPTION_CLASS = "captionClass"; //$NON-NLS-1$
+ public static final String ATTR_CAPTION_STYLE = "captionStyle"; //$NON-NLS-1$
+ /** The Constant ATTR_COLUMN_CLASSES. */
+ public static final String ATTR_COLUMN_CLASSES = "columnClasses"; //$NON-NLS-1$
+ public static final String ATTR_COLUMNS = "columns"; //$NON-NLS-1$
+ public static final String ATTR_COLUMNS_WIDTH = "columnsWidth"; //$NON-NLS-1$
+
+ public static final String ATTR_BUTTON_ICON = "buttonIcon"; //$NON-NLS-1$
+ public static final String ATTR_BUTTON_ICON_DISABLED = "buttonIconDisabled"; //$NON-NLS-1$
+ public static final String ATTR_BUTTON_CLASS = "buttonClass"; //$NON-NLS-1$
+ public static final String ATTR_SHOW_INPUT = "showInput"; //$NON-NLS-1$
+ public static final String ATTR_LOCALE = "locale"; //$NON-NLS-1$
+
+ /** The Constant ATTR_CONTROLS_TYPE. */
+ public static final String ATTR_CONTROLS_TYPE = "controlsType"; //$NON-NLS-1$
+ /** The Constant ATTR_DEFAULT_LABEL. */
+ public static final String ATTR_DEFAULT_LABEL = "defaultLabel"; //$NON-NLS-1$
+ public static final String ATTR_DIRECTION = "direction"; //$NON-NLS-1$
+ public static final String ATTR_JOINT_POINT = "jointPoint"; //$NON-NLS-1$
+ public static final String ATTR_DISABLED = "disabled"; //$NON-NLS-1$
+ public static final String ATTR_ELEMENTS = "elements"; //$NON-NLS-1$
+ public static final String ATTR_FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
+ public static final String ATTR_HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ /** The Constant ATTR_INPUT_CLASS. */
+ public static final String ATTR_INPUT_CLASS = "inputClass"; //$NON-NLS-1$
+ /** The Constant ATTR_INPUT_SIZE. */
+ public static final String ATTR_INPUT_SIZE = "inputSize"; //$NON-NLS-1$
+ /** The Constant ATTR_INPUT_STYLE. */
+ public static final String ATTR_INPUT_STYLE = "inputStyle"; //$NON-NLS-1$
+ public static final String ATTR_LIST_HEIGHT = "listHeight"; //$NON-NLS-1$
+ public static final String ATTR_LIST_WIDTH = "listWidth"; //$NON-NLS-1$
+ /** The Constant ATTR_NAME. */
+ public static final String ATTR_NAME = "name"; //$NON-NLS-1$
+ public static final String ATTR_POPUP = "popup"; //$NON-NLS-1$
+ public static final String ATTR_ROWS = "rows"; //$NON-NLS-1$
+ public static final String ATTR_ROW_CLASSES = "rowClasses"; //$NON-NLS-1$
+ public static final String ATTR_SELECT_ITEM_LABEL = "itemLabel"; //$NON-NLS-1$
+ public static final String ATTR_SELECT_ITEM_VALUE = "itemValue"; //$NON-NLS-1$
+ /** The Constant ATTR_SHOW_BUTTON_LABELS. */
+ public static final String ATTR_SHOW_BUTTON_LABELS = "showButtonLabels"; //$NON-NLS-1$
+ public static final String ATTR_SORT_BY = "sortBy"; //$NON-NLS-1$
+ public static final String ATTR_SORT_ICON = "sortIcon"; //$NON-NLS-1$
+ public static final String ATTR_SORTABLE = "sortable"; //$NON-NLS-1$
+ /** The Constant ATTR_STYLE. */
+ public static final String ATTR_STYLE = "style"; //$NON-NLS-1$
+ /** The Constant ATTR_STYLE_CLASS. */
+ public static final String ATTR_STYLE_CLASS = "styleClass"; //$NON-NLS-1$
+ /** The Constant ATTR_VALUE. */
+ public static final String ATTR_VALUE = "value"; //$NON-NLS-1$
+ public static final String ATTR_VISIBLE = "visible"; //$NON-NLS-1$
+ /** The Constant ATTR_WIDTH. */
+ public static final String ATTR_WIDTH = "width"; //$NON-NLS-1$
+ public static final String ATTR_HEIGHT = "height"; //$NON-NLS-1$
+
+ public static final String ATTR_HORIZONTAL_OFFSET = "horizontalOffset"; //$NON-NLS-1$
+ public static final String ATTR_VERTICAL_OFFSET = "verticalOffset"; //$NON-NLS-1$
+ public static final String ATTR_ZINDEX = "zindex"; //$NON-NLS-1$
+
+ /** FACETS NAMES **/
+ public static final String NAME_FACET_CAPTION = "caption"; //$NON-NLS-1$
+ public static final String NAME_FACET_FOOTER = "footer"; //$NON-NLS-1$
+ public static final String NAME_FACET_HEADER = "header"; //$NON-NLS-1$
+
+ /** jsf tags which are used with richFaces. */
+ public static final String TAG_COLUMN = "column"; //$NON-NLS-1$
+ public static final String TAG_COLUMN_GROUP = "columnGroup"; //$NON-NLS-1$
+ public static final String TAG_COLUMNS = "columns"; //$NON-NLS-1$
+ /** The Constant TAG_FACET. */
+ public static final String TAG_FACET = "facet"; //$NON-NLS-1$
+ public static final String TAG_SUB_TABLE = "subTable"; //$NON-NLS-1$
+
+ public static final String VAL_TRUE = "true"; //$NON-NLS-1$
+ public static final String VAL_FALSE = "false"; //$NON-NLS-1$
+ public static final String TAG_CHOICES = "choices";
+ public static final String TAG_ITEM_LABEL = "label";
+ public static final String TAG_ITEM_VALUE = "value";
+ public static final String TAG_ITEMSET = "itemset";
+ public static final Object TAG_ITEM = "item";
+ public static final Object TAG_LABEL = "label";
+
+ public static final String CHILD_ALERT_NAME = "alert"; //$NON-NLS-1$
+ public static final String CHILD_LABEL_NAME = "label"; //$NON-NLS-1$
+ public static final String CHILD_HINT_NAME = "hint"; //$NON-NLS-1$
+ public static final String CHILD_HELP_NAME = "help"; //$NON-NLS-1$
+
+ private static VpeExpression exprColumnClasses = null;
+
+ /**
+ * Returns the expression to extract style-classes from a {@code 'columnClasses'} attribute.
+ */
+ public static VpeExpression getExprColumnClasses() {
+ if (exprColumnClasses == null) {
+ try {
+ exprColumnClasses = VpeExpressionBuilder.buildCompletedExpression("{@" + ATTR_COLUMN_CLASSES + "}", true) //$NON-NLS-1$ //$NON-NLS-2$
+ .getExpression();
+ } catch (VpeExpressionBuilderException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ return exprColumnClasses;
+ }
+
+ private static VpeExpression exprRowClasses = null;
+
+ /**
+ * Returns the expression to extract style-classes from a {@code 'rowClasses'} attribute.
+ */
+ public static VpeExpression getExprRowClasses() {
+ if (exprRowClasses == null) {
+ try {
+ exprRowClasses = VpeExpressionBuilder.buildCompletedExpression("{@" + ATTR_ROW_CLASSES + "}", true) //$NON-NLS-1$ //$NON-NLS-2$
+ .getExpression();
+ } catch (VpeExpressionBuilderException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ return exprRowClasses;
+ }
+}
Added: workspace/kukeltje/xforms/plugins/templates/vpe.xml
===================================================================
--- workspace/kukeltje/xforms/plugins/templates/vpe.xml (rev 0)
+++ workspace/kukeltje/xforms/plugins/templates/vpe.xml 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://org.jboss.org/tools/vpe/template vpe.xsd ">
+
+ <vpe:tag name="model" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="instance" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <div />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="bind" case-sensitive="yes">
+ <vpe:template children="no" modify="yes">
+ <div />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="submission" case-sensitive="yes">
+ <vpe:template children="no" modify="yes">
+
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="group" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div>
+ <vpe:value expr="@text"></vpe:value>
+ </div>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="label" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div />
+ </vpe:template>
+ </vpe:tag>
+
+</vpe:templates>
Added: workspace/kukeltje/xforms/plugins/templates/vpe.xsd
===================================================================
--- workspace/kukeltje/xforms/plugins/templates/vpe.xsd (rev 0)
+++ workspace/kukeltje/xforms/plugins/templates/vpe.xsd 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,604 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+-->
+<xsd:schema
+ targetNamespace="http://org.jboss.org/tools/vpe/template"
+ xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ version="1.0.0"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified">
+
+<!-- -->
+ <xsd:element name="templates" type="vpe:TEMPLATES"/>
+
+
+<!-- -->
+ <xsd:complexType name="TEMPLATES">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element minOccurs="0" name="template-taglib" type="vpe:TEMPLATE-TAGLIB"/>
+ <xsd:element minOccurs="0" name="tag" type="vpe:TAG"/>
+ <xsd:element minOccurs="0" name="template" type="vpe:DEFAULT_TEMPLATE" />
+ </xsd:choice>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="TAG">
+ <xsd:sequence>
+ <xsd:element name="if" type="vpe:IF" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="template" type="vpe:TEMPLATE" minOccurs="0"/>
+ </xsd:sequence>
+ <xsd:attribute name="case-sensitive" type="vpe:VPE-BOOLEAN" use="optional"/>
+ <xsd:attribute name="name" use="required" type="xsd:string"/>
+ <xsd:attribute name="haveVisualPreview" use="optional" type="vpe:VPE-BOOLEAN"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="TEMPLATE">
+ <xsd:choice maxOccurs="unbounded">
+ <!-- HTML tags -->
+ <xsd:element minOccurs="0" name="nobr" type="vpe:HTML_NOBR" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="span" type="vpe:HTML_SPAN" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="input" type="vpe:HTML_INPUT" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="div" type="vpe:HTML_DIV" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="img" type="vpe:HTML_IMG" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="select" type="vpe:HTML_SELECT" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="option" type="vpe:HTML_OPTION" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="table" type="vpe:HTML_TABLE" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="textarea" type="vpe:HTML_TEXTAREA" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="td" type="vpe:HTML_TD" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="label" type="vpe:HTML_LABEL" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="button" type="vpe:HTML_BUTTON" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="tr" type="vpe:HTML_TR" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h0" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h1" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h2" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h3" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h4" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h5" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h6" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="hr" type="vpe:HTML_HR" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="a" type="vpe:HTML_A" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="p" type="vpe:HTML_P" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="ul" type="vpe:HTML_UL" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="li" type="vpe:HTML_LI" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="pre" type="vpe:HTML_PRE" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="em" type="vpe:HTML_EM" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="i" type="vpe:HTML_I" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="ol" type="vpe:HTML_OL" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="form" type="vpe:HTML_FORM" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="frame" type="vpe:HTML_FRAME" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="iframe" type="vpe:HTML_IFRAME" form="unqualified" maxOccurs="unbounded"/>
+
+
+ <!-- VPE tags -->
+ <xsd:element minOccurs="0" name="panellayout" type="vpe:PANELLAYOT"/>
+ <xsd:element minOccurs="0" name="list" type="vpe:LIST"/>
+ <xsd:element minOccurs="0" name="datatable" type="vpe:DATATABLE"/>
+ <xsd:element minOccurs="0" name="grid" type="vpe:GRID"/>
+ <xsd:element minOccurs="0" name="panelgrid" type="vpe:PANELGRID"/>
+ <xsd:element minOccurs="0" name="column" type="vpe:COLUMN"/>
+ <xsd:element minOccurs="0" name="a" type="vpe:A" />
+ <xsd:element minOccurs="0" name="any" type="vpe:ANY"/>
+ <xsd:element minOccurs="0" name="copy" type="vpe:COPY"/>
+ <xsd:element minOccurs="0" name="taglib" type="vpe:TAGLIB"/>
+ <xsd:element minOccurs="0" name="jsproot" type="vpe:JSPROOT"/>
+ <xsd:element minOccurs="0" name="resize" type="vpe:RESIZE"/>
+ <xsd:element minOccurs="0" name="dnd" type="vpe:DND"/>
+ <xsd:element minOccurs="0" name="load-bundle" type="vpe:LOAD-BUNDLE"/>
+ <xsd:element minOccurs="0" name="link" type="vpe:LINK"/>
+ <xsd:element minOccurs="0" name="textFormatting" type="vpe:TEXT-FORMATING" />
+ <xsd:element minOccurs="0" name="pseudoContent" type="vpe:PSEUDO-CONTENT"/>
+ <xsd:element minOccurs="0" name="style" type="vpe:STYLE" />
+ <xsd:element minOccurs="0" name="breaker" type="vpe:BREAKER" />
+ <xsd:element minOccurs="0" name="facet" type="vpe:FACET" />
+ </xsd:choice>
+ <xsd:attribute name="children" type="vpe:VPE-BOOLEAN"/>
+ <xsd:attribute name="modify" type="vpe:VPE-BOOLEAN"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional" />
+ <xsd:attribute name="file" type="xsd:string" use="optional"/>
+ <xsd:attribute name="namespaceIdentifier" type="xsd:string" use="optional"/>
+ <xsd:attribute name="hasImaginaryBorder" type="vpe:VPE-BOOLEAN" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+
+ <xsd:complexType name="ATTRIBUTE">
+ <xsd:attribute name="name" use="required" type="xsd:NCName"/>
+ <xsd:attribute name="value" use="required" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="TEMPLATE-TAGLIB">
+ <xsd:attribute name="prefix" use="required" type="xsd:NCName"/>
+ <xsd:attribute name="uri" use="required" type="xsd:anyURI"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="RESIZE">
+ <xsd:choice maxOccurs="unbounded" >
+ <xsd:element minOccurs="0" name="height" type="vpe:HEIGHT"/>
+ <xsd:element minOccurs="0" name="width" type="vpe:WIDTH"/>
+ </xsd:choice>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="WIDTH">
+ <xsd:attribute name="width-attr" use="required" type="xsd:string"/>
+ <xsd:attribute name="disable-absolute-position" use="optional" type="vpe:VPE-BOOLEAN"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HEIGHT">
+ <xsd:attribute name="height-attr" use="required" type="xsd:string"/>
+ <xsd:attribute name="tag-xpath" use="optional" type="xsd:string"/>
+ <xsd:attribute name="test" use="optional" type="xsd:string"/>
+ <xsd:attribute name="disable-absolute-position" use="optional" type="vpe:VPE-BOOLEAN"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="DRAG" >
+ <xsd:attribute name="start-enable" use="required" type="vpe:VPE-BOOLEAN" />
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="DROP">
+ <xsd:sequence>
+ <xsd:element maxOccurs="unbounded" minOccurs="0" name="container-child" type="vpe:CONTAINER-CHILD"/>
+ </xsd:sequence>
+ <xsd:attribute name="container" use="required" type="vpe:VPE-BOOLEAN"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="DND">
+ <xsd:sequence>
+ <xsd:element name="drag" type="vpe:DRAG" minOccurs="0"/>
+ <xsd:element name="drop" type="vpe:DROP" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="COPY">
+ <xsd:sequence>
+ <xsd:element name="attribute" type="vpe:ATTRIBUTE" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="attrs" type="xsd:string" />
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="CONTAINER-CHILD" >
+ <xsd:attribute name="tag-name" use="required" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="LOAD-BUNDLE"/>
+<!-- -->
+ <xsd:complexType name="LINK">
+ <xsd:attribute name="rel" type="xsd:string" use="required"/>
+ <xsd:attribute name="href" type="xsd:string" use="required"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="IF">
+ <xsd:sequence>
+ <xsd:element name="if" type="vpe:IF" minOccurs="0" maxOccurs="unbounded"/>
+ <xsd:element name="template" type="vpe:TEMPLATE" minOccurs="0"/>
+ <xsd:element name="textFormatting" type="vpe:TEXT-FORMATING" minOccurs="0"/>
+ </xsd:sequence>
+ <xsd:attribute name="test" use="required" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="A">
+ <xsd:attribute name="style" use="required" type="xsd:string"/>
+ <xsd:attribute name="class" use="required" type="xsd:string"/>
+ <xsd:attribute name="dir" use="optional" type="xsd:string"/>
+ <xsd:attribute name="title" use="optional" type="xsd:string"/>
+ <xsd:attribute name="value" use="optional" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="TEXT-FORMATING">
+ <xsd:sequence>
+ <xsd:element name="format" minOccurs="0" maxOccurs="unbounded" type="vpe:FORMAT"/>
+ </xsd:sequence>
+ <xsd:attribute name="use-default-formats" type="vpe:VPE-BOOLEAN" use="optional"/>
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="FORMAT">
+ <xsd:sequence>
+ <xsd:element name="formatAttribute" minOccurs="0" type="vpe:FORMAT-ATTRIBUTE"/>
+ </xsd:sequence>
+ <xsd:attribute name="type" type="vpe:FORMAT-TYPE" use="required"/>
+ <xsd:attribute name="addChildren" type="vpe:CHILDREN-FORMAT" use="optional"/>
+ <xsd:attribute name="addParent" type="vpe:CHILDREN-FORMAT" use="optional"/>
+ <xsd:attribute name="setDefault" type="xsd:boolean" use="optional"/>
+ <xsd:attribute name="handler" type="xsd:string" use="optional" />
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="FORMAT-ATTRIBUTE">
+ <xsd:attribute name="type" type="xsd:string" use="required"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="PSEUDO-CONTENT">
+ <xsd:attribute name="defaultText" type="vpe:VPE-BOOLEAN" use="optional"/>
+ <xsd:attribute name="attrName" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="STYLE"/>
+<!-- -->
+ <xsd:complexType name="BREAKER">
+ <xsd:attribute name="type" use="required" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="FACET"/>
+<!-- -->
+ <xsd:complexType name="PANELGRID">
+ <xsd:attribute name="bgcolor" use="optional"/>
+ <xsd:attribute name="border" use="optional"/>
+ <xsd:attribute name="captionClass" use="optional"/>
+ <xsd:attribute name="captionStyle" use="optional"/>
+ <xsd:attribute name="cellpadding" use="optional"/>
+ <xsd:attribute name="cellspacing" use="optional"/>
+ <xsd:attribute name="class" use="optional"/>
+ <xsd:attribute name="columnClasses" use="optional"/>
+ <xsd:attribute name="dir" use="optional"/>
+ <xsd:attribute name="footerClass" use="optional"/>
+ <xsd:attribute name="frame" use="optional"/>
+ <xsd:attribute name="headerClass" use="optional"/>
+ <xsd:attribute name="rowClasses" use="optional"/>
+ <xsd:attribute name="rules" use="optional"/>
+ <xsd:attribute name="style" use="optional"/>
+ <xsd:attribute name="table-size" use="optional"/>
+ <xsd:attribute name="title" use="optional"/>
+ <xsd:attribute name="width" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="DATATABLE">
+ <xsd:attribute name="bgcolor" use="optional"/>
+ <xsd:attribute name="border" use="optional"/>
+ <xsd:attribute name="cellpadding" use="optional"/>
+ <xsd:attribute name="cellspacing" use="optional"/>
+ <xsd:attribute name="class" use="optional"/>
+ <xsd:attribute name="columnClasses" use="optional"/>
+ <xsd:attribute name="dir" use="optional"/>
+ <xsd:attribute name="footerClass" use="optional"/>
+ <xsd:attribute name="frame" use="optional"/>
+ <xsd:attribute name="headerClass" use="optional"/>
+ <xsd:attribute name="height" use="optional"/>
+ <xsd:attribute name="rowClasses" use="optional"/>
+ <xsd:attribute name="rules" use="optional"/>
+ <xsd:attribute name="style" use="optional"/>
+ <xsd:attribute name="title" use="optional"/>
+ <xsd:attribute name="width" use="optional"/>
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="COLUMN">
+ <xsd:attribute name="title" use="optional" type="xsd:string" />
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="ANY">
+ <xsd:attribute name="value" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="display" type="xsd:string" use="optional"/>
+ <xsd:attribute name="icon" type="vpe:VPE-BOOLEAN" use="optional"/>
+ <xsd:attribute name="background-color" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="TAGLIB"/>
+<!-- -->
+ <xsd:complexType name="JSPROOT" />
+<!-- -->
+ <xsd:complexType name="GRID">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="input" type="vpe:HTML_INPUT" minOccurs="0" form="unqualified"/>
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="disabled" use="optional" type="xsd:boolean"/>
+ <xsd:attribute name="layout" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="VALUE">
+ <xsd:attribute name="expr" use="required" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="LIST">
+ <xsd:sequence>
+ <xsd:element minOccurs="0" name="value" type="vpe:VALUE" />
+ </xsd:sequence>
+ <xsd:attribute name="style" use="optional" type="xsd:string" />
+ <xsd:attribute name="class" use="optional" type="xsd:string" />
+ <xsd:attribute name="ordered" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional" />
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="PANELLAYOT"/>
+<!-- -->
+ <xsd:complexType name="HTML_NOBR">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ <xsd:element name="input" type="vpe:HTML_INPUT" minOccurs="0" form="unqualified"/>
+ <xsd:element name="copy" type="vpe:COPY" minOccurs="0"/>
+ </xsd:choice>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_SPAN" mixed="true">
+ <xsd:choice maxOccurs="unbounded">
+
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ <xsd:element name="copy" type="vpe:COPY" minOccurs="0"/>
+ <xsd:element name="input" type="vpe:HTML_INPUT" minOccurs="0" form="unqualified" />
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="dir" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_INPUT">
+ <xsd:attribute name="type" type="xsd:string" use="optional"/>
+ <xsd:attribute name="value" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="src" type="xsd:string" use="optional"/>
+ <xsd:attribute name="size" type="xsd:string" use="optional"/>
+ <xsd:attribute name="dir" type="xsd:string" use="optional"/>
+ <xsd:attribute name="checked" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ <xsd:attribute name="disabled" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_DIV" mixed="true">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="select" minOccurs="0" type="vpe:HTML_SELECT" form="unqualified"/>
+ <xsd:element name="input" type="vpe:HTML_INPUT" form="unqualified"/>
+ <xsd:element name="div" minOccurs="0" type="vpe:HTML_DIV" form="unqualified"/>
+ <xsd:element name="table" minOccurs="0" type="vpe:HTML_TABLE" form="unqualified"/>
+ <xsd:element name="b" minOccurs="0" type="vpe:HTML_B" form="unqualified"/>
+ <xsd:element name="textarea" minOccurs="0" type="vpe:HTML_TEXTAREA" form="unqualified"/>
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ <xsd:element minOccurs="0" name="h0" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h1" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h2" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h3" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h4" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h5" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="h6" type="vpe:HTML_H" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="img" type="vpe:HTML_IMG" form="unqualified" maxOccurs="unbounded"/>
+ <xsd:element minOccurs="0" name="hr" type="vpe:HTML_HR" form="unqualified" maxOccurs="unbounded"/>
+
+
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="action" type="xsd:string" use="optional"/>
+ <xsd:attribute name="size" type="xsd:string" use="optional"/>
+ <xsd:attribute name="rows" type="xsd:string" use="optional"/>
+ <xsd:attribute name="cols" type="xsd:string" use="optional"/>
+ <xsd:attribute name="onclick" type="xsd:string" use="optional"/>
+ <xsd:attribute name="rendered" type="xsd:string" use="optional"/>
+ <xsd:attribute name="width" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ <xsd:attribute name="bgcolor" type="xsd:string" use="optional"/>
+ <xsd:attribute name="id" type="xsd:string" use="optional" />
+ <xsd:attribute name="dir" type="xsd:string" use="optional" />
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_IMG">
+ <xsd:attribute name="src" type="xsd:string" use="optional"/>
+ <xsd:attribute name="width" type="xsd:string" use="optional"/>
+ <xsd:attribute name="height" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="alt" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_SELECT">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="option" type="vpe:HTML_OPTION" minOccurs="0" form="unqualified"/>
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="multiple" type="xsd:string" use="optional"/>
+ <xsd:attribute name="size" type="xsd:string" use="optional"/>
+ <xsd:attribute name="dir" type="xsd:string" use="optional"/>
+ <xsd:attribute name="disabled" type="xsd:string" use="optional"/>
+ <xsd:attribute name="value" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_OPTION">
+ <xsd:sequence>
+ <xsd:element name="value" minOccurs="0" type="vpe:VALUE" />
+ </xsd:sequence>
+ <xsd:attribute name="value" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_TABLE">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="tr" type="vpe:HTML_TR" minOccurs="0" form="unqualified" />
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="cellpadding" type="xsd:string" use="optional"/>
+ <xsd:attribute name="cellspacing" type="xsd:string" use="optional"/>
+ <xsd:attribute name="border" type="xsd:string" use="optional"/>
+ <xsd:attribute name="align" type="xsd:string" use="optional"/>
+ <xsd:attribute name="valign" type="xsd:string" use="optional"/>
+ <xsd:attribute name="width" type="xsd:string" use="optional"/>
+ <xsd:attribute name="height" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_TR">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="td" minOccurs="0" type="vpe:HTML_TD" form="unqualified"/>
+ </xsd:choice>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="height" type="xsd:string" use="optional"/>
+ <xsd:attribute name="align" type="xsd:string" use="optional"/>
+ <xsd:attribute name="valign" type="xsd:string" use="optional"/>
+ <xsd:attribute name="width" type="xsd:string" use="optional"/>
+ <xsd:attribute name="rowspan" type="xsd:string" use="optional"/>
+ <xsd:attribute name="nowrap" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_TD" mixed="true">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="a" type="vpe:HTML_A" minOccurs="0" form="unqualified"/>
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="colspan" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="height" type="xsd:string" use="optional"/>
+ <xsd:attribute name="align" type="xsd:string" use="optional"/>
+ <xsd:attribute name="valign" type="xsd:string" use="optional"/>
+ <xsd:attribute name="width" type="xsd:string" use="optional"/>
+ <xsd:attribute name="rowspan" type="xsd:string" use="optional"/>
+ <xsd:attribute name="nowrap" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_A" mixed="true">
+ <xsd:attribute name="href" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_B">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="value" minOccurs="0" type="vpe:VALUE" />
+ </xsd:choice>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_TEXTAREA">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="value" minOccurs="0" type="vpe:VALUE"/>
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="disabled" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ <xsd:attribute name="rows" type="xsd:string" use="optional"/>
+ <xsd:attribute name="cols" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_LABEL">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="a" type="vpe:HTML_A" minOccurs="0" form="unqualified"/>
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="for" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_BUTTON" mixed="true">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ <xsd:attribute name="value" type="xsd:string" use="optional"/>
+ <xsd:attribute name="title" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_H">
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="value" type="vpe:VALUE" minOccurs="0"/>
+ </xsd:choice>
+ <xsd:attribute name="align" type="xsd:string" use="optional"/>
+ <xsd:attribute name="style" type="xsd:string" use="optional"/>
+ <xsd:attribute name="class" type="xsd:string" use="optional"/>
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="HTML_HR">
+ <xsd:attribute name="align" use="optional" type="xsd:string"/>
+ <xsd:attribute name="width" use="optional" type="xsd:string"/>
+ <xsd:attribute name="title" use="optional" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_FRAME">
+ <xsd:attribute name="frameborder" use="optional" type="xsd:string"/>
+ <xsd:attribute name="longdesc" use="optional" type="xsd:string"/>
+ <xsd:attribute name="marginheight" use="optional" type="xsd:string"/>
+ <xsd:attribute name="marginwidth" use="optional" type="xsd:string"/>
+ <xsd:attribute name="name" use="optional" type="xsd:string"/>
+ <xsd:attribute name="noresize" use="optional" type="xsd:string"/>
+ <xsd:attribute name="scrolling" use="optional" type="xsd:string"/>
+ <xsd:attribute name="src" use="optional" type="xsd:string" />
+ </xsd:complexType>
+ <!-- -->
+ <xsd:complexType name="HTML_IFRAME">
+ <xsd:attribute name="align" use="optional" type="xsd:string"/>
+ <xsd:attribute name="frameborder" use="optional" type="xsd:string"/>
+ <xsd:attribute name="height" use="optional" type="xsd:string"/>
+ <xsd:attribute name="longdesc" use="optional" type="xsd:string"/>
+ <xsd:attribute name="marginheight" use="optional" type="xsd:string"/>
+ <xsd:attribute name="marginwidth" use="optional" type="xsd:string"/>
+ <xsd:attribute name="name" use="optional" type="xsd:string"/>
+ <xsd:attribute name="scrolling" use="optional" type="xsd:string"/>
+ <xsd:attribute name="src" use="optional" type="xsd:string" />
+ <xsd:attribute name="width" use="optional" type="xsd:string"/>
+ </xsd:complexType>
+<!-- -->
+ <xsd:complexType name="HTML_OL"/>
+<!-- -->
+ <xsd:complexType name="HTML_I"/>
+<!-- -->
+ <xsd:complexType name="HTML_EM"/>
+<!-- -->
+ <xsd:complexType name="HTML_PRE"/>
+<!-- -->
+ <xsd:complexType name="HTML_LI"/>
+<!-- -->
+ <xsd:complexType name="HTML_UL"/>
+<!-- -->
+ <xsd:complexType name="HTML_P"/>
+ <!-- -->
+ <xsd:complexType name="HTML_FORM"/>
+<!-- -->
+ <xsd:complexType name="DEFAULT_TEMPLATE">
+ <xsd:sequence>
+ <xsd:element name="any" type="vpe:ANY" />
+ </xsd:sequence>
+ <xsd:attribute name="children" type="vpe:VPE-BOOLEAN" use="required"/>
+ <xsd:attribute name="modify" type="vpe:VPE-BOOLEAN" use="required"/>
+ </xsd:complexType>
+
+<!-- VPE types -->
+ <xsd:simpleType name="CHILDREN-FORMAT">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="deny"/>
+ <xsd:enumeration value="allow"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+<!-- -->
+ <xsd:simpleType name="FORMAT-TYPE">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="BlockFormat"/>
+ <xsd:enumeration value="UnderlineFormat"/>
+ <xsd:enumeration value="BoldFormat"/>
+ <xsd:enumeration value="ItalicFormat"/>
+ <xsd:enumeration value="FontNameFormat"/>
+ <xsd:enumeration value="FontSizeFormat"/>
+ <xsd:enumeration value="BackgroundColorFormat"/>
+ <xsd:enumeration value="ForegroundColorFormat"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+<!-- -->
+ <xsd:simpleType name="VPE-BOOLEAN">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="yes"/>
+ <xsd:enumeration value="no"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+<!-- -->
+</xsd:schema>
\ No newline at end of file
Added: workspace/kukeltje/xforms/plugins/templates/xforms.xml
===================================================================
--- workspace/kukeltje/xforms/plugins/templates/xforms.xml (rev 0)
+++ workspace/kukeltje/xforms/plugins/templates/xforms.xml 2009-02-26 16:16:57 UTC (rev 13841)
@@ -0,0 +1,222 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <vpe:template-taglib uri="http://www.w3.org/2002/xforms"
+ prefix="xf" />
+
+ <vpe:tag name="xf:model" case-sensitive="yes">
+ <vpe:template children="no" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsModelTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:input" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsInputTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:secret" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSecretTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:label" case-sensitive="yes">
+ <vpe:if
+ test="parentname()='xf:item' | parentname()='xf:itemset' | parentname()='xf:case'">
+ <vpe:template children="no" modify="yes">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+
+ <vpe:if
+ test="not(parentname()='xf:case' | parentname()='xf:item' | parentname()='xf:itemset')">
+ <vpe:template children="no" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsLabelTemplate">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="xf:group" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsGroupTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="input" />
+ <vpe:container-child tag-name="select" />
+ <vpe:container-child tag-name="select1" />
+ <vpe:container-child tag-name="secret" />
+ <vpe:container-child tag-name="group" />
+ </vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:submit" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSubmitTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:switch" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSwitchTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:case" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsCaseTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:hint" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:alert" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:help" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:trigger" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <div />
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:toggle" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <div />
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:select1" case-sensitive="yes">
+
+ <vpe:if test="(@appearance='full')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelect1FullTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="(@appearance='compact')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelect1CompactTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="(@appearance='minimal') | (@appearance='')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelect1MinimalTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="xf:select" case-sensitive="yes">
+ <vpe:if test="(@appearance='full')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelectFullTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+
+ <vpe:if test="(@appearance='compact')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelectCompactTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+
+ <vpe:if test="(@appearance='minimal') | (@appearance='')">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelectMinimalTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+
+ </vpe:tag>
+
+ <vpe:tag name="xf:itemset" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:choices" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+</vpe:templates>
15 years, 10 months
JBoss Tools SVN: r13840 - trunk/portlet/docs/reference/en/images/starting_project.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-26 11:16:09 -0500 (Thu, 26 Feb 2009)
New Revision: 13840
Added:
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities1.png
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities2.png
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities3.png
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities4.png
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities5.png
trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities6.png
Log:
https://jira.jboss.org/jira/browse/JBDS-577 - adding new images;
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities1.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities2.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities3.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities4.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities5.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities6.png
===================================================================
(Binary files differ)
Property changes on: trunk/portlet/docs/reference/en/images/starting_project/portlet_capabilities6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 10 months
JBoss Tools SVN: r13837 - workspace.
by jbosstools-commits@lists.jboss.org
Author: kukeltje
Date: 2009-02-26 11:11:50 -0500 (Thu, 26 Feb 2009)
New Revision: 13837
Added:
workspace/kukeltje/
Log:
Creating personal workspace for the XForms editor
15 years, 10 months
JBoss Tools SVN: r13836 - in trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam: internal/core/scanner/xml and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-26 11:00:07 -0500 (Thu, 26 Feb 2009)
New Revision: 13836
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/xml/XMLScanner.java
Log:
JBIDE-3879
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java 2009-02-26 15:23:15 UTC (rev 13835)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamXmlComponentDeclaration.java 2009-02-26 16:00:07 UTC (rev 13836)
@@ -27,6 +27,7 @@
public final static String AUTO_CREATE = "auto-create"; //$NON-NLS-1$
public final static String JNDI_NAME = "jndi-name"; //$NON-NLS-1$
public final static String STARTUP = "startup"; //$NON-NLS-1$
+ public final static String STARTUP_DEPENDS = "startupDepends"; //$NON-NLS-1$
/**
* @return scope type
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/xml/XMLScanner.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/xml/XMLScanner.java 2009-02-26 15:23:15 UTC (rev 13835)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/xml/XMLScanner.java 2009-02-26 16:00:07 UTC (rev 13836)
@@ -112,6 +112,7 @@
COMMON_ATTRIBUTES.add(ISeamXmlComponentDeclaration.AUTO_CREATE);
COMMON_ATTRIBUTES.add(ISeamXmlComponentDeclaration.JNDI_NAME);
COMMON_ATTRIBUTES.add(ISeamXmlComponentDeclaration.STARTUP);
+ COMMON_ATTRIBUTES.add(ISeamXmlComponentDeclaration.STARTUP_DEPENDS);
INTERNAL_ATTRIBUTES.add("NAME"); //$NON-NLS-1$
INTERNAL_ATTRIBUTES.add("EXTENSION"); //$NON-NLS-1$
15 years, 10 months
JBoss Tools SVN: r13835 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-02-26 10:23:15 -0500 (Thu, 26 Feb 2009)
New Revision: 13835
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3870
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-26 14:46:24 UTC (rev 13834)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-02-26 15:23:15 UTC (rev 13835)
@@ -383,7 +383,7 @@
if (styleChanged && currentFile != null) {
MessageBox messageBox = new MessageBox(getParentShell(), SWT.YES | SWT.NO | SWT.ICON_QUESTION);
messageBox.setText(JstUIMessages.CSS_SAVE_DIALOG_TITLE);
- messageBox.setMessage("'" + currentFile + "' " + JstUIMessages.CSS_SAVE_DIALOG_MESSAGE); //$NON-NLS-1$ //$NON-NLS-2$
+ messageBox.setMessage(CSSClassDialog.getMessageForSaveDialog(currentFile));
int result = messageBox.open();
if (result == SWT.YES) {
saveChanges(true);
@@ -577,7 +577,7 @@
if (styleChanged && currentClassStyle != null && !currentClassStyle.equals(Constants.EMPTY)) {
MessageBox messageBox = new MessageBox(getParentShell(), SWT.YES | SWT.NO | SWT.ICON_QUESTION);
messageBox.setText(JstUIMessages.CSS_SAVE_DIALOG_TITLE);
- messageBox.setMessage("'" + currentFile + "' " + JstUIMessages.CSS_SAVE_DIALOG_MESSAGE); //$NON-NLS-1$ //$NON-NLS-2$
+ messageBox.setMessage(CSSClassDialog.getMessageForSaveDialog(currentFile));
int result = messageBox.open();
if (result == SWT.YES) {
// update ComboBox element list
@@ -900,5 +900,13 @@
}
}
}
-
+ /**
+ * Create a message string for user
+ * @param currentFile
+ * @return
+ */
+ private static final String getMessageForSaveDialog(IFile currentFile){
+ String userMessage ="'" + currentFile.getFullPath().toOSString() + "' " + JstUIMessages.CSS_SAVE_DIALOG_MESSAGE; //$NON-NLS-1$//$NON-NLS-2$
+ return userMessage;
+ }
}
15 years, 10 months