ButtonImage
@Deprecated public class ButtonImage extends ButtonWrapper
It is simply a button composite that contains an image widget.
Image
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
ButtonImage()
Deprecated.
Creates a button without image.
|
ButtonImage(ej.microui.display.Image source)
Deprecated.
Creates a button with the given image to display.
|
ButtonImage(java.lang.String source)
Deprecated.
Creates a button with the path to the image to display.
|
Modifier and Type | Method and Description |
---|---|
Image |
getImage()
Deprecated.
Gets the image contained in the button.
|
ej.microui.display.Image |
getSource()
Deprecated.
Gets the image displayed by this button.
|
void |
setSource(ej.microui.display.Image source)
Deprecated.
Sets the source image to display for this button.
|
void |
setSource(java.lang.String source)
Deprecated.
Sets the source image to display for this button.
|
void |
setWidget(Widget widget)
Deprecated.
Sets the only child of this composite.
|
addOnClickListener, handleEvent, isInState, onClick, performClick, removeOnClickListener, requestFocus, requestFocus
contains, isAdjustedToChild, setAdjustedToChild, setBoundsContent, validateContent
add, addClassSelector, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getParentElement, getStyle, hasClassSelector, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, renderContent, setBounds, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getFocus, getFocusIndex, getNext, getWidget, getWidgetAt, getWidgets, getWidgetsCount, hideNotify, iterator, remove, removeAllWidgets, requestFocusFrom, showNotify
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, revalidate, revalidateSubTree, setEventHandler, setLocation, setPreferredSize, setSize, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventHandler, getHeight, getWidth, getX, getY, hideNotify, isShown, repaint, repaint, setEventHandler, showNotify
public ButtonImage()
public ButtonImage(java.lang.String source)
The image loader service is used to load the image from the given path.
source
- the path to the source to display.java.lang.NullPointerException
- if the given source is null
.ImageLoader.getImage(String)
public ButtonImage(@Nullable ej.microui.display.Image source)
source
- the image to display.public void setWidget(Widget widget)
Wrapper
public Image getImage()
public void setSource(java.lang.String source)
source
- the path to new image to display.java.lang.NullPointerException
- if the given image is null
.Image.setSource(String)
public void setSource(ej.microui.display.Image source)
source
- the image to display.java.lang.NullPointerException
- if the given image is null
.Image.setSource(ej.microui.display.Image)
@Nullable public ej.microui.display.Image getSource()
The image is hold by the inner image widget.
Image.getSource()