com.Components.ListHeader

MovieClip
com.Components.ListHeader
Summary
com.Components.ListHeader
Variables
m_ListItems
m_ListSize
m_CurrentSize
m_ListItemRenderer
m_Background
SORTORDER_NONE
SORTORDER_ASC
SORTORDER_DESC
m_SelectedColor
m_OverColor
m_LineColor
m_LineThickness
SignalClicked
Functions
ListHeader
SetListItemRendererset a new itemrenderere
SetLineStyleSets a new linestyle for the dividers in the header
SetListSizecreates a point object with the new height and width, runs layout if needed
SetListItemadds a list item to the list and draws if forced
LayoutDraws the ListHeader
RendererRollOverrollovers
RendererRollOutrollouts
SortItemsupdates the visuals, toggles the sortordering and dispatches a signal

Variables

m_ListItems

private var m_ListItems: Array

m_ListSize

private var m_ListSize: Point

m_CurrentSize

private var m_CurrentSize: Point

m_ListItemRenderer

private var m_ListItemRenderer: String

m_Background

public var m_Background: MovieClip

SORTORDER_NONE

public static var SORTORDER_NONE: Number

SORTORDER_ASC

public static var SORTORDER_ASC: Number

SORTORDER_DESC

public static var SORTORDER_DESC: Number

m_SelectedColor

private var m_SelectedColor: Number

m_OverColor

private var m_OverColor: Number

m_LineColor

private var m_LineColor: Number

m_LineThickness

private var m_LineThickness: Number

SignalClicked

public var SignalClicked: Signal

Functions

ListHeader

public function ListHeader()

SetListItemRenderer

public function SetListItemRenderer(newRenderer: String)

set a new itemrenderere

Parameters

newRenderer:String - tghe name of the list item to use

SetLineStyle

public function SetLineStyle(thickness: Number,
color: Number)

Sets a new linestyle for the dividers in the header

Parameters

thickness:Number - thickness of line in pixels
color:Number - the new linecolor

SetListSize

public function SetListSize(height: Number,
width: Number,
forceLayout: Boolean)

creates a point object with the new height and width, runs layout if needed

Parameters

height:Number - the new height
width:Number - the new width
forceLayout:Boolean - wether to forvce redraw with the new dimensions

SetListItem

public function SetListItem(text: String,
id: Number,
width, 
forceLayout: Boolean)

adds a list item to the list and draws if forced

Parameters

param text - name of item
param id - id, easier to find, being dispatched when clicking the item
param width - the width of the item
param forceLayout - draw immediately

Layout

public function Layout()

Draws the ListHeader

RendererRollOver

private function RendererRollOver(index: Number)

rollovers

RendererRollOut

private function RendererRollOut(index: Number)

rollouts

SortItems

private function SortItems(index)

updates the visuals, toggles the sortordering and dispatches a signal

private var m_ListItems: Array
private var m_ListSize: Point
private var m_CurrentSize: Point
private var m_ListItemRenderer: String
public var m_Background: MovieClip
public static var SORTORDER_NONE: Number
public static var SORTORDER_ASC: Number
public static var SORTORDER_DESC: Number
private var m_SelectedColor: Number
private var m_OverColor: Number
private var m_LineColor: Number
private var m_LineThickness: Number
public var SignalClicked: Signal
public function ListHeader()
public function SetListItemRenderer(newRenderer: String)
set a new itemrenderere
public function SetLineStyle(thickness: Number,
color: Number)
Sets a new linestyle for the dividers in the header
public function SetListSize(height: Number,
width: Number,
forceLayout: Boolean)
creates a point object with the new height and width, runs layout if needed
public function SetListItem(text: String,
id: Number,
width, 
forceLayout: Boolean)
adds a list item to the list and draws if forced
public function Layout()
Draws the ListHeader
private function RendererRollOver(index: Number)
rollovers
private function RendererRollOut(index: Number)
rollouts
private function SortItems(index)
updates the visuals, toggles the sortordering and dispatches a signal
Close