|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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_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(String pDefaultImage)
Creates a new instance of UIImageViewer . |
|
UIImageViewer(String pDefaultImage,
int pHorizontalAlignment,
int pVerticalAlignment)
Creates a new instance of UIImageViewer . |
Method Summary | |
---|---|
Object |
getCellRendererComponent(Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
Configures a IComponent for rendering. |
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. |
void |
setDefaultImageName(String pDefaultImage)
Sets the default image name that is shown if selectedIndex is -1. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
Methods inherited from class javax.rad.genui.celleditor.UICellEditor |
---|
createCellEditorHandler, getDefaultCellEditor, getResource, isDirectCellEditor, setDefaultCellEditor |
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
.
IImageViewer
protected UIImageViewer(IImageViewer pViewer)
UIImageViewer
with the given
image viewer.
pViewer
- the image viewerIImageViewer
public UIImageViewer(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(String pDefaultImage, int pHorizontalAlignment, int pVerticalAlignment)
UIImageViewer
.
pDefaultImage
- the default image.pHorizontalAlignment
- the horizontal alignment.pVerticalAlignment
- the vertical alignment.IImageViewer
Method Detail |
---|
public Object getCellRendererComponent(Object pParentComponent, IDataPage pDataPage, int pRowNumber, IDataRow pDataRow, String pColumnName, boolean pIsSelected, boolean pHasFocus)
getCellRendererComponent
in interface ICellRenderer
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).
public int getHorizontalAlignment()
getHorizontalAlignment
in interface IAlignmentConstants
getHorizontalAlignment
in class UICellEditor<IImageViewer>
public void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment
in interface IAlignmentConstants
setHorizontalAlignment
in class UICellEditor<IImageViewer>
pHorizontalAlignment
- the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment
in interface IAlignmentConstants
getVerticalAlignment
in class UICellEditor<IImageViewer>
public void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment
in interface IAlignmentConstants
setVerticalAlignment
in class UICellEditor<IImageViewer>
pVerticalAlignment
- the new vertical alignmentpublic String getDefaultImageName()
getDefaultImageName
in interface IImageViewer
public void setDefaultImageName(String pDefaultImage)
setDefaultImageName
in interface IImageViewer
pDefaultImage
- the default image name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |