Packagega.model
Classpublic class PanelItem
Implements IPanelItem, IFocusManagerComponent

A panel item acts as both a place holder in the panel layout and as a run-time component that binds to the form model.

The PanelItem class extends the <mx:PanelItemBase> class (itself based on the <mx:FormItem> class) so that it will inherit the appropriate label and alignment capabilities.

MXML SyntaxexpandedHide MXML Syntax

The properties for PanelItem when acting as a placeholder slot in a panel layout:

      <ga:PanelItem
       Properties 
       repeatItemLimit="-1 to n" 
       itemInstancesPerCycle="-1 to n" 
       repeatParent="parentName" 
       repeatLimit="-1 to n" 
       parentInstancesPerCycle="-1 to n"
       slotIndex="-1 to n"
       >
       

The properties for PanelItem when acting as a the run-time component slotted into a panel layout. These are in addition to the properties inherited from <mx:FormItem>.

      <ga:PanelItem
       Properties 
       caption="" 
       captionWidth="" 
       captionAfter="" 
       toolTip="" 
       helpText="" 
       speak="" 
       dataRef=""
       exclusions="[ '', '', '']"
       commitEvent="change|valueCommit|click|.."
       commitEventProperty="newDate|.."
       commitProperty="text|value|selectedItem|.."
       commitTarget="rawValue|formattedValue|selectedItem|.."
       >
       


Public Properties
 PropertyDefined By
  boundData : Object
The form object in the model that is bound to this panel item.
PanelItem
  boundName : String
[read-only] The text of the bound form object.
PanelItem
  boundText : String
[-only] The text of the bound form object.
PanelItem
  boundValue : Object
[-only] The value of the bound form object.
PanelItem
  caption : String
The caption for the field.
PanelItem
  captionAfter : String
The caption to appear following the field.
PanelItem
  captionPosition : String = "left"
Indicates the caption position, either to the left or right of the control.
PanelItem
  captionWidth : Number
The width of the caption for the field.
PanelItem
  commitEvent : String
[write-only] The name of the event that is fired when the value is to be committed to the model.
PanelItem
  commitEventProperty : String
[write-only] The name of the property in the event object that is committed as the value to the model.
PanelItem
  commitProperty : String
[write-only] The name of the property of the UI object that is commited as the value to the model.
PanelItem
  commitTarget : String
[write-only] The property name in the model that is updated when the value is committed.
PanelItem
  dataRef : String
The reference to the data to which the component is bound.
PanelItem
  editable : Boolean
Specifies whether the UI control is editable.
PanelItem
  exclusions : Array
An array of property names to ignore when model change event occurs.
PanelItem
  itemInstancesPerCycle : Number = 0
The number of instances of a panel item that are filled per repeating cycle.
PanelItem
  parentInstancesPerCycle : Number = 0
The number of instances of the parent container filled per cycle.
PanelItem
  readOnly : Boolean
The read only attribute for the field.
PanelItem
  repeatItemLimit : Number = 0
The number of times an item can repeat.
PanelItem
  repeatParent : String = "null"
The name of the parent to be repeated when Panel Items in the container have been processed.
PanelItem
  repeatParentLimit : Number = 0
The maximum number of instances that a parent container can repeat.
PanelItem
  slotIndex : Number = -1
The index of the array of components to be slotted into the panel layout.
PanelItem
  speak : String
The screen reader or accessibility text for the field.
PanelItem
Public Methods
 MethodDefined By
  
PanelItem
  
Commits the current UI value to the model.
PanelItem
  
Returns the fixed caption width.
PanelItem
  
The created UI control that is the child of this panel item.
PanelItem
Property Detail
boundDataproperty
boundData:Object  [read-write]

The form object in the model that is bound to this panel item.


Implementation
    public function get boundData():Object
    public function set boundData(value:Object):void
boundNameproperty 
boundName:String  [read-only]

The text of the bound form object.


Implementation
    public function get boundName():String
boundTextproperty 
public var boundText:String

The text of the bound form object.

This property can be used as the source for data binding.

boundValueproperty 
public var boundValue:Object

