Adobe® Flash® Platform 用 ActionScript® 3.0 リファレンスガイド
ホーム  |  パッケージおよびクラスリストの非表示 |  パッケージ  |  クラス  |  新機能  |  索引  |  付録  |  英語で表示される理由
フィルター: AIR 30.0 以前, Flash Player 30.0 以前, Flash Lite 4
Flex 4.6 以前, Flash Pro CS6 以前
フィルターを非表示
spark.components.gridClasses 

GridColumn  - AS3 Flex

パッケージx

トップレベル
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

言語エレメント

グローバル定数
グローバル関数
演算子
ステートメント、キーワード、ディレクティブ
特殊な型

付録

新機能
コンパイルエラー
コンパイラー警告
ランタイムエラー
ActionScript 3 への移行
サポートされている文字セット
MXML のみのタグ
モーション XML エレメント
Timed Text タグ
使用されなくなったエレメントのリスト
Accessibility Implementation 定数
ActionScript の例の使用方法
法律上の注意
パッケージspark.components.gridClasses
クラスpublic class GridColumn
継承GridColumn Inheritance EventDispatcher Inheritance Object

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

GridColumn クラスは、Spark DataGrid または Grid コントロールなどの Spark グリッドコントロールの列を定義します。コントロールの各データプロバイダーアイテムは、グリッドの 1 行に対応します。 GridColumn クラスは、列に値が表示されるデータプロバイダーアイテムのフィールドを指定します。 また、このクラスでは、その値を表示するために使用されるアイテムレンダラー、値を変更するために使用されるアイテムエディター、および列の他のプロパティも指定します。

MXML シンタックスexpandedMXML シンタックスを隠す

The <s:GridColumn> tag inherits all of the tag attributes of its superclass and adds the following tag attributes:

  <s:GridColumn
    Properties
    dataField="null"
    dataTipField="null"
    dataTipFormatter="null"
    dataTipFunction="null"
    editable="true"
    formatter="null"
    headerRenderer="null"
    headerText="value of dataField"
    imeMode="null"
    itemEditor="null"
    itemRenderer="null"
    itemRendererFunction="null"
    labelFunction="null"
    maxWidth="NaN"
    minWidth="20"
    rendererIsEditable="false"
    resizeable="true"
    showDataTips="undefined"
    sortable="true"
    sortCompareFunction="null"
    sortDescending="false"
    visible="true"
    width="NaN"
  />
  

例を表示

関連する API エレメント



パブリックプロパティ
 プロパティ定義元
  columnIndex : int
[読み取り専用] グリッドの列リストにおけるこの列の場所、またはこの列のグリッドが null である場合は -1 です。
GridColumn
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクター関数への参照です。
Object
  dataField : String
列に関連付けられているデータプロバイダーアイテム内のフィールドまたはプロパティの名前です。
GridColumn
  dataTipField : String
データヒントとして表示するデータプロバイダー内のフィールドの名前です。
GridColumn
  dataTipFormatter : IFormatter
データプロバイダーアイテムをストリングに変換するために、列の itemToDataTip() メソッドで使用されるフォーマッターを指定します。
GridColumn
  dataTipFunction : Function
データヒントを決定するためにデータプロバイダーの各アイテムで実行するコールバック関数を指定します。
GridColumn
  editable : Boolean
列のアイテムが編集可能かどうかを示します。
GridColumn
  formatter : IFormatter
データプロバイダーアイテムをストリングに変換するために、列の itemToLabel() メソッドで使用されるフォーマッターを指定します。
GridColumn
  grid : Grid
[読み取り専用] この列に関連付けられている Grid オブジェクトです。
GridColumn
  headerRenderer : IFactory
この列のヘッダーとして使用される IGridItemRenderer クラスのクラスファクトリです。
GridColumn
  headerText : String
この列のヘッダーのテキストです。
GridColumn
  imeMode : String
IME(入力メソッドエディター)のモードを指定します。
GridColumn
  itemEditor : IFactory
この列の個々のグリッドセルを編集するために使用される IGridItemEditor クラスのクラスファクトリです。
GridColumn
  itemRenderer : IFactory
個々のグリッドセルをレンダリングするために使用される IGridItemRenderer クラスのクラスファクトリです。
GridColumn
  itemRendererFunction : Function
指定する場合、このプロパティの値は、データプロバイダーアイテムおよび列パラメーターに基づいてアイテムレンダラーの IFactory を返す冪等関数にする必要があります。
GridColumn
  labelFunction : Function
データプロバイダーアイテムを、アイテムレンダラーの label プロパティの初期化に使用される列固有のストリングに変換する冪等関数です。
GridColumn
  maxWidth : Number
この列の最大幅(ピクセル単位)です。
GridColumn
  minWidth : Number
この列の最小幅(ピクセル単位)です。
GridColumn
  rendererIsEditable : Boolean
アイテムレンダラーのコントロールのいずれかが編集可能かどうかを判別します。
GridColumn
  resizable : Boolean
列の幅をユーザーが変更できるかどうかを示します。
GridColumn
  showDataTips : *
列にデータヒントが表示されるかどうかを示します。
GridColumn
  sortable : Boolean
このプロパティが true の場合、グリッドのデータプロバイダーが ICollectionView の場合、および関連付けられているグリッドの sortableColumns プロパティが true の場合、この列ではインタラクティブソートがサポートされます。
GridColumn
  sortCompareFunction : Function
この列のデータエレメントに関してソートを実行するときに 2 つのエレメントを比較する関数です。
GridColumn
  sortDescending : Boolean
true の場合、この列は降順でソートされます。
GridColumn
  sortField : SortField
[読み取り専用] この列の dataField を基準にしてコレクションをソートするために使用できる SortField を返します。
GridColumn
  visible : Boolean
true の場合、この列を表示します。
GridColumn
  width : Number
この列の幅(ピクセル単位)です。
GridColumn
パブリックメソッド
 メソッド定義元
  
GridColumn(columnName:String = null)
コンストラクターです。
GridColumn
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventDispatcher オブジェクトに登録し、リスナーがイベントの通知を受け取るようにします。
EventDispatcher
 Inherited
イベントをイベントフローに送出します。
EventDispatcher
 Inherited
EventDispatcher オブジェクトに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。
EventDispatcher
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメーターとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
  
指定されたデータプロバイダーアイテムを列固有のデータヒントストリングに変換します。
GridColumn
  
指定されたデータプロバイダーアイテムを列固有のストリングに変換します。
GridColumn
  
指定されたデータプロバイダーアイテムを列固有のアイテムレンダラーファクトリに変換します。
GridColumn
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher オブジェクトからリスナーを削除します。
EventDispatcher
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
ロケール固有の規則に従って書式設定された、このオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
 Inherited
指定されたイベントタイプについて、この EventDispatcher オブジェクトまたはその祖先にイベントリスナーが登録されているかどうかを確認します。
EventDispatcher
イベント
 イベント 概要 定義元
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを取得して、アクティブになったときに送出されます。EventDispatcher
 Inherited[ブロードキャストイベント] Flash Player または AIR アプリケーションがオペレーティングシステムのフォーカスを失って、非アクティブになったときに送出されます。EventDispatcher
パブリック定数
 定数定義元
  ERROR_TEXT : String = "unknown"
[静的] 対応するプロパティ名(パス)の解決に失敗した場合の、itemToLabel() または itemToDataTip() メソッドの戻り値です。
GridColumn
プロパティの詳細

columnIndex

プロパティ
columnIndex:int  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

グリッドの列リストにおけるこの列の場所、またはこの列のグリッドが null である場合は -1 です。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 columnIndexChanged イベントが送出されます。



実装
    public function get columnIndex():int

dataField

プロパティ 
dataField:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

列に関連付けられているデータプロバイダーアイテム内のフィールドまたはプロパティの名前です。 各 GridColumn では、アイテムレンダラーで表示できるテキストを計算するために、このプロパティまたは labelFunction プロパティが設定されている必要があります。 dataField プロパティおよび labelFunction プロパティが設定されている場合、データは labelFunction を使用して表示され、dataField を使用してソートされます。

このプロパティのこの値は、必ずしも列ヘッダーに表示されるストリングであるとは限りません。 このプロパティは、データプロバイダーのデータにアクセスする目的でのみ使用します。 詳細については、headerText プロパティを参照してください。

列または列のグリッドで labelFunction が指定されている場合、dataField は使用されません。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 dataFieldChanged イベントが送出されます。



実装
    public function get dataField():String
    public function set dataField(value:String):void

関連する API エレメント

dataTipField

プロパティ 
dataTipField:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

データヒントとして表示するデータプロバイダー内のフィールドの名前です。 デフォルトでは、showDataTipstrue の場合、関連付けられているグリッドコントロールは、各データプロバイダーアイテムで label という名前のプロパティを検索して表示します。 ただし、データプロバイダーに label プロパティが存在しない場合は、dataTipField プロパティを設定して別のプロパティ名を指定できます。 例えば、データベースに含まれる一連の人物名がユーザーに表示される場合には、値を "FullName" に設定できます。

