|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Dimensions
public class Dimensions
A utility class that is used to load and retrieve the localised
configurable dimensions for UI components. This class needs an
active ApplicationInstance to be properly initialised.
Note: Always use getExtent( String ) variant over
getInt( String ) variant as the former is more flexible in
terms of configuring units.
Copyright 2006 Sans Pareil Technologies, Inc.
ExtentKit| Method Summary | |
|---|---|
static Extent |
getExtent(Class source,
String key)
Returns an Extent corresponding to the
configured value for the key for the specified
source object. |
static Extent |
getExtent(Object source,
String key)
Returns an Extent corresponding to the
configured value for the key for the specified
source object. |
static Extent |
getExtent(String key)
Returns configured extent value for the key. |
static int |
getInt(Class source,
String key)
Returns configured integer value for the key for the specified source object. |
static int |
getInt(Object source,
String key)
Returns configured integer value for the key for the specified source object. |
static int |
getInt(String key)
Returns configured integer value for the key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getInt(Object source,
String key)
source - The object whose configured localised value is
to be retrieved.key - The key of the integer value to be returned
getInt( Class, String )
public static int getInt(Class source,
String key)
source - The class whose configured localised value is
to be retrieved.key - The key of the integer value to be returned
getInt( String )public static int getInt(String key)
key - The key of the integer value to be returned
public static Extent getExtent(Object source,
String key)
Extent corresponding to the
configured value for the key for the specified
source object. Look for a key that is named after the fully
qualified class name of the source object.
source - The object whose configured localised value is
to be retrieved.key - The key of the extent to be returned
getExtent( Class, String )
public static Extent getExtent(Class source,
String key)
Extent corresponding to the
configured value for the key for the specified
source object. Look for a key that is named after the fully
qualified class name of the source object.
source - The class whose configured localised value is
to be retrieved.key - The key of the extent to be returned
getExtent( String )public static Extent getExtent(String key)
key - The key of the extent to be returned
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||