|
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.LyViewManager
leon.view.web.LyWebViewManager
leon.view.mobile.LyMobileViewManager
public class LyMobileViewManager
Field Summary | |
---|---|
static java.awt.Frame |
_frame
Default Frame used in some parts of the code when a default AWT component is needed (for example to create an image). |
static int |
MAX_HEADERS
|
static java.lang.String |
MOBILE_ONLY_PROPERTY
|
static int |
WAIT_COUNTER
The wait counter. |
Constructor Summary | |
---|---|
LyMobileViewManager(LyEnvironment environment)
|
Method Summary | |
---|---|
LyViewComponent |
buildInternalView(LyComponent component)
Build internal view. |
void |
copyToClipboard(java.lang.String text)
Copy a given text to the system clipboard. |
void |
freeImage(java.lang.Object image)
Free the resources of the image if not in the cache. |
java.lang.String |
getApplicationName()
|
java.lang.Object |
getColor(LyColor color)
(non-Javadoc). |
static java.awt.Frame |
getDefaultFrame()
Creates and gets the default frame. |
java.lang.Object |
getDefaultImage()
Construct a default image. |
java.lang.String |
getDownloadAction()
Return the action that allow to download temporary resources but dependant from the viewer type (for ex: url / partial url for web). |
java.lang.Object |
getFont(LyFont font)
(non-Javadoc). |
int |
getMin(java.lang.String actionId)
|
java.lang.String |
getPartialURL(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> parameters,
boolean encodeAmpersand)
Get the partial URL for a context relative url. |
java.lang.String |
getRealRootURL()
|
java.lang.Object |
getScaledInstance(java.lang.Object image,
int width,
int height)
Creates a scaled version of the given image. |
int[] |
getSizes(java.lang.Object image)
Gets images sizes. |
int |
getStringWidth(LyFont font,
java.lang.String text)
(non-Javadoc). |
java.lang.String |
getUrl()
|
LyWebViewManager |
getWebViewManager()
|
boolean |
hasUrl()
|
boolean |
is_sessionSwapped()
|
boolean |
isSameImage(java.lang.Object image1,
java.lang.Object image2)
Compare two images pixel by pixel. |
java.lang.Object |
loadImageFromStream(java.lang.Object component,
java.io.InputStream resource)
Retrieves an image from a Stream. |
void |
set_sessionSwapped(boolean _sessionSwapped)
|
void |
setApplicationName(java.lang.String name)
|
void |
setRootURL(java.lang.String rootUrl)
Sets servlet root URL. |
void |
setSession(LySession session)
|
void |
setUrl(java.lang.String url)
|
void |
showLocation(LyComponent source,
java.lang.String location,
boolean newWindow,
java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
Shows a location to the user. |
void |
swapSession(java.lang.Object newSession,
java.lang.Object oldSession,
java.lang.String applicationId)
Swap two sessions. |
void |
waitForLoading(java.lang.Object component,
java.lang.Object image)
Waits for the image loading if the headless mode is null or set to true. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int MAX_HEADERS
public static final java.lang.String MOBILE_ONLY_PROPERTY
public static int WAIT_COUNTER
public static java.awt.Frame _frame
Constructor Detail |
---|
public LyMobileViewManager(LyEnvironment environment)
Method Detail |
---|
public static java.awt.Frame getDefaultFrame()
public LyViewComponent buildInternalView(LyComponent component)
LyViewManager
buildInternalView
in class LyWebViewManager
public java.lang.String getDownloadAction()
LyViewManager
getDownloadAction
in class LyViewManager
public java.lang.String getRealRootURL()
public java.lang.String getPartialURL(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> parameters, boolean encodeAmpersand) throws java.net.MalformedURLException
url
- A context relative URL.parameters
- The parameters used to build the query String.encodeAmpersand
- Tells if the "&" character should be encoded.
java.net.MalformedURLException
- if the URL is not well formedpublic void copyToClipboard(java.lang.String text)
copyToClipboard
in class LyViewManager
text
- the text to be copied to the clipboard.public java.lang.Object getColor(LyColor color)
getColor
in interface LyViewManagerInterface
getColor
in class LyViewManager
color
- The leonardi color.
LyViewManagerInterface.getColor(leon.misc.LyColor)
public java.lang.Object getFont(LyFont font)
getFont
in interface LyViewManagerInterface
getFont
in class LyViewManager
font
- The leonardi font.
LyViewManagerInterface.getFont(leon.misc.LyFont)
public int getStringWidth(LyFont font, java.lang.String text)
getStringWidth
in interface LyViewManagerInterface
getStringWidth
in class LyViewManager
font
- The leonardi font.text
- The string value.
LyViewManagerInterface.getStringWidth(leon.misc.LyFont, java.lang.String)
public java.lang.Object getDefaultImage()
getDefaultImage
in interface LyViewManagerInterface
getDefaultImage
in class LyViewManager
LyImageUtils.getDefaultImage()
,
LyViewManagerInterface.getDefaultImage()
public int[] getSizes(java.lang.Object image)
getSizes
in interface LyViewManagerInterface
getSizes
in class LyViewManager
image
- the image
LyImageUtils.getSizes(Image)
,
LyViewManagerInterface.getSizes(Object)
public java.lang.Object getScaledInstance(java.lang.Object image, int width, int height)
getScaledInstance
in interface LyViewManagerInterface
getScaledInstance
in class LyViewManager
image
- The image to scale.width
- The width to which to scale the image.height
- The height to which to scale the image.
LyImageUtils.getScaledInstance(Image, int, int)
,
LyViewManagerInterface.getScaledInstance(Object, int, int)
public void waitForLoading(java.lang.Object component, java.lang.Object image) throws java.lang.InterruptedException
waitForLoading
in interface LyViewManagerInterface
waitForLoading
in class LyViewManager
component
- The image loading clientimage
- Image to load.
java.lang.InterruptedException
- if the wait is interruptuedLyImageUtils.waitForLoading(Component, Image)
,
LyViewManagerInterface.waitForLoading(Object, Object)
public java.lang.Object loadImageFromStream(java.lang.Object component, java.io.InputStream resource) throws java.io.IOException
loadImageFromStream
in interface LyViewManagerInterface
loadImageFromStream
in class LyViewManager
component
- The client of the image creation.resource
- stream inputStream to the image data
java.io.IOException
- if something is wrong during the processLyImageUtils.loadImageFromStream(Component, InputStream)
,
LyViewManagerInterface.loadImageFromStream(Object, InputStream)
public boolean isSameImage(java.lang.Object image1, java.lang.Object image2) throws java.lang.InterruptedException
isSameImage
in class LyViewManager
image1
- first image to compareimage2
- second image to compare
java.lang.InterruptedException
- exception if problems on grabber or loading.LyImageUtils.isSameImage(Image, Image)
,
LyViewManager.isSameImage(java.lang.Object, java.lang.Object)
public void freeImage(java.lang.Object image)
freeImage
in interface LyViewManagerInterface
freeImage
in class LyViewManager
image
- The image that must be freed.LyImageUtils.freeImage(Image)
,
LyViewManagerInterface.freeImage(java.lang.Object)
public void setSession(LySession session)
public void setRootURL(java.lang.String rootUrl)
LyWebViewManager
setRootURL
in class LyWebViewManager
rootUrl
- the new root URLLyWebViewManager.getRootURL()
public LyWebViewManager getWebViewManager()
public int getMin(java.lang.String actionId)
public void swapSession(java.lang.Object newSession, java.lang.Object oldSession, java.lang.String applicationId)
swapSession
in class LyViewManager
newSession
- the new sessionoldSession
- the old sessionapplicationId
- the application idpublic void showLocation(LyComponent source, java.lang.String location, boolean newWindow, java.util.Hashtable<java.lang.Short,java.lang.String> parameters)
LyViewManager
showLocation
in class LyWebViewManager
source
- view element which raises the locationlocation
- locationnewWindow
- indicates whether a new window must be openedparameters
- list of parameterspublic void setUrl(java.lang.String url)
public java.lang.String getUrl()
public boolean hasUrl()
public void setApplicationName(java.lang.String name)
public java.lang.String getApplicationName()
public boolean is_sessionSwapped()
public void set_sessionSwapped(boolean _sessionSwapped)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |