Main Page | Packages | Class Tree | Index | Help

xp.controls

class RowPanel

MovieClip
  |
  +--xp.system.UIControl
        |
        +--xp.controls.Container
              |
              +--xp.controls.RowPanel

All Known Subclasses: RowEditor, RowHeaderPanel

class RowPanel
extends Container

A container that lays out cells in a horizontal row as specifed by an array of columns

Cell components arranged in a horizontal row according to a set of column widths, and updates itself to reflect selected or highlighted states and can draw a grid cell around each child


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
cells: Array
The array of cells

public static
classInfo: Object
A static class information object

public
columns: Array
An array of column objects

public
indent: Number
This rows indent value

public
indicator: Object
reference to the indicator column

public
indicatorWidth: Number
Width of the indicator column

public
isEditing: Boolean
is this row being edited*

public
isInserting: Boolean
is this row being inserted*

public
selectMode: String
Controls whether the row or a cell is selected*

public
showItemIndex: Boolean
Controls whether the indicator show the item index

public
styleClass: String
The name of the style class this instance will use.

Fields inherited from class xp.controls.Container

__showStatusBar, __showTitleBar, acceptButton, cancelButton, children, classInfo, controlBar, controls, dataSource, enableBGMouseEvents, initialFocusControl, isRoot, lastFocus, layoutDescriptor, layoutId, layoutManager, rootContainer, styleClass, symbolId, tabList, tabModeWrap

Fields inherited from class xp.system.UIControl

__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment

Property Summary

public
hPosition: Number (read, write)
Hozizontal scroll position of the contents

public
itemIndex: Number (read, write)
This rows itemIndex

Properties inherited from class xp.controls.Container

childCount, footerHeight, headerHeight, innerBackground, innerBackgroundVisible, innerBorderBrush, innerBorderRadius, innerBorderStyle, innerBorderThickness, numChildren, showStatusBar, showTitleBar, status, title

Properties inherited from class xp.system.UIControl

alpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y

Constructor

public
RowPanel ( )
Constructor - This should not be called directly.


Method Summary

public
addCells ( )
Adds a cell to the row for each column in the columns array.

public
getCell ( index: Number ): Object
Returns the cell object at the specified index

public
getCellCount ( ): Number
The number of cells in this row

public
getClass ( ): Function
Returns a reference to the components static class

public
internalMeasure ( ): Void
The preferred size of the component

public
resizeColumns ( rowWidth: Number ): Void
Resizes all columns in the row

public
setDataContext ( data: Object, context: Object ): Void
Updates a containers data context information

public
updateIndicatorState ( ): Void
Update the inidcator state

Methods inherited from class xp.controls.Container

addChild, addChildren, addControlBar, clearAll, createChild, destroyChildAt, getChild, getChildAt, getChildFromMouse, getClass, getFooterHeight, getHeaderHeight, getNextControl, getUIBuilder, getViewMetrics, initLayoutManager, onChildFocus, processEnterKey, processEscapeKey, registerChild, selectNextControl, setDataContext, setFocus, setMeasuredMinSize, setMeasuredSize, unregisterChild

Methods inherited from class xp.system.UIControl

addBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate



Field Documentation

cells

public var cells: Array
The array of cells

classInfo

public static var classInfo: Object
A static class information object

Every class has an associated classInfo object that holds the version and other static information. The classInfo can be accessed either directly by referencing the static class or by calling getClass() on any class instance.

columns

public var columns: Array
An array of column objects

indent

public var indent: Number
This rows indent value

indicator

public var indicator: Object
reference to the indicator column

indicatorWidth

public var indicatorWidth: Number
Width of the indicator column

isEditing

public var isEditing: Boolean
is this row being edited*

isInserting

public var isInserting: Boolean
is this row being inserted*

selectMode

public var selectMode: String
Controls whether the row or a cell is selected*

showItemIndex

public var showItemIndex: Boolean
Controls whether the indicator show the item index

styleClass

public var styleClass: String
The name of the style class this instance will use.


Property Documentation

hPosition

public hPosition: Number (read, write)
Hozizontal scroll position of the contents

itemIndex

public itemIndex: Number (read, write)
This rows itemIndex


Constructor Documentation

RowPanel

public function RowPanel()
Constructor - This should not be called directly.

RowPanel are usually instantiated by an items control


Method Documentation

addCells

public function addCells()
Adds a cell to the row for each column in the columns array.

Adds cells to match the number of columns to this row panel.

getCell

public function getCell(index: Number): Object
Returns the cell object at the specified index

Returns:
The specified cell

getCellCount

public function getCellCount(): Number
The number of cells in this row

getClass

public function getClass(): Function
Returns a reference to the components static class

Overrides:

internalMeasure

public function internalMeasure(): Void
The preferred size of the component

This forces the component to calculate its current preferred size. It does not update the preferredSize property. Override to call layoutManager returns a Dimension obejct See preferrredSize property for the cached size

Overrides:

resizeColumns

public function resizeColumns(rowWidth: Number): Void
Resizes all columns in the row

ItemsControl when the column widths or row width changes

setDataContext

public function setDataContext(data: Object,
 context: Object): Void
Updates a containers data context information

Overrides:

updateIndicatorState

public function updateIndicatorState(): Void
Update the inidcator state


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc