|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
com.threerings.tudey.client.sprite.PlaceableSprite.Original
com.threerings.tudey.client.sprite.PlaceableSprite.Prop
com.threerings.tudey.client.sprite.PlaceableSprite.ClickableProp
public static class PlaceableSprite.ClickableProp
A prop that may be clicked to perform some action.
| Field Summary | |
|---|---|
protected PlaceableConfig.ClickableProp |
_config
The prop configuration. |
protected ColorState |
_cstate
The color state. |
protected Animation |
_defaultAnim
The default and hover animations, if any. |
protected boolean |
_hover
Whether or not the hover state is active. |
protected Animation |
_hoverAnim
The default and hover animations, if any. |
protected TudeySceneView |
_view
The containing view. |
| Fields inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Original |
|---|
_ctx, _footprint, _model, _scene |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
PlaceableSprite.ClickableProp(TudeyContext ctx,
Scope parentScope,
PlaceableConfig.ClickableProp config)
Creates a new clickable prop implementation. |
|
| Method Summary | |
|---|---|
boolean |
dispatchEvent(Event event)
Dispatches an event on the implementation. |
boolean |
isClickable()
Determines whether the implementation is clickable. |
boolean |
isHoverable()
Determines whether the implementation is hoverable. |
void |
setConfig(PlaceableConfig.Original config)
(Re)configures the implementation. |
protected void |
setHover(boolean hover)
Sets the hover state. |
| Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Prop |
|---|
getFloorFlags |
| Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Original |
|---|
createTooltipComponent, dispose, getModel, getModelConfig, update |
| Methods inherited from class com.threerings.tudey.client.sprite.PlaceableSprite.Implementation |
|---|
getScopeName, getTooltipText, getTooltipTimeout, getTooltipWindowStyle |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PlaceableConfig.ClickableProp _config
protected ColorState _cstate
protected Animation _defaultAnim
protected Animation _hoverAnim
protected boolean _hover
@Bound protected TudeySceneView _view
| Constructor Detail |
|---|
public PlaceableSprite.ClickableProp(TudeyContext ctx,
Scope parentScope,
PlaceableConfig.ClickableProp config)
| Method Detail |
|---|
public void setConfig(PlaceableConfig.Original config)
PlaceableSprite.Original
setConfig in class PlaceableSprite.Proppublic boolean isHoverable()
PlaceableSprite.Implementation
isHoverable in class PlaceableSprite.Implementationpublic boolean isClickable()
PlaceableSprite.Implementation
isClickable in class PlaceableSprite.Implementationpublic boolean dispatchEvent(Event event)
PlaceableSprite.Implementation
dispatchEvent in class PlaceableSprite.Implementationprotected void setHover(boolean hover)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||