From: Jouni Koivuviita Date: Thu, 8 Apr 2010 13:43:15 +0000 (+0000) Subject: Updated and revised Reindeer theme style constants. X-Git-Tag: 6.7.0.beta1~1777 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3a08351c5a9f965247eb77e7e9780ef7d757a0b;p=vaadin-framework.git Updated and revised Reindeer theme style constants. svn changeset:12393/svn branch:6.3 --- diff --git a/src/com/vaadin/ui/themes/Reindeer.java b/src/com/vaadin/ui/themes/Reindeer.java index 9b361e7778..33a91069a3 100644 --- a/src/com/vaadin/ui/themes/Reindeer.java +++ b/src/com/vaadin/ui/themes/Reindeer.java @@ -7,6 +7,7 @@ import com.vaadin.ui.CssLayout; import com.vaadin.ui.FormLayout; import com.vaadin.ui.GridLayout; import com.vaadin.ui.HorizontalLayout; +import com.vaadin.ui.SplitPanel; import com.vaadin.ui.VerticalLayout; public class Reindeer extends BaseTheme { @@ -34,6 +35,12 @@ public class Reindeer extends BaseTheme { */ public static final String LABEL_SMALL = "light"; + /** + * @deprecated Use {@link #LABEL_SMALL} instead. + */ + @Deprecated + public static final String LABEL_LIGHT = "small"; + /*************************************************************************** * * Button styles @@ -47,6 +54,12 @@ public class Reindeer extends BaseTheme { */ public static final String BUTTON_DEFAULT = "primary"; + /** + * @deprecated Use {@link #BUTTON_DEFAULT} instead + */ + @Deprecated + public static final String BUTTON_PRIMARY = BUTTON_DEFAULT; + /** * Small sized button, use for context specific actions for example */ @@ -91,11 +104,22 @@ public class Reindeer extends BaseTheme { * **************************************************************************/ + /** + * Removes borders from the default tab sheet style. + */ + public static final String TABSHEET_BORDERLESS = "borderless"; + /** * Removes borders and background color from the tab sheet, and shows the * tabs as a small bar. */ - public static final String TABSHEET_BAR = "bar"; + public static final String TABSHEET_SMALL = "bar"; + + /** + * @deprecated Use {@link #TABSHEET_SMALL} instead. + */ + @Deprecated + public static final String TABSHEET_BAR = TABSHEET_SMALL; /** * Removes borders and background color from the tab sheet. The tabs are @@ -103,6 +127,17 @@ public class Reindeer extends BaseTheme { */ public static final String TABSHEET_MINIMAL = "minimal"; + /** + * Makes the tab close buttons visible only when the user is hovering over + * the tab. + */ + public static final String TABSHEET_HOVER_CLOSABLE = "hover-closable"; + + /** + * Makes the tab close buttons visible only when the tab is selected. + */ + public static final String TABSHEET_SELECTED_CLOSABLE = "selected-closable"; + /*************************************************************************** * * Table styles @@ -125,10 +160,23 @@ public class Reindeer extends BaseTheme { * **************************************************************************/ + /** + * Changes the background of a layout to white. Applies to + * {@link VerticalLayout}, {@link HorizontalLayout}, {@link GridLayout}, + * {@link FormLayout}, {@link CssLayout} and {@link SplitPanel}. + *

+ * Does not revert any contained components back to normal if some + * parent layout has style {@link #LAYOUT_BLACK} applied. + */ + public static final String LAYOUT_WHITE = "white"; + /** * Changes the background of a layout to a shade of blue. Applies to * {@link VerticalLayout}, {@link HorizontalLayout}, {@link GridLayout}, - * {@link FormLayout} and {@link CssLayout}. + * {@link FormLayout}, {@link CssLayout} and {@link SplitPanel}. + *

+ * Does not revert any contained components back to normal if some + * parent layout has style {@link #LAYOUT_BLACK} applied. */ public static final String LAYOUT_BLUE = "blue";