|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WAbstractButton
org.westofj.wui.WImageButton
An image that behaves as a button.
Constructor Summary | |
WImageButton()
Constructs an image button. |
|
WImageButton(String image)
Constructs an image button with the specified target image url. |
|
WImageButton(String activeImage,
String hoverImage,
String clickImage,
String inactiveImage)
Constructs an image button with the specified images. |
Method Summary | |
String |
getActiveImage()
Returns the target image url of the image displayed when the button is enabled. |
String |
getClickImage()
Returns the target image url of the image displayed when the user clicks the button. |
String |
getHoverImage()
Returns the target image url of the image displayed when the user's mouse is over the button. |
String |
getInactiveImage()
Returns the target image url of the image displayed when the button is not enabled. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setActiveImage(String activeImage)
Sets the target image url of the image displayed when the button is enabled. |
void |
setClickImage(String clickImage)
Sets the target image url of the image displayed when the user clicks the button. |
void |
setHoverImage(String hoverImage)
Sets the target image url of the image displayed when the user's mouse is over the button. |
void |
setInactiveImage(String inactiveImage)
Sets the target image url of the image displayed when the button is not enabled. |
Methods inherited from class org.westofj.wui.WAbstractButton |
addActionListener, getActionCommand, getText, getText, handleParams, hasActionListeners, isEnabled, press, removeActionListener, setActionCommand, setEnabled, setText, setText |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WImageButton()
public WImageButton(String image)
image
- the target image url.public WImageButton(String activeImage, String hoverImage, String clickImage, String inactiveImage)
activeImage
- the target image url of the image to display when the
button is enabled.hoverImage
- the target image url of the image to display when the
user's mouse is over the button.clickImage
- the target image url of the image to display after the user
has clicked on the button.inactiveImage
- the target image url of the image to display when the
button is not enabled.Method Detail |
public String getActiveImage()
public String getClickImage()
public String getHoverImage()
public String getInactiveImage()
public void render(WRunner runner, WRenderContext context, PrintWriter out)
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.public void setActiveImage(String activeImage)
activeImage
- the target image url of the image displayed when the button
is enabled.public void setClickImage(String clickImage)
clickImage
- the target image url of the image displayed when the user clicks
the button.public void setHoverImage(String hoverImage)
hoverImage
- the target image url of the image displayed when the user's
mouse is over the button.public void setInactiveImage(String inactiveImage)
inactiveImage
- the target image url of the image displayed when the button
is not enabled.
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |