org.silex.toolbox.Players

org.silex.toolbox.Players

Players toolbox

Summary
org.silex.toolbox.PlayersPlayers toolbox
Variables
REFRESH_INTERVAL_MS
playerListener_obj
intervalIdx
Functions
PlayersConstructor.
onUnload
allToolsLoaded
togglePlayerSelection
deleteSelection
deleteSelectionCbkFunction
onLoad
iconFunction
refreshCheck the player list by the getSelectedContent method of layers toolbox.
getSelectedContentFunction used to retrieve the selected layers.
changeEvent function called by change tree component.
selectFunction select.
deselectempty the selection.
invertInvert selection.
showshow selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item
hidehide selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with false for each item
soloshow only selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item and with false for the others
editedit the selected layer (one layer at a time) (set all players setEditable method with true)
uppush up z order decrease the selectedItemIndex
downpush down z order increase the selectedItemIndex
toToppush to top set to 0 the selectedItemIndex
toBottompush to bottom set to list.lenght the selectedItemIndex

Variables

REFRESH_INTERVAL_MS

static var REFRESH_INTERVAL_MS: Number

playerListener_obj

var playerListener_obj: Object

intervalIdx

var intervalIdx: Number

Functions

Players

public function Players()

Constructor.  Add a listener on change event of toolbox layers and call this onLoad method.  Init UI buttons.

onUnload

function onUnload()

allToolsLoaded

function allToolsLoaded ()

togglePlayerSelection

function togglePlayerSelection(evt: Object)

deleteSelection

function deleteSelection()

deleteSelectionCbkFunction

function deleteSelectionCbkFunction(confirm_bool: Boolean)

onLoad

public function onLoad()

iconFunction

function iconFunction(item: Object)

refresh

public function refresh(doDispatch: Boolean)

Check the player list by the getSelectedContent method of layers toolbox.  Defined the change event for the list.

getSelectedContent

public function getSelectedContent():Array

Function used to retrieve the selected layers.

change

public function change(evt_obj: Object):Void

Event function called by change tree component.  Dispatch event in toolbox players.

select

public function select():Void

Function select.  Not specified in wiki

deselect

public function deselect():Void

empty the selection.  Deselect the items selected.

invert

public function invert():Void

Invert selection.  Deselect item selected and select item deselected

show

public function show(idx: Number):Void

show selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item

hide

public function hide(idx: Number):Void

hide selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with false for each item

solo

public function solo():Void

show only selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item and with false for the others

edit

public function edit():Void

edit the selected layer (one layer at a time) (set all players setEditable method with true)

up

public function up():Void

push up z order decrease the selectedItemIndex

down

public function down():Void

push down z order increase the selectedItemIndex

toTop

public function toTop():Void

push to top set to 0 the selectedItemIndex

toBottom

public function toBottom():Void

push to bottom set to list.lenght the selectedItemIndex

A toolbox base
static var REFRESH_INTERVAL_MS: Number
var playerListener_obj: Object
var intervalIdx: Number
public function Players()
Constructor.
function onUnload()
function allToolsLoaded ()
function togglePlayerSelection(evt: Object)
function deleteSelection()
function deleteSelectionCbkFunction(confirm_bool: Boolean)
public function onLoad()
function iconFunction(item: Object)
public function refresh(doDispatch: Boolean)
Check the player list by the getSelectedContent method of layers toolbox.
public function getSelectedContent():Array
Function used to retrieve the selected layers.
public function change(evt_obj: Object):Void
Event function called by change tree component.
public function select():Void
Function select.
public function deselect():Void
empty the selection.
public function invert():Void
Invert selection.
public function show(idx: Number):Void
show selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item
public function hide(idx: Number):Void
hide selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with false for each item
public function solo():Void
show only selected players (use player::setVisible method) Check list.selectedItems and call the setVisible method with true for each item and with false for the others
public function edit():Void
edit the selected layer (one layer at a time) (set all players setEditable method with true)
public function up():Void
push up z order decrease the selectedItemIndex
public function down():Void
push down z order increase the selectedItemIndex
public function toTop():Void
push to top set to 0 the selectedItemIndex
public function toBottom():Void
push to bottom set to list.lenght the selectedItemIndex