|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.basic.Terminator
qx.ui.basic.Image
public class Image
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.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 |
---|
public static final java.lang.String PREFIX
Constructor Detail |
---|
public Image()
public Image(java.lang.String vSource)
public Image(java.lang.String vSource, java.lang.Object vWidth)
public Image(java.lang.String vSource, java.lang.Object vWidth, java.lang.Object vHeight)
Method Detail |
---|
public void _applyElement(java.lang.Object value, java.lang.Object old)
_applyElement
in class Widget
public void _applyEnabled(java.lang.Object value, java.lang.Object old)
_applyEnabled
in class Widget
public void _applyLoaded(java.lang.Object value, java.lang.Object old)
public void _applyPreloader(java.lang.Object value, java.lang.Object old)
public void _applySource(java.lang.Object value, java.lang.Object old)
public void _beforeAppear()
Registers an image at the image manager (qx.io.image.Manager) and increases the visible counter
_beforeAppear
in class Widget
public void _beforeDisappear()
Registers an image at the image manager (qx.io.image.Manager) and reduces the visible counter
_beforeDisappear
in class Widget
public void _changeInnerHeight(java.lang.Object vNew, java.lang.Object vOld)
Sets the height style attribute
public void _changeInnerWidth(java.lang.Object vNew, java.lang.Object vOld)
Sets the width style attribute
public java.lang.Integer _computePreferredInnerHeight()
Returns height value of preloader or 0 (if preloader is not available)
_computePreferredInnerHeight
in class Terminator
public java.lang.Integer _computePreferredInnerWidth()
Returns width value of preloader or 0 (if preloader is not available)
_computePreferredInnerWidth
in class Terminator
public void _connect()
Connects a callback method to the value manager to ensure that changes to the source are handled by the image instance
public void _onerror()
Listener method of the “error” event
public void _onload()
Listener method of the “load” event – sets “loaded” property
public void _postApply()
Internal method (called by the layout engine) Applies the dimensions and then sets the source of the image instance
_postApply
in class Terminator
public void _postApplyDimensions()
Sets the style attributes for width and height
public void _renderContent()
Additionally (in comparison to base method) flushes global queues to get an up-to-date view when an image is loaded
_renderContent
in class Terminator
public void _resetContent()
Reset the source of the image instance to a blank image
public void _styleEnabled()
Sets the style values for the states enabled/disabled
public void _syncSource(java.lang.String value)
Sets the preloader property (with creating a new instance)
public void _updateContent()
Updates the source of the image instance
public boolean getLoaded()
Returns the (computed) value of the property loaded
.
For further details take a look at the property definition: loaded
.
public Preloader getPreloader()
Returns the (computed) value of the property preloader
.
For further details take a look at the property definition: preloader
.
public boolean getResizeToInner()
Returns the (computed) value of the property resizeToInner
.
For further details take a look at the property definition: resizeToInner
.
public java.lang.String getSource()
Returns the (computed) value of the property source
.
For further details take a look at the property definition: source
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
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
.
public void setLoaded(boolean arg)
Sets the user value of the property loaded
.
For further details take a look at the property definition: loaded
.
public void setPreloader(Preloader arg)
Sets the user value of the property preloader
.
For further details take a look at the property definition: preloader
.
public void setResizeToInner(boolean arg)
Sets the user value of the property resizeToInner
.
For further details take a look at the property definition: resizeToInner
.
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
.
public boolean toggleLoaded()
Toggles the (computed) value of the boolean property loaded
.
For further details take a look at the property definition: loaded
.
public boolean toggleResizeToInner()
Toggles the (computed) value of the boolean property resizeToInner
.
For further details take a look at the property definition: resizeToInner
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |