|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.Component
org.olat.core.gui.components.image.ImageComponent
public class ImageComponent
Description:
| Constructor Summary | |
|---|---|
ImageComponent(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.lang.Long |
getHeight()
|
ComponentRenderer |
getHTMLRendererSingleton()
|
java.lang.Long |
getWidth()
|
void |
setHeight(java.lang.Long height)
Sets the height. |
void |
setMaxWithAndHeightToFitWithin(int maxWidth,
int maxHeight)
Call this method to display the image within a given box of width and height. |
void |
setMediaResource(MediaResource mediaResource)
sets the image to be delivered |
void |
setWidth(java.lang.Long width)
Sets the width. |
| Methods inherited from class org.olat.core.gui.components.Component |
|---|
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageComponent(java.lang.String name)
name - | Method Detail |
|---|
public java.lang.Long getHeight()
public java.lang.Long getWidth()
public void setHeight(java.lang.Long height)
height - The height to setpublic void setWidth(java.lang.Long width)
width - The width to setpublic void setMediaResource(MediaResource mediaResource)
mediaResource - public ComponentRenderer getHTMLRendererSingleton()
getHTMLRendererSingleton in class Component
public void setMaxWithAndHeightToFitWithin(int maxWidth,
int maxHeight)
maxWidth - maxHeight -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||