|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.AbstractUIFactoryResource<CE>
javax.rad.genui.celleditor.UICellEditor<IImageViewer>
javax.rad.genui.celleditor.UIImageViewer
public class UIImageViewer
Platform and technology independent image viewer. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
|
UIImageViewer()
Creates a new instance of UIImageViewer. |
protected |
UIImageViewer(IImageViewer pViewer)
Creates a new instance of UIImageViewer with the given
image viewer. |
|
UIImageViewer(int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIImageViewer. |
|
UIImageViewer(java.lang.String pDefaultImage)
Creates a new instance of UIImageViewer. |
|
UIImageViewer(java.lang.String pDefaultImage,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIImageViewer. |
| Method Summary | |
|---|---|
java.lang.Object |
getCellRendererComponent(java.lang.Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
java.lang.String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
Configures a IComponent for rendering. |
java.lang.String |
getDefaultImageName()
Gets the default image that is shown if selectedIndex is -1. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
boolean |
isPreserveAspectRatio()
If the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setDefaultImageName(java.lang.String pDefaultImage)
Sets the default image name that is shown if selectedIndex is -1. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setPreserveAspectRatio(boolean pPreserveAspectRatio)
Sets if the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
| Methods inherited from class javax.rad.genui.celleditor.UICellEditor |
|---|
addDefaultCellEditor, createCacheKey, createCellEditorHandler, getDefaultCellEditor, getDefaultCellEditor, getDefaultCellEditors, getDefaultCellEditors, getResource, isDirectCellEditor, removeAllDefaultCellEditors, removeAllDefaultCellEditors, removeDefaultCellEditor, setDefaultCellEditor |
| Methods inherited from class javax.rad.genui.AbstractUIFactoryResource |
|---|
getUIResource, setUIResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.rad.model.ui.ICellEditor |
|---|
createCellEditorHandler, isDirectCellEditor |
| Constructor Detail |
|---|
public UIImageViewer()
UIImageViewer.
IImageViewerprotected UIImageViewer(IImageViewer pViewer)
UIImageViewer with the given
image viewer.
pViewer - the image viewerIImageViewerpublic UIImageViewer(java.lang.String pDefaultImage)
UIImageViewer.
pDefaultImage - the default image.IImageViewer
public UIImageViewer(int pHorizontalAlignment,
int pVerticalAlignment)
UIImageViewer.
pHorizontalAlignment - the horizontal alignment.pVerticalAlignment - the vertical alignment.IImageViewer
public UIImageViewer(java.lang.String pDefaultImage,
int pHorizontalAlignment,
int pVerticalAlignment)
UIImageViewer.
pDefaultImage - the default image.pHorizontalAlignment - the horizontal alignment.pVerticalAlignment - the vertical alignment.IImageViewer| Method Detail |
|---|
public java.lang.Object getCellRendererComponent(java.lang.Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
java.lang.String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
getCellRendererComponent in interface ICellRendererpParentComponent - 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).
public int getHorizontalAlignment()
getHorizontalAlignment in interface IAlignmentConstantsgetHorizontalAlignment in class UICellEditor<IImageViewer>public void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantssetHorizontalAlignment in class UICellEditor<IImageViewer>pHorizontalAlignment - the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment in interface IAlignmentConstantsgetVerticalAlignment in class UICellEditor<IImageViewer>public void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantssetVerticalAlignment in class UICellEditor<IImageViewer>pVerticalAlignment - the new vertical alignmentpublic java.lang.String getDefaultImageName()
getDefaultImageName in interface IImageViewerpublic void setDefaultImageName(java.lang.String pDefaultImage)
setDefaultImageName in interface IImageViewerpDefaultImage - the default image name.public boolean isPreserveAspectRatio()
isPreserveAspectRatio in interface IImageViewertrue if the aspect ratio of the image is preserved when stretched.public void setPreserveAspectRatio(boolean pPreserveAspectRatio)
setPreserveAspectRatio in interface IImageViewerpPreserveAspectRatio - true if the aspect ratio of the image is preserved when stretched.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||