qx.ui.basic
Class Image

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.basic.Terminator
                  extended by qx.ui.basic.Image
Direct Known Subclasses:
ContentCellImage, SplitPaneKnob

public class Image
extends Terminator

This widget represents an image.


Field Summary
static java.lang.String PREFIX
           
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
Image()
           
Image(java.lang.String vSource)
           
Image(java.lang.String vSource, java.lang.Object vWidth)
           
Image(java.lang.String vSource, java.lang.Object vWidth, java.lang.Object vHeight)
           
 
Method Summary
 void _applyElement(java.lang.Object value, java.lang.Object old)
           
 void _applyEnabled(java.lang.Object value, java.lang.Object old)
           
 void _applyLoaded(java.lang.Object value, java.lang.Object old)
           
 void _applyPreloader(java.lang.Object value, java.lang.Object old)
           
 void _applySource(java.lang.Object value, java.lang.Object old)
           
 void _beforeAppear()
          Registers an image at the image manager (qx.io.image.Manager) and increases the visible counter
 void _beforeDisappear()
          Registers an image at the image manager (qx.io.image.Manager) and reduces the visible counter
 void _changeInnerHeight(java.lang.Object vNew, java.lang.Object vOld)
          Sets the height style attribute
 void _changeInnerWidth(java.lang.Object vNew, java.lang.Object vOld)
          Sets the width style attribute
 java.lang.Integer _computePreferredInnerHeight()
          Returns height value of preloader or 0 (if preloader is not available)
 java.lang.Integer _computePreferredInnerWidth()
          Returns width value of preloader or 0 (if preloader is not available)
 void _connect()
          Connects a callback method to the value manager to ensure that changes to the source are handled by the image instance
 void _onerror()
          Listener method of the “error” event
 void _onload()
          Listener method of the “load” event – sets “loaded” property
 void _postApply()
          Internal method (called by the layout engine) Applies the dimensions and then sets the source of the image instance
 void _postApplyDimensions()
          Sets the style attributes for width and height
 void _renderContent()
          Additionally (in comparison to base method) flushes global queues to get an up-to-date view when an image is loaded
 void _resetContent()
          Reset the source of the image instance to a blank image
 void _styleEnabled()
          Sets the style values for the states enabled/disabled
 void _syncSource(java.lang.String value)
          Sets the preloader property (with creating a new instance)
 void _updateContent()
          Updates the source of the image instance
 boolean getLoaded()
          Returns the (computed) value of the property loaded.
 Preloader getPreloader()
          Returns the (computed) value of the property preloader.
 boolean getResizeToInner()
          Returns the (computed) value of the property resizeToInner.
 java.lang.String getSource()
          Returns the (computed) value of the property source.
 void initLoaded(boolean arg)
          Calls the apply method and dispatches the change event of the property loaded with the default value defined by the class developer.
 void initPreloader(Preloader arg)
          Calls the apply method and dispatches the change event of the property preloader with the default value defined by the class developer.
 void initResizeToInner(boolean arg)
          Calls the apply method and dispatches the change event of the property resizeToInner with the default value defined by the class developer.
 void initSource(java.lang.String arg)
          Calls the apply method and dispatches the change event of the property source with the default value defined by the class developer.
 boolean isLoaded()
          Check whether the (computed) value of the boolean property loaded equals true.
 boolean isResizeToInner()
          Check whether the (computed) value of the boolean property resizeToInner equals true.
 void resetLoaded()
          Resets the user value of the property loaded.
 void resetPreloader()
          Resets the user value of the property preloader.
 void resetResizeToInner()
          Resets the user value of the property resizeToInner.
 void resetSource()
          Resets the user value of the property source.
 void setLoaded(boolean arg)
          Sets the user value of the property loaded.
 void setPreloader(Preloader arg)
          Sets the user value of the property preloader.
 void setResizeToInner(boolean arg)
          Sets the user value of the property resizeToInner.
 void setSource(java.lang.String arg)
          Sets the user value of the property source.
 boolean toggleLoaded()
          Toggles the (computed) value of the boolean property loaded.
 boolean toggleResizeToInner()
          Toggles the (computed) value of the boolean property resizeToInner.
 
Methods inherited from class qx.ui.basic.Terminator
_computeBoxHeightFallback, _computeBoxWidthFallback, _isHeightEssential, _isWidthEssential, _layoutPost, renderPadding
 
Methods inherited from class qx.ui.core.Widget
_afterAppear, _afterDisappear, _afterInsertDom, _afterRemoveDom, _applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElementData, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _beforeInsertDom, _beforeRemoveDom, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxWidth, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _recursiveAppearanceThemeUpdate, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getActiveChild, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getChildren, getChildrenLength, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFocusRoot, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getVisibleChildrenLength, getWidth, getWidthValue, getZIndex, hasChildren, hasState, hasVisibleChildren, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEmpty, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isFocusRoot, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, isVisibleEmpty, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, recursiveAddToStateQueue, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values
Constructor Detail

Image

public Image()

Image

public Image(java.lang.String vSource)

Image

public Image(java.lang.String vSource,
             java.lang.Object vWidth)

Image

public Image(java.lang.String vSource,
             java.lang.Object vWidth,
             java.lang.Object vHeight)
Method Detail

_applyElement

public void _applyElement(java.lang.Object value,
                          java.lang.Object old)
Overrides:
_applyElement in class Widget

_applyEnabled

public void _applyEnabled(java.lang.Object value,
                          java.lang.Object old)
Overrides:
_applyEnabled in class Widget

_applyLoaded

public void _applyLoaded(java.lang.Object value,
                         java.lang.Object old)

_applyPreloader

public void _applyPreloader(java.lang.Object value,
                            java.lang.Object old)

_applySource

public void _applySource(java.lang.Object value,
                         java.lang.Object old)

_beforeAppear

public void _beforeAppear()

Registers an image at the image manager (qx.io.image.Manager) and increases the visible counter

Overrides:
_beforeAppear in class Widget

_beforeDisappear

public void _beforeDisappear()

Registers an image at the image manager (qx.io.image.Manager) and reduces the visible counter

Overrides:
_beforeDisappear in class Widget

_changeInnerHeight

public void _changeInnerHeight(java.lang.Object vNew,
                               java.lang.Object vOld)

Sets the height style attribute


_changeInnerWidth

public void _changeInnerWidth(java.lang.Object vNew,
                              java.lang.Object vOld)

Sets the width style attribute


_computePreferredInnerHeight

public java.lang.Integer _computePreferredInnerHeight()

Returns height value of preloader or 0 (if preloader is not available)

Overrides:
_computePreferredInnerHeight in class Terminator

_computePreferredInnerWidth

public java.lang.Integer _computePreferredInnerWidth()

Returns width value of preloader or 0 (if preloader is not available)

Overrides:
_computePreferredInnerWidth in class Terminator

_connect

public void _connect()

Connects a callback method to the value manager to ensure that changes to the source are handled by the image instance


_onerror

public void _onerror()

Listener method of the “error” event


_onload

public void _onload()

Listener method of the “load” event – sets “loaded” property


_postApply

public void _postApply()

Internal method (called by the layout engine) Applies the dimensions and then sets the source of the image instance

Overrides:
_postApply in class Terminator

_postApplyDimensions

public void _postApplyDimensions()

Sets the style attributes for width and height


_renderContent

public void _renderContent()

Additionally (in comparison to base method) flushes global queues to get an up-to-date view when an image is loaded

Overrides:
_renderContent in class Terminator

_resetContent

public void _resetContent()

Reset the source of the image instance to a blank image


_styleEnabled

public void _styleEnabled()

Sets the style values for the states enabled/disabled


_syncSource

public void _syncSource(java.lang.String value)

Sets the preloader property (with creating a new instance)


_updateContent

public void _updateContent()

Updates the source of the image instance


getLoaded

public boolean getLoaded()

Returns the (computed) value of the property loaded.

For further details take a look at the property definition: loaded.


getPreloader

public Preloader getPreloader()

Returns the (computed) value of the property preloader.

For further details take a look at the property definition: preloader.


getResizeToInner

public boolean getResizeToInner()

Returns the (computed) value of the property resizeToInner.

For further details take a look at the property definition: resizeToInner.


getSource

public java.lang.String getSource()

Returns the (computed) value of the property source.

For further details take a look at the property definition: source.


initLoaded

public void initLoaded(boolean arg)

Calls the apply method and dispatches the change event of the property loaded with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: loaded.


initPreloader

public void initPreloader(Preloader arg)

Calls the apply method and dispatches the change event of the property preloader with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: preloader.


initResizeToInner

public void initResizeToInner(boolean arg)

Calls the apply method and dispatches the change event of the property resizeToInner with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: resizeToInner.


initSource

public void initSource(java.lang.String arg)

Calls the apply method and dispatches the change event of the property source with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: source.


isLoaded

public boolean isLoaded()

Check whether the (computed) value of the boolean property loaded equals true.

For further details take a look at the property definition: loaded.


isResizeToInner

public boolean isResizeToInner()

Check whether the (computed) value of the boolean property resizeToInner equals true.

For further details take a look at the property definition: resizeToInner.


resetLoaded

public void resetLoaded()

Resets the user value of the property loaded.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: loaded.


resetPreloader

public void resetPreloader()

Resets the user value of the property preloader.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: preloader.


resetResizeToInner

public void resetResizeToInner()

Resets the user value of the property resizeToInner.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: resizeToInner.


resetSource

public void resetSource()

Resets the user value of the property source.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: source.


setLoaded

public void setLoaded(boolean arg)

Sets the user value of the property loaded.

For further details take a look at the property definition: loaded.


setPreloader

public void setPreloader(Preloader arg)

Sets the user value of the property preloader.

For further details take a look at the property definition: preloader.


setResizeToInner

public void setResizeToInner(boolean arg)

Sets the user value of the property resizeToInner.

For further details take a look at the property definition: resizeToInner.


setSource

public void setSource(java.lang.String arg)

Sets the user value of the property source.

For further details take a look at the property definition: source.


toggleLoaded

public boolean toggleLoaded()

Toggles the (computed) value of the boolean property loaded.

For further details take a look at the property definition: loaded.


toggleResizeToInner

public boolean toggleResizeToInner()

Toggles the (computed) value of the boolean property resizeToInner.

For further details take a look at the property definition: resizeToInner.



Copyright © 2008 1&1. All Rights Reserved.