|
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 |
public interface LyViewManagerInterface
Interface for view managers.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Method Summary | |
---|---|
void |
beep()
Emits a brief sound signal. |
void |
clearTemporaryResources()
Clears all temporary resources used by the view manager. |
void |
execGui(java.lang.Runnable runnable)
Causes the run() method of the given runnable to be invoked by the user-interface thread asynchronously. |
void |
execGui(java.lang.Runnable runnable,
boolean synchronous)
Causes the run() method of the given runnable to be invoked by the user-interface thread either synchronously or asynchronously. |
void |
exit(int code)
To exit an application. |
void |
free()
Frees the view manager. |
void |
freeImage(java.lang.Object image)
Free resources of the image if not in the cache else does nothing. |
java.lang.Object |
getColor(LyColor color)
Retrieves a Color object from a LyColor. |
java.lang.Object |
getDefaultImage()
Builds a default image. |
LyEnvironment |
getEnvironment()
Gets the current environment. |
java.lang.Object |
getFont(LyFont font)
Retrieves a Font object from a LyFont. |
int[] |
getMaxScreenSize()
Retrieves the viewport size available on the computer. |
java.lang.String |
getPluginId()
Gets the plugin id. |
java.util.Properties |
getPropertiesFromContext(java.lang.String prefix)
Accessor to the properties file. |
java.lang.String |
getRootURL()
Gets web root URL. |
java.lang.Object |
getScaledInstance(java.lang.Object image,
int width,
int height)
Creates a scaled version of the given image. |
int[] |
getScreenSize(java.lang.Object component)
Retrieves the screen size. |
int[] |
getSizes(java.lang.Object image)
Gets images sizes. |
int |
getStringWidth(LyFont font,
java.lang.String text)
Retrieves the width of a string for a given LyFont. |
java.lang.String |
getTemporaryDir()
Gets the temporary directory used to store temporary resources. |
java.lang.String |
getTemporaryLocation()
Gets the temporary location used to store temporary resources dependently of the viewer type (e.g. |
boolean |
hasProperty(java.lang.String property)
Checks if the view manager has the given property. |
boolean |
isMultiSession()
Indicates if the view manager is multi session or not. |
boolean |
isRtlMode()
Indicates whether RTL (right to left) mode is activated |
java.lang.Object |
loadImageFromStream(java.lang.Object component,
java.io.InputStream resource)
Retrieves an image from a Stream. |
void |
prepareGui()
Prepares GUI to start. |
void |
raiseError(java.lang.String message)
Shows an error message to the end-user. |
boolean |
repostGuiEvents()
Checks if events on data need to be reposted in GUI event queue. |
void |
setPluginId(java.lang.String pluginId)
Sets the plugin id. |
void |
startGui(LyGuiClientInterface client)
Starts GUI. |
void |
stopGui(LyGuiClientInterface client)
Stops GUI. |
boolean |
useCacheForImage(java.lang.String path,
java.lang.Object image)
Indicates whether given image may be cached. |
void |
waitForLoading(java.lang.Object component,
java.lang.Object image)
Waits for the image loading. |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
void free()
void prepareGui()
void startGui(LyGuiClientInterface client)
client
- the GUI clientvoid stopGui(LyGuiClientInterface client)
client
- the GUI clientvoid execGui(java.lang.Runnable runnable, boolean synchronous)
runnable
- Code to run on the user-interface thread.synchronous
- True is synchronous, false if asynchronous.void execGui(java.lang.Runnable runnable)
runnable
- Code to run on the user-interface thread.boolean hasProperty(java.lang.String property)
property
- the property to find
LyEnvironment getEnvironment()
void clearTemporaryResources()
java.lang.String getTemporaryDir()
java.lang.String getTemporaryLocation()
void exit(int code)
code
- exit code of the application.boolean repostGuiEvents()
boolean isMultiSession()
java.lang.Object getColor(LyColor color)
color
- The leonardi color.
LyColor
java.lang.Object getFont(LyFont font)
font
- The leonardi font.
LyFont
int getStringWidth(LyFont font, java.lang.String text)
font
- The leonardi font.text
- The string value.
java.lang.Object getDefaultImage()
int[] getSizes(java.lang.Object image)
image
- the image
java.lang.Object getScaledInstance(java.lang.Object image, int width, int height)
image
- the image to scale.width
- the width to scale the image.height
- the height to scale the image.
int[] getScreenSize(java.lang.Object component)
component
- the component used to retrieve the screen size
int[] getMaxScreenSize()
void beep()
void raiseError(java.lang.String message)
message
- error messagevoid waitForLoading(java.lang.Object component, java.lang.Object image) throws java.lang.InterruptedException
component
- The image loading clientimage
- the image to load
java.lang.InterruptedException
- if the wait is interruptuedjava.lang.Object loadImageFromStream(java.lang.Object component, java.io.InputStream resource) throws java.io.IOException
component
- The image creation client.resource
- stream inputStream to the image data
java.io.IOException
- if something is wrong during the processvoid freeImage(java.lang.Object image)
image
- The image that must be freed.boolean useCacheForImage(java.lang.String path, java.lang.Object image)
path
- The path of image that may be cached.image
- The image that may be cached.
java.lang.String getPluginId()
void setPluginId(java.lang.String pluginId)
pluginId
- the new plugin idjava.lang.String getRootURL()
java.util.Properties getPropertiesFromContext(java.lang.String prefix)
prefix
- Prefix used for properties files name.
boolean isRtlMode()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |