View comments | RSS feed
Methods | Properties | Effects | Events | Styles | Examples Frames | No Frames

mx.controls
Class TileList

Inheritance ImageInheritance ImageInheritance ImageInheritance ImageInheritance ImageInheritance Image


class TileList
extends mx.controls.listclasses.ItemList

The TileList control displays a number of items laid out in tiles. It usually contains a scroll bar on one of its axes to access all items in the list depending on the direction. The user can select one or more items from the list depending on the value of the multipleSelection property.

MXML Syntax

The <mx:TileList> tag inherits all the properties of its parent classes, and also implements the following properties:

 <mx:TileList
alternatingItemColors="No default."
change="Event handler; no default."
rollOverColor="No default."
selectionColor="No default."
selectionEasing="No default."
textRollOverColor="0x2B333C"
textSelectedColor="0x05F33"
direction="horizontal|vertical"
rowCount="4"
columnCount="4"
vScrollPolicy="auto|on|off"
/>

Click here to view the Examples

Methods

Methods inherited from class mx.controls.listclasses.ItemScrollSelectList
addItem   addItemAt   configureScrolling   createChildren   draw   getItemAt   hideDropFeedback   isSelected   layoutChildren   measure   removeAll   removeItemAt   replaceItemAt   resetScrollPositions   setPropertiesAt   setSampleDimensions   showDropFeedback   sortItems   sortItemsBy  

Methods inherited from class mx.core.ScrollView
childLoaded   createChildren   createChildWithStyles   getViewMetrics   init   layoutChildren   setScrollProperties  

Methods inherited from class mx.core.View
childLoaded   constructObject2   createChild   createChildren   destroyAllChildren   destroyChild   destroyChildAt   draw   getBorderMetrics   getChildAt   getChildIndex   getViewMetrics   init   layoutChildren   layoutChrome   setChildIndex  

Methods inherited from class mx.core.UIComponent
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

Methods inherited from class mx.core.UIObject
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



Properties
       columnCount: Number
The number of columns displayed in a TileList control.
       direction: String
Specifies the direction in which the tile wrap.
       hScrollPolicy: String
Whether the horizontal scroll bar is always on, always off, or automatically changes based on the parameters passed to the setScrollProperties() method.
       itemHeight: Number
The height of each item.
       itemWidth: Number
The width of each item.
       rowCount: Number
The number of rows displayed in a TileList control.
staticversion: String
Version string for this class.
       vScrollPolicy: String
Whether the horizontal scroll bar is always on, always off, or automatically changes based on the parameters passed to the setScrollProperties() method.

Properties inherited from class mx.controls.listclasses.ItemScrollSelectList
cellRenderer   dataProvider   dataTipField   dataTipFunction   dragEnabled   dropIndicatorSkin   iconField   iconFunction   itemInteriorDimension   itemRenderer   labelField   labelFunction   layout   multipleSelection   sampleItem   selectable   selectedIndex   selectedIndices   selectedItem   selectedItems   showDataTips   value   verticalAlign   visibleItemCount  

Properties inherited from class mx.core.ScrollView
className   hPosition   hScrollPolicy   liveScrolling   maxHPosition   maxVPosition   scrollTipFunction   showScrollTips   version   vPosition   vScrollPolicy  

Properties inherited from class mx.core.View
baselinePosition   className   numChildren   version  

Properties inherited from class mx.core.UIComponent
enabled   errorString   tabEnabled   tabIndex   version  

Properties inherited from class mx.core.UIObject
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



Effects

Effects inherited from class mx.core.UIComponent
focusInEffect   focusOutEffect  

Effects inherited from class mx.core.UIObject
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



Events

Events inherited from class: mx.controls.listclasses.ItemScrollSelectList
change  itemRollOut  itemRollOver 

Events inherited from class: mx.core.ScrollView
scroll 

Events inherited from class: mx.core.View
childCreated  childDestroyed  childIndexChanged 

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

Events inherited from class: mx.core.UIObject
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



Styles

Styles inherited from class mx.controls.listclasses.ItemList
alternatingItemColors   rollOverColor   selectionColor   selectionDisabledColor   selectionDuration   selectionEasing   textRollOverColor   textSelectedColor   useRollOver  

Styles inherited from class mx.core.UIComponent
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

Styles inherited from class mx.core.UIObject
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



Property Detail

columnCount

columnCount: Number  

The number of columns displayed in a TileList control. This can be set explicitly or will be computed by the TileList control based on the values of the width and itemWidth properties.


direction

direction: String  

Specifies the direction in which the tile wrap. Value is vertical. where subsequent items go down and then right, or horizontal, where subsequent items go right and then down.
      Vertical               Horizontal
-------- ----------
1 3 1 2
2 4 3 4


hScrollPolicy

hScrollPolicy: String  

Whether the horizontal scroll bar is always on, always off, or automatically changes based on the parameters passed to the setScrollProperties() method. Allowed values are on, off, auto. The default value is off.


itemHeight

itemHeight: Number  

The height of each item. The list does not resize items automatically. It determines item size based on the values of the itemWidth and itemHeight properties.


itemWidth

itemWidth: Number  

The width of each item. The list does not resize items automatically. It determines item size based on the values of the itemWidth and itemHeight properties.


rowCount

rowCount: Number  

The number of rows displayed in a TileList control. This can be set explicitly or is computed by the TileList control based on the the values of the height itemHeight properties.


version

static  version: String  

Version string for this class.


vScrollPolicy

vScrollPolicy: String  

Whether the horizontal scroll bar is always on, always off, or automatically changes based on the parameters passed to the setScrollProperties() method. Allowed values are on, off, auto. The default value is auto.


Examples
TileListExample.mxml
<?xml version="1.0"?>

<!-- Simple example to demonstrate the TileList Control -->

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" height="100%" backgroundColor="#FFFFFF">

    <mx:Script>
        <![CDATA[
             
          [Embed(source="FlexLogo.gif")]
          var iconSymbol1:String;
             
          [Embed(source="shockwave.gif")]
          var iconSymbol2:String;
             
          [Embed(source="breeze.png")]
          var iconSymbol3:String;
		
	  [Embed(source="flash.png")]
          var iconSymbol4:String;

    ]]>
    </mx:Script>

    <mx:Panel title="Tile List Panel" marginTop="10" height="100%">

        <mx:TileList id="SoftwareSelection"  height="100%" itemWidth="150" rowCount="2" columnCount="2">

            <mx:dataProvider>
                <mx:Array>
                    <mx:Object label="Macromedia Flex" icon="{ iconSymbol1 }"/>
                    <mx:Object label="Macromedia Shockwave" icon="{ iconSymbol2 }"/>
                    <mx:Object label="Macromedia Breeze" icon="{ iconSymbol3 }"/>
                    <mx:Object label="Macromedia Flash" icon="{ iconSymbol4 }"/>
                </mx:Array>
            </mx:dataProvider>

        </mx:TileList>

    </mx:Panel>

</mx:Application>
       




Comments


Krxtopher said on Sep 27, 2005 at 5:27 PM :
Although not documented here, the TileList supports the getDropLocation()
method for use with drag-drop interactions. This method returns the index
number at which the item(s) were dropped

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/TileList.html