GridColumn.dataTipField はこのプロパティよりも優先されます。

この列または列のグリッドで dataTipFunction プロパティの値が指定されている場合、dataTipField プロパティは無視されます。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 dataTipFieldChanged イベントが送出されます。



実装
    public function get dataTipField():String
    public function set dataTipField(value:String):void

関連する API エレメント

dataTipFormatter

プロパティ 
dataTipFormatter:IFormatter

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

データプロバイダーアイテムをストリングに変換するために、列の itemToDataTip() メソッドで使用されるフォーマッターを指定します。

フォーマッターの styleParent が指定されなかった場合は列のグリッドに設定されて、グリッドの locale スタイルをフォーマッターが継承するようになります。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 dataTipFormatterChanged イベントが送出されます。



実装
    public function get dataTipFormatter():IFormatter
    public function set dataTipFormatter(value:IFormatter):void

関連する API エレメント

dataTipFunction

プロパティ 
dataTipFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

データヒントを決定するためにデータプロバイダーの各アイテムで実行するコールバック関数を指定します。 このプロパティは itemToDataTip メソッドで使用します。

デフォルトでは、showDataTipstrue の場合、各データプロバイダーアイテムで label という名前のプロパティが検索され、その値がデータヒントとして表示されます。ただし、データプロバイダーによっては、label プロパティが存在せず、また行にデータを表示するために使用できる別のプロパティも存在しない場合があります。

例えば、フルネームをデータヒントとして表示したい場合に、データプロバイダーに lastName フィールドと firstName フィールドが別々に存在しているケースが考えられます。このような場合は、両方のフィールドの値を単一のストリングとして返す関数を dataTipFunction プロパティに指定します。 また、フォーマットとローカライズを処理するために dataTipFunction プロパティを使用することもできます。

dataTipFunction 関数の署名は、次と一致する必要があります。

dataTipFunction(item:Object, column:GridColumn):String
item パラメーターは、行全体に対するデータプロバイダーアイテムです。 2 つ目のパラメーターはこの列オブジェクトです。

通常の関数は、アイテムの firstName および lastName プロパティを連結するか、Date 値のプロパティに対してカスタム書式を適用します。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 dataTipFunctionChanged イベントが送出されます。



実装
    public function get dataTipFunction():Function
    public function set dataTipFunction(value:Function):void

関連する API エレメント

editable

プロパティ 
editable:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

列のアイテムが編集可能かどうかを示します。このプロパティが true で、関連付けられているグリッドの editable プロパティも true であれば、列内のアイテムは編集可能です。選択したアイテムをクリックするか、アイテムに移動して F2 キーを押すことにより、アイテムを個別に編集できます。

デフォルト値: true。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 editableChanged イベントが送出されます。



実装
    public function get editable():Boolean
    public function set editable(value:Boolean):void

formatter

プロパティ 
formatter:IFormatter

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

データプロバイダーアイテムをストリングに変換するために、列の itemToLabel() メソッドで使用されるフォーマッターを指定します。

フォーマッターの styleParent が指定されなかった場合は列のグリッドに設定されて、グリッドの locale スタイルをフォーマッターが継承するようになります。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 formatterChanged イベントが送出されます。



実装
    public function get formatter():IFormatter
    public function set formatter(value:IFormatter):void

関連する API エレメント

grid

プロパティ 
grid:Grid  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列に関連付けられている Grid オブジェクトです。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 gridChanged イベントが送出されます。



実装
    public function get grid():Grid

headerRenderer

プロパティ 
headerRenderer:IFactory

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列のヘッダーとして使用される IGridItemRenderer クラスのクラスファクトリです。指定しない場合、DataGrid コントロールの columnHeaderGroup スキンパーツはデフォルトのヘッダーレンダラーを定義します。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 headerRendererChanged イベントが送出されます。



実装
    public function get headerRenderer():IFactory
    public function set headerRenderer(value:IFactory):void

関連する API エレメント

headerText

プロパティ 
headerText:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列のヘッダーのテキストです。 デフォルトでは、関連付けられているグリッドコントロールは dataField プロパティの値をヘッダーテキストとして使用します。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 headerTextChanged イベントが送出されます。



実装
    public function get headerText():String
    public function set headerText(value:String):void

imeMode

プロパティ 
imeMode:String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

IME(入力メソッドエディター)のモードを指定します。IME を使用することによって、ユーザーは中国語、日本語、および韓国語のテキストを入力できます。Flex では、コントロールにフォーカスが置かれたときに、IME を指定されたモードに設定し、コントロールからフォーカスが離れたときに、元のモードに戻します。

このプロパティで有効な値の定数は、flash.system.IMEConversionMode クラスで定義されています。IME を指定しない場合は、null を指定します。

デフォルト値: null。



実装
    public function get imeMode():String
    public function set imeMode(value:String):void

関連する API エレメント

itemEditor

プロパティ 
itemEditor:IFactory

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列の個々のグリッドセルを編集するために使用される IGridItemEditor クラスのクラスファクトリです。このプロパティが null であり、列のグリッドのオーナーが DataGrid コントロールの場合、DataGrid コントロールの itemEditor プロパティの値が使用されます。 DataGrid コントロールでアイテムエディターが指定されていない場合は、DefaultGridItemEditor クラスを使用します。

デフォルトのアイテムエディターは DefaultGridItemEditor クラスです。これは単純なテキストフィールドを編集可能にします。 GridItemEditor クラスのサブクラスを作成することによって、カスタムアイテムレンダラーを作成できます。 カスタムアイテムエディターでは、データをグリッドの行全体に書き込み、より複雑なエディターを定義できます。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 itemEditorChanged イベントが送出されます。



実装
    public function get itemEditor():IFactory
    public function set itemEditor(value:IFactory):void

関連する API エレメント

itemRenderer

プロパティ 
itemRenderer:IFactory

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

個々のグリッドセルをレンダリングするために使用される IGridItemRenderer クラスのクラスファクトリです。指定しない場合、関連付けられているグリッドコントロールの itemRenderer プロパティの値を使用します。

デフォルトのアイテムレンダラーは DefaultGridItemRenderer クラスです。これはデータアイテムをテキストとして表示します。 GridItemRenderer クラスのサブクラスを作成することによって、カスタムアイテムレンダラーを作成できます。 カスタムアイテムレンダラーでは、グリッドの行全体のデータにアクセスして、セルについてより複雑な視覚的表現を定義できます。

デフォルト値は、関連付けられているグリッドコントロールの itemRenderer プロパティの値か、または null です。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 itemRendererChanged イベントが送出されます。



実装
    public function get itemRenderer():IFactory
    public function set itemRenderer(value:IFactory):void

関連する API エレメント

itemRendererFunction

プロパティ 
itemRendererFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

指定する場合、このプロパティの値は、データプロバイダーアイテムおよび列パラメーターに基づいてアイテムレンダラーの IFactory を返す冪等関数にする必要があります。itemRendererFunction プロパティに対する値を指定すると、この列で複数のアイテムレンダラーを使用できるようになります。

itemRendererFunction プロパティに対して指定する関数には次のシグネチャが必要です。

itemRendererFunction(item:Object, column:GridColumn):IFactory

item パラメーターは、行全体に対するデータプロバイダーアイテムです。 2 つ目のパラメーターはこの列オブジェクトです。

次に、アイテムレンダラー関数の例を示します。

      function myItemRendererFunction(item:Object, column:GridColumn):IFactory
      {
          return (item is Array) ? myArrayItemRenderer : myItemRenderer;
      }
      

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 itemRendererFunctionChanged イベントが送出されます。



実装
    public function get itemRendererFunction():Function
    public function set itemRendererFunction(value:Function):void

labelFunction

プロパティ 
labelFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

データプロバイダーアイテムを、アイテムレンダラーの label プロパティの初期化に使用される列固有のストリングに変換する冪等関数です。

ラベル関数を使用して、複数のデータプロバイダーアイテムの値を単一のストリングとして組み合わせることができます。 指定する場合、このプロパティは itemToLabel() メソッドで使用されます。このメソッドは、この列内の各アイテムレンダラーの label プロパティの値を計算します。

labelFunction プロパティに対して指定する関数には次のシグネチャが必要です。

labelFunction(item:Object, column:GridColumn):String

item パラメーターは、行全体に対するデータプロバイダーアイテムです。 2 つ目のパラメーターはこの列オブジェクトです。

一般的なラベル関数は、データプロバイダーアイテムの firstName および lastName プロパティを連結するか、Date 値のプロパティに対してカスタム書式を適用します。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 labelFunctionChanged イベントが送出されます。



実装
    public function get labelFunction():Function
    public function set labelFunction(value:Function):void

関連する API エレメント

maxWidth

