com.sibvisions.rad.ui.web.impl.celleditor
Class WebImageViewer
java.lang.Object
com.sibvisions.rad.ui.web.impl.celleditor.WebCellEditor
com.sibvisions.rad.ui.web.impl.celleditor.WebImageViewer
- All Implemented Interfaces:
- ICellEditor, ICellRenderer, IImageViewer, IStyledCellEditor, IAlignmentConstants
public class WebImageViewer
- extends WebCellEditor
- implements IImageViewer
Web server implementation of IImageViewer.
|
Constructor Summary |
WebImageViewer()
Creates a new instance of UIImageViewer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebImageViewer
public WebImageViewer()
- Creates a new instance of
UIImageViewer.
- See Also:
IImageViewer
getCellRendererComponent
public Object getCellRendererComponent(Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
- Configures a IComponent for rendering. The IComponent can be reused for performance reasons.
After a new call of getCellRendererComponent, the previous IComponent can't be used for rendering
anymore.
- Specified by:
getCellRendererComponent in interface ICellRenderer
- Parameters:
pParentComponent - the Parent Component from which.pDataPage - the DataPage of the row to be rendered.pRowNumber - the row number of the row to be rendered.pDataRow - the row to be rendered (is the same as pDataPage.getRow(pRowNumber)).pColumnName - the column name to be rendered.pIsSelected - true, if the cell is selected (shown with selected background).pHasFocus - true, if the cell has the focus (cell is the current editing cell).
- Returns:
- the renderer Component. It can only be used until the next call of this function.
getDefaultImageName
public String getDefaultImageName()
- Gets the default image that is shown if selectedIndex is -1.
- Specified by:
getDefaultImageName in interface IImageViewer
- Returns:
- the default image.
setDefaultImageName
public void setDefaultImageName(String pDefaultImageName)
- Sets the default image name that is shown if selectedIndex is -1.
- Specified by:
setDefaultImageName in interface IImageViewer
- Parameters:
pDefaultImageName - the default image name.
getURI
public String getURI(Object pValue)
- Gets the image URI for a specific image value.
- Parameters:
pValue - the image name or raw data
- Returns:
- the image URI or the default image if the image/type is undefined/unsupported
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.