|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.AbstractComponent com.groiss.gui.component.Image
public class Image
A HTML image (img) element.
Field Summary |
---|
Fields inherited from class com.groiss.gui.AbstractComponent |
---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode |
Constructor Summary | |
---|---|
Image()
Constructs a new empty image. |
|
Image(java.lang.String src)
Constructor with image url |
|
Image(java.lang.String src,
java.lang.String alt)
Constructor with image url |
|
Image(java.lang.String name,
java.lang.String src,
int width,
int height,
java.lang.String alt)
Constructor with image url |
|
Image(java.lang.String src,
java.lang.String alt,
java.lang.String styleClass)
Constructor with image url |
Method Summary | |
---|---|
java.lang.String |
getAltText()
|
int |
getBorder()
|
java.lang.Object |
getContent()
|
int |
getHeight()
|
java.lang.String |
getSource()
|
java.lang.String |
getText()
|
int |
getWidth()
|
void |
setAltText(java.lang.String alt)
sets the alternative text - attribute "title" if image is rendered this text is the tooltip text else it is the alternative text instead of the image |
void |
setBorder(int border)
sets the thickness of the border around the displayed image |
void |
setContent(java.lang.Object o)
sets the content of the component |
void |
setSize(int width,
int height)
sets the size of the image |
void |
setSource(java.lang.String src)
sets the source of the image |
void |
setText(java.lang.String text)
sets the text |
Methods inherited from class com.groiss.gui.AbstractComponent |
---|
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Image()
public Image(java.lang.String src)
src
- the image urlpublic Image(java.lang.String src, java.lang.String alt)
src
- the image urlalt
- the alternative textpublic Image(java.lang.String src, java.lang.String alt, java.lang.String styleClass)
src
- the image urlalt
- the alternative textstyleClass
- the name of a CSS classpublic Image(java.lang.String name, java.lang.String src, int width, int height, java.lang.String alt)
name
- src
- width
- height
- alt
- Method Detail |
---|
public void setSize(int width, int height)
width
- - the width of the imageheight
- - the height of the imagepublic int getWidth()
public int getHeight()
public void setAltText(java.lang.String alt)
alt
- - the alternative textpublic java.lang.String getAltText()
public void setSource(java.lang.String src)
src
- - the sourcepath of the image filepublic java.lang.String getSource()
public void setBorder(int border)
border
- - the thickness of the borderpublic int getBorder()
public void setText(java.lang.String text)
text
- - the text Stringpublic java.lang.String getText()
public void setContent(java.lang.Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |