aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/Panel.java
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2007-10-16 13:53:05 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2007-10-16 13:53:05 +0000
commit7fc77511a074ccd551a10056a16ae568253bb0d4 (patch)
treef7c507ce5a8b565442027db2094cc527d4cb209b /src/com/itmill/toolkit/ui/Panel.java
parent3ffcac2404bcc6ee8bd2509ebefb9daae812f64f (diff)
downloadvaadin-framework-7fc77511a074ccd551a10056a16ae568253bb0d4.tar.gz
vaadin-framework-7fc77511a074ccd551a10056a16ae568253bb0d4.zip
-All component stylenames now get prefixed with component base stylename.
-runAnchestorsLayout -> runAncestorsLayout (grammar-fix). -IPanel stylename conventions changed (again). Now all additional stylenames are added to the panel, e.g. addStyleName("red") + addStyleName("green") -> .i-panel .i-panel-red .i-panel-green - ^ same for ITabsheet. -Layout padding convention changed (again). Now by default only Panels and TabSheets have padding, and they can remove that padding by using a constant stylename (Panel.STYLE_NO_PADDING and same for TabSheet). -IWindow styles altered a bit (now able to move Window in IE6 also :)). svn changeset:2527/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Panel.java')
-rw-r--r--src/com/itmill/toolkit/ui/Panel.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/ui/Panel.java b/src/com/itmill/toolkit/ui/Panel.java
index dd7d012097..4cf5c70a06 100644
--- a/src/com/itmill/toolkit/ui/Panel.java
+++ b/src/com/itmill/toolkit/ui/Panel.java
@@ -53,6 +53,17 @@ public class Panel extends AbstractComponentContainer implements Sizeable,
Scrollable, ComponentContainer.ComponentAttachListener,
ComponentContainer.ComponentDetachListener, Action.Container {
+ public static final String STYLE_LIGHT = "light";
+
+ public static final String STYLE_EMPHASIZE = "emphasize";
+
+ /**
+ * Use this stylename with {@link #addStyleName(String)} to remove padding
+ * between Panel borders and content. The actual client-side implementation
+ * will determine which stylenames it implements.
+ */
+ public static final String STYLE_NO_PADDING = "nopad";
+
/**
* Layout of the panel.
*/