svnno****@sourc*****
svnno****@sourc*****
2008年 9月 5日 (金) 10:55:14 JST
Revision: 1118 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=1118 Author: shinsuke Date: 2008-09-05 10:55:13 +0900 (Fri, 05 Sep 2008) Log Message: ----------- added wcm portlet decorator. Added Paths: ----------- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/styles.css pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.properties pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.vm pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/button_background.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/footer_background.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/header_background.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowdoc_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderclosed1_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderopen2_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_error_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_info_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_success_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_warning_sml.gif pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/subheader_background.gif -------------- next part -------------- Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/styles.css =================================================================== --- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/styles.css (rev 0) +++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/styles.css 2008-09-05 01:55:13 UTC (rev 1118) @@ -0,0 +1,584 @@ +.wcm .PTitle +{ + /*background-image:url(../images/title_background.gif);*/ + color:#0080b0; + cursor: move; + margin:2px 7px; + padding:5px 4px 0px 4px; + height:25px; + border: 1px solid #aaaaaa; + vertical-align: middle; +} + +.wcm .PTitleContent +{ + font-weight:bold; + display: inline; + float: left; + white-space: normal; + color:#444444; +} + +.wcm .PActionBar +{ + float: right; + display: inline; +} + +.wcm .PContentBorder +{ + margin:0px 7px; +} + +.wcm .PContent +{ + clear:both; + margin:0px; + padding:0px; + white-space: normal; + background-color: #ffffff; + font-size: 10pt; + position:static; + overflow-x:auto; + width:100%; +} + +.wcm .PContent form { + margin:0px; + padding:0px; +} + +/* font */ +.wcm .PTitleLeft, +.wcm .PTitle, +.wcm .PTitleContent, +.wcm .PTitleRight, +.wcm .PContentLeft, +.wcm .PContent, +.wcm .PContentRight, +.wcm .PBottomLeft, +.wcm .PBottom, +.wcm .PBottomRight +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + + voice-family: inherit; + font-size: 10pt; +} + + + +/* --------------------------------- */ +/* PLT.C.1 Links (Anchor) */ +/* --------------------------------- */ + +.wcm A:link, +.wcm A:visited { + text-decoration: underline; +} + +.wcm A:hover, +.wcm A:active { + text-decoration: underline; +} + +/* font */ +.wcm A:link, +.wcm A:visited, +.wcm A:hover, +.wcm A:active +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + +/* --------------------------------- */ +/* PLT.C.2 Fonts */ +/* --------------------------------- */ + +.wcm .portlet-font { + color: black; +} +.wcm .portlet-font-dim { + color: gray; +} + +/* font */ +.wcm .portlet-font, +.wcm .portlet-font-dim +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + + +/* --------------------------------- */ +/* PLT.C.3 Messages */ +/* --------------------------------- */ +.wcm .portlet-msg ul { + list-style-type:none; +} + +.wcm .portlet-msg-status, +.wcm .portlet-msg-info { + background: url(../images/icon_info_sml.gif); + background-repeat: no-repeat; + padding-left: 20px; + min-height: 15px; +} + +.wcm .portlet-msg-error { + background: url(../images/icon_error_sml.gif); + background-repeat: no-repeat; + padding-left: 20px; + min-height: 15px; +} + +.wcm .portlet-msg-alert { + background: url(../images/icon_warning_sml.gif); + background-repeat: no-repeat; + padding-left: 20px; + min-height: 15px; +} + +.wcm .portlet-msg-success { + background: url(../images/icon_success_sml.gif); + background-repeat: no-repeat; + padding-left: 20px; + min-height: 15px; +} + +/* font */ +.wcm .portlet-msg-status, +.wcm .portlet-msg-info, +.wcm .portlet-msg-error, +.wcm .portlet-msg-alert, +.wcm .portlet-msg-success +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + +/* --------------------------------- */ +/* PLT.C.4 Sections */ +/* --------------------------------- */ +.wcm .portlet-section-header { + background-image:url(../images/header_background.gif); + background-repeat: repeat-x; + background-color:#113377; + color: #fff; + padding: 5px; + margin-right: 2px; + margin-left: 2px; + clear: both; +} + +.wcm .portlet-section-body { + background: #efefef; + border: none; + padding: 2px 3px; + text-align: left; + vertical-align: top; + text-align: left; +} + +.wcm .portlet-section-alternate { + background: #ddd; + border: none; + padding: 2px 3px; + text-align: left; + vertical-align: top; + text-align: left; +} + +.wcm .portlet-section-selected { + /* TODO : ex. change color */ + background: #ffe; + border: none; + padding: 2px 3px; + text-align: left; + vertical-align: top; + text-align: left; + font-weight:bold; +} + +.wcm .portlet-section-subheader { + background-image:url(../images/subheader_background.gif); + background-repeat: repeat-x; + background-color:#88aacc; + color: #000099; + padding: 5px; + margin-right: 2px; + margin-left: 2px; + clear: both; +} + +.wcm .portlet-section-footer { + background-image:url(../images/footer_background.gif); + background-repeat: repeat-x; + background-color:#c0e0f0; + background-position: top left; + color: #000099; + padding: 5px; + margin-right: 2px; + margin-left: 2px; + clear: both; +} + +.wcm .portlet-section-text { + padding: 1em; + padding-bottom: .3em; + padding-left: 1em; +} + +/* font */ +.wcm .portlet-section-header, +.wcm .portlet-section-body, +.wcm .portlet-section-alternate, +.wcm .portlet-section-selected, +.wcm .portlet-section-subheader, +.wcm .portlet-section-footer, +.wcm .portlet-section-text +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + +/* --------------------------------- */ +/* PLT.C.5 Forms */ +/* --------------------------------- */ +.wcm .portlet-form-label { +} + +.wcm .portlet-form-input-field { + background-color:#90d0ff; +} + +.wcm .portlet-form-button { + background-image:url(../images/button_background.gif); + background-color:#90d0ff; + color:#ffffff; + + font-weight: bold; +} + +.wcm .portlet-icon-label { +} + +.wcm .portlet-dlg-icon-label { +} + +.wcm .portlet-form-field-label { +} + +.wcm .portlet-form-field { +} + +/* font */ +.wcm .portlet-form-label, +.wcm .portlet-form-input-field, +.wcm .portlet-form-button, +.wcm .portlet-icon-label, +.wcm .portlet-dlg-icon-label, +.wcm .portlet-form-field-label, +.wcm .portlet-form-field +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + +/* --------------------------------- */ +/* PLT.C.6 Menus */ +/* --------------------------------- */ +.wcm .portlet-menu { + background: #efefef; + margin-bottom: 6px; + border-right: 1px solid #aaa; + border-bottom: 1px solid #aaa; + padding: 4px 4px 4px 0; + padding-bottom: .3em; + padding-left: 1em; +} + +.wcm .portlet-menu-item { + text-decoration: none; + color: blue; +} + +.wcm .portlet-menu-item-selected { + text-decoration: none; + color: #555 !important; +} + +.wcm .portlet-menu-item-hover { + text-decoration: none; + color: #f30 !important; +} + +.wcm .portlet-menu-item-hover-selected { + text-decoration: none; + color: #555 !important; + font-weight: bold; +} + +.wcm .portlet-menu-cascade-item { + text-decoration: none; + margin-top: .3em; + padding-bottom: 0; + color: blue; +} + +.wcm .portlet-menu-cascade-item-selected { + text-decoration: none; + color: #555 !important; + font-weight: bold; +} + +.wcm .portlet-menu-description { +} + +.wcm .portlet-menu-caption { + border-bottom: 1px solid #666; + border-right: 1px solid #666; + background: #ddd; + color: #555; + padding: 4px; +} + +/* font */ +.wcm .portlet-menu, +.wcm .portlet-menu-item, +.wcm .portlet-menu-item-selected, +.wcm .portlet-menu-item-hover, +.wcm .portlet-menu-item-hover-selected, +.wcm .portlet-menu-cascade-item, +.wcm .portlet-menu-cascade-item-selected, +.wcm .portlet-menu-description, +.wcm .portlet-menu-caption +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + + +/* --------------------------------- */ +/* PLT.C.6 Menus (arrowfolder style) */ +/* --------------------------------- */ +.wcm .arrowfolder .portlet-menu { + background: #efefef; + margin-bottom: 6px; + border-right: 1px solid #aaa; + border-bottom: 1px solid #aaa; + padding: 4px 4px 4px 0; + padding-bottom: .3em; + padding-left: 1em; +} + +.wcm .arrowfolder .portlet-menu-item { + text-decoration: none; + color: blue; + padding-left: 34px; + background-image: url(../images/icon_arrowdoc_sml.gif); + background-repeat: no-repeat; + +} + +.wcm .arrowfolder .portlet-menu-item-selected { + text-decoration: none; + color: #555 !important; + padding-left: 34px; + background-image: url(../images/icon_arrowdoc_sml.gif); + background-repeat: no-repeat; +} + +.wcm .arrowfolder .portlet-menu-item-hover { + text-decoration: none; + color: #f30 !important; + padding-left: 34px; + background-image: url(../images/icon_arrowdoc_sml.gif); + background-repeat: no-repeat; +} + +.wcm .arrowfolder .portlet-menu-item-hover-selected { + text-decoration: none; + color: #555 !important; + font-weight: bold; + padding-left: 34px; + background-image: url(../images/icon_arrowdoc_sml.gif); + background-repeat: no-repeat; +} + +.wcm .arrowfolder .portlet-menu-cascade-item { + text-decoration: none; + margin-top: .3em; + padding-bottom: 0; + color: blue; + padding-left: 34px; + background-image: url(../images/icon_arrowfolderclosed1_sml.gif); + background-repeat: no-repeat; +} + +.wcm .arrowfolder .portlet-menu-cascade-item-selected { + text-decoration: none; + color: #555 !important; + font-weight: bold; + padding-left: 34px; + background-image: url(../images/icon_arrowfolderopen2_sml.gif); + background-repeat: no-repeat; +} + +.wcm .arrowfolder .portlet-menu-description { +} + +.wcm .arrowfolder .portlet-menu-caption { + border-bottom: 1px solid #666; + border-right: 1px solid #666; + background: #ddd; + color: #555; + padding: 4px; +} + +/* font */ +.wcm .arrowfolder .portlet-menu, +.wcm .arrowfolder .portlet-menu-item, +.wcm .arrowfolder .portlet-menu-item-selected, +.wcm .arrowfolder .portlet-menu-item-hover, +.wcm .arrowfolder .portlet-menu-item-hover-selected, +.wcm .arrowfolder .portlet-menu-cascade-item, +.wcm .arrowfolder .portlet-menu-cascade-item-selected, +.wcm .arrowfolder .portlet-menu-description, +.wcm .arrowfolder .portlet-menu-caption +{ + font-family: Verdana, Helvetica, Arial, sans-serif; + voice-family: "\"}\""; + voice-family: inherit; + font-size: 10pt; +} + +/* --------------------------------- */ +/* Tree component */ +/* --------------------------------- */ + +.wcm .tree { + lineheight: 18px; + font-family: arial, sans-serif; +} + +.wcm .tree-node { + padding: 2px 15px 2px 5px; +} + +.wcm .tree-node a { + text-decoration: none; +} + +.wcm .tree-node-selected { + padding: 2px 15px 2px 5px; +} + +.wcm .tree-node-selected a { + text-decoration: none; + font-weight: bold; +} + +/* --------------------------------- */ +/* Portlet Table */ +/* --------------------------------- */ +.wcm th, td, input { + font-family: Verdana, Helvetica, Arial, sans-serif; +} + +.wcm table, +.wcm th, +.wcm td { + vertical-align: top; + font-size: 10pt; + white-space: normal; + /* action buttons shifts right a few millimeters by the following */ +} + +.wcm th +{ + font-size: 10pt; +} + +.wcm .portlet-table-header { + background-image:url(../images/header_background.gif); + background-repeat: repeat-x; + background-color:#113377; + color: #fff; + + border: 0.75px solid #fff; + padding: 2px 3px; + text-align: left; +} + +.wcm .portlet-table-footer { + background-image:url(../images/footer_background.gif); + background-repeat: repeat-x; + background-color:#c0e0f0; + color: #0080b0; + + font-size: 10pt; + padding: 5px; + margin: .67em 2px; + margin-top: 0; +} + + +.wcm .portlet-table-row1 td { + font-size: 10pt; + background: #ddd; + border-bottom: 1px solid #fff; +} + +.wcm .portlet-table-row2 td { + font-size: 10pt; + background: #efefef; + border-bottom: 1px solid #fff; +} + +.wcm .portlet-table-col1 { + border-right: 1px solid #fff; + padding: 2px 15px 2px 5px; +} + +.wcm .portlet-table-col2 { + border-left: 1px solid #fff; + padding: 2px 15px 2px 5px; +} + +/* --------------------------------- */ +/* Portlet Data Scroller Table */ +/* --------------------------------- */ + +.wcm .portlet-scroller-grid td { + horizontal-align: center; +} + +.wcm .portlet-scroller { + horizontal-align: center; +} + +.wcm .portlet-paginator { + horizontal-align: center; +} + + Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/css/styles.css ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.properties =================================================================== --- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.properties (rev 0) +++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.properties 2008-09-05 01:55:13 UTC (rev 1118) @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +id=wcm +template.type=velocity +template.extension=.vm +decorates=any Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.properties ___________________________________________________________________ Name: svn:eol-style + native Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.vm =================================================================== --- pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.vm (rev 0) +++ pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/decorator.vm 2008-09-05 01:55:13 UTC (rev 1118) @@ -0,0 +1,7 @@ +#set($decoration = $f.decoration)## +<!-- BEGIN: wcm/decorator.vm --> +<a name="${f.id}"></a> +<div id="${f.id}" class="portlet ${decoration.baseCSSClass}"> +$f.renderedContent +</div> +<!-- END: wcm/decorator.vm --> Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/button_background.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/button_background.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/footer_background.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/footer_background.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/header_background.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/header_background.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowdoc_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowdoc_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderclosed1_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderclosed1_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderopen2_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_arrowfolderopen2_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_error_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_error_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_info_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_info_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_success_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_success_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_warning_sml.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/icon_warning_sml.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/subheader_background.gif =================================================================== (Binary files differ) Property changes on: pal-portal/branches/pal-portal-1.x/portal/jetspeed-2/src/webapp/decorations/portlet/wcm/images/subheader_background.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream