Class Index | File Index

Classes


Class R.ui.ButtonControl


Extends R.ui.AbstractUIControl.
UI button control.
Defined in: buttoncontrol.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class R.struct.Container:
EMPTY
Method Summary
Method Attributes Method Name and Description
 
Calculate and return the height of the control in pixels.
 
calcWidth(str)
Calculate and return the width of the control in pixels.
 
deserialize(obj, clazz)
Deserialize the object back into a button control.
 
Destroy the text input control, releasing its event handlers.
 
drawControl(renderContext, worldTime, dt)
Draw the input component within the
 
Get the class name of this object
 
Returns a bean which represents the read or read/write properties of the object.
 
Get the value of the input control.
 
Releases the object back into the object pool.
 
serialize(obj, defaults)
Get a properties object with values for the given object.
 
setText(text)
Set the value of the input control.
Methods borrowed from class R.ui.AbstractUIControl:
addClass, click, drawBox, getControlName, getGroup, getGroupName, getTextRenderer, hasFocus, isMouseInControl, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, removeClass, setControlName, setFocus, setGroup
Methods borrowed from class R.objects.Object2D:
getAABB, getBoundingBox, getBoundingCircle, getCollisionHull, getDefaultTransformComponent, getLastPosition, getOrigin, getOriginPosition, getPosition, getRenderPosition, getRenderRotation, getRotation, getScale, getScaleX, getScaleY, getTransformationMatrix, getWorldBox, getWorldCircle, getZIndex, setBoundingBox, setCollisionHull, setDefaultTransformComponent, setOrigin, setPosition, setRotation, setScale, setZIndex
Methods borrowed from class R.engine.GameObject:
add, componentSort, getComponent, getComponentByClass, getRenderContext, isDirty, isKeepAlive, markDirty, remove, setKeepAlive, setRenderContext, update, wasDirty
Methods borrowed from class R.struct.HashContainer:
cleanUp, clear, get, isInHash, removeAtIndex, removeHash
Methods borrowed from class R.struct.Container:
addAll, append, clone, concat, contains, filter, forEach, fromArray, getAll, getObjects, insert, iterator, reduce, replace, replaceAt, size, sort, subset, toXML
Methods borrowed from class R.engine.BaseObject:
addEvent, addEvents, getElement, jQ, removeEvent, setElement, triggerEvent
Methods borrowed from class R.engine.PooledObject:
clearObjectDataModel, getId, getName, getObjectDataModel, isDestroyed, setName, setObjectDataModel, toString
Class Detail
R.ui.ButtonControl(text)
Parameters:
text
{String} The text to display on the button.
Method Detail
{Number} calcHeight()
Calculate and return the height of the control in pixels.
Returns:
{Number}

{Number} calcWidth(str)
Calculate and return the width of the control in pixels.
Parameters:
str
Returns:
{Number}

{R.ui.ButtonControl} deserialize(obj, clazz)
Deserialize the object back into a button control.
Parameters:
obj
{Object} The object to deserialize
clazz Optional
{Class} The object class to populate
Returns:
{R.ui.ButtonControl} The object which was deserialized

destroy()
Destroy the text input control, releasing its event handlers.

drawControl(renderContext, worldTime, dt)
Draw the input component within the
Parameters:
renderContext
{R.rendercontexts.RenderContext2D} The render context where the control is drawn.
worldTime
{Number} The current world time, in milliseconds
dt
{Number} The time since the last frame was drawn by the engine, in milliseconds

{String} getClassName()
Get the class name of this object
Returns:
{String} The string "R.ui.ButtonControl"

{Object} getProperties()
Returns a bean which represents the read or read/write properties of the object.
Returns:
{Object} The properties object

{String} getText()
Get the value of the input control.
Returns:
{String}

release()
Releases the object back into the object pool. See R.engine.PooledObject#release for more information.

{Object} serialize(obj, defaults)
Get a properties object with values for the given object.
Parameters:
obj
{R.ui.ButtonControl} The button control to query
defaults Optional
{Object} Default values that don't need to be serialized unless they are different.
Returns:
{Object}

setText(text)
Set the value of the input control.
Parameters:
text
{String} Text

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 18 2013 16:09:21 GMT-0400 (EDT)