summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni.koivuviita@itmill.com>2010-04-08 13:43:15 +0000
committerJouni Koivuviita <jouni.koivuviita@itmill.com>2010-04-08 13:43:15 +0000
commitb3a08351c5a9f965247eb77e7e9780ef7d757a0b (patch)
tree760d1aa7cb7b3a0049f9d104780de19b4d78c597 /src
parenta289a6622d78b2f0acb5940b6b4e53bd916e7ad7 (diff)
downloadvaadin-framework-b3a08351c5a9f965247eb77e7e9780ef7d757a0b.tar.gz
vaadin-framework-b3a08351c5a9f965247eb77e7e9780ef7d757a0b.zip
Updated and revised Reindeer theme style constants.
svn changeset:12393/svn branch:6.3
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/ui/themes/Reindeer.java52
1 files changed, 50 insertions, 2 deletions
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
@@ -48,6 +55,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
*/
public static final String BUTTON_SMALL = "small";
@@ -92,10 +105,21 @@ 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
@@ -126,9 +161,22 @@ 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}.
+ * <p>
+ * <em>Does not revert any contained components back to normal if some
+ * parent layout has style {@link #LAYOUT_BLACK} applied.</em>
+ */
+ 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}.
+ * <p>
+ * <em>Does not revert any contained components back to normal if some
+ * parent layout has style {@link #LAYOUT_BLACK} applied.</em>
*/
public static final String LAYOUT_BLUE = "blue";