public class XdevImage extends Image implements XdevComponent
ExtendableObject.Extensions
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Constructor and Description |
---|
XdevImage()
Creates a new empty Image.
|
XdevImage(String caption)
Creates a new empty Image with caption.
|
XdevImage(String caption,
Resource source)
Creates a new Image whose contents is loaded from given resource.
|
Modifier and Type | Method and Description |
---|---|
<E> E |
addExtension(Class<? super E> type,
E extension)
Adds an extension to this component.
|
<E> E |
getExtension(Class<E> type)
Gets the registered extension for the specified type.
|
addClickListener, addListener, removeClickListener, removeListener
getAlternateText, getSource, readDesign, setAlternateText, setSource, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addListener, addListener, encodeState, equals, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getRpcManager, getStateType, getUI, handleConnectorRequest, hashCode, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getClass, notify, notifyAll, toString, wait, wait, wait
isEnabled, isReadOnly, isVisible, setEnabled, setReadOnly, setVisible
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
public XdevImage()
public XdevImage(String caption, Resource source)
caption
- source
- the Source of the embedded object.public XdevImage(String caption)
caption
- public <E> E addExtension(Class<? super E> type, E extension)
addExtension
in interface ExtendableObject
type
- the type to register the extension forextension
- the extensionnull
ExtendableObject.getExtension(Class)
public <E> E getExtension(Class<E> type)
getExtension
in interface ExtendableObject
type
- the type the extension was registered withnull
if none was added before for
this typeExtendableObject.addExtension(Class, Object)