ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
com.adobe.icc.dc.domain 

TargetInstance  - AS3 Układacz zasobów

Pakietcom.adobe.icc.dc.domain
Klasapublic class TargetInstance
DziedziczenieTargetInstance Inheritance EventDispatcher Inheritance Object
Implementuje IContainerInstance, IValidation

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

This class is the runtime representation of the target area associated with the letter.



Właściwości publiczne
 WłaściwośćZdefiniowane przez
  allowFreeText : Boolean
[tylko do odczytu] True if the free text can be added to target instance.
TargetInstance
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
Object
  contents : IList
[tylko do odczytu] List of the contents associated with this Container instance.
TargetInstance
  contentVariables : IList
[tylko do odczytu] Bindable/Read-only.
TargetInstance
  formSomExpression : String
[tylko do odczytu] The SOM Expression of the target.
TargetInstance
  hasContentRemoved : Boolean
[tylko do odczytu] True if the Target has one or more content removed from it, than what was originall assigned.
TargetInstance
  isNewTarget : Boolean = false
[Applicable during reload] True if this is a new container target, that did not exist when the Letter was submitted.
TargetInstance
  name : String
[tylko do odczytu] The name of the target.
TargetInstance
  open : Boolean
[tylko do odczytu] True if the container is open to extra content; false if it only allows content that was explicitly assigned to it in the letter.
TargetInstance
  order : int
[tylko do odczytu] The target's depth-first order.
TargetInstance
  ordered : Boolean
[tylko do odczytu] True if the container's contents order is fixed; false if its contents can be re-ordered.
TargetInstance
  valid : Boolean
[tylko do odczytu] Boolean indicating whether the content is valid
TargetInstance
Metody publiczne
 MetodaZdefiniowane przez
  
TargetInstance(targetData:com.adobe.icc.dc.data:TargetData, reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget = null)
Constructor.
TargetInstance
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu.
EventDispatcher
  
addRawModule(dataModule:DataModule, position:int = -1):IModuleInstance
Inserts the specified raw DataModule into the list's contents as extra selected content if list is open.
TargetInstance
 Inherited
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń.
EventDispatcher
 Inherited
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń.
EventDispatcher
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
  
moveContent(sourceModule:IModuleInstance, moveUp:Boolean):void
Moves the specified item within the list's content one position in the specified direction.
TargetInstance
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
  
Refresh should be called when item is selected.
TargetInstance
  
Removes the specified item from the list's collection if the item is found in the collection and is non mandatory
TargetInstance
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Usuwa detektor z obiektu EventDispatcher.
EventDispatcher
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
  
The function checks for the valid state of the Module instances and accordingly updates the valid flag.
TargetInstance
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
 Inherited
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych.
EventDispatcher
Metody chronione
 MetodaZdefiniowane przez
  
Everytime when contentVariables list is updated, it removes variable change listeners in old varaibleInstance and add variable change listeners in new variableInstance.
TargetInstance
Zdarzenia
 Zdarzenie Podsumowanie Zdefiniowane przez
 Inherited[zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny.EventDispatcher
 Inherited[zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny.EventDispatcher
Szczegół właściwości

allowFreeText

właściwość
allowFreeText:Boolean  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

True if the free text can be added to target instance.



Implementacja
    public function get allowFreeText():Boolean

contents

właściwość 
contents:IList  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

List of the contents associated with this Container instance.

Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .



Implementacja
    public function get contents():IList

contentVariables

właściwość 
contentVariables:IList  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Bindable/Read-only. The set of active variables for the module. Empty if there are none.

Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .



Implementacja
    public function get contentVariables():IList

formSomExpression

właściwość 
formSomExpression:String  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

The SOM Expression of the target.



Implementacja
    public function get formSomExpression():String

hasContentRemoved

właściwość 
hasContentRemoved:Boolean  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

True if the Target has one or more content removed from it, than what was originall assigned. [Relevant when reloading]



Implementacja
    public function get hasContentRemoved():Boolean

isNewTarget

właściwość 
public var isNewTarget:Boolean = false

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

[Applicable during reload] True if this is a new container target, that did not exist when the Letter was submitted.

Wartością domyślną jest false.

name

właściwość 
name:String  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

The name of the target.



Implementacja
    public function get name():String

open

właściwość 
open:Boolean  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

True if the container is open to extra content; false if it only allows content that was explicitly assigned to it in the letter.



Implementacja
    public function get open():Boolean

order

właściwość 
order:int  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

The target's depth-first order.



Implementacja
    public function get order():int

ordered

właściwość 
ordered:Boolean  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

True if the container's contents order is fixed; false if its contents can be re-ordered.



Implementacja
    public function get ordered():Boolean

valid

właściwość 
valid:Boolean  [tylko do odczytu]

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Boolean indicating whether the content is valid

Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie validChange .



Implementacja
    public function get valid():Boolean
Konstruktor Szczegół

TargetInstance

()Konstruktor
public function TargetInstance(targetData:com.adobe.icc.dc.data:TargetData, reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget = null)

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Constructor.

Parametry
targetData:com.adobe.icc.dc.data:TargetData — The TargetData object associated with this TargetInstance.
 
reloadTarget:com.adobe.icc.dc.data.reload:ReloadTarget (default = null) — Reload Target for the case of correspondence reload.
Szczegół metody

addRawModule

()metoda
public function addRawModule(dataModule:DataModule, position:int = -1):IModuleInstance

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Inserts the specified raw DataModule into the list's contents as extra selected content if list is open.

Parametry

dataModule:DataModule — dataModule The module to select/insert.
 
position:int (default = -1) — The absolute position at which to insert the module into the contents list. The dataModule becomes the new element at that position in the list. If position is less than zero or beyond the end of the list, the content is appended. If the list is fixed-order, then module is appended at end.

Zwraca
IModuleInstance

moveContent

()metoda 
public function moveContent(sourceModule:IModuleInstance, moveUp:Boolean):void

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Moves the specified item within the list's content one position in the specified direction.

Parametry

sourceModule:IModuleInstance — The item to move.
 
moveUp:Boolean — True to move up, false to move down.

refresh

()metoda 
public function refresh():void

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Refresh should be called when item is selected. This is useful in case when the the item is deselcted. In that case, if there is any change in variable value/ field value etc., those changes may not be propagated to module.

removeContent

()metoda 
public function removeContent(sourceModule:IModuleInstance):void

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Removes the specified item from the list's collection if the item is found in the collection and is non mandatory

Parametry

sourceModule:IModuleInstance — The item to be removed.

setContentVariables

()metoda 
protected function setContentVariables(value:IList):void

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

Everytime when contentVariables list is updated, it removes variable change listeners in old varaibleInstance and add variable change listeners in new variableInstance.

Parametry

value:IList — The list of VariableInstance objects.

validate

()metoda 
public function validate():void

Wersja języka: ActionScript 3.0
Wersja produktu: Asset Composer Building Block 10.0
Wersje środowiska wykonawczego: AIR (unsupported), Flash Player 10.2

The function checks for the valid state of the Module instances and accordingly updates the valid flag.





[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.