|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pic
Interface for images from theme. Images may be clickable or not. To make an image clickable, set the OnAction and optionally a hover image and tooltip.
Method Summary | |
---|---|
void |
setHover(java.lang.String name)
Alternate property to use when the user hovers over the button. |
void |
setOnAction(java.lang.String callback)
Sets the action method called when button is clicked. |
void |
setProperty(java.lang.String name)
Set the image property name in the format category/name (PNG and JPG supported). |
void |
setThemeFile(Theme t,
java.lang.String filename)
Set an image directly from a theme without going through the theme property interface. |
void |
setTooltip(java.lang.String tip)
Sets a tooltip that appears when you hover over the button. |
Methods inherited from interface com.leafdigital.ui.api.Widget |
---|
getID, getOwner, informClosed, isVisible, setOwner, setVisible |
Method Detail |
---|
void setProperty(java.lang.String name)
name
- Property name or null for no imagevoid setThemeFile(Theme t, java.lang.String filename)
t
- Themefilename
- Name for iamge@UICallback void setOnAction(java.lang.String callback)
callback
- Name of method
BugException
- If method doesn't exist etc.void setTooltip(java.lang.String tip)
tip
- Text of tip or null for nonevoid setHover(java.lang.String name)
name
- Property name or null for no image
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |