|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
public abstract class LyGraphicalObject
The LyGraphicalObject class implements root object for all win components.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyGraphicalObject(LyComponent viewComponent)
Constructs abstract graphical component. |
Method Summary | |
---|---|
java.lang.String |
expand(java.lang.String text)
Replaces within a given String some $properties$ found in the environment. |
void |
free()
Free resources allocated to this component. |
int[] |
getBounds(LyComponent parent)
Returns the position and size of current component relatively to given component. |
int[] |
getChildrenBounds(LyComponent children)
Returns the position and size of given sub component relatively to current component. |
java.lang.String |
getController()
Retrieves controller id of this graphical component. |
java.lang.String |
getEnv(java.lang.String key)
Retrieves a value from the contextual environment. |
LyEnvironment |
getEnvironment()
Gets environment of this graphical object. |
java.lang.String |
getIdCode()
Internal code used as identifier for web components. |
int |
getIntResource(java.lang.String key)
Retrieves an integer resource from the application environment. |
java.lang.String |
getMessage(java.lang.String key)
Convenient routine to get a formated message without argument. |
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object[] arguments)
Convenient routine to get a formated message with given arguments. |
java.lang.String |
getResource(java.lang.String key)
Retrieves a resource from the application environment. |
java.lang.String |
getString(java.lang.String key)
Convenient routine to get a formated message without argument. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object argument)
Convenient routine to get a formated message without a single argument. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] arguments)
Constructs a string from a key and an array of arguments. |
LyComponent |
getViewComponent()
Gets view component corresponding to this graphical object. |
LyViewManager |
getViewManager()
Gets current view manager. |
boolean |
isFreed()
Checks if graphical object was freed or not. |
boolean |
isFreeing()
Checks if graphical object is freeing or not. |
boolean |
isImageAnimated(java.lang.String key)
Checks if an image is animated. |
void |
processDemand(LyDemand demand)
Processes demands on this component. |
void |
processDemand(java.lang.String controller,
LyDemand demand)
Processes demands on this component. |
boolean |
testResource(java.lang.String key)
Checks if a resource is set to true or 1. |
java.lang.String |
translate(java.lang.String key)
Translates the given key to a String that may be shown to the user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyGraphicalObject(LyComponent viewComponent)
Method Detail |
---|
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
LyFreeInterface.free()
public java.lang.String getIdCode()
public boolean isFreeing()
public boolean isFreed()
public final LyComponent getViewComponent()
getViewComponent
in interface LyGraphicalComponent
public int[] getBounds(LyComponent parent)
parentComponent
- the component used to compute relative position of
current component. If null, position of current component is computed with the top-left
corner of the screen as the origin.
public int[] getChildrenBounds(LyComponent children)
childrenComponent
- the sub component whose relative position must be returned.
public java.lang.String getController()
public final LyEnvironment getEnvironment()
public final LyViewManager getViewManager()
public final java.lang.String getEnv(java.lang.String key)
The
- key associated with the environment parameter.
LyEnvironment.getEnv(java.lang.String)
public final java.lang.String getString(java.lang.String key)
LyEnvironment.getString(String)
public final java.lang.String getString(java.lang.String key, java.lang.Object argument)
LyEnvironment.getString(String,Object)
public final java.lang.String getString(java.lang.String key, java.lang.Object[] arguments)
key
- The key to be translated.argument
- The array of arguments used to construct the string.
LyEnvironment.getString(String,Object[])
public final java.lang.String getMessage(java.lang.String key)
LyEnvironment.getMessage(java.lang.String)
public java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments)
LyEnvironment.getMessage(java.lang.String)
public final java.lang.String getResource(java.lang.String key)
key
- The resource name (key).
LyEnvironment.getResource(leon.misc.LyEnvironment.ResourceType, java.lang.String)
public final boolean testResource(java.lang.String key)
key
- The resource name (key).
LyEnvironment.testResource(String)
public final int getIntResource(java.lang.String key)
key
- The resource name (key).
LyEnvironment.getResource(leon.misc.LyEnvironment.ResourceType, java.lang.String)
public final java.lang.String translate(java.lang.String key)
key
- The key to be translated.
LyEnvironment.translate(java.lang.String)
public java.lang.String expand(java.lang.String text)
text
- The original string, before any substitution.
LyString.expand(java.lang.String, java.lang.String)
public final boolean isImageAnimated(java.lang.String key)
key
- The resource name (key) of the image.
LyEnvironment#isAnimated
public final void processDemand(LyDemand demand)
demand
- the demand to process.public void processDemand(java.lang.String controller, LyDemand demand)
controllerId
- the demand is sent to the specified controller.demand
- the demand to process.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |