public class CSPPreviewImageProvider extends CSPRefreshableContentBaseProvider
fRetrievalModule, fSession
fExpireWithPageFlow
DATA_BINDING_CLIENTS, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
CSPPreviewImageProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkState()
Check if a RetrievalModule has been properly inited.If not it most probably means a session is not set.
|
CSPContentObject |
getContentObject() |
String |
getHeight() |
boolean |
getNeedRefresh()
Returns
true when IRefreshable.isAutoRefresh() is on and the result properties need to be refreshed from
the data source by executing IRefreshable.refresh() method. |
String |
getPreviewImageUrl() |
String |
getWidth() |
void |
refresh()
(Re)loads data from the data source.
|
void |
setContentObject(CSPContentObject contentObject) |
void |
setHeight(String height) |
void |
setWidth(String width) |
isAutoRefresh, setAutoRefresh, setNeedRefresh, supportsAutoRefresh
getSession, release, setSession
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
protected void checkState()
CSPBaseProvider
checkState
in class CSPBaseProvider
public void refresh() throws ContentProviderException
IRefreshable
ContentProviderException
- if error loading data from the data sourcepublic String getWidth()
public void setWidth(String width)
public String getHeight()
public void setHeight(String height)
public void setContentObject(CSPContentObject contentObject)
public CSPContentObject getContentObject()
public boolean getNeedRefresh()
IRefreshable
Returns true
when IRefreshable.isAutoRefresh()
is on and the result properties need to be refreshed from
the data source by executing IRefreshable.refresh()
method.
Implementations may return an accurate value from this method if they can track the changes to the input parameter
properties or they may require the clients to call IRefreshable.setNeedRefresh(boolean)
explicitely.
getNeedRefresh
in interface IRefreshable
getNeedRefresh
in class CSPRefreshableContentBaseProvider
true
when the output properties are not up-to-date with the current input parameters, i.e. IRefreshable.refresh()
needs to be executed manually or automatically.public String getPreviewImageUrl()