|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
com.sibvisions.rad.ui.celleditor.AbstractImageViewer<C>
C
- the type of the content.public abstract class AbstractImageViewer<C>
The AbstractImageViewer
is an IImageViewer
implementation,
which provides a base implementation.
Field Summary | |
---|---|
protected boolean |
bPreserveAspectRatio
whether to preserve aspect ration. |
protected java.lang.String |
sDefaultImageName
The default image name. |
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
---|
horizontalAlignment, verticalAlignment |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
protected |
AbstractImageViewer()
Creates a new instance of AbstractImageViewer . |
Method Summary | |
---|---|
java.lang.String |
getDefaultImageName()
Gets the default image that is shown if selectedIndex is -1. |
boolean |
isPreserveAspectRatio()
If the aspect ratio of the image should be preserved if it is stretched in any direction. |
void |
setDefaultImageName(java.lang.String pDefaultImageName)
Sets the default image name that is shown if selectedIndex is -1. |
void |
setPreserveAspectRatio(boolean pPreserveAspectRatio)
Sets if the aspect ratio of the image should be preserved if it is stretched in any direction. |
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
---|
getHorizontalAlignment, getVerticalAlignment, isDirectCellEditor, setHorizontalAlignment, setVerticalAlignment |
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 |
Methods inherited from interface javax.rad.ui.IAlignmentConstants |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Methods inherited from interface javax.rad.model.ui.ICellRenderer |
---|
getCellRendererComponent |
Field Detail |
---|
protected java.lang.String sDefaultImageName
protected boolean bPreserveAspectRatio
Constructor Detail |
---|
protected AbstractImageViewer()
AbstractImageViewer
.
Method Detail |
---|
public java.lang.String getDefaultImageName()
getDefaultImageName
in interface IImageViewer<C>
public void setDefaultImageName(java.lang.String pDefaultImageName)
setDefaultImageName
in interface IImageViewer<C>
pDefaultImageName
- the default image name.public boolean isPreserveAspectRatio()
isPreserveAspectRatio
in interface IImageViewer<C>
true
if the aspect ratio of the image is preserved when stretched.public void setPreserveAspectRatio(boolean pPreserveAspectRatio)
setPreserveAspectRatio
in interface IImageViewer<C>
pPreserveAspectRatio
- 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 |