public class Icon
extends com.vaadin.ui.AbstractComponent
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
static String |
COLOR_ERROR |
static String |
COLOR_GREEN_BADGE |
static String |
COLOR_HELP |
static String |
COLOR_INFO |
static String |
COLOR_WARNING |
static int |
SIZE_DEFAULT |
Constructor and Description |
---|
Icon(String iconName) |
Icon(String iconName,
int size) |
Icon(String iconName,
int size,
String color) |
Icon(String iconName,
String color) |
Modifier and Type | Method and Description |
---|---|
String |
getColor() |
String |
getIconName() |
int |
getSize() |
protected IconState |
getState() |
protected IconState |
getState(boolean markDirty) |
void |
setColor(String color) |
void |
setIconName(String iconName) |
void |
setSize(int size) |
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isVisible, readDesign, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static final transient String COLOR_ERROR
public static final transient String COLOR_WARNING
public static final transient String COLOR_INFO
public static final transient String COLOR_GREEN_BADGE
public static final transient String COLOR_HELP
public static final transient int SIZE_DEFAULT
protected IconState getState(boolean markDirty)
getState
in class com.vaadin.ui.AbstractComponent
protected IconState getState()
getState
in class com.vaadin.ui.AbstractComponent
public String getIconName()
public void setIconName(String iconName)
public int getSize()
public void setSize(int size)
public String getColor()
public void setColor(String color)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.