プロパティ 
maxWidth:Number

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列の最大幅(ピクセル単位)です。指定する場合、グリッドのレイアウトにより、列のレイアウト幅が typicalItem および maxWidth のうちの小さい方の幅になります。 この列がサイズ変更可能な場合、このプロパティによって、ユーザーがこの列に指定できる幅の上限が設定されます。 このプロパティを設定しても、width および minWidth プロパティはいずれも変更されません。

デフォルト値: NaN。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 maxWidthChanged イベントが送出されます。



実装
    public function get maxWidth():Number
    public function set maxWidth(value:Number):void

minWidth

プロパティ 
minWidth:Number

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列の最小幅(ピクセル単位)です。指定する場合、グリッドのレイアウトにより、列のレイアウト幅が typicalItem および minWidth のうちの大きい方の幅になります。 この列がサイズ変更可能な場合、このプロパティによって、ユーザーがこの列に指定できる幅の下限が指定されます。 このプロパティを設定しても、width および maxWidth プロパティのいずれも変更されません。

デフォルト値: 20。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 minWidthChanged イベントが送出されます。



実装
    public function get minWidth():Number
    public function set minWidth(value:Number):void

rendererIsEditable

プロパティ 
rendererIsEditable:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

アイテムレンダラーのコントロールのいずれかが編集可能かどうかを判別します。列が編集可能な場合、ユーザーがアイテムレンダラーの編集を開始すると、アイテムレンダラーのフォーカス可能コントロールにはキーボードフォーカスが設定されます。

このプロパティを true に設定すれば、ユーザーがセルの中をクリックするとセルが編集可能になります。 セルが編集可能なため、DataGrid は editorIndicator スキンパーツを表示します。このスキンパーツは selectionIndicator スキンパーツの上に表示されます。 そのため、編集セッションが完了するまで、セルの選択範囲のインジケーターがユーザーから見えなくなります。editorIndicator スキンパーツを削除または変更するカスタムスキンを作成すれば、selectionIndicator スキンパーツを表示できます。 例えば、editorIndicatoralpha プロパティを設定して selectionIndicator が透けて見えるようにしたり、セルより小さくなるように editorIndicator のサイズを変更したりできます。

このプロパティを true に設定すると、アイテムレンダラーによって収集される入力の検証および保存はユーザーが行うこととなります。 アイテムレンダラーに IGridItemRenderer.prepare() メソッドのオーバーライドが含まれている場合、未保存の入力フィールドの変更が上書きされないようにする必要があります。 例えば、rendererIsEditabletrue であり、レンダラーには data.myDataField の値を表示する単一の TextInput エレメントが含まれます。 レンダラーの prepare() メソッドが TextInput コントロールの text プロパティを設定する場合、保留中の変更が存在しているとき、prepare() メソッドが text プロパティを設定しないようにする必要があります。

デフォルト値: false。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 rendererIsEditableChanged イベントが送出されます。



実装
    public function get rendererIsEditable():Boolean
    public function set rendererIsEditable(value:Boolean):void

resizable

プロパティ 
resizable:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

列の幅をユーザーが変更できるかどうかを示します。このプロパティが true であり、関連付けられているグリッドの resizableColumns プロパティも true である場合、ユーザーは列ヘッダー間のグリッド線をドラッグして列のサイズを変更できます。

デフォルト値: true。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 resizableChanged イベントが送出されます。



実装
    public function get resizable():Boolean
    public function set resizable(value:Boolean):void

showDataTips

プロパティ 
showDataTips:*

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

列にデータヒントが表示されるかどうかを示します。true の場合、行のテキストに対してデータヒントが表示されます。 データヒントは、長すぎて行に収まらないテキストを表示するためのツールヒントです。

このプロパティの値が undefined(デフォルト)の場合、関連付けられているグリッドの showDataTips プロパティによってデータヒントが表示されるかどうかが決まります。 このプロパティが設定されている場合、グリッドの showDataTips プロパティは無視されます。

デフォルト値: undefined。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 showDataTipsChanged イベントが送出されます。



実装
    public function get showDataTips():*
    public function set showDataTips(value:any):void

関連する API エレメント

sortable

プロパティ 
sortable:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

このプロパティが true の場合、グリッドのデータプロバイダーが ICollectionView の場合、および関連付けられているグリッドの sortableColumns プロパティが true の場合、この列ではインタラクティブソートがサポートされます。 通常、列のヘッダーでは、データプロバイダーの sort プロパティを Sort オブジェクト(SortField がこの列の dataField であるもの)に設定することによって、マウスクリックを処理します。

データプロバイダーが ICollectionView でない場合、このプロパティは無視されます。

デフォルト値: true。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 sortableChanged イベントが送出されます。



