summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-01-26 12:23:14 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2007-01-26 12:23:14 +0000
commit0bf09528bbbe2d115dff17c3fa2b341891b021de (patch)
treeff8cf507d4a5fc7a016ed13b4e9f5190615817c0 /src/com
parentb9c53fba30aa9488b387a68e0fc8447818a7610e (diff)
downloadvaadin-framework-0bf09528bbbe2d115dff17c3fa2b341891b021de.tar.gz
vaadin-framework-0bf09528bbbe2d115dff17c3fa2b341891b021de.zip
Added row units
svn changeset:334/svn branch:toolkit
Diffstat (limited to 'src/com')
-rw-r--r--src/com/itmill/toolkit/terminal/Sizeable.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/Sizeable.java b/src/com/itmill/toolkit/terminal/Sizeable.java
index 4908d7eede..92e64d274d 100644
--- a/src/com/itmill/toolkit/terminal/Sizeable.java
+++ b/src/com/itmill/toolkit/terminal/Sizeable.java
@@ -67,6 +67,11 @@ public interface Sizeable {
*/
public static final int UNITS_PERCENTAGE = 8;
+ /** Unit code representing in rows of text. This unit is only applicaple
+ * to some components can it's meaning is specified by component implementation.
+ */
+ public static final int UNITS_ROWS = 9;
+
/** Textual representations of units symbols.
* Supported units and their symbols are:
* <ul>
@@ -79,11 +84,12 @@ public interface Sizeable {
* <li><code>UNITS_CM</code>. "cm"</li>
* <li><code>UNITS_INCH</code>: "in"</li>
* <li><code>UNITS_PERCENTAGE</code>: "%"</li>
+ * <li><code>UNITS_ROWS</code>: "rows"</li>
* </ul>
* These can be used like <code>Sizeable.UNIT_SYMBOLS[UNITS_PIXELS]</code>.
*/
public static final String[] UNIT_SYMBOLS =
- { "", "pt", "pc", "em", "ex", "mm", "cm", "in", "%" };
+ { "", "pt", "pc", "em", "ex", "mm", "cm", "in", "%", "rows" };
/** Get width of the object. Negative number implies unspecified size
* (terminal is free to set the size).