A non-visual base class for implementing sliders.
Baseslider is a non-visual representation of a slider.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| bordersize | Tag & JS | number | Number | 1 | setter |
|
The border width. This can be set with a style. |
|||||
|
|
|||||
| keystep | Tag & JS | number | Number | 2 | setter |
|
How far to move when key navigating. |
|||||
|
|
|||||
| maxvalue | Tag & JS | number | Number | 100 | setter |
|
The maximum value. |
|||||
|
|
|||||
| minvalue | Tag & JS | number | Number | 0 | setter |
|
The minimum value. |
|||||
|
|
|||||
| showfill | Tag & JS | expression | any | true | setter |
|
Turns on / off the slider's filled area. |
|||||
|
|
|||||
| showrange | Tag & JS | boolean | Boolean | true | setter |
|
Turns on / off the bounding range text. |
|||||
|
|
|||||
| showvalue | Tag & JS | boolean | Boolean | true | setter |
|
Turns on / off the floating value text when the user drags. |
|||||
|
|
|||||
| thumbheight | Tag & JS | number | Number | 18 | setter |
|
The height of the thumb. |
|||||
|
|
|||||
| thumbwidth | Tag & JS | number | Number | 10 | setter |
|
The width of the thumb. |
|||||
|
|
|||||
| trackheight | Tag & JS | number | Number | 8 | setter |
|
The height of the track. |
|||||
|
|
|||||
doesenter, enabled, hasdefault, isdefault, style, styleable, text
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset
| getMaxValue() | ||
| baseslider.getMaxValue() | ||
|
Get the maximum value of the slider. |
||
| Returns | ||
| Type | Desc | |
| Number | the maximum value. | |
|
|
||
| getMinValue() | ||
| baseslider.getMinValue() | ||
|
Get the minimum value of the slider. |
||
| Returns | ||
| Type | Desc | |
| Number | the minimum value. | |
|
|
||
| getPercentage() | ||
| baseslider.getPercentage() | ||
|
Get the percentage of the range selected by the value. |
||
| Returns | ||
| Type | Desc | |
| Number | the percentage selected. | |
|
|
||
| setMaxValue() | ||
| baseslider.setMaxValue(v) | ||
|
Set the maximum value. |
||
| Parameters | ||
| Name | Type | Desc |
| v | Number | the maximum value. |
|
|
||
| setMinValue() | ||
| baseslider.setMinValue(v) | ||
|
Set the minimum value. |
||
| Parameters | ||
| Name | Type | Desc |
| v | Number | the minimum value. |
|
|
||
| setPercentage() | ||
| baseslider.setPercentage(p) | ||
|
Set the value by percentage of range from min to max. |
||
| Parameters | ||
| Name | Type | Desc |
| p | Number | a percentage between the min and the max. |
|
|
||
| setValue() | ||
| baseslider.setValue(v) | ||
|
Sets the value for the slider that must be within min and max. |
||
| Parameters | ||
| Name | Type | Desc |
| v | Number | a number between the minimum and maximum value for the slider. |
|
|
||
doEnterDown, doEnterUp, doSpaceDown, doSpaceUp, setStyle, setTint, updateDefault
animate, applyConstraint, applyData, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, init, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
| Events |
onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.