Package | com.google.maps.styles |
Class | public class ButtonStyle |
Property | Defined by | ||
---|---|---|---|
downState : ButtonFaceStyle
Style of the button in the "down" state.
| ButtonStyle | ||
overState : ButtonFaceStyle
Style of the button in the "over" state.
| ButtonStyle | ||
upState : ButtonFaceStyle
Style of the button in the "up" state.
| ButtonStyle |
Method | Defined by | ||
---|---|---|---|
ButtonStyle(params:Object = null)
Constructs a ButtonStyle instance, optionally initializing it from
an object.
| ButtonStyle | ||
mergeStyles(styles:Array):ButtonStyle
[static]
Merges two or more ButtonStyle objects.
| ButtonStyle | ||
setAllStates(shared:ButtonFaceStyle):void
Specified a set of bevel style properties for all button states.
| ButtonStyle | ||
toString():String
toString method.
| ButtonStyle |
downState | property |
downState:ButtonFaceStyle
[read-write]Style of the button in the "down" state.
Implementation public function get downState():ButtonFaceStyle
public function set downState(value:ButtonFaceStyle):void
overState | property |
overState:ButtonFaceStyle
[read-write]Style of the button in the "over" state.
Implementation public function get overState():ButtonFaceStyle
public function set overState(value:ButtonFaceStyle):void
upState | property |
upState:ButtonFaceStyle
[read-write]Style of the button in the "up" state.
Implementation public function get upState():ButtonFaceStyle
public function set upState(value:ButtonFaceStyle):void
ButtonStyle | () | constructor |
public function ButtonStyle(params:Object = null)
Constructs a ButtonStyle instance, optionally initializing it from an object.
Parametersparams:Object (default = null ) — An initialization object that contains a set of initial
values for the new ButtonStyle object.
|
var style:ButtonStyle = new ButtonStyle({ allStates: { fillStyle: { color: 0xA0A0A0, alpha: 1.0 }, strokeStyle: { color: 0x000000, thickness: 2 }, labelFormat: { size: 12, font: "_sans" }, bevelThickness: 1.5, bevelAlpha: 0.5, highlightColor: 0xffffff, shadowColor: 0x000000 }, upState: { bevelStyle: BevelStyle.BEVEL_RAISED }, overState: { bevelStyle: BevelStyle.BEVEL_RAISED }, downState: { bevelStyle: BevelStyle.BEVEL_LOWERED, labelFormat: { bold: true } } });
mergeStyles | () | method |
public static function mergeStyles(styles:Array):ButtonStyle
Merges two or more ButtonStyle objects. Styles are merged in order they come in the array, properties of styles with larger indices in the array overriding values that came earlier.
Parametersstyles:Array — An array of ButtonStyle objects to merge.
|
ButtonStyle |
setAllStates | () | method |
public function setAllStates(shared:ButtonFaceStyle):void
Specified a set of bevel style properties for all button states. This method supplements each of the state styles with the values from the ButtonFaceStyle passed as the parameter.
Parametersshared:ButtonFaceStyle — Set of ButtonFaceStyle properties to share
among all states of the button.
|
toString | () | method |
public function toString():String
toString method.
ReturnsString — String representation of the style.
|