From 6f51ae0f6feaa1f88dbaea75363f186d207c8f6b Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Fri, 29 Dec 2006 17:21:49 +0000 Subject: Moved this prototype stuff to WEB-INF/lib/themes svn changeset:193/svn branch:toolkit --- WebContent/themes/example/example_styles.css | 0 WebContent/themes/example/example_theme.js | 80 ------- WebContent/themes/playground/components.html | 227 -------------------- WebContent/themes/playground/default.css | 238 --------------------- WebContent/themes/playground/img/bg1.gif | Bin 416 -> 0 bytes WebContent/themes/playground/img/bg2.gif | Bin 215 -> 0 bytes WebContent/themes/playground/img/bg3.jpg | Bin 1629 -> 0 bytes WebContent/themes/playground/img/tree/off.gif | Bin 69 -> 0 bytes WebContent/themes/playground/img/tree/on.gif | Bin 70 -> 0 bytes .../playground/table-prototypes/aquaHeaderIcon.gif | Bin 582 -> 0 bytes .../table-prototypes/table-proto-firefox.html | 88 -------- .../table-prototypes/table-proto-ie.html | 40 ---- .../table-prototypes/table-proto-safari.html | 69 ------ 13 files changed, 742 deletions(-) delete mode 100644 WebContent/themes/example/example_styles.css delete mode 100644 WebContent/themes/example/example_theme.js delete mode 100644 WebContent/themes/playground/components.html delete mode 100644 WebContent/themes/playground/default.css delete mode 100644 WebContent/themes/playground/img/bg1.gif delete mode 100644 WebContent/themes/playground/img/bg2.gif delete mode 100644 WebContent/themes/playground/img/bg3.jpg delete mode 100644 WebContent/themes/playground/img/tree/off.gif delete mode 100644 WebContent/themes/playground/img/tree/on.gif delete mode 100644 WebContent/themes/playground/table-prototypes/aquaHeaderIcon.gif delete mode 100644 WebContent/themes/playground/table-prototypes/table-proto-firefox.html delete mode 100644 WebContent/themes/playground/table-prototypes/table-proto-ie.html delete mode 100644 WebContent/themes/playground/table-prototypes/table-proto-safari.html (limited to 'WebContent') diff --git a/WebContent/themes/example/example_styles.css b/WebContent/themes/example/example_styles.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/WebContent/themes/example/example_theme.js b/WebContent/themes/example/example_theme.js deleted file mode 100644 index 00f8a37319..0000000000 --- a/WebContent/themes/example/example_theme.js +++ /dev/null @@ -1,80 +0,0 @@ -/** Construct example theme that extends some other theme - * typically the DefaultTheme. - * - * @param themeRoot The base URL of theme resources. - * @param defaultTheme Theme to be extended. - * - */ - - -function ExampleTheme(themeRoot, defaultTheme) { - this.themeName = "ExampleTheme"; - this.root = themeRoot; - this.parent = defaultTheme; - - // Tell the parent where to look for theme icons - this.parent.iconRoot = this.root; -} - -/** Register all renderers to a ajax client. - * - * @param client The ajax client instance. - */ -ExampleTheme.prototype.registerTo = function(client) { - - // We register our own customlayout handler. - // This way the layouts can be in different place. - client.registerRenderer(this,"customlayout",null,this.renderCustomLayout); - -} - -ExampleTheme.prototype.renderCustomLayout = function(renderer,uidl,target,layoutInfo) { - - // Shortcuts - var theme = renderer.theme; - var parentTheme = theme.parent; - - // Get style - var style = uidl.getAttribute("style"); - if (style == null) return null; - - // Load the layout - var url = theme.root + style + ".html"; - var text = renderer.client.loadDocument(url,false); - if (text == null) return null; - - // Create containing element - var main = parentTheme.createPaintableElement(renderer,uidl,target); - - var n = parentTheme.createElementTo(main, "div"); - n.setAttribute("id",uidl.getAttribute("id")); - n.innerHTML=text; - var divs = n.getElementsByTagName("div"); - for (var i=0; i - - - - - - -
-
Table - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
R header 1
R header 2
R header 3
C header 1
cellcellcell
C header
cellcellcell
C header
cellcell with some more stuff
asdasdas
cell
C header
cellcellcell
- -
-
-
- -
- -
-
-
Panel
-
- This is supposed to be panel content. -

- The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - - -

-
Tabsheet
-
-
Tab 1
-
Tab 2
-
Tab 3
-
Disabled
-
-
-
- This is supposed to be tabsheet content. -

- The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. - The quick brown fox jumps over the lazy dog. -

-
-
- -
- -
- -
-
-
Ok
-
-
- -
-
-
Error
-
-
- -
-
-
Disabled asdasdasdasdasdasdasdasdasd
-
-
- - - - - -
- -
-
- -
-
-
-
Panel lite
-
- -
-
Textfield
-
-
- -
-
-
- -
-
Textfield
-
-
- -
-
-
- -
-
Disabled
-
-
- -
-
-
- -
-
-
- - - - -
-
-
Tree
- -
-
- -
Node
-
-
-
- -
Node
-
-
- -
Node
-
-
-
- -
Node
-
-
- -
Node
-
-
-
-
- -
Node
-
-
- -
Node
-
- -
-
- - - - \ No newline at end of file diff --git a/WebContent/themes/playground/default.css b/WebContent/themes/playground/default.css deleted file mode 100644 index 936031d50c..0000000000 --- a/WebContent/themes/playground/default.css +++ /dev/null @@ -1,238 +0,0 @@ -* { - font-size: 10pt; - font-family: sans-serif; -} - -.popup { - font-weight: normal; - position: absolute; - z-index: 1000; - background: white; -} -.popup .content { - display: inline; -} -.popup .icon { - vertical-align: middle; -} - -.popup.hide { - display: inline; - border: none; -} -.popup.hide .border { - display: inline; - border: none; -} -.popup.hide .icon { - display: inline; - width: 16px; - height: 16px; -} -.popup.hide .content { - display: none; -} - -.inline { - display: inline; -} - -.pad { - padding-top: 3px; - padding-bottom: 3px; - padding-left: 7px; - padding-right: 7px; -} - -.bg { - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; -} - -.disabled { - color: #999999; - opacity: 0.5; - filter: alpha(opacity=50); -} -.disabled .caption { - color: #999999; -} -.disabled .border .caption { - color: #999999; -} - -.caption { - font-weight: bold; - color: black; - clear: both; -} - -.content { - padding: 7px; -} - -.capshift { - position: relative; - top: -10px; - left: 3px; - background-color: white; -} - -.clickable { - cursor: hand; - cursor: pointer; -} -DIV.clickable.outset:hover { - border: 1px solid #eeeeee; -} -DIV.clickable:hover .border { - border: 1px solid #aaaaee; -} - -.border { - border-top: 1px solid #aaaaaa; - border-left: 1px solid #aaaaaa; - border-bottom: 1px solid #aaaaaa; - border-right: 1px solid #aaaaaa; -} - -.error .border { - border-color: #ee6666; -} - -.inset { - border-top: 2px solid #eeeeee; - border-left: 2px solid #eeeeee; -} - -.outset { - border-bottom: 2px solid #eeeeee; - border-right: 2px solid #eeeeee; -} - -/* COMPONENTS */ - - -.link { - border: 1px solid white; -} -.link .caption { - color: blue; -} -.link .description { - font-size: smaller; - padding-left: 7px; -} -.link DIV.border { - border: 1px solid white; -} -DIV.link.clickable:hover .border { - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; -} - - -.tabs { - padding-left: 0px !important; - padding-left: 1px; - padding-top: 5px; - padding-bottom: 3px; -} -.tab, .tab-on { - border-right: 2px solid #eeeeee; - border-bottom: none; -} -.tab-on { - position: relative; - top: 1px; -} -.tab .caption { - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; - border-bottom: none; -} -DIV.tab.clickable:hover .caption { - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; -} -.tab-on .caption { - border-bottom: 1px solid white; - border-bottom: none; - background-color: white; -} - -.node { - border: 1px solid white; -} -.nodes { - padding-left: 16px; -} -.node .caption { - vertical-align: top; - font-weight: normal; -} -DIV.node:hover{ - border: 1px solid #aaaaee; - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; -} -DIV.node:hover .caption { - color: blue; -} - -.panel { - background-image: url('img/bg3.jpg'); - background-repeat: no-repeat; -} - -DIV.textfield:hover .border { - border: 1px solid #aaaaee; -} -.textfield INPUT { - border: none; -} - -.table TABLE { - border-collapse: collapse; - empty-cells: show; - xborder: 1px solid #999999; - width: 100%; -} -.table TD { - padding-left: 5px; - padding-right: 5px; - padding-top: 3px; - padding-bottom: 3px; - border-left: 1px solid #eeeeee; - border-bottom: 1px solid #eeeeee; -} -.table .odd { - background-color: #f9f9f9; -} -.table .cheader { - border-bottom-color: #999999; - border-left: 1px solid #999999; -} -.table .rheader { - text-align: right; - border-right: 1px solid #999999; - border-left: none; -} -.table .empty { - border-bottom-color: #999999; - border-right-color: #999999; -} -.table .nav { - border-top: 2px solid #eeeeee; - text-align: center; -} -.table TR.clickable:hover { - background-image: url('img/bg1.gif'); - background-repeat: repeat-x; -} -.table TR.clickable:hover TD { - border-bottom: 1px solid #9999ee; -} -.over .caption { - color: #6666cc; -} \ No newline at end of file diff --git a/WebContent/themes/playground/img/bg1.gif b/WebContent/themes/playground/img/bg1.gif deleted file mode 100644 index f93245029c..0000000000 Binary files a/WebContent/themes/playground/img/bg1.gif and /dev/null differ diff --git a/WebContent/themes/playground/img/bg2.gif b/WebContent/themes/playground/img/bg2.gif deleted file mode 100644 index 1cee3071f6..0000000000 Binary files a/WebContent/themes/playground/img/bg2.gif and /dev/null differ diff --git a/WebContent/themes/playground/img/bg3.jpg b/WebContent/themes/playground/img/bg3.jpg deleted file mode 100644 index 51a70f18c3..0000000000 Binary files a/WebContent/themes/playground/img/bg3.jpg and /dev/null differ diff --git a/WebContent/themes/playground/img/tree/off.gif b/WebContent/themes/playground/img/tree/off.gif deleted file mode 100644 index bc8b454f81..0000000000 Binary files a/WebContent/themes/playground/img/tree/off.gif and /dev/null differ diff --git a/WebContent/themes/playground/img/tree/on.gif b/WebContent/themes/playground/img/tree/on.gif deleted file mode 100644 index b23d660d90..0000000000 Binary files a/WebContent/themes/playground/img/tree/on.gif and /dev/null differ diff --git a/WebContent/themes/playground/table-prototypes/aquaHeaderIcon.gif b/WebContent/themes/playground/table-prototypes/aquaHeaderIcon.gif deleted file mode 100644 index 4661312080..0000000000 Binary files a/WebContent/themes/playground/table-prototypes/aquaHeaderIcon.gif and /dev/null differ diff --git a/WebContent/themes/playground/table-prototypes/table-proto-firefox.html b/WebContent/themes/playground/table-prototypes/table-proto-firefox.html deleted file mode 100644 index 9e01f4f703..0000000000 --- a/WebContent/themes/playground/table-prototypes/table-proto-firefox.html +++ /dev/null @@ -1,88 +0,0 @@ - - - Table concept prototype - - - - - -
-
-
- - - - - - - -
-
-
- - - \ No newline at end of file diff --git a/WebContent/themes/playground/table-prototypes/table-proto-ie.html b/WebContent/themes/playground/table-prototypes/table-proto-ie.html deleted file mode 100644 index ee4e0f6755..0000000000 --- a/WebContent/themes/playground/table-prototypes/table-proto-ie.html +++ /dev/null @@ -1,40 +0,0 @@ - - - Table concept prototype - - - - -
-
-
-
-
- - - -
-
-
- - - \ No newline at end of file diff --git a/WebContent/themes/playground/table-prototypes/table-proto-safari.html b/WebContent/themes/playground/table-prototypes/table-proto-safari.html deleted file mode 100644 index 0514d5f261..0000000000 --- a/WebContent/themes/playground/table-prototypes/table-proto-safari.html +++ /dev/null @@ -1,69 +0,0 @@ - - - Table concept prototype - - - - - -
- - - - - -
-
- - - - - \ No newline at end of file -- cgit v1.2.3