The value of the bound form object.

This property can be used as the source for data binding.

captionproperty 
caption:String  [read-write]

The caption for the field.

If not specified, this value binds to the caption specified in the form model. If no caption is specified in the model, then the default label specified in the LayoutTemplate is used.


Implementation
    public function get caption():String
    public function set caption(value:String):void
captionAfterproperty 
captionAfter:String  [read-write]

The caption to appear following the field.


Implementation
    public function get captionAfter():String
    public function set captionAfter(value:String):void
captionPositionproperty 
public var captionPosition:String = "left"

Indicates the caption position, either to the left or right of the control.

captionWidthproperty 
captionWidth:Number  [read-write]

The width of the caption for the field.

If specified, the caption uses the <mx:Text> object and wrapping instead of the default label proccessing.


Implementation
    public function get captionWidth():Number
    public function set captionWidth(value:Number):void
commitEventproperty 
commitEvent:String  [write-only]

The name of the event that is fired when the value is to be committed to the model.

The default values are:


Implementation
    public function set commitEvent(value:String):void
commitEventPropertyproperty 
commitEventProperty:String  [write-only]

The name of the property in the event object that is committed as the value to the model. If not set, the value of this method defaults to the value of commitProperty.

The default value is:


Implementation
    public function set commitEventProperty(value:String):void
commitPropertyproperty 
commitProperty:String  [write-only]

The name of the property of the UI object that is commited as the value to the model. It is also the property which is updated in the UI object when the commitTarget property in the model changes.

The default values are:


Implementation
    public function set commitProperty(value:String):void
commitTargetproperty 
commitTarget:String  [write-only]

The property name in the model that is updated when the value is committed.

The default values are:


Implementation
    public function set commitTarget(value:String):void
dataRefproperty 
dataRef:String  [read-write]

The reference to the data to which the component is bound.


Implementation
    public function get dataRef():String
    public function set dataRef(value:String):void
editableproperty 
editable:Boolean  [read-write]

Specifies whether the UI control is editable.


Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
exclusionsproperty 
exclusions:Array  [read-write]

An array of property names to ignore when model change event occurs. The possible values are:


Implementation
    public function get exclusions():Array
    public function set exclusions(value:Array):void
itemInstancesPerCycleproperty 
public var itemInstancesPerCycle:Number = 0

The number of instances of a panel item that are filled per repeating cycle. The possible values are:

parentInstancesPerCycleproperty 
public var parentInstancesPerCycle:Number = 0

The number of instances of the parent container filled per cycle. The possible values are:

readOnlyproperty 
readOnly:Boolean  [read-write]

The read only attribute for the field.


Implementation
    public function get readOnly():Boolean
    public function set readOnly(value:Boolean):void
repeatItemLimitproperty 
public var repeatItemLimit:Number = 0

The number of times an item can repeat. The possible values are:

repeatParentproperty 
public var repeatParent:String = "null"

The name of the parent to be repeated when Panel Items in the container have been processed. The default value is the parent container of the current item.

repeatParentLimitproperty 
public var repeatParentLimit:Number = 0

The maximum number of instances that a parent container can repeat. The possible values are:

slotIndexproperty 
public var slotIndex:Number = -1

The index of the array of components to be slotted into the panel layout.

The index value is zero-based and is relative to the index value of the starting component of the current cycle.

speakproperty 
speak:String  [read-write]

The screen reader or accessibility text for the field.


Implementation
    public function get speak():String
    public function set speak(value:String):void
Constructor Detail
PanelItem()Constructor
public function PanelItem()
Method Detail
commitValue()method
public function commitValue():void

Commits the current UI value to the model.

getCaptionWidth()method 
public function getCaptionWidth():Number

Returns the fixed caption width. This is useful in situations where you are using grid headings.

Note: This method does not return the calculated width.

Returns
Number
getCreatedItemComponent()method 
public function getCreatedItemComponent():IFlexDisplayObject

The created UI control that is the child of this panel item.

Returns
IFlexDisplayObject




 

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

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/ga/model/PanelItem.html