JBoss Tools SVN: r13929 - in workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms: .settings and 51 other directories.
by jbosstools-commits@lists.jboss.org
Author: kukeltje
Date: 2009-03-02 17:30:42 -0500 (Mon, 02 Mar 2009)
New Revision: 13929
Added:
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.classpath
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.project
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.settings/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.settings/org.eclipse.jdt.core.prefs
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/META-INF/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/META-INF/MANIFEST.MF
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/build.properties
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/example/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/example/widgets.xhtml
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/lib/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/lib/jhighlight-1.0.jar
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/plugin.xml
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/disabled_button.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/separator.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/column/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/column/sortable.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/background-arrows.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/bg_shadow.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/comboBox.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down-disabled.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/background.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataDefinitionList/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataDefinitionList/dataDefinitionList.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-input.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-range.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css.tmp
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/pos.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataList/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataList/dataList.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataOrderedList/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataOrderedList/dataOrderedList.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTable/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTable/dataTable.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTableScroller/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTableScroller/dataTableScroller.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/dropDownMenu.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/list-bg.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/menuComponents.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor_toolbar.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/extendedDataTable.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/sortable.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/fileUpload.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_add.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_clear.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_start.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/applyButton.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/bg_shadow.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/cancelButton.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/inplaceInput.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/red_arrow.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/arrow.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/bg_shadow.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/button_bg.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/inplaceSelect.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/handler.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/input.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/numberSlider.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/track.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.jpg
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-input.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/down.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/inputNumberSpinner.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/up.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/arrow.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/menuGroup.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/menuItem.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/bottom.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/button_bg.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/down.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/orderingList.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/table_header_cell_bg.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/top.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/up.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panel/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panel/panel.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/background.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/panelBar.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenu/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenu/style.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevron.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronDown.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronUp.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/disc.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/grid.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/style.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/topGroupBkgImg.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangle.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleDown.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleUp.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/points.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/style.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy_all.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_down.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_first.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_last.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove_all.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_up.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/button.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/header.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/pickList.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/progressBar.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/upload_status.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/scrollableDataTable/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/scrollableDataTable/scrollableDataTable.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/separator/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/separator/separator.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy_all.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_down.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_first.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_last.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove_all.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_up.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/button.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/header.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/shuttle.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/simpleTogglePanel/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/simpleTogglePanel/simpleTogglePanel.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/active.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/border.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/disabled.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/inactive.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/tabPanel.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorDisc.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorGrid.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorLine.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorSquare.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/toolBar.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/divLine.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNode.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNodeWithLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsed.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsedWithLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeaf.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeafWithLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNode.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLine.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsed.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithAllLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithLines.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/leftLine.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/line.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/rightLine.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/tree.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/unresolved.gif
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/info22.png
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/xforms.css
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsAlertTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsHelpTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsRepeatTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1Template.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xml
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xsd
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/xforms.xml
Log:
Initial check in in correct folder. Lots of codecleaning, refactoring, simplification etc...
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.classpath
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.classpath (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.classpath 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/.project
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.project (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.project 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/.settings/org.eclipse.jdt.core.prefs 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/META-INF/MANIFEST.MF
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/META-INF/MANIFEST.MF (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/META-INF/MANIFEST.MF 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/build.properties
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/build.properties (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/build.properties 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/example/widgets.xhtml
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/example/widgets.xhtml (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/example/widgets.xhtml 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,1361 @@
+<?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> <repeat> <repeat-item brand="brand1" quantity="q1" /> <repeat-item
+ brand="brand2" quantity="q2" /> <repeat-item brand="brand3" quantity="q4" />
+ </repeat> </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:bind nodeset="repeat">
+ <xf:bind nodeset="repeat-item">
+ <xf:bind nodeset="@brand" />
+ <xf:bind nodeset="@quantity" />
+ </xf:bind>
+ </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>
+
+
+</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="repeat" selected="false">
+ <xf:label>Repeat</xf:label>
+ <xforms:repeat id="bread-repeat" nodeset="bla">
+ <xforms:output ref="@brand">
+ <xforms:label />
+ </xforms:output>
+ <xforms:input ref="@quantity">
+ <xforms:label />
+ </xforms:input>
+ </xforms:repeat>
+
+
+ </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/nl.fortythree.jbosstools.vpe.xforms/lib/jhighlight-1.0.jar
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/lib/jhighlight-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/plugin.xml
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/plugin.xml (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/plugin.xml 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/calendar.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/disabled_button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/disabled_button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/separator.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/calendar/separator.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/column/sortable.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/column/sortable.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/background-arrows.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/background-arrows.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/comboBox.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/comboBox.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/comboBox.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down-disabled.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down-disabled.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/comboBox/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/background.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/background.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/common/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataDefinitionList/dataDefinitionList.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataDefinitionList/dataDefinitionList.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataDefinitionList/dataDefinitionList.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,8 @@
+.headerClass{
+
+}
+.columnClass{
+
+}
+.listClass{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-input.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-input.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-range.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/background-range.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css.tmp
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css.tmp (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/dataFilterSlider.css.tmp 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/pos.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataFilterSlider/pos.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataList/dataList.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataList/dataList.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataList/dataList.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,3 @@
+.dr-spr{
+ display: block;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataOrderedList/dataOrderedList.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataOrderedList/dataOrderedList.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataOrderedList/dataOrderedList.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,3 @@
+.dr-spr{
+ display: block;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTable/dataTable.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTable/dataTable.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTable/dataTable.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/dataTableScroller/dataTableScroller.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTableScroller/dataTableScroller.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dataTableScroller/dataTableScroller.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/dropDownMenu.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/dropDownMenu.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/dropDownMenu.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/list-bg.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/list-bg.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/menuComponents.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/menuComponents.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/dropDownMenu/menuComponents.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor_toolbar.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/editor/editor_toolbar.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/extendedDataTable.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/extendedDataTable.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/extendedDataTable.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/sortable.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/extendedDataTable/sortable.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/fileUpload.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/fileUpload.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/fileUpload.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_add.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_add.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_clear.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_clear.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_start.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/fileUpload/ico_start.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/applyButton.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/applyButton.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/cancelButton.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/cancelButton.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/inplaceInput.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/inplaceInput.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/inplaceInput.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/red_arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/red_arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceInput/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/bg_shadow.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/bg_shadow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/button_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/button_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/inplaceSelect.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/inplaceSelect.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/inplaceSelect.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inplaceSelect/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/handler.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/handler.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/input.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/input.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/numberSlider.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/numberSlider.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/numberSlider.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/track.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSlider/track.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.jpg
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-arrows.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-input.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/background-input.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/inputNumberSpinner.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/inputNumberSpinner.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/inputNumberSpinner.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/inputNumberSpinner/up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/arrow.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/arrow.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/menuGroup.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/menuGroup.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/menuGroup.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuGroup/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/menuItem.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/menuItem.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/menuItem.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/menuItem/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/bottom.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/bottom.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/button_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/button_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/orderingList.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/orderingList.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/orderingList.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/table_header_cell_bg.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/table_header_cell_bg.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/top.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/top.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/orderingList/up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,2 @@
+.rich-paint2D{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/paint2D/paint2D.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panel/panel.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panel/panel.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panel/panel.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/background.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/background.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/panelBar.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/panelBar.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelBar/panelBar.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenu/style.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenu/style.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenu/style.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,4 @@
+.rich-pmenu {
+ overflow:hidden;
+ padding-right:4px;
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevron.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevron.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronDown.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronDown.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronUp.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/chevronUp.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/disc.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/disc.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/grid.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/grid.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/style.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/style.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/style.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/topGroupBkgImg.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/topGroupBkgImg.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangle.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangle.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleDown.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleDown.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleUp.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuGroup/triangleUp.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/points.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/points.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/style.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/style.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/panelMenuItem/style.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_copy_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_first.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_first.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_last.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_last.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_remove_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/arrow_up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/header.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/header.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/pickList.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/pickList.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/pickList.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/pickList/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/progressBar.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/progressBar.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/progressBar.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/upload_status.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/progressBar/upload_status.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/scrollableDataTable/scrollableDataTable.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/scrollableDataTable/scrollableDataTable.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/scrollableDataTable/scrollableDataTable.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/separator/separator.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/separator/separator.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/separator/separator.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_copy_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_down.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_down.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_first.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_first.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_last.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_last.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove_all.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_remove_all.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_up.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/arrow_up.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/button.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/button.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/header.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/header.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/shuttle.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/shuttle.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/shuttle/shuttle.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/simpleTogglePanel/simpleTogglePanel.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/simpleTogglePanel/simpleTogglePanel.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/simpleTogglePanel/simpleTogglePanel.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,2 @@
+.rich-spacer{
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/spacer/spacer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/active.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/active.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/border.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/border.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/disabled.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/disabled.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/inactive.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/inactive.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/tabPanel.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/tabPanel.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tabPanel/tabPanel.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorDisc.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorDisc.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorGrid.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorGrid.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorSquare.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/separatorSquare.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/toolBar.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/toolBar.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/toolBar/toolBar.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/tree/divLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/divLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNode.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNode.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNodeWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconClosedNodeWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsed.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsedWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconCollapsedWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeaf.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeaf.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeafWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconLeafWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNode.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNode.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNodeWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsed.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsed.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithAllLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithAllLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithLines.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/iconNotCollapsedWithLines.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/leftLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/leftLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/line.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/line.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/rightLine.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/rightLine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/tree.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/tree.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/tree.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/resources/tree/unresolved.gif
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/tree/unresolved.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/info22.png
===================================================================
(Binary files differ)
Property changes on: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/info22.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/xforms.css
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/xforms.css (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/resources/xforms/xforms.css 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,96 @@
+.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
+ {
+ text-align: right;
+ margin-right: 10px;
+ float: left;
+ width: 150px;
+}
+
+
+html,body,#main {
+ width: 100%; /* make the body expand to fill the visible window */
+ height: 100%;
+ padding: 0 0 0 0;
+ margin: 0 0 0 0;
+ font: 10pt Arial, Myriad, Tahoma, Verdana, sans-serif;
+}
+
+table, input {
+ font: 10pt Arial, Myriad, Tahoma, Verdana, sans-serif;
+}
+
+.xfTrigger {
+ width: 140px;
+}
+
+.xfInvalid .xfValue {
+ background-color: rgb(255, 128, 128);
+}
+
+.xfValid .xfAlert {
+ display: none;
+}
+
+.xfInvalid .xfAlert {
+ display: inline;
+ padding-left: 10px;
+ color: red;
+}
+
+.xfHint {
+ display: none;
+}
+
+.xfHelpIcon {
+ vertical-align: middle;
+ padding-right: 5px;
+ padding-left: 5px;
+}
+
+.xfHelp {
+
+}
+
+.xfRequired .xfLabel::before {
+ content: "* ";
+ color: red;
+}
+
+.xfOutput .xfValue {
+ display: block;
+ overflow: auto;
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/ComponentUtil.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,1030 @@
+/*******************************************************************************
+ * 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;
+ }
+
+ /**
+ * 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;
+ }
+
+
+
+ public static Node getBindNode(Element sourceElement, StringTokenizer st) {
+
+ return getBindNode(sourceElement, st, null);
+ }
+
+ public static Node getBindNode(Element sourceElement, StringTokenizer st, String modelName) {
+
+ Element docElement = sourceElement.getOwnerDocument().getDocumentElement();
+
+ Element head = ComponentUtil.getChildElementByTagname(docElement, "head");
+
+ Element model = null;
+
+ if (modelName != null) {
+ model = ComponentUtil.getChildElementById(head, modelName);
+ }
+ else {
+ 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;
+ }
+
+ public static Element getChildElementById(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.getAttribute("id"))) {
+ returnNode = node;
+ break;
+ }
+ }
+
+ return (Element) returnNode;
+ }
+
+ public static String constructAbsoluteRef(Element sourceElement, String ref) {
+
+ String path = null;
+
+ //Construct full xpath from all parents
+ if (ref != null && !ref.startsWith("/")) {
+
+ path = ref;
+
+ //Reverse traverse the dom to construct the xpath
+ Element parentElement = (Element) sourceElement.getParentNode();
+
+ while (!"form".equalsIgnoreCase(parentElement.getLocalName()) && !"body".equalsIgnoreCase(parentElement.getLocalName())) {
+ if (XForms.URI.equals(parentElement.getNamespaceURI())) {
+ String parentRef = parentElement.getAttribute(XForms.ATTR_REF);
+ String parentNodeset = parentElement.getAttribute(XForms.ATTR_NODESET);
+ String attr = parentRef != null ? parentRef : parentNodeset;
+ if (attr != null && !"".equals(attr)) {
+ path = attr + "/" + path;
+ }
+ }
+ parentElement = (Element) parentElement.getParentNode();
+ }
+
+ }
+
+ return path;
+
+
+ }
+
+ public static String getValueViaRef(Element sourceElement, String ref) {
+
+ String returnValue = null;
+
+ if (!ref.contains("/")) {
+ ref = ComponentUtil.constructAbsoluteRef(sourceElement, ref);
+ }
+
+ //TODO: Use XPath to retrieve the value from the instance (NS SHIT again :-()
+ returnValue = ref;
+
+ return returnValue;
+ }
+
+}
\ No newline at end of file
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/HtmlComponentUtil.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/XFormsTemplatesActivator.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsSelectTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,139 @@
+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 {
+
+ String appearance = null;
+
+ 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);
+ }
+ }
+
+ /**
+ * Read specific attributes from the source element.
+ *
+ * @param sourceElement
+ * the source node
+ */
+ protected void readSelectAttributes(Element sourceElement) {
+
+ if (null == sourceElement) {
+ return;
+ }
+ super.readAttributes(sourceElement);
+ appearance = sourceElement.getAttribute(XForms.ATTR_APPEARANCE);
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/AbstractXFormsTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,284 @@
+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.jboss.tools.vpe.editor.util.VisualDomUtil;
+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 {
+
+ protected String id;
+ protected String style;
+ protected String styleClass;
+ protected String ref;
+ protected String nodeset;
+ protected String model;
+
+ /* xf:mips attributes */
+ protected String relevant;
+ protected String constraint;
+ protected String required;
+ protected String readonly;
+ protected String mipClasses;
+
+ protected String type;
+
+ protected nsIDOMElement grInput;
+ protected nsIDOMElement controlDiv;
+ protected nsIDOMElement labelDummy;
+ protected nsIDOMElement helpSpan;
+ protected nsIDOMElement hintSpan;
+ protected nsIDOMElement alertSpan;
+ protected nsIDOMElement grRequiredSymbol;
+
+ protected nsIDOMElement labelSpan;
+
+ /**
+ * 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 controlType) {
+
+ /*
+ * The base div
+ */
+ controlDiv = visualDocument.createElement(HTML.TAG_DIV);
+ controlDiv.setAttribute(HTML.ATTR_STYLE, style);
+ controlDiv.setAttribute(HTML.ATTR_CLASS, controlType + " xfControl " + mipClasses + " " + styleClass);
+ controlDiv.setAttribute(HTML.ATTR_ID, id);
+
+ /*
+ * Create the label span
+ */
+ labelSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.setAttribute(HTML.ATTR_CLASS, "xfLabel");
+
+ /*
+ * Create the label span
+ */
+ labelDummy = visualDocument.createElement(HTML.TAG_SPAN);
+ labelSpan.appendChild(labelDummy);
+
+ controlDiv.appendChild(labelSpan);
+
+ }
+
+ protected void addLabelAndHelperElements(Element sourceElement, VpeCreationData creationData, nsIDOMDocument visualDocument) {
+
+ VpeChildrenInfo childDivInfo = null;
+
+ Element child;
+
+ if ((child = ComponentUtil.getChildElementByTagname(sourceElement, XForms.CHILD_LABEL_NAME)) != null) {
+ //why is this additional span needed???
+ childDivInfo = new VpeChildrenInfo(labelDummy);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+
+ if ((child = ComponentUtil.getChildElementByTagname(sourceElement, XForms.CHILD_HELP_NAME)) != null) {
+
+ helpSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ helpSpan.setAttribute(HTML.ATTR_CLASS, "xfHelp");
+
+ labelSpan.appendChild(helpSpan);
+
+ childDivInfo = new VpeChildrenInfo(helpSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+
+ if ((child = ComponentUtil.getChildElementByTagname(sourceElement, XForms.CHILD_HINT_NAME)) != null) {
+
+ hintSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ hintSpan.setAttribute(HTML.ATTR_CLASS, "xfHint");
+
+ controlDiv.appendChild(hintSpan);
+
+ childDivInfo = new VpeChildrenInfo(hintSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+
+ if ((child = ComponentUtil.getChildElementByTagname(sourceElement, XForms.CHILD_ALERT_NAME)) != null) {
+
+ alertSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ alertSpan.setAttribute(HTML.ATTR_CLASS, "xfAlert");
+
+ controlDiv.appendChild(alertSpan);
+ childDivInfo = new VpeChildrenInfo(alertSpan);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+
+ }
+
+ }
+
+ protected void addNormalChildren(Element sourceElement, VpeCreationData creationData, nsIDOMDocument visualDocument,
+ nsIDOMElement parent) {
+
+ if (parent == null) {
+ parent = controlDiv;
+ }
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+
+ for (Node child : children) {
+ if (child.getNodeType() == Node.ELEMENT_NODE
+ && !(XForms.CHILD_ALERT_NAME.equals(child.getLocalName()) || XForms.CHILD_HELP_NAME.equals(child.getLocalName())
+ || XForms.CHILD_HINT_NAME.equals(child.getLocalName()) || XForms.CHILD_LABEL_NAME.equals(child.getLocalName()))) {
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(parent);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+ }
+ }
+
+ }
+
+ protected void addNormalChildren(Element sourceElement, VpeCreationData creationData, nsIDOMDocument visualDocument) {
+
+ addNormalChildren(sourceElement, creationData, visualDocument, null);
+
+ }
+
+ 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;
+
+ }
+
+ /**
+ * Read attributes from the source element.
+ *
+ * @param sourceNode
+ * the source node
+ */
+ protected void readAttributes(Node sourceNode) {
+ Element source = (Element) sourceNode;
+ id = source.getAttribute(HTML.ATTR_ID);
+ style = source.getAttribute(HTML.ATTR_STYLE);
+ styleClass = source.getAttribute(HTML.ATTR_CLASS);
+ ref = source.getAttribute(XForms.ATTR_REF);
+ nodeset = source.getAttribute(XForms.ATTR_NODESET);
+ model = source.getAttribute(XForms.ATTR_MODEL);
+ type = source.getAttribute("datatype");
+ }
+
+ protected void readMipsAttributes(Element sourceElement) {
+
+ Element mipElement = null;
+
+ String attr = ref != null ? ref : nodeset;
+
+ if (type == null && attr != null) { // no datatype on XFormsForHTML, so find type and all the rest via bind
+
+ attr = ComponentUtil.constructAbsoluteRef(sourceElement, attr);
+
+ StringTokenizer st = new StringTokenizer(attr, "/");
+ mipElement = (Element) ComponentUtil.getBindNode(sourceElement, st, model);
+
+ if (mipElement != 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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsAlertTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsAlertTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsAlertTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,43 @@
+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.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;
+
+public class XFormsAlertTemplate extends AbstractXFormsTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readAttributes(sourceElement);
+
+ nsIDOMElement alert;
+
+ alert = visualDocument.createElement(HTML.TAG_SPAN);
+
+
+ alert.setAttribute(HTML.ATTR_CLASS, "xfAlert");
+ alert.appendChild(visualDocument.createTextNode(sourceElement.getFirstChild().getNodeValue()));
+
+ creationData = new VpeCreationData(alert);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsCaseTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsGroupTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,46 @@
+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;
+
+ readAttributes(sourceElement);
+
+ readMipsAttributes(sourceElement);
+
+ /*
+ * Creating visual elements
+ */
+
+ createBaseVisualElements(visualDocument, "xfGroup");
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addNormalChildren(sourceElement, creationData, visualDocument);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsHelpTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsHelpTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsHelpTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,53 @@
+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.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;
+
+public class XFormsHelpTemplate extends AbstractXFormsTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readAttributes(sourceElement);
+
+ nsIDOMElement help;
+
+ help = visualDocument.createElement(HTML.TAG_SPAN);
+
+ String DEFAULT_BUTTON_ICON = "xforms/info22.png"; //$NON-NLS-1$
+ String buttonIcon;
+ buttonIcon = Constants.FILE_PREFIX
+ + ComponentUtil
+ .getAbsoluteResourcePath(DEFAULT_BUTTON_ICON);
+ buttonIcon = buttonIcon.replace('\\', '/');
+ nsIDOMElement helpIcon = visualDocument.createElement(HTML.TAG_IMG);
+ helpIcon.setAttribute(HTML.ATTR_SRC, buttonIcon);
+ helpIcon.setAttribute(HTML.ATTR_CLASS, "xfHelpIcon");
+ help.appendChild(helpIcon);
+
+ help.setAttribute(HTML.ATTR_CLASS, "xfHelp");
+ //help.appendChild(visualDocument.createTextNode(sourceElement.getFirstChild().getNodeValue()));
+
+ creationData = new VpeCreationData(help);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsInputTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,99 @@
+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;
+
+ readInputAttributes(sourceElement);
+ readMipsAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfInput");
+
+ /*
+ * The pseudo class ::value (corresponds to an html form controlDiv
+ */
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_SIZE, size);
+ grInput.setAttribute(HTML.ATTR_CLASS, "xfValue");
+ // style is put on the control div, not this one
+
+ // Decide the type;
+ String htmlType = HTML.VALUE_TYPE_TEXT;
+ if ("boolean".equals(type)) {
+ htmlType = HTML.VALUE_TYPE_CHECKBOX;
+ }
+ else if ("date".equals(type)) {
+ grInput.setAttribute(HTML.ATTR_VALUE, "TDB: datepicker");
+ grInput.setAttribute(HTML.ATTR_WIDTH, "100%");
+ }
+ else if (HTML.VALUE_TYPE_TEXT.equals(type)) {
+ grInput.setAttribute(HTML.ATTR_WIDTH, "100%");
+ }
+ grInput.setAttribute(HTML.ATTR_TYPE, htmlType);
+ controlDiv.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);
+ grCalendar.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_ALIGN_MIDDLE);
+
+ controlDiv.appendChild(grCalendar);
+
+ }
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ 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_SIZE);
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsLabelTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,46 @@
+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.nsIDOMNode;
+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);
+ label.setAttribute(HTML.ATTR_STYLE, style);
+ label.setAttribute(HTML.ATTR_CLASS, styleClass);
+
+ creationData = new VpeCreationData(label);
+
+ // Don't set, is already on the span... maybe no label element????
+ // naaahhhh, we can't,, need to have ONE element
+ // label.setAttribute(HTML.ATTR_CLASS, "xfLabel");
+
+ label.appendChild(visualDocument.createTextNode(sourceElement.getFirstChild().getNodeValue()));
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsModelTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsOutputTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,95 @@
+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.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;
+
+public class XFormsOutputTemplate extends AbstractXFormsTemplate {
+
+ private String mediatype = "anyUri"; // default
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readOutputAttributes(sourceElement);
+ readMipsAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfOutput");
+
+ nsIDOMElement outputSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ outputSpan.setAttribute(HTML.ATTR_CLASS, "xfValue " + styleClass);
+ outputSpan.setAttribute(HTML.ATTR_STYLE, style);
+
+ if ("text".equalsIgnoreCase(mediatype) || "text/plain".equalsIgnoreCase(mediatype)) {
+
+ String value = ComponentUtil.getValueViaRef(sourceElement, ref);
+ outputSpan.appendChild(visualDocument.createTextNode("text from \"" + value + "\" will be displayed here"));
+
+ }
+ else if ("text/html".equalsIgnoreCase(mediatype)) {
+
+ String value = ComponentUtil.getValueViaRef(sourceElement, ref);
+ outputSpan.appendChild(visualDocument.createTextNode("html from \"" + value + "\" will be displayed here"));
+
+ }
+ else if ("anyUri".equalsIgnoreCase(mediatype)) {
+
+ String value = ComponentUtil.getValueViaRef(sourceElement, ref);
+ outputSpan.appendChild(visualDocument.createTextNode("data from \"" + value + "\" will be displayed here"));
+
+ }
+ else if (mediatype.startsWith("image")) {
+
+ 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 image = visualDocument.createElement(HTML.TAG_IMG);
+ image.setAttribute(HTML.ATTR_SRC, buttonIcon);
+ image.setAttribute(HTML.ATTR_VALIGN, HTML.VALUE_ALIGN_MIDDLE);
+
+ outputSpan.appendChild(image);
+
+ }
+
+ controlDiv.appendChild(outputSpan);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+
+ }
+
+ /**
+ * Read specific attributes from the source element.
+ *
+ * @param sourceElement
+ * the source node
+ */
+ private void readOutputAttributes(Element sourceElement) {
+
+ if (null == sourceElement) {
+ return;
+ }
+ super.readAttributes(sourceElement);
+ mediatype = ComponentUtil.getAttribute(sourceElement, XForms.ATTR_MEDIATYPE, "anyURI");
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsRepeatTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsRepeatTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsRepeatTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,151 @@
+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.eclipse.jdt.core.dom.rewrite.ITrackedNodePosition;
+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 XFormsRepeatTemplate extends AbstractXFormsSelectTemplate {
+
+ private nsIDOMElement repeatSpan;
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ int iterations = 3;
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readRepeatAttributes(sourceElement);
+
+ readMipsAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfRepeat");
+
+ /*
+ * The pseudo class ::value (corresponds to an html form controlDiv
+ */
+ repeatSpan = visualDocument.createElement(HTML.TAG_SPAN);
+ repeatSpan.setAttribute(HTML.ATTR_ID, id);
+ repeatSpan.setAttribute(HTML.ATTR_CLASS, "xfValue" + styleClass);
+ repeatSpan.setAttribute(HTML.ATTR_STYLE, style);
+
+ controlDiv.appendChild(repeatSpan);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ if ("compact".equalsIgnoreCase(appearance)) {
+
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+
+ nsIDOMElement thead = visualDocument.createElement(HTML.TAG_THEAD);
+ nsIDOMElement thead_row = visualDocument.createElement(HTML.TAG_TR);
+ nsIDOMElement th = visualDocument.createElement(HTML.TAG_TH);
+
+ nsIDOMElement tbody = visualDocument.createElement(HTML.TAG_TBODY);
+ nsIDOMElement td;
+
+ thead.appendChild(thead_row);
+ table.appendChild(thead);
+
+ table.appendChild(tbody);
+
+
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+
+ for (Node child : children) {
+
+ if (child.getNodeType() == Node.ELEMENT_NODE
+ && !(XForms.CHILD_ALERT_NAME.equals(child.getLocalName()) || XForms.CHILD_HELP_NAME.equals(child.getLocalName())
+ || XForms.CHILD_HINT_NAME.equals(child.getLocalName()) || XForms.CHILD_LABEL_NAME.equals(child.getLocalName()))) {
+
+ th = visualDocument.createElement(HTML.TAG_TH);
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(th);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+
+ thead_row.appendChild(th);
+
+ }
+ }
+
+
+
+ while (iterations > 0) {
+
+ nsIDOMElement tbody_row = visualDocument.createElement(HTML.TAG_TR);
+
+ for (Node child : children) {
+
+
+ if (child.getNodeType() == Node.ELEMENT_NODE
+ && !(XForms.CHILD_ALERT_NAME.equals(child.getLocalName()) || XForms.CHILD_HELP_NAME.equals(child.getLocalName())
+ || XForms.CHILD_HINT_NAME.equals(child.getLocalName()) || XForms.CHILD_LABEL_NAME.equals(child.getLocalName()))) {
+
+ td = visualDocument.createElement(HTML.TAG_TD);
+ tbody.appendChild(tbody_row);
+
+ VpeChildrenInfo childDivInfo = new VpeChildrenInfo(td);
+ childDivInfo.addSourceChild(child);
+ creationData.addChildrenInfo(childDivInfo);
+
+ tbody_row.appendChild(td);
+
+ }
+ }
+
+ tbody.appendChild(tbody_row);
+
+ iterations--;
+ }
+
+ repeatSpan.appendChild(table);
+
+ }
+ else if ("full".equalsIgnoreCase(appearance)) {
+
+ while (iterations > 0) {
+
+ addNormalChildren(sourceElement, creationData, visualDocument, repeatSpan);
+ iterations--;
+
+ }
+
+ }
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+
+ }
+
+ /**
+ * Read specific attributes from the source element.
+ *
+ * @param sourceElement
+ * the source node
+ */
+ protected void readRepeatAttributes(Element sourceElement) {
+
+ if (null == sourceElement) {
+ return;
+ }
+ super.readAttributes(sourceElement);
+ appearance = sourceElement.getAttribute(XForms.ATTR_APPEARANCE);
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSecretTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,68 @@
+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);
+ readMipsAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfSecret");
+
+
+ /*
+ * The pseudo class ::value (corresponds to an html form controlDiv
+ */
+ grInput = visualDocument.createElement(HTML.TAG_INPUT);
+ grInput.setAttribute(HTML.ATTR_SIZE, size);
+ grInput.setAttribute(HTML.ATTR_CLASS, "xfValue");
+
+ grInput.setAttribute(HTML.ATTR_TYPE, HTML.VALUE_TYPE_PASSWORD);
+ controlDiv.appendChild(grInput);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ 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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1Template.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1Template.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelect1Template.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,73 @@
+package nl.fortythree.jbosstools.vpe.xforms.template;
+
+import java.util.List;
+
+import nl.fortythree.jbosstools.vpe.xforms.template.util.XForms;
+
+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 XFormsSelect1Template extends AbstractXFormsSelectTemplate {
+
+
+
+ /**
+ *
+ */
+ public XFormsSelect1Template() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+
+ readSelectAttributes(sourceElement);
+ readMipsAttributes(sourceElement);
+
+
+ createBaseVisualElements(visualDocument, "xfSelect1");
+
+ nsIDOMElement child = null;
+
+ if ("compact".equalsIgnoreCase(appearance)) {
+
+ child = visualDocument.createElement(HTML.TAG_SELECT);
+ child.setAttribute(HTML.ATTR_SIZE, "5");
+
+ addOptions(visualDocument, child, sourceElement);
+ }
+ else if ("minimal".equalsIgnoreCase(appearance) || "".equals(appearance) || appearance == null) {
+
+ child = visualDocument.createElement(HTML.TAG_SELECT);
+ // 1 does not seem to work, so keeping 5 since 2 looks weird
+ child.setAttribute(HTML.ATTR_SIZE, "5");
+
+ addOptions(visualDocument, child, sourceElement);
+ }
+ else if ("full".equalsIgnoreCase(appearance)) {
+
+ child = visualDocument.createElement(HTML.TAG_TABLE);
+
+ List<String> labels = getLabels(sourceElement);
+
+ addChoices(visualDocument, child, labels, "radio");
+ }
+
+ controlDiv.appendChild(child);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSelectTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,71 @@
+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 XFormsSelectTemplate extends AbstractXFormsSelectTemplate {
+
+ /**
+ *
+ */
+ public XFormsSelectTemplate() {
+
+ // TODO Auto-generated constructor stub
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+
+ readSelectAttributes(sourceElement);
+ readMipsAttributes(sourceElement);
+
+
+ createBaseVisualElements(visualDocument, "xfSelect");
+
+ nsIDOMElement child = null;
+
+ if ("compact".equalsIgnoreCase(appearance)) {
+
+ child = visualDocument.createElement(HTML.TAG_SELECT);
+ child.setAttribute(HTML.ATTR_SIZE, "5");
+ child.setAttribute(HTML.ATTR_MULTIPLE, "true");
+
+ addOptions(visualDocument, child, sourceElement);
+ }
+ else if ("minimal".equalsIgnoreCase(appearance) || "".equals(appearance) || appearance == null) {
+
+ child = visualDocument.createElement(HTML.TAG_SELECT);
+ // 1 does not seem to work, so keeping 5 since 2 looks weird
+ child.setAttribute(HTML.ATTR_SIZE, "5");
+ child.setAttribute(HTML.ATTR_MULTIPLE, "true");
+
+ addOptions(visualDocument, child, sourceElement);
+ }
+ else if ("full".equalsIgnoreCase(appearance)) {
+
+ child = visualDocument.createElement(HTML.TAG_TABLE);
+
+ List<String> labels = getLabels(sourceElement);
+
+ addChoices(visualDocument, child, labels, HTML.VALUE_TYPE_CHECKBOX);
+ }
+
+ controlDiv.appendChild(child);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+ }
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSubmitTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,48 @@
+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 AbstractXFormsTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
+ VpeCreationData creationData = null;
+ Element sourceElement = (Element) sourceNode;
+ readAttributes(sourceNode);
+
+ readMipsAttributes(sourceElement);
+
+ createBaseVisualElements(visualDocument, "xfSubmit");
+
+ nsIDOMElement submit = visualDocument.createElement(HTML.TAG_INPUT);
+ submit.setAttribute(HTML.ATTR_TYPE, HTML.VALUE_TYPE_BUTTON);
+
+ controlDiv.appendChild(submit);
+
+ creationData = new VpeCreationData(controlDiv);
+
+ Node labelNode = getLabelNode(sourceElement);
+ submit.setAttribute(HTML.ATTR_VALUE, labelNode.getFirstChild().getNodeValue());
+
+ // duplicate label??? Lets see what happens;
+ addLabelAndHelperElements(sourceElement, creationData, visualDocument);
+
+ return creationData;
+ }
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/XFormsSwitchTemplate.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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, HTML.ATTR_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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/AttributeMap.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/src/nl/fortythree/jbosstools/vpe/xforms/template/util/XForms.java 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * 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_STYLE. */
+ public static final String ATTR_STYLE = "style"; //$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$
+
+
+ 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$
+
+ public static final String ATTR_APPEARANCE = "appearance";
+ public static final String ATTR_REF = "ref";
+ public static final String ATTR_MODEL = "model";
+ public static final String ATTR_MEDIATYPE = "mediatype";
+ public static final String ATTR_NODESET = "nodeset";
+
+ public static final String URI = "http://www.w3.org/2002/xforms";
+
+
+}
Added: workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xml
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xml (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xml 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xsd
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xsd (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/vpe.xsd 2009-03-02 22:30:42 UTC (rev 13929)
@@ -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/nl.fortythree.jbosstools.vpe.xforms/templates/xforms.xml
===================================================================
--- workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/xforms.xml (rev 0)
+++ workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/templates/xforms.xml 2009-03-02 22:30:42 UTC (rev 13929)
@@ -0,0 +1,207 @@
+<?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' | parentname()='xf:submit'">
+ <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'| parentname()='xf:submit')">
+ <vpe:template children="no" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsLabelTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <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: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:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelect1Template">
+ <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:select" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsSelectTemplate">
+ <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: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:tag name="xf:repeat" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsRepeatTemplate">
+ <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:help" case-sensitive="yes">
+ <vpe:template children="no" modify="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsHelpTemplate">
+ <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="yes"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsAlertTemplate">
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="xf:output" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="nl.fortythree.jbosstools.vpe.xforms.template.XFormsOutputTemplate">
+ <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:templates>
15 years, 2 months
JBoss Tools SVN: r13928 - workspace/kukeltje/xforms.
by jbosstools-commits@lists.jboss.org
Author: kukeltje
Date: 2009-03-02 17:27:40 -0500 (Mon, 02 Mar 2009)
New Revision: 13928
Added:
workspace/kukeltje/xforms/nl.fortythree.jbosstools.vpe.xforms/
Log:
Initial import in correct folder
Lots of codecleaning, refactoring etc
15 years, 2 months
JBoss Tools SVN: r13927 - in branches/jbosstools-3.0.x/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-03-02 15:04:53 -0500 (Mon, 02 Mar 2009)
New Revision: 13927
Added:
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
Removed:
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
Modified:
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabQuickEditControl.java
branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2009-03-02 20:04:53 UTC (rev 13927)
@@ -26,7 +26,7 @@
BUTTON_CLEAR=Clear
BUTTON_ADD_NEW_STYLE_CLASS=Add CSS Class
ENTER_CSS_CLASS_NAME=Enter New CSS Class Name
-CSS_CLASS_NAME_NOT_VALID=CSS Class Name not valid
+CSS_CLASS_NAME_NOT_VALID=CSS Class Name is not valid
IMAGE_COMBO_TABLE_TOOL_TIP=Double click to select color
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -26,7 +26,6 @@
import org.jboss.tools.jst.jsp.contentassist.FaceletsHtmlContentAssistProcessor;
import org.jboss.tools.jst.jsp.contentassist.JSPDialogCellEditorContentAssistProcessor;
import org.jboss.tools.jst.jsp.drop.treeviewer.model.RootElement;
-import org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.CSSStyleDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSConstants;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants;
@@ -139,17 +138,18 @@
context.put("value", value);
attributeName = attributeName.toLowerCase();
- if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
- || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
- CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
- dialog.setCurrentStyleClass(value);
-
- if (dialog.open() == Window.OK) {
- externalEditing = false;
-
- return dialog.getSelectorName();
- }
- } else if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
+// if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
+// || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
+// CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
+// dialog.setCurrentStyleClass(value);
+//
+// if (dialog.open() == Window.OK) {
+// externalEditing = false;
+//
+// return dialog.getSelectorName();
+// }
+// } else
+ if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
|| attributeName.endsWith(CSSConstants.STYLE.toLowerCase())) {
CSSStyleDialog dialog = new CSSStyleDialog(cellEditorWindow.getShell(),
((value == null) ? Constants.EMPTY : value));
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -164,7 +164,7 @@
if (currentFile == null) {
currentFile = Util.getActiveCssFile();
}
- currentClassStyle = Util.getActivePageCSSSelectorIfAny();
+// currentClassStyle = Util.getActivePageCSSSelectorIfAny();
}
/**
@@ -484,7 +484,7 @@
* Add New Class to CSS Class Dialog
* @param styleClassName - name of new style class
*/
- protected void addNewStyleClass(String styleClassName) {
+ public void addNewStyleClass(String styleClassName) {
applyButton.setEnabled(true);
styleChanged = true;
currentClassStyle = styleClassName;
@@ -493,9 +493,11 @@
styleComposite.updatePreview(currentClassStyle);
updateOKButtonState();
// add new class to end of list
- classCombo.add(currentClassStyle);
+ if (classCombo.indexOf(currentClassStyle) == -1)
+ classCombo.add(currentClassStyle);
// end select it
classCombo.select(classCombo.getItemCount() - 1);
+ cssModel.setCSS(currentClassStyle, styleAttributes);
}
// /**
// * This method is invoked to correctly process class style combo modify event.
@@ -618,12 +620,12 @@
currentClassStyle = classCombo.getText().trim();
// if new css was added
- if (classCombo.indexOf(currentClassStyle) == -1) {
- classCombo.add(currentClassStyle);
+// if (classCombo.indexOf(currentClassStyle) == -1) {
+// classCombo.add(currentClassStyle);
// styleChanged = true;
- } /*else {
- styleChanged = false;
- }*/
+// } else {
+// styleChanged = false;
+// }
applyButton.setEnabled(true);
styleChanged = true;
@@ -649,8 +651,9 @@
if (file != null) {
// create CSS Model
cssModel = new CSSModel(file);
+ currentClassStyle = null;
+ classCombo.removeAll();
classCombo.setEnabled(true);
- classCombo.removeAll();
// set file path to corresponding text field
if (useRelativePathPath) {
text.setText(file.getProjectRelativePath().toOSString());
@@ -665,19 +668,19 @@
// fill in ComboBox component with CSS model selectors
// List<Selector> selectors = cssModel.getSelectors();
List<String> selectors = cssModel.getSelectorLabels();
- int selectedIndex = -1;
for (int i = 0; i < selectors.size(); i++) {
// Selector value = selectors.get(i);
String label = selectors.get(i);
classCombo.add(/*value.getValue()*/ label);
- if (currentClassStyle != null && currentClassStyle.equals(/*value.getValue()*/label)) {
- selectedIndex = i;
- }
+
}
- if (currentClassStyle != null && selectedIndex == -1) {
+ /*
+ *
+ */
+ if (currentClassStyle != null) {
classCombo.setText(currentClassStyle);
} else {
- classCombo.select(selectedIndex);
+ classCombo.select(0);
}
classCombo.setToolTipText(cssModel.getCSSText(currentClassStyle));
@@ -790,8 +793,10 @@
public void releaseResources() {
- if (cssModel != null)
+ if (cssModel != null){
cssModel.releaseModel();
+ cssModel = null;
+ }
}
/**
@@ -920,13 +925,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;
-// }
+
+ public void reinit(){
+ releaseResources();
+ initCSSModel(currentFile, true,true);
+ }
+
+ public void setCurrentFile(IFile currentFile) {
+ this.currentFile = currentFile;
+ }
}
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -65,6 +65,7 @@
private CSSStyleSheet styleSheet = null;
private ICSSStyleSheet eclipseStyleSheet = null;
private String COPY_SUFFIX = "_copy";
+ private boolean copy = false;
/**
@@ -82,6 +83,7 @@
if (model != null) {
releaseModel();
}
+ copy = false;
formatProcessorCSS = new FormatProcessorCSS();
IModelManager modelManager = StructuredModelManager.getModelManager();
model = modelManager.getExistingModelForEdit(styleFile);
@@ -90,7 +92,8 @@
if (model == null)
model = modelManager.getModelForEdit(styleFile);
else {
-
+
+ copy = true;
// copy the model
model = modelManager.copyModelForEdit(model.getId(), model
.getId()
@@ -318,12 +321,21 @@
public void saveModel() {
try {
- // it is necessary not to dialog appears when "dirty" css file is
- // being saved
- IFileBuffer buffer = FileBuffers.getTextFileBufferManager()
- .getFileBuffer(styleFile.getFullPath(),
- LocationKind.NORMALIZE);
- buffer.setDirty(false);
+ /*
+ * it is necessary not to dialog appears when "dirty" css file is
+ * being saved ( test case : 1) open css file 2) make same changes
+ * 3) open css dialog 4) make some changes 5)press ok )
+ *
+ *
+ * it is necessary to distinguish real model from copy. For real
+ * model next step reject all changes
+ */
+ if (copy) {
+ IFileBuffer buffer = FileBuffers.getTextFileBufferManager()
+ .getFileBuffer(styleFile.getFullPath(),
+ LocationKind.NORMALIZE);
+ buffer.setDirty(false);
+ }
model.save();
} catch (IOException e) {
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -41,8 +41,7 @@
}
}
return false;
- }
- if (element instanceof IProject && ((IProject) element).isOpen())
+ } if (element instanceof IProject && ((IProject) element).isOpen())
return true;
if (element instanceof IContainer) { // i.e. IProject, IFolder
try {
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabQuickEditControl.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabQuickEditControl.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/tabs/TabQuickEditControl.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -114,7 +114,7 @@
if(listKeys.size()==0) {
label = new Label(this, SWT.CENTER);
label.setText(JstUIMessages.CSS_NO_EDITED_PROPERTIES);
- }
+ }
Collections.sort(listKeys);
updateDataFromStyleAttributes = true;
for (String key : listKeys) {
Modified: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 20:00:10 UTC (rev 13926)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -10,10 +10,14 @@
******************************************************************************/
package org.jboss.tools.jst.web.ui.wizards.css;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.IDialogPage;
+import org.eclipse.jface.dialogs.IPageChangedListener;
+import org.eclipse.jface.dialogs.PageChangedEvent;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
@@ -24,13 +28,14 @@
import org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.events.MessageDialogEvent;
import org.jboss.tools.jst.jsp.outline.cssdialog.events.MessageDialogListener;
+import org.jboss.tools.jst.web.ui.wizards.messages.WebUIMessages;
/**
* New CSS class wizard.
*/
public class NewCSSClassWizard extends Wizard implements INewWizard {
- private static final String WIZARD_WINDOW_TITLE = "CSS Style Class Editor";
+ private CSSClassDescription classDescription = new CSSClassDescription();
// workbench selection when the wizard was started
protected IStructuredSelection selection;
@@ -38,18 +43,20 @@
protected IWorkbench workbench;
// wizard contains only one page
- private NewCSSClassWizardPage page;
+ private NewCSSClassWizardPage editFilePage;
- /**
- * Constructor for SampleNewWizard.
- */
- public NewCSSClassWizard() {
- super();
- setWindowTitle(WIZARD_WINDOW_TITLE);
-
- }
+ private WizardNewCssClassPage selectFilePage;
/**
+ * Constructor for SampleNewWizard.
+ */
+ public NewCSSClassWizard() {
+ super();
+ setWindowTitle(WebUIMessages.WIZARD_WINDOW_TITLE);
+ }
+
+
+ /**
* @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
@@ -57,138 +64,175 @@
this.selection = selection;
}
- /**
- * Adding the page to the wizard.
- */
- @Override
+ /**
+ * Adding the page to the wizard.
+ */
+ @Override
public void addPages() {
- page = new NewCSSClassWizardPage();
- addPage(page);
- }
- /**
- * This method is called when 'Finish' button is pressed in the wizard. We
- * will create an operation and run it using wizard as execution context.
- */
- @Override
+ selectFilePage = new WizardNewCssClassPage(classDescription);
+ editFilePage = new NewCSSClassWizardPage();
+ addPage(selectFilePage);
+ addPage(editFilePage);
+ }
+
+ /**
+ * This method is called when 'Finish' button is pressed in the wizard. We
+ * will create an operation and run it using wizard as execution context.
+ */
+ @Override
public boolean performFinish() {
- page.saveChanges();
+ editFilePage.saveChanges();
- return true;
- }
+ return true;
+ }
- /**
- * @see org.eclipse.jface.wizard.IWizard#canFinish()
- */
- @Override
+ /**
+ * @see org.eclipse.jface.wizard.IWizard#canFinish()
+ */
+ @Override
public boolean canFinish() {
- return page.canFinish;
+ return selectFilePage.canFlipToNextPage()
+ && getContainer().getCurrentPage() == editFilePage
+ && editFilePage.canFinish;
}
- /**
- * @see org.eclipse.jface.wizard.IWizard#performCancel()
- */
- @Override
- public boolean performCancel() {
- page.cancel();
- return true;
- }
+ /**
+ * @see org.eclipse.jface.wizard.IWizard#performCancel()
+ */
+ @Override
+ public boolean performCancel() {
+ editFilePage.cancel();
+ return true;
+ }
+
+ public class CSSClassDescription{
+ private IFile cssFile;
+ private String cssClassName;
+ public IFile getCssFile() {
+ return cssFile;
+ }
+ public void setCssFile(IFile cssFile) {
+ this.cssFile = cssFile;
+ }
+ public String getCssClassName() {
+ return cssClassName;
+ }
+ public void setCssClassName(String cssClassName) {
+ this.cssClassName = cssClassName;
+ }
+ }
- /**
- * Class representing the first page of the wizard.
- */
- private class NewCSSClassWizardPage extends WizardPage {
+ /**
+ * Class representing the first page of the wizard.
+ */
+ private class NewCSSClassWizardPage extends WizardPage {
- // TODO: take out to the property manager file
- final static String WIZARD_TITLE = "CSS Class";
- final static String WIZARD_DESCRIPTION = "Create New CSS Class";
+ private CSSClassDialog dialog;
- private CSSClassDialog dialog;
+ boolean canFinish = false;
- boolean canFinish = false;
+ /**
+ * Constructor for SampleNewWizardPage.
+ *
+ * @param pageName
+ */
+ public NewCSSClassWizardPage() {
+ super("newCSSClassWizard");
+ setTitle(WebUIMessages.WIZARD_TITLE);
+ setDescription(WebUIMessages.WIZARD_DESCRIPTION);
+
+ }
- /**
- * Constructor for SampleNewWizardPage.
- *
- * @param pageName
- */
- public NewCSSClassWizardPage() {
- super("newCSSClassWizard");
- setTitle(WIZARD_TITLE);
- setDescription(WIZARD_DESCRIPTION);
- }
+ /**
+ * @see IDialogPage#createControl(Composite)
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ container.setLayout(layout);
- /**
- * @see IDialogPage#createControl(Composite)
- */
- public void createControl(Composite parent) {
- Composite container = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- container.setLayout(layout);
-
- // Initialize CSS dialog that is integrated to CSS wizard.
- // Also it can be used separately without integration to wizard component.
- dialog = new CSSClassDialog(getShell(), selection, true);
- dialog.addMessageDialogListener(new MessageDialogListener() {
+ // Initialize CSS dialog that is integrated to CSS wizard.
+ // Also it can be used separately without integration to wizard
+ // component.
+ dialog = new CSSClassDialog(getShell(), selection, true);
+ dialog.addMessageDialogListener(new MessageDialogListener() {
public void throwMessage(MessageDialogEvent event) {
if (event != null) {
IStatus status = event.getOperationStatus();
if (status != null) {
applyToStatusLine(status);
}
- getWizard().getContainer().updateButtons();
+ getWizard().getContainer().updateButtons();
}
}
- });
- dialog.createDialog(container);
- setControl(container);
+ });
- }
+ dialog.createDialog(container);
+ setControl(container);
+
+ if (getWizard().getContainer() instanceof WizardDialog){
+ WizardDialog wd = (WizardDialog) getWizard().getContainer();
+ wd.addPageChangedListener(new IPageChangedListener(){
- /**
- * Save page model.
- */
- public void saveChanges() {
- dialog.saveChanges(true);
- }
+ //set console configuration as treeViewer input
+ public void pageChanged(PageChangedEvent event) {
+ if (event.getSelectedPage() == editFilePage){
+ dialog.setCurrentFile(classDescription.getCssFile());
+ dialog.reinit();
+ dialog.addNewStyleClass(classDescription.cssClassName);
+ }
+ }});
+ }
- /**
- * Handle cancel operation correctly.
- */
- public void cancel() {
- dialog.closeDialog();
- }
+ }
- /**
- * Applies the status to the status line of a dialog page.
- */
- private void applyToStatusLine(IStatus status) {
- String message= status.getMessage();
- if (message.length() == 0) {
- message = null;
- }
- switch (status.getSeverity()) {
- case IStatus.OK:
- setErrorMessage(null);
- setMessage(message);
- canFinish = true;
- break;
- case IStatus.WARNING:
- setErrorMessage(null);
- canFinish = true;
- setMessage(message, WizardPage.WARNING);
- break;
- case IStatus.INFO:
- setErrorMessage(null);
- canFinish = true;
- setMessage(message, WizardPage.INFORMATION);
- break;
- default:
- setErrorMessage(message);
- setMessage(null);
- canFinish = false;
- break;
- }
- }
- }
+ /**
+ * Save page model.
+ */
+ public void saveChanges() {
+// dialog.saveChanges(true);
+ dialog.close();
+ }
+
+ /**
+ * Handle cancel operation correctly.
+ */
+ public void cancel() {
+ dialog.closeDialog();
+ }
+
+ /**
+ * Applies the status to the status line of a dialog page.
+ */
+ private void applyToStatusLine(IStatus status) {
+ String message = status.getMessage();
+ if (message.length() == 0) {
+ message = null;
+ }
+ switch (status.getSeverity()) {
+ case IStatus.OK:
+ setErrorMessage(null);
+ setMessage(message);
+ canFinish = true;
+ break;
+ case IStatus.WARNING:
+ setErrorMessage(null);
+ canFinish = true;
+ setMessage(message, WizardPage.WARNING);
+ break;
+ case IStatus.INFO:
+ setErrorMessage(null);
+ canFinish = true;
+ setMessage(message, WizardPage.INFORMATION);
+ break;
+ default:
+ setErrorMessage(message);
+ setMessage(null);
+ canFinish = false;
+ break;
+ }
+ }
+ }
+
}
Copied: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java (from rev 13915, trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java)
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java (rev 0)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -0,0 +1,177 @@
+/*******************************************************************************
+ * 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 org.jboss.tools.jst.web.ui.wizards.css;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
+import org.eclipse.ui.dialogs.ISelectionStatusValidator;
+import org.eclipse.ui.model.BaseWorkbenchContentProvider;
+import org.eclipse.ui.model.WorkbenchLabelProvider;
+import org.jboss.tools.jst.jsp.outline.cssdialog.common.FileExtensionFilter;
+import org.jboss.tools.jst.web.ui.wizards.css.NewCSSClassWizard.CSSClassDescription;
+import org.jboss.tools.jst.web.ui.wizards.messages.WebUIMessages;
+import org.w3c.dom.css.CSSFontFaceRule;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class WizardNewCssClassPage extends WizardPage implements ModifyListener {
+
+ private final static String REQUIRED_FIELD_SIGN = "*"; //$NON-NLS-1$
+ private final static String CSS_FILE_EXTENSION = "css"; //$NON-NLS-1$
+ private CSSClassDescription classDescription;
+ private final static String[] fileExtensions = { CSS_FILE_EXTENSION };
+ private IFile currentFile;
+ private int numColumns = 3;
+ private Text selectFileText;
+ private Text classNameText;
+
+ /**
+ * @param pageName
+ */
+ public WizardNewCssClassPage(CSSClassDescription classDescription) {
+ super("WizardNewCssClassPage"); //$NON-NLS-1$
+ this.classDescription = classDescription;
+ setTitle(WebUIMessages.WIZARD_TITLE);
+ setDescription(WebUIMessages.WIZARD_DESCRIPTION);
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets
+ * .Composite)
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = numColumns;
+ layout.makeColumnsEqualWidth = false;
+ container.setLayout(layout);
+
+ Label selectFileLabel = new Label(container, SWT.NONE);
+ selectFileLabel.setText(WebUIMessages.FILE_SELECT_LABEL
+ + REQUIRED_FIELD_SIGN);
+
+ selectFileText = new Text(container, SWT.SINGLE | SWT.BORDER);
+ selectFileText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ selectFileText.setFont(parent.getFont());
+ selectFileText.addModifyListener(this);
+
+ Button selectFileButton = new Button(container, SWT.NONE);
+ selectFileButton.setText(WebUIMessages.FILE_SELECT_BUTTON);
+ selectFileButton.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
+ getShell(), new WorkbenchLabelProvider(),
+ new BaseWorkbenchContentProvider());
+ dialog.addFilter(new FileExtensionFilter(fileExtensions));
+ dialog.setTitle(WebUIMessages.FILE_SELECT_DIALOG_TITLE);
+ dialog.setMessage(WebUIMessages.FILE_SELECT_DIALOG_MESSAGE);
+ dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
+ dialog.setAllowMultiple(false);
+ dialog.setDoubleClickSelects(true);
+ dialog.setValidator(new ISelectionStatusValidator(){
+
+ public IStatus validate(Object[] selection) {
+ if(selection!=null && selection.length==1) {
+ if(selection[0] instanceof IFile) {
+ return new Status(IStatus.OK, PlatformUI.PLUGIN_ID,
+ IStatus.OK, "", //$NON-NLS-1$
+ null);
+ }
+ }
+ return new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID,
+ IStatus.ERROR, WebUIMessages.WIZARD_ERROR_FILE_SELECTION, //$NON-NLS-1$
+ null);
+ }});
+ if (currentFile != null) {
+ dialog.setInitialSelection(currentFile);
+ }
+ dialog
+ .setEmptyListMessage(WebUIMessages.FILE_SELECT_DIALOG_EMPTY_MESSAGE);
+
+ if (dialog.open() == Window.OK) {
+ currentFile = (IFile) dialog.getFirstResult();
+ selectFileText
+ .setText(currentFile.getFullPath().toString());
+ }
+
+ }
+ });
+
+ Label classNameLabel = new Label(container, SWT.NONE);
+ classNameLabel.setText(WebUIMessages.CSS_CLASS_NAME_LABEL
+ + REQUIRED_FIELD_SIGN);
+
+ classNameText = new Text(container, SWT.SINGLE | SWT.BORDER);
+ classNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ classNameText.setFont(parent.getFont());
+ classNameText.addModifyListener(this);
+
+ setControl(container);
+ }
+
+ @Override
+ public boolean canFlipToNextPage() {
+ if ((classNameText.getText().length() != 0)
+ && (getCssFile(selectFileText.getText()) != null)) {
+ return true;
+ }
+ return false;
+ }
+
+ public void modifyText(ModifyEvent e) {
+
+ classDescription.setCssClassName(classNameText.getText());
+ classDescription.setCssFile(getCssFile(selectFileText.getText()));
+ getContainer().updateButtons();
+
+ }
+
+ private IFile getCssFile(String path) {
+ if (path != null) {
+ IResource cssFile = ResourcesPlugin.getWorkspace().getRoot()
+ .findMember(path);
+ if ((cssFile != null)
+ && (CSS_FILE_EXTENSION.equals(cssFile.getFileExtension()))) {
+ return (IFile) cssFile;
+ }
+ }
+ return null;
+ }
+
+}
Copied: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages (from rev 13915, trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages)
Deleted: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 16:41:27 UTC (rev 13915)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -1,23 +0,0 @@
-package org.jboss.tools.jst.web.ui.wizards.messages;
-
-import org.eclipse.osgi.util.NLS;
-
-public class WebUIMessages extends NLS {
- private static final String BUNDLE_NAME = "org.jboss.tools.jst.web.ui.wizards.messages.messages"; //$NON-NLS-1$
- public static String FILE_SELECT_DIALOG_EMPTY_MESSAGE;
- public static String FILE_SELECT_DIALOG_MESSAGE;
- public static String FILE_SELECT_DIALOG_TITLE;
- public static String FILE_SELECT_LABEL;
- public static String FILE_SELECT_BUTTON;
- public static String CSS_CLASS_NAME_LABEL;
- public static String WIZARD_WINDOW_TITLE;
- public static String WIZARD_TITLE;
- public static String WIZARD_DESCRIPTION;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, WebUIMessages.class);
- }
-
- private WebUIMessages() {
- }
-}
Copied: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java (from rev 13915, trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java)
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java (rev 0)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 20:04:53 UTC (rev 13927)
@@ -0,0 +1,24 @@
+package org.jboss.tools.jst.web.ui.wizards.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public class WebUIMessages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.jst.web.ui.wizards.messages.messages"; //$NON-NLS-1$
+ public static String FILE_SELECT_DIALOG_EMPTY_MESSAGE;
+ public static String FILE_SELECT_DIALOG_MESSAGE;
+ public static String FILE_SELECT_DIALOG_TITLE;
+ public static String FILE_SELECT_LABEL;
+ public static String FILE_SELECT_BUTTON;
+ public static String CSS_CLASS_NAME_LABEL;
+ public static String WIZARD_WINDOW_TITLE;
+ public static String WIZARD_TITLE;
+ public static String WIZARD_DESCRIPTION;
+ public static String WIZARD_ERROR_FILE_SELECTION;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, WebUIMessages.class);
+ }
+
+ private WebUIMessages() {
+ }
+}
Deleted: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 16:41:27 UTC (rev 13915)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 20:04:53 UTC (rev 13927)
@@ -1,10 +0,0 @@
-FILE_SELECT_DIALOG_EMPTY_MESSAGE=No CSS file in the current project
-FILE_SELECT_DIALOG_MESSAGE=Select CSS file from the tree:
-FILE_SELECT_DIALOG_TITLE=CSS File Selection
-FILE_SELECT_LABEL=CSS File
-FILE_SELECT_BUTTON=Browse
-CSS_CLASS_NAME_LABEL=CSS Class
-WIZARD_WINDOW_TITLE=CSS Style Class Editor
-WIZARD_TITLE=CSS Class
-WIZARD_DESCRIPTION=Create New CSS Class
-
Copied: branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties (from rev 13915, trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties)
===================================================================
--- branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties (rev 0)
+++ branches/jbosstools-3.0.x/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 20:04:53 UTC (rev 13927)
@@ -0,0 +1,11 @@
+FILE_SELECT_DIALOG_EMPTY_MESSAGE=No CSS file in the current project
+FILE_SELECT_DIALOG_MESSAGE=Select CSS file from the tree:
+FILE_SELECT_DIALOG_TITLE=CSS File Selection
+FILE_SELECT_LABEL=CSS File
+FILE_SELECT_BUTTON=Browse
+CSS_CLASS_NAME_LABEL=CSS Class
+WIZARD_WINDOW_TITLE=CSS Style Class Editor
+WIZARD_TITLE=CSS Class
+WIZARD_DESCRIPTION=Create New CSS Class
+WIZARD_ERROR_FILE_SELECTION=No file specified
+
15 years, 2 months
JBoss Tools SVN: r13926 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 15:00:10 -0500 (Mon, 02 Mar 2009)
New Revision: 13926
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 19:59:36 UTC (rev 13925)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 20:00:10 UTC (rev 13926)
@@ -177,7 +177,7 @@
//set console configuration as treeViewer input
public void pageChanged(PageChangedEvent event) {
- if (event.getSelectedPage() == NewCSSClassWizardPage.this){
+ if (event.getSelectedPage() == editFilePage){
dialog.setCurrentFile(classDescription.getCssFile());
dialog.reinit();
dialog.addNewStyleClass(classDescription.cssClassName);
@@ -191,7 +191,7 @@
* Save page model.
*/
public void saveChanges() {
- dialog.saveChanges(true);
+// dialog.saveChanges(true);
dialog.close();
}
15 years, 2 months
JBoss Tools SVN: r13925 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 14:59:36 -0500 (Mon, 02 Mar 2009)
New Revision: 13925
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-03-02 19:21:59 UTC (rev 13924)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-03-02 19:59:36 UTC (rev 13925)
@@ -65,6 +65,7 @@
private CSSStyleSheet styleSheet = null;
private ICSSStyleSheet eclipseStyleSheet = null;
private String COPY_SUFFIX = "_copy";
+ private boolean copy = false;
/**
@@ -82,6 +83,7 @@
if (model != null) {
releaseModel();
}
+ copy = false;
formatProcessorCSS = new FormatProcessorCSS();
IModelManager modelManager = StructuredModelManager.getModelManager();
model = modelManager.getExistingModelForEdit(styleFile);
@@ -90,7 +92,8 @@
if (model == null)
model = modelManager.getModelForEdit(styleFile);
else {
-
+
+ copy = true;
// copy the model
model = modelManager.copyModelForEdit(model.getId(), model
.getId()
@@ -318,12 +321,21 @@
public void saveModel() {
try {
- // it is necessary not to dialog appears when "dirty" css file is
- // being saved
- IFileBuffer buffer = FileBuffers.getTextFileBufferManager()
- .getFileBuffer(styleFile.getFullPath(),
- LocationKind.NORMALIZE);
- buffer.setDirty(false);
+ /*
+ * it is necessary not to dialog appears when "dirty" css file is
+ * being saved ( test case : 1) open css file 2) make same changes
+ * 3) open css dialog 4) make some changes 5)press ok )
+ *
+ *
+ * it is necessary to distinguish real model from copy. For real
+ * model next step reject all changes
+ */
+ if (copy) {
+ IFileBuffer buffer = FileBuffers.getTextFileBufferManager()
+ .getFileBuffer(styleFile.getFullPath(),
+ LocationKind.NORMALIZE);
+ buffer.setDirty(false);
+ }
model.save();
} catch (IOException e) {
15 years, 2 months
JBoss Tools SVN: r13924 - trunk/birt/docs/en/images/BirtIntegration.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-03-02 14:21:59 -0500 (Mon, 02 Mar 2009)
New Revision: 13924
Added:
trunk/birt/docs/en/images/BirtIntegration/seambirt1.png
trunk/birt/docs/en/images/BirtIntegration/seambirt2.png
trunk/birt/docs/en/images/BirtIntegration/seambirt3.png
trunk/birt/docs/en/images/BirtIntegration/seambirt4.png
trunk/birt/docs/en/images/BirtIntegration/seambirt5.png
trunk/birt/docs/en/images/BirtIntegration/seambirt6.png
trunk/birt/docs/en/images/BirtIntegration/seambirt7.png
trunk/birt/docs/en/images/BirtIntegration/seambirt8.png
trunk/birt/docs/en/images/BirtIntegration/seambirt8_80.png
trunk/birt/docs/en/images/BirtIntegration/seambirt9.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda1.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda11.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda12.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda14.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda15.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda2.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda3.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda4.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda5.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda6.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda7.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda8.png
trunk/birt/docs/en/images/BirtIntegration/seambirtoda9.png
Log:
https://jira.jboss.org/jira/browse/JBDS-388
screenshots are added
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt1.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt2.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt3.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt4.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt5.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt6.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt7.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt8.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt8_80.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt8_80.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirt9.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirt9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda1.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda11.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda11.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda12.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda12.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda14.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda14.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda15.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda15.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda2.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda3.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda4.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda5.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda6.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda7.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda8.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda8.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtIntegration/seambirtoda9.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtIntegration/seambirtoda9.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months
JBoss Tools SVN: r13923 - in trunk/jsf: tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-03-02 14:12:55 -0500 (Mon, 02 Mar 2009)
New Revision: 13923
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFStatusTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/status.xhtml.xml
Log:
RESOLVED - issue JBIDE-3668: a4j:status facet processing
https://jira.jboss.org/jira/browse/JBIDE-3668
- Facet stop now overrides the value of attribute stopText in a4j:status template
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFStatusTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFStatusTemplate.java 2009-03-02 19:01:43 UTC (rev 13922)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFStatusTemplate.java 2009-03-02 19:12:55 UTC (rev 13923)
@@ -26,6 +26,7 @@
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.jboss.tools.jsf.vpe.jsf.template.util.model.VpeElementProxyData;
+import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
import org.jboss.tools.jsf.vpe.richfaces.template.util.RichFaces;
import com.sun.org.apache.regexp.internal.recompile;
@@ -84,11 +85,19 @@
public VpeCreationData create() {
nsIDOMElement mainElement = createMainElement();
vpeCreationData = new VpeCreationData(mainElement);
- nsIDOMElement stopTextElement = createStopTextElement();
- if (stopTextElement != null) {
- mainElement.appendChild(createStopTextElement());
+ final VpeChildrenInfo childrenInfo = new VpeChildrenInfo(mainElement);
+ vpeCreationData.addChildrenInfo(childrenInfo);
+
+ Element stopFacet = ComponentUtil.getFacet(sourceElement, STOP_FACET_NAME);
+ if (stopFacet != null) {
+ childrenInfo.addSourceChild(stopFacet);
+ } else {
+ nsIDOMElement stopTextElement = createStopTextElement();
+ if (stopTextElement != null) {
+ mainElement.appendChild(createStopTextElement());
+ }
}
- addChildrenInfo(mainElement);
+
return vpeCreationData;
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/status.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/status.xhtml.xml 2009-03-02 19:01:43 UTC (rev 13922)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/status.xhtml.xml 2009-03-02 19:12:55 UTC (rev 13923)
@@ -9,13 +9,8 @@
<test id="status2">
<SPAN CLASS="StyleClass StopStyleClass" STYLE="border: 3px solid red;">
<SPAN>
- STOP TEXT
+ FACET STOP OUTPUT TEXT
</SPAN>
- <DIV>
- <SPAN>
- FACET STOP OUTPUT TEXT
- </SPAN>
- </DIV>
</SPAN>
</test>
</tests>
\ No newline at end of file
15 years, 2 months
JBoss Tools SVN: r13922 - in trunk/jst/plugins: org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-03-02 14:01:43 -0500 (Mon, 02 Mar 2009)
New Revision: 13922
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java 2009-03-02 18:11:27 UTC (rev 13921)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/FileExtensionFilter.java 2009-03-02 19:01:43 UTC (rev 13922)
@@ -41,8 +41,7 @@
}
}
return false;
- }
- if (element instanceof IProject && ((IProject) element).isOpen())
+ } if (element instanceof IProject && ((IProject) element).isOpen())
return true;
if (element instanceof IContainer) { // i.e. IProject, IFolder
try {
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-03-02 18:11:27 UTC (rev 13921)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-03-02 19:01:43 UTC (rev 13922)
@@ -14,6 +14,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.window.Window;
import org.eclipse.jface.wizard.WizardPage;
@@ -28,7 +30,9 @@
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
+import org.eclipse.ui.dialogs.ISelectionStatusValidator;
import org.eclipse.ui.model.BaseWorkbenchContentProvider;
import org.eclipse.ui.model.WorkbenchLabelProvider;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.FileExtensionFilter;
@@ -100,6 +104,20 @@
dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
dialog.setAllowMultiple(false);
dialog.setDoubleClickSelects(true);
+ dialog.setValidator(new ISelectionStatusValidator(){
+
+ public IStatus validate(Object[] selection) {
+ if(selection!=null && selection.length==1) {
+ if(selection[0] instanceof IFile) {
+ return new Status(IStatus.OK, PlatformUI.PLUGIN_ID,
+ IStatus.OK, "", //$NON-NLS-1$
+ null);
+ }
+ }
+ return new Status(IStatus.ERROR, PlatformUI.PLUGIN_ID,
+ IStatus.ERROR, WebUIMessages.WIZARD_ERROR_FILE_SELECTION, //$NON-NLS-1$
+ null);
+ }});
if (currentFile != null) {
dialog.setInitialSelection(currentFile);
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 18:11:27 UTC (rev 13921)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 19:01:43 UTC (rev 13922)
@@ -13,6 +13,7 @@
public static String WIZARD_WINDOW_TITLE;
public static String WIZARD_TITLE;
public static String WIZARD_DESCRIPTION;
+ public static String WIZARD_ERROR_FILE_SELECTION;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, WebUIMessages.class);
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 18:11:27 UTC (rev 13921)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 19:01:43 UTC (rev 13922)
@@ -7,4 +7,5 @@
WIZARD_WINDOW_TITLE=CSS Style Class Editor
WIZARD_TITLE=CSS Class
WIZARD_DESCRIPTION=Create New CSS Class
+WIZARD_ERROR_FILE_SELECTION=No file specified
15 years, 2 months
JBoss Tools SVN: r13921 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-03-02 13:11:27 -0500 (Mon, 02 Mar 2009)
New Revision: 13921
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2009-03-02 18:03:26 UTC (rev 13920)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2009-03-02 18:11:27 UTC (rev 13921)
@@ -26,7 +26,6 @@
import org.jboss.tools.jst.jsp.contentassist.FaceletsHtmlContentAssistProcessor;
import org.jboss.tools.jst.jsp.contentassist.JSPDialogCellEditorContentAssistProcessor;
import org.jboss.tools.jst.jsp.drop.treeviewer.model.RootElement;
-import org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.CSSStyleDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSConstants;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants;
@@ -139,17 +138,18 @@
context.put("value", value);
attributeName = attributeName.toLowerCase();
- if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
- || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
- CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
- dialog.setCurrentStyleClass(value);
-
- if (dialog.open() == Window.OK) {
- externalEditing = false;
-
- return dialog.getSelectorName();
- }
- } else if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
+// if (attributeName.equalsIgnoreCase(CSSConstants.CLASS)
+// || attributeName.endsWith(CSSConstants.CLASS.toLowerCase())) {
+// CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(), null, false);
+// dialog.setCurrentStyleClass(value);
+//
+// if (dialog.open() == Window.OK) {
+// externalEditing = false;
+//
+// return dialog.getSelectorName();
+// }
+// } else
+ if (attributeName.equalsIgnoreCase(CSSConstants.STYLE)
|| attributeName.endsWith(CSSConstants.STYLE.toLowerCase())) {
CSSStyleDialog dialog = new CSSStyleDialog(cellEditorWindow.getShell(),
((value == null) ? Constants.EMPTY : value));
15 years, 2 months