Field Summary |
public static
| classInfo: Object |
| A static class information object
|
|
public
| styleClass: String |
| The name of the style class this instance will use.
|
|
public
| tweenLength: Number |
| the duration in ms of the transition effect tween
|
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| imageAlign: String (read, write) |
| Controls how the image is aligned to the container
|
|
public
| scaleMode: String (read, write) |
| Controls how the image is scaled
|
|
public
| transitionMode: String (read, write) |
| Controls how the content transitions from preload to image
|
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| ImageBox (
)
|
| Constructor - This should not be called directly.
|
|
Method Summary |
public
| getClass (
): Function |
| Returns a reference to the components static class
|
|
public static
| newInstance (
owner, instanceId, depth, initObj
) |
| Creates a new Instance of this class
|
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|
A typical use might be as part of data driven article display form where many different articles can be displayed each with its own images which might be of slightly different sizes As with all XPComponents DataBinding support is built in and the source proeprty can be linked ot a data field.
The image source can be a linkageId of a library clip or the url of an external jpg or swf During loading a preload image can be displayed. The prelaod image fades in in proportion to the progress of loading. If preloadId is set to "PreLoadIcon" a flash logo wil be used as the pre load image Once loaded the preloader fades out and the image fades in. This behavior can be turned off via properties. ImageBox does not support scrolling as it sclaes content instead. If you need scroll support see the (@link xp.controls.ScrollPanel}
Event summary for the ImageBox class
The following table lists events of the ImageBox class.