|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Image
org.gwtwidgets.client.ui.PNGImage
org.gwtwidgets.client.ui.ImageButton
public class ImageButton
Use an image as a button. Allows for setting of on/off background color, border color, border width, and border style. The "on" colors are used on mouse over.
| Field Summary | |
|---|---|
protected static int |
OFF_STATE
|
protected static int |
ON_STATE
|
| Constructor Summary | |
|---|---|
ImageButton(java.lang.String url,
int width,
int height)
|
|
| Method Summary | |
|---|---|
Color |
getBackgroundOffColor()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
Color |
getBackgroundOnColor()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
Color |
getBorderOffColor()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
BorderStyle.BorderStyleConstant |
getBorderOffStyle()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
int |
getBorderOffWidth()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
Color |
getBorderOnColor()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
BorderStyle.BorderStyleConstant |
getBorderOnStyle()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
int |
getBorderOnWidth()
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
java.lang.String |
getOffStyle()
|
java.lang.String |
getOnStyle()
|
protected int |
getState()
|
protected void |
init()
|
boolean |
isOn()
|
void |
setBackgroundOffColor(Color backgroundOffColor)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBackgroundOnColor(Color backgroundOnColor)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOffColor(Color borderOffColor)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOffStyle(BorderStyle.BorderStyleConstant borderOffStyle)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOffWidth(int borderOffWidth)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOnColor(Color borderOnColor)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOnStyle(BorderStyle.BorderStyleConstant borderOnStyle)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setBorderOnWidth(int borderOnWidth)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setColors()
Updates the colors of the widget based on the state and color settings. |
void |
setHorizontalMargin(int px)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setMargin(int px)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
void |
setOffStyle(java.lang.String offStyle)
|
void |
setOnStyle(java.lang.String onStyle)
|
protected void |
setState(int state)
|
void |
setVerticleMargin(int px)
This method is under consideration for removal, if you have an opion please comment on http://gwtwidgets.blogspot.com. |
| Methods inherited from class org.gwtwidgets.client.ui.PNGImage |
|---|
getUrl, setUrl |
| Methods inherited from class com.google.gwt.user.client.ui.Image |
|---|
addClickListener, addLoadListener, addMouseListener, addMouseWheelListener, getHeight, getOriginLeft, getOriginTop, getWidth, onBrowserEvent, prefetch, removeClickListener, removeLoadListener, removeMouseListener, removeMouseWheelListener, setUrlAndVisibleRect, setVisibleRect |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int ON_STATE
protected static final int OFF_STATE
| Constructor Detail |
|---|
public ImageButton(java.lang.String url,
int width,
int height)
| Method Detail |
|---|
protected void init()
public boolean isOn()
public void setColors()
public void setMargin(int px)
public void setHorizontalMargin(int px)
public void setVerticleMargin(int px)
public Color getBackgroundOffColor()
public void setBackgroundOffColor(Color backgroundOffColor)
public Color getBackgroundOnColor()
public void setBackgroundOnColor(Color backgroundOnColor)
public Color getBorderOffColor()
public void setBorderOffColor(Color borderOffColor)
public BorderStyle.BorderStyleConstant getBorderOffStyle()
public void setBorderOffStyle(BorderStyle.BorderStyleConstant borderOffStyle)
public int getBorderOffWidth()
public void setBorderOffWidth(int borderOffWidth)
public Color getBorderOnColor()
public void setBorderOnColor(Color borderOnColor)
public BorderStyle.BorderStyleConstant getBorderOnStyle()
public void setBorderOnStyle(BorderStyle.BorderStyleConstant borderOnStyle)
public int getBorderOnWidth()
public void setBorderOnWidth(int borderOnWidth)
protected int getState()
protected void setState(int state)
public java.lang.String getOffStyle()
public void setOffStyle(java.lang.String offStyle)
public java.lang.String getOnStyle()
public void setOnStyle(java.lang.String onStyle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||