aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2011-08-23 13:02:17 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2011-08-23 13:02:17 +0000
commitc96076ef8bb2d9d9f27f0b44cb1743af0babab24 (patch)
tree2365f1f041f4b93eb66eb0f0111c79afe53b86af /WebContent
parentb0a5fd783d5a62b33141727007be8b2971656a32 (diff)
downloadvaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.tar.gz
vaadin-framework-c96076ef8bb2d9d9f27f0b44cb1743af0babab24.zip
Barebones fix for #6745: Connectors for Tree, i.e. ugly but works. We can make it more pretty in future releases if necessary.
Includes TestBench test for the feature. svn changeset:20577/svn branch:6.7
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector-item-last.pngbin0 -> 148 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector-item.pngbin0 -> 153 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/img/connector.pngbin0 -> 143 bytes
-rw-r--r--WebContent/VAADIN/themes/base/tree/tree.css18
-rw-r--r--WebContent/VAADIN/themes/reindeer/tree/tree.css9
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.pngbin0 -> 218 bytes
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.pngbin0 -> 242 bytes
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.pngbin0 -> 163 bytes
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/connector.pngbin0 -> 907 bytes
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.pngbin0 -> 226 bytes
-rw-r--r--WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.pngbin0 -> 262 bytes
11 files changed, 25 insertions, 2 deletions
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png
new file mode 100644
index 0000000000..2eb04a32fd
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector-item-last.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector-item.png b/WebContent/VAADIN/themes/base/tree/img/connector-item.png
new file mode 100644
index 0000000000..5f88fe1bef
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector-item.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/img/connector.png b/WebContent/VAADIN/themes/base/tree/img/connector.png
new file mode 100644
index 0000000000..2844bba731
--- /dev/null
+++ b/WebContent/VAADIN/themes/base/tree/img/connector.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/base/tree/tree.css b/WebContent/VAADIN/themes/base/tree/tree.css
index 9e056dc4d6..593771a49c 100644
--- a/WebContent/VAADIN/themes/base/tree/tree.css
+++ b/WebContent/VAADIN/themes/base/tree/tree.css
@@ -11,10 +11,24 @@
.v-tree-node-caption:focus {
outline: none;
}
+div.v-tree-node-leaf {
+ background: transparent;
+}
+.v-tree-connectors .v-tree-node-leaf,
+.v-tree-connectors .v-tree-node-leaf:hover {
+ background: transparent url(img/connector-item.png) no-repeat 8px 0;
+}
+.v-tree-connectors .v-tree-node-leaf-last,
+.v-tree-connectors .v-tree-node-leaf-last:hover {
+ background: transparent url(img/connector-item-last.png) no-repeat 8px 0;
+}
.v-tree-node-expanded {
- background-position: -5px -10px;
+ background: transparent url(../common/img/sprites.png) no-repeat -5px -10px;
}
-div.v-tree-node-leaf {
+.v-tree-connectors .v-tree-node-children {
+ background: transparent url(img/connector.png) repeat-y 8px bottom;
+}
+.v-tree-connectors .v-tree-node-children-last {
background: transparent;
}
.v-tree-node-caption {
diff --git a/WebContent/VAADIN/themes/reindeer/tree/tree.css b/WebContent/VAADIN/themes/reindeer/tree/tree.css
index 3f77bd991d..d33985f713 100644
--- a/WebContent/VAADIN/themes/reindeer/tree/tree.css
+++ b/WebContent/VAADIN/themes/reindeer/tree/tree.css
@@ -11,6 +11,15 @@
.v-tree-node-expanded {
background-position: -7px 5px;
}
+.v-tree-connectors .v-tree-node-leaf {
+ background-position: 8px -1px;
+}
+.v-ie6 .v-tree-connectors div.v-tree-node-leaf {
+ background: transparent url(../../base/tree/img/connector-item.png) no-repeat 8px -1px;
+}
+.v-ie6 .v-tree-connectors div.v-tree-node-leaf-last {
+ background: transparent url(../../base/tree/img/connector-item-last.png) no-repeat 8px -1px;
+}
.v-tree-node-caption {
margin-left: 16px;
padding-bottom: 1px;
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png
new file mode 100644
index 0000000000..28b3626d79
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed-last.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png
new file mode 100644
index 0000000000..db4d41cccd
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/collapsed.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png
new file mode 100644
index 0000000000..b4d0d7aa56
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector-item.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png
new file mode 100644
index 0000000000..a93f458787
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/connector.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png
new file mode 100644
index 0000000000..504b715122
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded-last.png
Binary files differ
diff --git a/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png
new file mode 100644
index 0000000000..5c036ed038
--- /dev/null
+++ b/WebContent/VAADIN/themes/runo/tree/img/connectors/expanded.png
Binary files differ