実装
    public function get sortable():Boolean
    public function set sortable(value:Boolean):void

sortCompareFunction

プロパティ 
sortCompareFunction:Function

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列のデータエレメントに関してソートを実行するときに 2 つのエレメントを比較する関数です。labelFunction プロパティの値を指定する場合、通常、sortCompareFunction も指定します。

sortCompareFunction のシグネチャは次と一致する必要があります。

sortCompareFunction(obj1:Object, obj2:Object, column:GridColumn):int

この関数はオブジェクトの比較に基づいて次のような値を返す必要があります。

  • 昇順で obj1 が obj2 よりも先に出現する場合は -1。
  • obj1 と obj2 が同じ場合は 0。
  • 昇順で obj1 が obj2 よりも後で出現する場合は 1。

関数は、列パラメーターを使用して、一般的な比較関数を記述できます。

メモ:obj1 パラメーターと obj2 パラメーターはデータプロバイダーエレメント全体です。特定のアイテムのデータではありません。

dataProvider が ICollectionView でない場合、このプロパティは無視されます。

デフォルト値: null。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 sortCompareFunctionChanged イベントが送出されます。



実装
    public function get sortCompareFunction():Function
    public function set sortCompareFunction(value:Function):void

sortDescending

プロパティ 
sortDescending:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

true の場合、この列は降順でソートされます。 例えば、列の dataField に数値が含まれている場合、この列の最大値を持つ列が最初の行となります。

このプロパティを設定してもソートは実行されません。ソート方向のみが設定されます。 dataProvider.refresh() メソッドが呼び出されると、ソートが実行されます。

データプロバイダーが ICollectionView でない場合、このプロパティは無視されます。

デフォルト値: false。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 sortDescendingChanged イベントが送出されます。



実装
    public function get sortDescending():Boolean
    public function set sortDescending(value:Boolean):void

sortField

プロパティ 
sortField:SortField  [読み取り専用]

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列の dataField を基準にしてコレクションをソートするために使用できる SortField を返します。

sortCompareFunction プロパティが定義されている場合は、SortField の compareFunction が自動的に設定されます。

sortCompareFunction プロパティが定義されておらず、dataField が複雑な場合、SortField の比較関数は、複雑な dataField を処理するデフォルトの比較関数を囲む閉包に割り当てられます。

sortCompareFunction および dataField プロパティが定義されておらず、labelFunction プロパティが定義されている場合、compareFunction は、データオブジェクトに適用される labelFunction に対して基本的なストリング比較を実行する閉包に割り当てられます。



実装
    public function get sortField():SortField

関連する API エレメント

visible

プロパティ 
visible:Boolean

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

true の場合、この列を表示します。 false の場合、この列には領域が割り当てられず、レイアウトに含められません。

デフォルト値: true。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 visibleChanged イベントが送出されます。



実装
    public function get visible():Boolean
    public function set visible(value:Boolean):void

width

プロパティ 
width:Number

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

この列の幅(ピクセル単位)です。指定する場合、グリッドのレイアウトではその typicalItem プロパティとこの列の minWidth および maxWidth プロパティが無視されます。

デフォルト値: NaN。

このプロパティはデータバインディングのソースとして使用できます。 このプロパティを変更すると、 widthChanged イベントが送出されます。



実装
    public function get width():Number
    public function set width(value:Number):void
コンストラクターの詳細

GridColumn

()コンストラクター
public function GridColumn(columnName:String = null)

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

コンストラクターです。

パラメーター
columnName:String (default = null)dataField および headerText プロパティの初期値です。
メソッドの詳細

itemToDataTip

()メソッド
public function itemToDataTip(item:Object):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

指定されたデータプロバイダーアイテムを列固有のデータヒントストリングに変換します。

このメソッドは、値 dataTipField および dataTipFunction を使用します。 これらのプロパティが null の場合は、関連付けられているグリッドコントロールの対応するプロパティを使用します。 グリッドコントロールの dataTipField プロパティも null の場合は、dataField プロパティを使用します。

dataTipFunctiondataTipFormatter が null の場合、このメソッドの値は item[dataTipField].toString() と同じになります。dataTipFormatter が指定されている場合、このメソッドの値は dataTipFormatter.format(item[dataTipField]) と同じになります。アイテムの dataField の解決でエラーがスローされた場合は、ERROR_TEXT が返されます。

item および dataTipFunction が null でない場合、このメソッドは dataTipFunction(item, this) を返します。ここで、2 つ目の引数はこの GridColumn です。

パラメーター

item:Objectgrid.dataProvider.getItemAt(rowIndex) の値です。

戻り値
String — 指定されたデータプロバイダーアイテムまたは ERROR_TEXT の列固有のストリングです。

itemToLabel

()メソッド 
public function itemToLabel(item:Object):String

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

指定されたデータプロバイダーアイテムを列固有のストリングに変換します。このメソッドは、アイテムレンダラーの label プロパティを初期化するために使用されます。

labelFunction が null であり、dataField が "." というフィールド名のセパレーター文字を含まないストリングであり、フォーマッターが null である場合、このメソッドは次に等しくなります。

item[dataField].toString()

フォーマッターが指定された場合、このメソッドの値は次のようになります。

formatter.format(item[dataField])

dataField が "." で区切られたパスである場合、このメソッドでは連続する各パスエレメントを検索します。 例えば、="foo.bar.baz" の場合、このメソッドは item.foo.bar.baz の値に基づくストリングを返します。アイテムの dataField の解決によってエラーがスローされた場合、ERROR_TEXT が返されます。

item および labelFunction が null でない場合、このメソッドは labelFunction(item, this) を返します。ここで、2 つ目の引数はこの GridColumn です。

パラメーター

item:Objectgrid.dataProvider.getItemAt(rowIndex) の値。

戻り値
String — 指定された dataProvider アイテムの列固有のストリングまたは ERROR_TEXT です。

itemToRenderer

()メソッド 
public function itemToRenderer(item:Object):IFactory

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

指定されたデータプロバイダーアイテムを列固有のアイテムレンダラーファクトリに変換します。デフォルトでは、このメソッドは null 以外の場合は itemRendererFunction を呼び出し、null の場合は列の itemRenderer プロパティの値を返します。

パラメーター

item:Objectgrid.dataProvider.getItemAt(rowIndex) の値です。

戻り値
IFactory — 指定された dataProvider アイテムに対する列固有のアイテムレンダラーファクトリです。
定数の詳細

ERROR_TEXT

定数
public static const ERROR_TEXT:String = "unknown"

言語バージョン: ActionScript 3.0
製品バージョン: Flex 4.5
ランタイムバージョン: Flash Player 10, AIR 2.5

対応するプロパティ名(パス)の解決に失敗した場合の、itemToLabel() または itemToDataTip() メソッドの戻り値です。 この定数の値は単一の空白文字 " " です。

関連する API エレメント

GridColumnExample.mxml
<?xml version="1.0" encoding="utf-8"?>

<!--

A simple example of a DataGrid with explicitly specified columns.

The DataGrid's columns are specified by an ArrayList (an IList) and can always be accessed as such.  
For example dataGrid.columns.length returns the total number of columns and 
dataGrid.columns.getItemAt(index) returns the GridColumn at the specified index.  The columns list 
is mutable, which means that GridColumns can be added or removed at any time.

Column widths do not depend on the column's headerText, they're based on the rendered widths of 
the DataGrid's typicalItem. If that's not specified, then the first data item is used.  That's the 
case here.  Each column can specify an explicit width and by default all GridColumns are 
resizable="true", which means that the column can be interactively resized by dragging the edges 
between columns.  Interactively resizing column widths changes the DataGrid's measuredWidth which 
can be a little disconcerting if the DataGrid's width is not constrained.  In this example we've 
constrained the DataGrid's left and right edges which prevents changes in the DataGrid's 
measuredWidth from affecting its actual width.

-->

<s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark">
    
    <s:Panel title="Spark DataGrid Control Example which demonstrates a simple DataGrid with explicitly specified columns"
             width="75%" height="75%" 
             horizontalCenter="0" verticalCenter="0">
        
        <s:DataGrid id="dataGrid" left="5" right="5" top="5" bottom="5">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn dataField="key" headerText="Key"/>
                    <s:GridColumn dataField="name" headerText="Name"/>
                    <s:GridColumn dataField="price" headerText="Price"/>
                    <s:GridColumn dataField="call" headerText="Call"/>
                </s:ArrayList>
            </s:columns>
            
            <s:ArrayCollection>
                <s:DataItem key="1000" name="Abrasive" price="100.11" call="false"/>
                <s:DataItem key="1001" name="Brush" price="110.01" call="true"/>
                <s:DataItem key="1002" name="Clamp" price="120.02" call="false"/>
                <s:DataItem key="1003" name="Drill" price="130.03" call="true"/>
                <s:DataItem key="1004" name="Epoxy" price="140.04" call="false"/>
                <s:DataItem key="1005" name="File" price="150.05" call="true"/>
                <s:DataItem key="1006" name="Gouge" price="160.06" call="false"/>
                <s:DataItem key="1007" name="Hook" price="170.07" call="true"/>
                <s:DataItem key="1008" name="Ink" price="180.08" call="false"/>
                <s:DataItem key="1009" name="Jack" price="190.09" call="true"/>             
            </s:ArrayCollection>
        </s:DataGrid>    
    </s:Panel>
