Author: dmaliarevich
Date: 2008-08-29 10:51:12 -0400 (Fri, 29 Aug 2008)
New Revision: 9966
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/list-bg.png
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/menuGroup.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuItem/menuItem.css
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/dropDownMenu/dropDownMenu.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDropDownMenuTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuGroupTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuItemTemplate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2497,
css files were added, styles were checked.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/dropDownMenu/dropDownMenu.css
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/dropDownMenu/dropDownMenu.css 2008-08-29
14:21:10 UTC (rev 9965)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/dropDownMenu/dropDownMenu.css 2008-08-29
14:51:12 UTC (rev 9966)
@@ -1,3 +1,33 @@
+.rich-ddmenu-label {
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ height:auto;
+ left:0pt;
+ padding:2px 5px;
+ top:0pt;
+ white-space:nowrap;
+ width:auto;
+}
+.rich-ddmenu-label-unselect {
+ border:0pt solid transparent;
+ padding:3px 6px;
+}
+.rich-ddmenu-label-select {
+
+}
+.rich-ddmenu-label-disabled {
+
+}
+.rich-label-text-decor {
+ font-weight:bold;
+}
+.rich-menu-list-border {
+
+}
+.rich-menu-list-bg {
+
+}
+
.dr-menu-list-border {
border : 1px solid #bfbfc0;
background-color : #e7f2fb;
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/list-bg.png
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/list-bg.png
___________________________________________________________________
Name: svn:mime-type
+ image/png
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/menuGroup.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/menuGroup.css
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/menuGroup.css 2008-08-29
14:51:12 UTC (rev 9966)
@@ -0,0 +1,61 @@
+.rich-menu-group {
+ font-family:Arial,Verdana,sans-serif;
+ color:#000000;
+ font-size:11px;
+}
+.rich-menu-group-label {
+
+}
+.rich-menu-group-folder {
+
+}
+.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;
+ padding:2px 36px 2px 2px;
+}
+.rich-menu-item-icon-selected {
+
+}
+.rich-menu-list-border {
+ font-family:Arial,Verdana,sans-serif;
+ /*background-color:#F1EEE9;*/
+ background-color:#C4C0B9;
+ border-color:#C4C0B9;
+ border:1px solid;
+}
+.rich-menu-list-bg {
+ background-image:url(list-bg.png);
+ border-left-color:#F1EEE9;
+ border-right-color:#F1EEE9;
+ border-top-color:#F1EEE9;
+
+ background:transparent none repeat-y scroll left center;
+ border-left-style:solid;
+ border-left-width:1px;
+ border-right-style:solid;
+ border-right-width:1px;
+ border-top-style:solid;
+ border-top-width:1px;
+
+}
\ No newline at end of file
Property changes on:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuGroup/menuGroup.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuItem/menuItem.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuItem/menuItem.css
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuItem/menuItem.css 2008-08-29
14:51:12 UTC (rev 9966)
@@ -0,0 +1,36 @@
+.rich-menu-item {
+
+}
+.rich-menu-item-label {
+
+}
+.rich-menu-item-icon {
+
+}
+.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 {
+
+}
Property changes on:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/menuItem/menuItem.css
___________________________________________________________________
Name: svn:mime-type
+ text/css
Name: svn:eol-style
+ native
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDropDownMenuTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDropDownMenuTemplate.java 2008-08-29
14:21:10 UTC (rev 9965)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDropDownMenuTemplate.java 2008-08-29
14:51:12 UTC (rev 9966)
@@ -35,6 +35,8 @@
/*
* rich:dropDownMenu constants
*/
+ private final static String COMPONENT_NAME = "dropDownMenu"; //$NON-NLS-1$
+ private final static String STYLE_PATH = "dropDownMenu/dropDownMenu.css";
//$NON-NLS-1$
private static final String LABEL_FACET_NAME = "label"; //$NON-NLS-1$
private static final String EMPTY = ""; //$NON-NLS-1$
private static final String SPACE = " "; //$NON-NLS-1$
@@ -101,7 +103,7 @@
public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
nsIDOMDocument visualDocument) {
VpeCreationData creationData = null;
Element sourceElement = (Element)sourceNode;
-
+ ComponentUtil.setCSSLink(pageContext, STYLE_PATH, COMPONENT_NAME);
readDropDownMenuAttributes(sourceElement);
/*
@@ -198,7 +200,7 @@
}
nsIDOMElement childDiv = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
- ddmListBorderDiv.appendChild(childDiv);
+ ddmListBgDiv.appendChild(childDiv);
VpeChildrenInfo childDivInfo = new VpeChildrenInfo(childDiv);
childDivInfo.addSourceChild(child);
creationData.addChildrenInfo(childDivInfo);
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuGroupTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuGroupTemplate.java 2008-08-29
14:21:10 UTC (rev 9965)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuGroupTemplate.java 2008-08-29
14:51:12 UTC (rev 9966)
@@ -29,13 +29,16 @@
public class RichFacesMenuGroupTemplate extends VpeAbstractTemplate {
+ public static final String MENU_GROUP_ID = "MENU-GROUP-ID"; //$NON-NLS-1$
+
/*
* rich:menuGroup constants
*/
- public static final String MENU_GROUP_ID = "MENU-GROUP-ID"; //$NON-NLS-1$
+ private final static String COMPONENT_NAME = "menuGroup"; //$NON-NLS-1$
+ private final static String STYLE_PATH = "menuGroup/menuGroup.css";
//$NON-NLS-1$
+ private static final String SPACER_IMG_PATH = "menuGroup/spacer.gif";
//$NON-NLS-1$
private static final String ICON_FACET_NAME = "icon"; //$NON-NLS-1$
private static final String ICON_DISABLED_FACET_NAME = "iconDisabled";
//$NON-NLS-1$
- private static final String SPACER_IMG_PATH = "menuGroup/spacer.gif";
//$NON-NLS-1$
private static final String EMPTY = ""; //$NON-NLS-1$
private static final String SPACE = " "; //$NON-NLS-1$
@@ -53,7 +56,7 @@
private static final String CSS_RICH_MENU_ITEM_ICON_DISABLED =
"rich-menu-item-icon-disabled"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_FOLDER_DISABLED =
"rich-menu-item-folder-disabled"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_ICON_ENABLED =
"rich-menu-item-icon-enabled"; //$NON-NLS-1$
- private static final String CSS_RICH_MENU_ITEM_ICON_SELECTED =
"rich-menu-item-icon-seleceted"; //$NON-NLS-1$
+ private static final String CSS_RICH_MENU_ITEM_ICON_SELECTED =
"rich-menu-item-icon-selected"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_LIST_BORDER =
"rich-menu-list-border"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_LIST_BG = "rich-menu-list-bg";
//$NON-NLS-1$
private static final String CSS_RICH_LIST_FOLDER_DIV_STYLE = "position: relative;
z-index: 100;"; //$NON-NLS-1$
@@ -103,6 +106,8 @@
nsIDOMDocument visualDocument) {
VpeCreationData creationData = null;
Element sourceElement = (Element)sourceNode;
+ ComponentUtil.setCSSLink(pageContext, STYLE_PATH, COMPONENT_NAME);
+ readMenuGroupAttributes(sourceElement);
/*
* MenuGroup component structure.
@@ -220,7 +225,7 @@
for (Node child : children) {
nsIDOMElement childDiv = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
- grTopDiv.appendChild(childDiv);
+ grListBgDiv.appendChild(childDiv);
VpeChildrenInfo childDivInfo = new VpeChildrenInfo(childDiv);
childDivInfo.addSourceChild(child);
creationData.addChildrenInfo(childDivInfo);
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuItemTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuItemTemplate.java 2008-08-29
14:21:10 UTC (rev 9965)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesMenuItemTemplate.java 2008-08-29
14:51:12 UTC (rev 9966)
@@ -32,9 +32,11 @@
/*
* rich:menuItem constants
*/
+ private final static String COMPONENT_NAME = "menuItem"; //$NON-NLS-1$
+ private final static String STYLE_PATH = "menuItem/menuItem.css";
//$NON-NLS-1$
+ private static final String SPACER_IMG_PATH = "menuItem/spacer.gif";
//$NON-NLS-1$
private static final String ICON_FACET_NAME = "icon"; //$NON-NLS-1$
private static final String ICON_DISABLED_FACET_NAME = "iconDisabled";
//$NON-NLS-1$
- private static final String SPACER_IMG_PATH = "menuItem/spacer.gif";
//$NON-NLS-1$
private static final String EMPTY = ""; //$NON-NLS-1$
private static final String SPACE = " "; //$NON-NLS-1$
@@ -43,7 +45,7 @@
*/
private static final String CSS_RICH_MENU_ITEM = "rich-menu-item";
//$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_LABEL = "rich-menu-item-label";
//$NON-NLS-1$
- private static final String CSS_RICH_MENU_ITEM_ICON = "rich-menu-item-item";
//$NON-NLS-1$
+ private static final String CSS_RICH_MENU_ITEM_ICON = "rich-menu-item-icon";
//$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_DISABLED =
"rich-menu-item-disabled"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_ENABLED =
"rich-menu-item-enabled"; //$NON-NLS-1$
private static final String CSS_RICH_MENU_ITEM_HOVER = "rich-menu-item-hover";
//$NON-NLS-1$
@@ -92,7 +94,7 @@
nsIDOMDocument visualDocument) {
VpeCreationData creationData = null;
Element sourceElement = (Element)sourceNode;
-
+ ComponentUtil.setCSSLink(pageContext, STYLE_PATH, COMPONENT_NAME);
readMenuItemAttributes(sourceElement);
/*