MovieClip |
com.Components.ListHeader |
| com. | |
| 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 | |
| SetListItemRenderer | set a new itemrenderere |
| SetLineStyle | Sets a new linestyle for the dividers in the header |
| SetListSize | creates a point object with the new height and width, runs layout if needed |
| SetListItem | adds a list item to the list and draws if forced |
| Layout | Draws the ListHeader |
| RendererRollOver | rollovers |
| RendererRollOut | rollouts |
| SortItems | updates the visuals, toggles the sortordering and dispatches a signal |
public function SetListSize( height: Number, width: Number, forceLayout: Boolean )
creates a point object with the new height and width, runs layout if needed
| height | :Number - the new height |
| width | :Number - the new width |
| forceLayout | :Boolean - wether to forvce redraw with the new dimensions |
public function SetListItem( text: String, id: Number, width, forceLayout: Boolean )
adds a list item to the list and draws if forced
| 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 |
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()
set a new itemrenderere
public function SetListItemRenderer( newRenderer: String )
Sets a new linestyle for the dividers in the header
public function SetLineStyle( thickness: Number, color: Number )
creates a point object with the new height and width, runs layout if needed
public function SetListSize( height: Number, width: Number, forceLayout: Boolean )
adds a list item to the list and draws if forced
public function SetListItem( text: String, id: Number, width, forceLayout: Boolean )
Draws the ListHeader
public function Layout()
rollovers
private function RendererRollOver( index: Number )
rollouts
private function RendererRollOut( index: Number )
updates the visuals, toggles the sortordering and dispatches a signal
private function SortItems( index )