public class Dimensions extends Object
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| Modifier and Type | Method and Description |
|---|---|
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.
|
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 returnedgetInt( 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 returnedgetInt( String )public static int getInt(String key)
key - The key of the integer value to be returnedpublic 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 returnedgetExtent( 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 returnedgetExtent( String )