</s:Application>    
GridColumnVisibilityExample.mxml
<?xml version="1.0" encoding="utf-8"?>

<!--

Demonstrate the GridColumn visible property and the support for dynamically adding and removing columns.

After selecting a column it's visibility can be changed, a copy of the column can be inserted, and the column can be removed.

The DataGrid columns property is a mutable list - an IList, like ArrayList - and columns can be added or removed at any time.  The difference 
between an IList and an intrinsic collection type like Array or Vector is that ILists dispatch events when they're changed.   That's why the
DropDownList, whose dataProvider is the list of columns, tracks the changes made with the Add/Remove buttons.

Changing a column's visibility does not change its presence or position in the columns IList but it prevents the DataGrid from displaying it.

-->

<s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark">
    
    <fx:Script>
        <![CDATA[
            // Insert a column to the left of specified column
            private function addNewColumn(column:GridColumn):void
            {
                const newColumn:GridColumn = new GridColumn();
                newColumn.dataField = column.dataField;
                newColumn.headerText = column.headerText + "+";
                dataGrid.columns.addItemAt(newColumn, column.columnIndex);
            }
            
            // Remove the specified column
            private function removeColumn(column:GridColumn):void
            {
                dataGrid.columns.removeItemAt(column.columnIndex);
            }
        ]]>
    </fx:Script>
    
    <s:Panel title="Spark DataGrid Control Example which demonstrates the GridColumn visible property and dynamically adding and removing columns"
             width="75%" height="75%" 
             horizontalCenter="0" verticalCenter="0">
        
        <s:controlBarContent>
            <s:HGroup verticalAlign="baseline">
                <s:DropDownList id="ddl" prompt="Select" dataProvider="{dataGrid.columns}" labelField="headerText"/>
                <s:Label text="Visible:"/>
                <s:CheckBox selected="@{ddl.selectedItem.visible}" enabled="{ddl.selectedItem}"/>
                <s:Button label="Add" click="addNewColumn(ddl.selectedItem)" enabled="{ddl.selectedItem}"/>
                <s:Button label="Remove" click="removeColumn(ddl.selectedItem)" enabled="{ddl.selectedItem}"/>
            </s:HGroup>
        </s:controlBarContent>
        
        <s:DataGrid id="dataGrid" left="5" right="5" top="5" bottom="5">
            <s:columns>
                <s:ArrayList>
                    <s:GridColumn dataField="key" headerText="Key"/>
                    <s:GridColumn dataField="name" headerText="Name"/>
                    <s:GridColumn dataField="price" headerText="Price"/>
                    <s:GridColumn dataField="call" headerText="Call"/>
                </s:ArrayList>
            </s:columns>
            
            <s:ArrayCollection>
                <s:DataItem key="1000" name="Abrasive" price="100.11" call="false"/>
                <s:DataItem key="1001" name="Brush" price="110.01" call="true"/>
                <s:DataItem key="1002" name="Clamp" price="120.02" call="false"/>
                <s:DataItem key="1003" name="Drill" price="130.03" call="true"/>
                <s:DataItem key="1004" name="Epoxy" price="140.04" call="false"/>
                <s:DataItem key="1005" name="File" price="150.05" call="true"/>
                <s:DataItem key="1006" name="Gouge" price="160.06" call="false"/>
                <s:DataItem key="1007" name="Hook" price="170.07" call="true"/>
                <s:DataItem key="1008" name="Ink" price="180.08" call="false"/>
                <s:DataItem key="1009" name="Jack" price="190.09" call="true"/>             
            </s:ArrayCollection>
        </s:DataGrid>    
    </s:Panel>    
</s:Application>






[ X ]英語で表示される理由
ActionScript 3.0 リファレンスガイドのコンテンツが英語で表示されます。

ActionScript 3.0 リファレンスガイドのすべての部分がすべての言語に翻訳されているわけではありません。言語エレメントが翻訳されていない場合、そのエレメントは英語で表示されます。例えば、ga.controls.HelpBox クラスはどの言語にも訳されていません。このため、リファレンスガイドの日本語バージョンでは、ga.controls.HelpBox クラスは英語で表示されます。