|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.component.BitmapField
com.sybase.uep.bobclient.controls.ImageControl
com.sybase.uep.bobclient.controls.celltable.CellImage
public class CellImage
Field Summary |
---|
Fields inherited from class com.sybase.uep.bobclient.controls.ImageControl |
---|
_controlID, _customEventsHandler, _orientation, DEFAULT_UNDEFINED_IMAGE_MESSAGE |
Fields inherited from class net.rim.device.api.ui.component.BitmapField |
---|
STAMP_MONOCHROME |
Fields inherited from class net.rim.device.api.ui.Field |
---|
ACTION_INVOKE, EDITABLE, EDITABLE_MASK, FIELD_BOTTOM, FIELD_HALIGN_MASK, FIELD_HCENTER, FIELD_LEADING, FIELD_LEFT, FIELD_RIGHT, FIELD_TOP, FIELD_TRAILING, FIELD_VALIGN_MASK, FIELD_VCENTER, FOCUSABLE, FOCUSABLE_MASK, HIGHLIGHT_FOCUS, HIGHLIGHT_SELECT, NON_FOCUSABLE, NON_SPELLCHECKABLE, READONLY, SPELLCHECKABLE, SPELLCHECKABLE_MASK, STATUS_MOVE_FOCUS_HORIZONTALLY, STATUS_MOVE_FOCUS_VERTICALLY, USE_ALL_HEIGHT, USE_ALL_WIDTH, VISUAL_STATE_ACTIVE, VISUAL_STATE_DISABLED, VISUAL_STATE_DISABLED_FOCUS, VISUAL_STATE_FOCUS, VISUAL_STATE_NORMAL |
Fields inherited from interface net.rim.device.api.ui.DrawStyle |
---|
BASELINE, BOTTOM, ELLIPSIS, HALIGN_MASK, HCENTER, HDEFAULT, HFULL, LEADING, LEFT, RIGHT, TOP, TRAILING, TRUNCATE_BEGINNING, VALIGN_MASK, VCENTER, VDEFAULT, VFULL |
Constructor Summary | |
---|---|
CellImage()
|
|
CellImage(long style)
|
Method Summary | |
---|---|
void |
addValueImageMapping(java.lang.String value,
java.lang.String imageName)
Adds a pair of MBO attribute value and the mapping image file |
void |
draw(net.rim.device.api.ui.Graphics g,
int relativeX,
int relativeY,
boolean isFocus)
Draws the item that implements the interface |
int |
getAbsoluteXPos()
Returns the cell image's absolute X position. |
int |
getAbsoluteXPosFocus()
Returns the cell image's absolute X position when focused. |
int |
getAbsoluteYPos()
Returns the cell image's absolute Y position. |
int |
getAbsoluteYPosFocus()
Returns the cell image's absolute Y position when focused. |
net.rim.device.api.system.EncodedImage |
getImage()
Gets the EncodedImage instance |
CellImageConfig |
getImageConfig()
Gets the configuration of the cell image |
int |
getMaxImageHeight()
Gets the maximum height that the image is allowed to be scaled to |
int |
getMaxImageWidth()
Gets the maximum width that the image is allowed to be scaled to |
int |
getPreferredHeight()
(non-Javadoc) |
int |
getPreferredWidth()
(non-Javadoc) |
int |
getXPosition(boolean isFocus)
Gets the X coordinator of the drawing item |
int |
getYPosition(boolean isFocus)
Gets the Y coordinator of the drawing item |
void |
setColSpan(int colSpan)
(non-Javadoc) |
void |
setDefaultValueMappingImageName(java.lang.String defaultValueMappingImageName)
Sets the default value mapping image file name |
void |
setImage(net.rim.device.api.system.EncodedImage image)
|
void |
setImageConfig(CellImageConfig imageConfig)
Sets configuration to the cell image |
void |
setImageName(java.lang.String imageName)
Sets image name |
void |
setImageType(int imageType)
Sets image type |
void |
setMaxImageHeight(int maxImageHeight)
Sets the maximum height to the image |
void |
setMaxImageWidth(int maxImageWidth)
Sets the maximum width to the image |
void |
setMboAttrId(java.lang.String mboAttributeId)
Sets MBO attribute id of the image |
void |
setNewImageName(java.lang.String newImageName)
Sets the name of image file that indicates 'new' state of a MBO |
void |
setOrder(int order)
Sets image order |
void |
setPendingImageName(java.lang.String pendingImageName)
Sets the name of image file that indicates 'pending' state of a MBO |
void |
setPreserveAspectRatio(boolean isPreserveAspectRatio)
Sets if preserve aspect ratio |
void |
setRowSpan(int rowSpan)
(non-Javadoc) |
void |
setVariable(ControlVariable variable)
Sets image variable |
void |
setXPosition(int xPos,
boolean isFocus)
Sets the X coordinator of the drawing item |
void |
setYPosition(int yPos,
boolean isFocus)
Sets the Y coordinator of the drawing item |
Methods inherited from class com.sybase.uep.bobclient.controls.ImageControl |
---|
drawFocus, getAction, getBitmapImage, getColSpan, getControlID, getCustomEventsDelegate, getHorizontalAlignment, getName, getRowSpan, getValue, getVerticalAlignment, layout, makeContextMenu, navigationClick, navigationMovement, navigationUnclick, onDisplay, onFocus, onUnfocus, paint, refresh, refreshFooter, runAction, setAction, setBackgroundColor, setControlID, setCustomEventsDelegate, setFocusDisplayValue, setFooterField, setImage, setImage, setImage, setLayoutHeight, setLayoutWidth, setScaleAspectFit, setVariableSource, touchEvent |
Methods inherited from class net.rim.device.api.ui.component.BitmapField |
---|
getBitmap, getBitmapHeight, getBitmapWidth, paintBitmap, setBitmap, setSpace |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getAccessibleContext, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFocusRect, getFont, getHeight, getIndex, getLeafFieldWithFocus, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidate, invalidate, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isPasteable, isSelectable, isSelecting, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, keyChar, keyControl, keyDown, keyRepeat, keyStatus, keyUp, makeContextMenu, moveFocus, moveFocus, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onUndisplay, onVisibilityChange, paintBackground, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocus, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CellImage()
public CellImage(long style)
Method Detail |
---|
public void setImage(net.rim.device.api.system.EncodedImage image)
setImage
in class net.rim.device.api.ui.component.BitmapField
public net.rim.device.api.system.EncodedImage getImage()
public int getPreferredHeight()
ImageControl
getPreferredHeight
in interface Control
getPreferredHeight
in class ImageControl
int
value of the available layout heightControl.getPreferredHeight()
public int getPreferredWidth()
ImageControl
getPreferredWidth
in interface Control
getPreferredWidth
in class ImageControl
int
value of the available layout widthControl.getPreferredWidth()
public int getMaxImageWidth()
public void setMaxImageWidth(int maxImageWidth)
maxImageWidth
- - maximum width that the image is allowed to be scaled topublic int getMaxImageHeight()
public void setMaxImageHeight(int maxImageHeight)
maxImageHeight
- - maximum height that the image is allowed to be scaled topublic void draw(net.rim.device.api.ui.Graphics g, int relativeX, int relativeY, boolean isFocus)
IControlXYDraw
draw
in interface IControlXYDraw
g
- - Graphics objectrelativeX
- - relative X coordinatorrelativeY
- - relative Y coordinatorisFocus
- - true means the control is focusedpublic void setXPosition(int xPos, boolean isFocus)
IControlXYDraw
setXPosition
in interface IControlXYDraw
xPos
- - X coordinatorisFocus
- - true means xPos is the position when the control is focusedpublic int getXPosition(boolean isFocus)
IControlXYDraw
getXPosition
in interface IControlXYDraw
isFocus
- - true means the method returns the position when the control is focused
public void setYPosition(int yPos, boolean isFocus)
IControlXYDraw
setYPosition
in interface IControlXYDraw
yPos
- - Y coordinatorisFocus
- - true means yPos is the position when the control is focusedpublic int getYPosition(boolean isFocus)
IControlXYDraw
getYPosition
in interface IControlXYDraw
isFocus
- - true means the method returns the position when the control is focused
public CellImageConfig getImageConfig()
public void setImageConfig(CellImageConfig imageConfig)
imageConfig
- public void setRowSpan(int rowSpan)
ImageControl
setRowSpan
in interface Control
setRowSpan
in class ImageControl
rowSpan
- int
value of the row spanControl.setRowSpan(int rowspan)
public void setColSpan(int colSpan)
ImageControl
setColSpan
in interface Control
setColSpan
in class ImageControl
colSpan
- int
value of the column spanControl.setColSpan(int colspan)
public void setImageName(java.lang.String imageName)
imageName
- public void setVariable(ControlVariable variable)
variable
- public void setMboAttrId(java.lang.String mboAttributeId)
mboAttributeId
- public void setImageType(int imageType)
imageType
- - value comes from ICellAttributeTypeConstantspublic void setOrder(int order)
order
- - used among cell attributes to determine display positionpublic void setPreserveAspectRatio(boolean isPreserveAspectRatio)
isPreserveAspectRatio
- - true means keep the original width and height ratio when scaling imagepublic void setPendingImageName(java.lang.String pendingImageName)
pendingImageName
- - image file namepublic void setNewImageName(java.lang.String newImageName)
newImageName
- - image file namepublic void setDefaultValueMappingImageName(java.lang.String defaultValueMappingImageName)
defaultValueMappingImageName
- - image file name with file extensionpublic void addValueImageMapping(java.lang.String value, java.lang.String imageName)
value
- - MBO attribute valueimageName
- - image file name with file extensionpublic int getAbsoluteXPos()
public int getAbsoluteYPos()
public int getAbsoluteXPosFocus()
public int getAbsoluteYPosFocus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |