|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.util.IconHelper
public class IconHelper
Provides helper methods to create AbstractImagePrototype
instances from paths and CSS style names.
Constructor Summary | |
---|---|
IconHelper()
|
Method Summary | |
---|---|
static com.google.gwt.user.client.ui.AbstractImagePrototype |
create(java.lang.String s)
Returns an 16 x 16 image. |
static com.google.gwt.user.client.ui.AbstractImagePrototype |
create(java.lang.String s,
int width,
int height)
Returns an image.If the passed parameter is an image path, as defined by @link Util.isImagePath(String) , it is treated as an image path. |
static com.google.gwt.user.client.ui.AbstractImagePrototype |
createPath(java.lang.String url)
Returns an 16 x 16 image prototype for the given url. |
static com.google.gwt.user.client.ui.AbstractImagePrototype |
createPath(java.lang.String url,
int width,
int height)
Returns an image for the given url. |
static com.google.gwt.user.client.ui.AbstractImagePrototype |
createStyle(java.lang.String styleName)
Returns a 16 x 16 from the given CSS style name. |
static com.google.gwt.user.client.ui.AbstractImagePrototype |
createStyle(java.lang.String styleName,
int width,
int height)
Returns an image from the given CSS style name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconHelper()
Method Detail |
---|
public static com.google.gwt.user.client.ui.AbstractImagePrototype createPath(java.lang.String url)
url
- the image url
public static com.google.gwt.user.client.ui.AbstractImagePrototype createPath(java.lang.String url, int width, int height)
url
- the image urlwidth
- the image width in pixelsheight
- the image height in pixels
public static com.google.gwt.user.client.ui.AbstractImagePrototype createStyle(java.lang.String styleName)
styleName
- the style name
public static com.google.gwt.user.client.ui.AbstractImagePrototype createStyle(java.lang.String styleName, int width, int height)
styleName
- the style namewidth
- the image widthheight
- the image height
public static com.google.gwt.user.client.ui.AbstractImagePrototype create(java.lang.String s)
Util.isImagePath(String)
, it is treated as an
image path. Otherwise, the parameter is treated as a CSS style name.
s
- either a image path or a CSS style name
public static com.google.gwt.user.client.ui.AbstractImagePrototype create(java.lang.String s, int width, int height)
Util.isImagePath(String)
, it is treated as an image path.
Otherwise, the parameter is treated as a CSS style name.
s
- either a image path or a CSS style namewidth
- the image widthheight
- the image height
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |