@Component(tag="spinjs", widgetModule="fujion-spinjs", widgetClass="SpinJS", parentTag="*", description="Spin-js component.") public class SpinJS extends BaseUIComponent
BaseComponent.SubComponentlog| Constructor and Description |
|---|
SpinJS() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getCorners()
Returns the corner roundness.
|
String |
getFadeColor()
Returns the color(s) for the fade effect.
|
String |
getLeft()
Returns the left position relative to parent.
|
String |
getLineColor()
Returns the line color(s).
|
Integer |
getLineLength()
Returns the length of each line.
|
Integer |
getLines()
Returns the number of lines to draw.
|
Integer |
getLineWidth()
Returns the line width.
|
Double |
getOpacity()
Returns the opacity of the lines.
|
Integer |
getRadius()
Returns the radius of the inner circle.
|
Integer |
getRotate()
Returns the rotation offset.
|
Double |
getScale()
Returns the overall size of the spinner.
|
String |
getShadow()
Returns the box-shadow for the lines.
|
Integer |
getSpeed()
Returns the rounds per second.
|
String |
getTop()
Returns the top position relative to parent.
|
Integer |
getTrail()
Returns the after-glow percentage.
|
Boolean |
isClockwise()
Returns true if the spinner rotation is clockwise.
|
boolean |
isRunning()
Returns true if the animation is running.
|
void |
setClockwise(Boolean clockwise)
Set to true for clockwise rotation.
|
void |
setCorners(Double corners)
Sets the corner roundness.
|
void |
setFadeColor(String fadeColor)
Sets the color(s) for the fade effect.
|
void |
setLeft(String left)
Sets the left position relative to parent.
|
void |
setLineColor(String color)
Sets the line color(s).
|
void |
setLineLength(Integer length)
Sets the length of each line.
|
void |
setLines(Integer lines)
Sets the number of lines to draw.
|
void |
setLineWidth(Integer width)
Sets the line width.
|
void |
setOpacity(Double opacity)
Sets the opacity of the lines.
|
void |
setRadius(Integer radius)
Sets the radius of the inner circle.
|
void |
setRotate(Integer rotate)
Sets the rotation offset.
|
void |
setScale(Double scale)
Sets the overall size of the spinner.
|
void |
setShadow(String shadow)
Sets the box-shadow for the lines.
|
void |
setSpeed(Integer speed)
Sets the rounds per second.
|
void |
setTop(String top)
Sets the top position relative to parent.
|
void |
setTrail(Integer trail)
Sets the after-glow percentage.
|
void |
start()
Starts the animation.
|
void |
start(boolean start)
Starts or stops the animation.
|
void |
stop()
Stops the animation.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, onDestroyTracked, print, print, removeClass, removeMask, removeStyle, reportSize, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _getChildren, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, addSnippet, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAllNamed, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getController, getControllers, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasChildren, hasEventListener, hasEventListener, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, isRendered, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, swapTrackedComponents, sync, toString, trackComponent, trimify, untrackComponent, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waittransformForClientpublic boolean isRunning()
@Component.PropertySetter(value="start", defer=true, defaultValue="false", description="Starts or stops the animation.") public void start(boolean start)
start - If true, start the animation; if false, stop.public void start()
public void stop()
@Component.PropertyGetter(value="lines", description="The number of lines to draw.") public Integer getLines()
Default: 12
@Component.PropertySetter(value="lines", defaultValue="12", description="The number of lines to draw.") public void setLines(Integer lines)
Default: 12
lines - The number of lines to draw.@Component.PropertyGetter(value="linelength", description="The length of each line.") public Integer getLineLength()
Default: 7
@Component.PropertySetter(value="linelength", defaultValue="7", description="The length of each line.") public void setLineLength(Integer length)
Default: 7
length - The length of each line.@Component.PropertyGetter(value="linewidth", description="The width of each line.") public Integer getLineWidth()
Default: 5
@Component.PropertySetter(value="linewidth", defaultValue="5", description="The width of each line.") public void setLineWidth(Integer width)
Default: 5
width - The line width (thickness).@Component.PropertyGetter(value="radius", description="The radius of the inner circle.") public Integer getRadius()
Default: 10
@Component.PropertySetter(value="radius", defaultValue="10", description="The radius of the inner circle.") public void setRadius(Integer radius)
Default: 10
radius - The radius of the inner circle.@Component.PropertyGetter(value="scale", description="The overall size of the spinner.") public Double getScale()
Default: 1
@Component.PropertySetter(value="scale", defaultValue="1", description="The overall size of the spinner.") public void setScale(Double scale)
Default: 1
scale - The overall size of the spinner.@Component.PropertyGetter(value="corners", description="The corner roundness.") public Double getCorners()
Constraints: ≥0 and ≤1
Default: 1
@Component.PropertySetter(value="corners", defaultValue="1", description="The corner roundness.") public void setCorners(Double corners)
Constraints: ≥0 and ≤1
Default: 1
corners - The corner roundness.@Component.PropertyGetter(value="linecolor", description="The line color(s). Separate multiple colors with commas.") public String getLineColor()
Default: "#000"
@Component.PropertySetter(value="linecolor", defaultValue="#000", description="The line color(s). Separate multiple colors with commas.") public void setLineColor(String color)
Default: "#000"
color - The line color(s).@Component.PropertyGetter(value="fadecolor", description="The color(s) for the fade effect. Separate multiple colors with commas.") public String getFadeColor()
Default: "transparent"
@Component.PropertySetter(value="fadecolor", defaultValue="transparent", description="The color(s) for the fade effect. Separate multiple colors with commas.") public void setFadeColor(String fadeColor)
Default: "transparent"
fadeColor - The color(s) for the fade effect.@Component.PropertyGetter(value="opacity", description="The opacity of the lines.") public Double getOpacity()
Constraints: ≥0 and ≤1
Default: 0.25
@Component.PropertySetter(value="opacity", defaultValue="0.25", description="The opacity of the lines.") public void setOpacity(Double opacity)
Constraints: ≥0 and ≤1
Default: 0.25
opacity - The opacity of the lines.@Component.PropertyGetter(value="rotate", description="The rotation offset.") public Integer getRotate()
Default: 0
@Component.PropertySetter(value="rotate", defaultValue="0", description="The rotation offset.") public void setRotate(Integer rotate)
Default: 0
rotate - The rotation offset.@Component.PropertyGetter(value="clockwise", description="If true, the rotation is clockwise.") public Boolean isClockwise()
Default: true
@Component.PropertySetter(value="clockwise", defaultValue="true", description="If true, the rotation is clockwise.") public void setClockwise(Boolean clockwise)
Default: true
clockwise - True for clockwise rotation.@Component.PropertyGetter(value="speed", description="Rounds per second.") public Integer getSpeed()
Default: 1
@Component.PropertySetter(value="speed", defaultValue="1", description="Rounds per second.") public void setSpeed(Integer speed)
Default: 1
speed - Rounds per second.@Component.PropertyGetter(value="trail", description="The after-glow percentage.") public Integer getTrail()
Constraints: ≥0 and ≤100
Default: 100
@Component.PropertySetter(value="trail", defaultValue="100", description="The after-glow percentage.") public void setTrail(Integer trail)
Constraints: ≥0 and ≤100
Default: 100
trail - The after-glow percentage.@Component.PropertyGetter(value="top", description="The top position relative to parent.") public String getTop()
Default: "50%"
@Component.PropertySetter(value="top", defaultValue="50%", description="The top position relative to parent.") public void setTop(String top)
Default: "50%"
top - Top position relative to parent.@Component.PropertyGetter(value="left", description="The left position relative to parent.") public String getLeft()
Default: "50%"
@Component.PropertySetter(value="left", defaultValue="50%", description="The left position relative to parent.") public void setLeft(String left)
Default: "50%"
left - Left position relative to parent.@Component.PropertyGetter(value="shadow", description="The box-shadow for the lines.") public String getShadow()
Default: "none"
@Component.PropertySetter(value="shadow", defaultValue="none", description="The box-shadow for the lines.") public void setShadow(String shadow)
Default: "none"
shadow - Box-shadow for the lines.Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.