public class MdiIcon extends BaseIcon<MdiIcon>
| Modifier and Type | Class and Description |
|---|---|
static class |
MdiIcon.MdiContrast
An enum representing the contrast of the icon
|
static class |
MdiIcon.MdiFlip
An enum representing the flip of the icon
|
static class |
MdiIcon.MdiRotate
An enum representing the rotation degree of the icon
|
static class |
MdiIcon.MdiSize
An enum representing the sizes of the icon
|
BaseDominoElement.ElementHandler<T>, BaseDominoElement.ResizeHandler<T>, BaseDominoElement.StyleEditor<E extends elemental2.dom.HTMLElement,T extends org.jboss.elemento.IsElement<E>>, BaseDominoElement.WavesStylercolor, icon, name, originalName, toggleName, toggleOnClickelement| Modifier and Type | Method and Description |
|---|---|
MdiIcon |
active()
Activate the icon
|
MdiIcon |
changeTo(BaseIcon<MdiIcon> icon)
Change the icon to another icon
|
MdiIcon |
copy()
Copy the same icon and return a new instance
|
static MdiIcon |
create(String icon)
Creates a new icon
|
static MdiIcon |
create(String icon,
MdiMeta meta)
Creates a new icon with meta
|
MdiIcon |
dark()
Sets the contrast as dark
|
protected MdiIcon |
doToggle() |
elemental2.dom.HTMLElement |
element() |
MdiIcon |
flipH()
Flips the icon horizontally
|
MdiIcon |
flipNone()
Removes the flip
|
MdiIcon |
flipV()
Flips the icon vertically
|
MdiMeta |
getMetaInfo() |
MdiIcon |
inactive()
Marks the icon as inactive
|
MdiIcon |
light()
Sets the contrast as light
|
MdiIcon |
noContrast()
Removes the contrast
|
MdiIcon |
noSpin()
Removes the spinning of the icon
|
MdiIcon |
rotate135()
Rotates the icon with 135 degrees
|
MdiIcon |
rotate180()
Rotates the icon with 180 degrees
|
MdiIcon |
rotate225()
Rotates the icon with 225 degrees
|
MdiIcon |
rotate270()
Rotates the icon with 270 degrees
|
MdiIcon |
rotate315()
Rotates the icon with 315 degrees
|
MdiIcon |
rotate45()
Rotates the icon with 45 degrees
|
MdiIcon |
rotate90()
Rotates the icon with 90 degrees
|
MdiIcon |
rotateNone()
Sets the rotate to the default value
|
MdiIcon |
setActive(boolean active)
Sets if the icon is active or not
|
MdiIcon |
setContrast(MdiIcon.MdiContrast mdiContrast)
Sets the contrast of the icon
|
MdiIcon |
setFlip(MdiIcon.MdiFlip mdiFlip)
Flips the icon either horizontally or vertically
|
MdiIcon |
setRotate(MdiIcon.MdiRotate mdiRotate)
Sets the type of rotate applied to the icon
|
MdiIcon |
setSize(MdiIcon.MdiSize mdiSize)
Sets the size of the icon
|
MdiIcon |
setSpin(boolean spin)
Sets if the icon should spin
|
MdiIcon |
size18()
Sets the size to 18 px
|
MdiIcon |
size24()
Sets the size to 24 px
|
MdiIcon |
size36()
Sets the size to 36 px
|
MdiIcon |
size48()
Sets the size to 48 px
|
MdiIcon |
sizeNone()
Sets the size to the default
|
MdiIcon |
spin()
Spins the icon
|
addClickListener, clickable, getName, isToggled, onToggle, setClickable, setColor, setToggleIcon, toggleIcon, toggleOnClickadd, add, addCss, addCss, addEventListener, addEventListener, addEventsListener, addHideListener, addShowListener, alignCenter, alignRight, appendChild, appendChild, apply, attr, blur, childNodes, clearElement, contains, contains, contains, containsCss, css, css, cssClassByIndex, cssClassesCount, cssText, disable, elevate, elevate, enable, firstChild, getAttachObserver, getAttribute, getBoundingClientRect, getChildElementCount, getClickableElement, getCollapsible, getCollapsibleElement, getDetachObserver, getDominoId, getElementsCount, getElevation, getFirstChild, getId, getTextContent, getTooltip, getWavesElement, hasAttribute, hasChildNodes, hasDirectChild, hide, hideOn, id, init, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertFirst, insertFirst, insertFirst, isAttached, isCollapsed, isDisabled, isEmptyElement, isEqualNode, isForceHidden, isHidden, isReadOnly, item, lastChild, length, onAttached, onDetached, onResize, pullLeft, pullRight, querySelector, querySelectorAll, remove, removeAttachObserver, removeAttribute, removeChild, removeChild, removeCss, removeCss, removeCssProperty, removeDetachObserver, removeEventListener, removeEventListener, removeHideListener, removeHideOn, removeShowListener, removeShowOn, removeTooltip, removeWaves, replaceCss, setAlignItems, setAttribute, setAttribute, setAttribute, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBottom, setBottom, setBoxShadow, setCollapseStrategy, setColor, setColor, setContent, setContent, setCssProperty, setCssProperty, setCursor, setCursor, setDisabled, setDisplay, setDisplay, setDropMenu, setFlex, setFloat, setFloat, setFontSize, setFontSize, setForceHidden, setHeight, setHeight, setId, setInnerHtml, setLeft, setLeft, setLineHeight, setLineHeight, setMargin, setMargin, setMarginBottom, setMarginBottom, setMarginLeft, setMarginLeft, setMarginRight, setMarginRight, setMarginTop, setMarginTop, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setOpacity, setOpacity, setOverFlow, setOverFlow, setOverFlowY, setPadding, setPadding, setPaddingBottom, setPaddingBottom, setPaddingLeft, setPaddingLeft, setPaddingRight, setPaddingRight, setPaddingTop, setPaddingTop, setPointerEvents, setPosition, setPosition, setReadOnly, setRight, setRight, setTabIndex, setTextAlign, setTextAlign, setTextContent, setTooltip, setTooltip, setTooltip, setTooltip, setTop, setTop, setTransitionDuration, setWidth, setWidth, setZIndex, show, showOn, style, style, styler, textContent, toggleDisplay, toggleDisplay, withWaves, withWavesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisExpandedadd, add, remove, remove, removeProperty, replace, setProperty, setPropertypublic static MdiIcon create(String icon)
icon - the name of the iconpublic static MdiIcon create(String icon, MdiMeta meta)
icon - the icon namemeta - the MdiMetapublic MdiIcon copy()
public MdiIcon setSize(MdiIcon.MdiSize mdiSize)
mdiSize - the MdiIcon.MdiSizepublic MdiIcon size18()
public MdiIcon size24()
public MdiIcon size36()
public MdiIcon size48()
public MdiIcon sizeNone()
public MdiIcon setRotate(MdiIcon.MdiRotate mdiRotate)
mdiRotate - the MdiIcon.MdiRotatepublic MdiIcon rotate45()
public MdiIcon rotate90()
public MdiIcon rotate135()
public MdiIcon rotate180()
public MdiIcon rotate225()
public MdiIcon rotate270()
public MdiIcon rotate315()
public MdiIcon rotateNone()
public MdiIcon setFlip(MdiIcon.MdiFlip mdiFlip)
mdiFlip - the MdiIcon.MdiFlippublic MdiIcon flipV()
public MdiIcon flipH()
public MdiIcon flipNone()
public MdiIcon setSpin(boolean spin)
spin - true to spin the icon, false otherwisepublic MdiIcon spin()
public MdiIcon noSpin()
public MdiIcon setActive(boolean active)
active - true to activate the icon, false otherwisepublic MdiIcon active()
public MdiIcon inactive()
public MdiIcon setContrast(MdiIcon.MdiContrast mdiContrast)
mdiContrast - the MdiIcon.MdiContrastpublic MdiIcon light()
public MdiIcon dark()
public MdiIcon noContrast()
public elemental2.dom.HTMLElement element()
Copyright © 2019–2022 Dominokit. All rights reserved.