From: Joonas Lehtinen Date: Fri, 26 Jan 2007 12:23:14 +0000 (+0000) Subject: Added row units X-Git-Tag: 6.7.0.beta1~6738 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bf09528bbbe2d115dff17c3fa2b341891b021de;p=vaadin-framework.git Added row units svn changeset:334/svn branch:toolkit --- 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: * * These can be used like Sizeable.UNIT_SYMBOLS[UNITS_PIXELS]. */ 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).