[kune-commits] r789 - in sandbox3/src/main/java/org/op: client public/css

vjrj vjrj at ourproject.org
Sun Jul 6 14:42:11 CEST 2008


Author: vjrj
Date: 2008-07-06 14:42:07 +0200 (Sun, 06 Jul 2008)
New Revision: 789

Modified:
   sandbox3/src/main/java/org/op/client/DefaultBorderLayout.java
   sandbox3/src/main/java/org/op/client/Sandbox.java
   sandbox3/src/main/java/org/op/client/SiteBar.java
   sandbox3/src/main/java/org/op/client/Workspace.java
   sandbox3/src/main/java/org/op/public/css/sandbox.css
Log:
more ext probes

Modified: sandbox3/src/main/java/org/op/client/DefaultBorderLayout.java
===================================================================
--- sandbox3/src/main/java/org/op/client/DefaultBorderLayout.java	2008-07-06 00:01:47 UTC (rev 788)
+++ sandbox3/src/main/java/org/op/client/DefaultBorderLayout.java	2008-07-06 12:42:07 UTC (rev 789)
@@ -122,5 +122,4 @@
 	panel.clear();
 	add(panel, widget);
     }
-
 }

Modified: sandbox3/src/main/java/org/op/client/Sandbox.java
===================================================================
--- sandbox3/src/main/java/org/op/client/Sandbox.java	2008-07-06 00:01:47 UTC (rev 788)
+++ sandbox3/src/main/java/org/op/client/Sandbox.java	2008-07-06 12:42:07 UTC (rev 789)
@@ -136,6 +136,9 @@
 	wk.getEntityWorkspace().getTitle().add(new LabelWrapper("Title2"));
 	wk.getEntityWorkspace().getSubTitle().addFill();
 	wk.getEntityWorkspace().getSubTitle().add(new LabelWrapper("Subtitle"));
+	wk.getSiteBar().add(new LabelWrapper("sitebar-left"));
+	wk.getSiteBar().addFill();
+	wk.getSiteBar().addSeparator();
 	wk.getSiteBar().add(new LabelWrapper("sitebar-right"));
 	wk.setTheme(WsTheme.def);
 	wk.setTheme(WsTheme.green);

Modified: sandbox3/src/main/java/org/op/client/SiteBar.java
===================================================================
--- sandbox3/src/main/java/org/op/client/SiteBar.java	2008-07-06 00:01:47 UTC (rev 788)
+++ sandbox3/src/main/java/org/op/client/SiteBar.java	2008-07-06 12:42:07 UTC (rev 789)
@@ -1,38 +1,33 @@
 package org.op.client;
 
-import org.ourproject.kune.platf.client.View;
-
 import com.google.gwt.user.client.ui.Widget;
 import com.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.ToolbarButton;
 
-public class SiteBar {
+public class SiteBar extends Panel {
 
-    private final Panel panel;
+    private final TitleBar titleBar;
 
     public SiteBar() {
-	panel = new Panel();
-	panel.setBorder(false);
-	panel.setCls("x-panel");
+	super.setBorder(false);
+	titleBar = new TitleBar();
+	titleBar.setStyleName("k-sitebar");
+	super.add(titleBar);
     }
 
-    public void add(final View view) {
-	panel.add((Widget) view);
-	doLayoutIfNeeded();
+    public void add(final Widget widget) {
+	titleBar.add(widget);
     }
 
-    public void addMenuButton(final ToolbarButton button) {
-	panel.addButton(button);
-	doLayoutIfNeeded();
+    public void addFill() {
+	titleBar.addFill();
     }
 
-    public Panel getPanel() {
-	return panel;
+    public void addSeparator() {
+	titleBar.addSeparator();
     }
 
-    private void doLayoutIfNeeded() {
-	if (panel.isRendered()) {
-	    panel.doLayout(false);
-	}
+    public void addSpacer() {
+	titleBar.addSpacer();
     }
+
 }

Modified: sandbox3/src/main/java/org/op/client/Workspace.java
===================================================================
--- sandbox3/src/main/java/org/op/client/Workspace.java	2008-07-06 00:01:47 UTC (rev 788)
+++ sandbox3/src/main/java/org/op/client/Workspace.java	2008-07-06 12:42:07 UTC (rev 789)
@@ -7,7 +7,7 @@
     public Workspace() {
 	sitebar = new SiteBar();
 	entity = new Entity();
-	add(sitebar.getPanel(), DefaultBorderLayout.Position.NORTH, DEF_TOOLBAR_HEIGHT);
+	add(sitebar, DefaultBorderLayout.Position.NORTH, DEF_TOOLBAR_HEIGHT);
 	add(entity.getPanel(), DefaultBorderLayout.Position.CENTER);
     }
 

Modified: sandbox3/src/main/java/org/op/public/css/sandbox.css
===================================================================
--- sandbox3/src/main/java/org/op/public/css/sandbox.css	2008-07-06 00:01:47 UTC (rev 788)
+++ sandbox3/src/main/java/org/op/public/css/sandbox.css	2008-07-06 12:42:07 UTC (rev 789)
@@ -1,12 +1,16 @@
 @CHARSET "UTF-8";
 
 .k-site-traybar {
-    background: #FFF none repeat scroll 0% 50%;   
+    background: #FFF none repeat scroll 0% 50%;
 }
 
+.k-sitebar {
+	white-space: nowrap;
+}
+
 .k-entity-summary {
-	border-left-color: #FFF;
-	border-left-width: 5px;
+    border-left-color: #FFF;
+    border-left-width: 5px;
 }
 
 .k-entity-def .x-layout-split {
@@ -56,7 +60,7 @@
 .k-entity-title-green {
     background: #AFA none repeat scroll 0% 50%;
     color: #250;
-	border-left-color: #5FD35F;
+    border-left-color: #5FD35F;
 }
 
 .k-entity-subtitle-def {
@@ -117,6 +121,21 @@
     line-height: 19px;
 }
 
-.k-toolbar-sep { 
-    padding-top: 5px;
+.k-toolbar-sep {
+    padding-top: 4px;
 }
+
+.ytb-sep {
+    background-image: url(../js/ext/resources/images/default/grid/grid-split.gif);
+    background-position: center;
+    background-repeat: no-repeat;
+    display: block;
+    font-size: 1px;
+    height: 16px;
+    width: 4px;
+    overflow: hidden;
+    cursor: default;
+    margin: 0 2px 0;
+    border: 0;
+}
+




More information about the kune-commits mailing list