Main Page | Packages | Class Tree | Index | Help

xp.controls

class PanelGrid

MovieClip
  |
  +--xp.system.UIControl
        |
        +--xp.controls.PanelGrid

Implemented Interfaces: IBorder

class PanelGrid
extends UIControl

Grid arrangement of Panels


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public static
classInfo: Object
A static class information object

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

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
altBackground: Object (read, write)
The alternating cell color

public
cellSpacing: Number (read, write)


public
colWidths: String (read, write)
The column widths

public
gridBackground: Object (read, write)
The grid background

public
numRows: Number (read, write)


public
orientation: String (read, write)
Alternate cell color orientation

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
PanelGrid ( )
Constructor - This should not be called directly.


Method Summary

public
drawBackground ( control ): Void
Draw background

public
drawBackgroundState ( control ): Void
dont support state

public
drawBorder ( control ): Void
Build the table, empty it then add rows

public
drawFocus ( control, state ): Void
no focus support

public
drawShadow ( control ): Void
no shadow support

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

public
initBorder ( control ): Void
Initialise border elements

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

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.

styleClass

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


Property Documentation

altBackground

public altBackground: Object (read, write)
The alternating cell color

cellSpacing

public cellSpacing: Number (read, write)

colWidths

public colWidths: String (read, write)
The column widths

A csv string of column widths.
Column width can be pixel width or percentage widths or * for fill.

gridBackground

public gridBackground: Object (read, write)
The grid background

numRows

public numRows: Number (read, write)

orientation

public orientation: String (read, write)
Alternate cell color orientation

Control the alternating cell color orientation


Constructor Documentation

PanelGrid

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

If you want to dynamically create a new instance of a control use its static newInstance method


Method Documentation

drawBackground

public function drawBackground(control): Void
Draw background

part of the IBorder interface

Specified by:

Parameters:
control
The control to draw the background for

drawBackgroundState

public function drawBackgroundState(control): Void
dont support state

Specified by:

Parameters:
control
The control to draw the background for

drawBorder

public function drawBorder(control): Void
Build the table, empty it then add rows

Specified by:

Overrides:

Parameters:
control
The control to draw the border for

drawFocus

public function drawFocus(control,
 state): Void
no focus support

Specified by:

Overrides:

Parameters:
control
The control to draw the focus for
state
True for focused false otherwise

drawShadow

public function drawShadow(control): Void
no shadow support

Specified by:

Parameters:
control
The control to draw the shadow for

getClass

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

Overrides:

initBorder

public function initBorder(control): Void
Initialise border elements

part of the IBorder interface

Specified by:

Parameters:
control
The control to initialise

The documentation was generated from the following file:


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