com.sapportals.wcm.rendering.readymades
Class ResourceImage
java.lang.Object
com.sapportals.htmlb.Component
com.sapportals.htmlb.AbstractCompositeComponent
com.sapportals.wcm.control.util.components.base.BaseCompositeComponent
com.sapportals.wcm.rendering.readymades.ResourceImage
Deprecated. As of NetWeaver 7.1
public final class ResourceImage
- extends BaseCompositeComponent
- Since:
- EP6, SP2_CP
renders either the icon or the image for the given resource, depending on its parameters.
Depending on the configuration, no image might be rendered at all, only an empty
HTMLFragment will be returned in that case.
|
Field Summary |
static com.sapportals.wcm.rendering.readymades.ResourceImage.Mode |
ICON
Deprecated. |
static com.sapportals.wcm.rendering.readymades.ResourceImage.Mode |
IMAGE
Deprecated. |
| Fields inherited from class com.sapportals.htmlb.AbstractCompositeComponent |
container |
|
Method Summary |
protected com.sapportals.htmlb.Component |
buildContent()
Deprecated. As of NetWeaver 7.1 |
protected void |
initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc,
String baseId)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from class com.sapportals.wcm.control.util.components.base.BaseCompositeComponent |
buildComposition, buildIntoForm, createContextFactory, createModel, createState, getBaseBundleName, getBundles, getBundleString, getBundleString, getBundleString, getComponentForId, getCompositeModel, getDataForComponentId, getDataForComponentId, getDefaultButton, getHTTPServletRequest, getImage, getImagePath, getLocale, getModelPersistenceID, getOnClick, getOnPopupReturn, getPaddingBottom, getPaddingTop, getPageContext, getPopup_height, getPopup_width, getPopupCloseParameter, getPopupUrl, getRequest, getRequestParameter, getRequestParameters, getResourceContext, getState, getUI, initFromPageContext, is508, isCloseScript, isEnabled, isPersistent, onPopupClose, render, renderIntoForm, setCloseScript, setCompositeModel, setDefaultButton, setEnabled, setOnClick, setOnPopupReturn, setPaddingBottom, setPaddingTop, setPersistent, setPopup_height, setPopup_width, setPopupOpenButton, setRequest, setRequestPageContext, setState |
| Methods inherited from class com.sapportals.htmlb.AbstractCompositeComponent |
createCompositeComponentId, preRender, unEscape |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ICON
public static final com.sapportals.wcm.rendering.readymades.ResourceImage.Mode ICON
- Deprecated.
IMAGE
public static final com.sapportals.wcm.rendering.readymades.ResourceImage.Mode IMAGE
- Deprecated.
ResourceImage
public ResourceImage(IResource resource,
IParameters params,
IProxy proxy,
com.sapportals.wcm.rendering.readymades.ResourceImage.Mode mode)
- Deprecated. As of NetWeaver 7.1
- Parameters:
resource - the resoruce to render the icon/image forparams - defining the way the image/icon will be rendered. Depending on the mode, the following parameters are supported:
ICONHEIGHT
ICONWIDTH
ICONSTYLE
ICONSTYLE_REPLACE_ICON
or - in case of image mode
IMAGEHEIGHT
IMAGEWIDTH
IMAGESTYLE
IMAGESTYLE_REPLACE
proxy - the outer proxy, needed for quicker property accessmode - defining if an icon or an image is to be rendered
ResourceImage
public ResourceImage()
- Deprecated. As of NetWeaver 7.1
- must not be used! Only needed for htmlb-Framework generic calls. Usage will
lead to a runtime exception in the buildContent()-method
buildContent
protected com.sapportals.htmlb.Component buildContent()
- Deprecated. As of NetWeaver 7.1
- Description copied from class:
BaseCompositeComponent
- Overwrite this method to return the content of the composite
component. When this method is called, the model is valid
and can be used to get the data.
method buildContent
- Specified by:
buildContent in class BaseCompositeComponent
- Returns:
- the Component which renders the content of this composite
initFromPageContextImpl
protected void initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc,
String baseId)
- Deprecated. As of NetWeaver 7.1
- Description copied from class:
BaseCompositeComponent
- this method is called from the initFromPageContext method.
Overwrite this method in order to do some own initializations.
When this method is called, the model is fully recontructed and
the resource context is set.
- Specified by:
initFromPageContextImpl in class BaseCompositeComponent
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/nonwduideprecated
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2014 SAP AG Complete Copyright Notice