1 SidebarBox.prototype = new Box();
2 SidebarBox.prototype.constructor = SidebarBox;
3 SidebarBox.baseClass = Box.constructor;
5 function SidebarBoxItem(domItem) {
6 this.node = createAppElement("div");
7 var br = createAppElement("br");
8 add_css_class(this.node, "sibebar_item");
9 this.node.appendChild(domItem);
10 this.node.appendChild(br);
13 SidebarBoxItem.prototype.getNode = function() {
17 /* --------------------------------------------------------- */
19 function SidebarBox(title) {
20 this.node = createAppElement("div");
21 this.contentNode = createAppElement("div");
22 this.titleNode = createAppElement("div");
24 add_css_class(this.node, "sidebar_box");
25 add_css_class(this.contentNode, "sidebar_content_box");
26 add_css_class(this.titleNode, "sidebar_title_box");
28 /* push the title in */
29 this.titleNode.appendChild(createAppTextNode(title));
30 this.titleNode.appendChild(createAppElement("br"));
32 this.node.appendChild(this.titleNode);
33 this.node.appendChild(this.contentNode);
36 SidebarBox.prototype.addItem = function(domItem) {
37 this.contentNode.appendChild(new SidebarBoxItem(domItem).getNode());
40 SidebarBox.prototype.getNode = function() {
45 /* --------------------------------------------------------- */
47 Sidebar.prototype = new Box();
48 Sidebar.prototype.constructor = Sidebar;
49 Sidebar.baseClass = Box.constructor;
55 Sidebar.prototype.addItem = function(sidebarBox) {
56 this.node.appendChild(sidebarBox.getNode());
57 this.node.innerHTML += "<br/>";
60 Sidebar.prototype.getNode = function() {