leon.view.mobile
Class LyMobileTool
java.lang.Object
leon.view.graphic.LyGraphicalObject
leon.view.mobile.LyMobileObject
leon.view.mobile.LyMobileTool
- All Implemented Interfaces:
- LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalTool, LyViewComponent, LyMobileComponent, LyFreeInterface, LySetEnabledInterface, LySetImageInterface, LySetLabelInterface
public class LyMobileTool
- extends LyMobileObject
- implements LyGraphicalTool
Method Summary |
void |
init()
|
void |
setEnabled(boolean enabled)
Updates attribute enabled to the given value. |
void |
setImage(java.lang.String image)
Updates attribute image to the given value. |
void |
setLabel(java.lang.String label)
Updates attribute label to the given value. |
void |
setPressed(boolean pressed)
Updates attribute pressed to the given value. |
void |
setTooltip(java.lang.String tooltip)
Updates attribute tooltip to the given value. |
void |
writeJson(java.io.PrintWriter pw,
boolean print,
java.lang.String sessionId)
|
void |
writeJson(java.io.PrintWriter pw,
java.lang.String sessionId)
|
void |
writeXml(java.io.PrintWriter pw)
Write XML description corresponding to this component. |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
expand, free, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LyMobileTool
public LyMobileTool(LyTool tool)
writeXml
public void writeXml(java.io.PrintWriter pw)
- Description copied from interface:
LyMobileComponent
- Write XML description corresponding to this component.
- Specified by:
writeXml
in interface LyMobileComponent
- Parameters:
pw
- the print writer
writeJson
public void writeJson(java.io.PrintWriter pw,
java.lang.String sessionId)
- Specified by:
writeJson
in interface LyMobileComponent
writeJson
public void writeJson(java.io.PrintWriter pw,
boolean print,
java.lang.String sessionId)
init
public void init()
- Specified by:
init
in interface LyMobileComponent
setLabel
public void setLabel(java.lang.String label)
- Description copied from interface:
LyGraphicalTool
- Updates attribute label to the given value.
- Specified by:
setLabel
in interface LyGraphicalTool
- Specified by:
setLabel
in interface LySetLabelInterface
- Parameters:
label
- New value of label.
setTooltip
public void setTooltip(java.lang.String tooltip)
- Description copied from interface:
LyGraphicalTool
- Updates attribute tooltip to the given value.
- Specified by:
setTooltip
in interface LyGraphicalTool
- Parameters:
tooltip
- New value of tooltip.
setImage
public void setImage(java.lang.String image)
- Description copied from interface:
LyGraphicalTool
- Updates attribute image to the given value.
- Specified by:
setImage
in interface LyGraphicalTool
- Specified by:
setImage
in interface LySetImageInterface
- Parameters:
image
- New value of image.
setPressed
public void setPressed(boolean pressed)
- Description copied from interface:
LyGraphicalTool
- Updates attribute pressed to the given value.
- Specified by:
setPressed
in interface LyGraphicalTool
- Parameters:
pressed
- Boolean indicating if attribute pressed is set or unset.
setEnabled
public void setEnabled(boolean enabled)
- Description copied from interface:
LyGraphicalTool
- Updates attribute enabled to the given value.
- Specified by:
setEnabled
in interface LyGraphicalTool
- Specified by:
setEnabled
in interface LySetEnabledInterface
- Parameters:
enabled
- Boolean indicating if attribute enabled is set or unset.
Website: W4 S.A., contact us: support@w4global.com