Package | com.adobe.xmp.components |
Class | public class XMPText |
Inheritance | XMPText ![]() |
Implements | IXMPDisplay |
Default MXML Propertytext
Property | Defined by | ||
---|---|---|---|
allowCommas : Boolean
When true, commas can be accepted as part of the value in arrays (xmpArray != null).
| XMPText | ||
dataProvider : Object
Provides a collection of allowed values for an "Enum" XMP data type.
| XMPText | ||
formatFunction : Function
A custom formatting function for single values.
| XMPText | ||
formatString : String The format to use to evaluate and render date-time values
when XMP type is "Date".
| XMPText | ||
useThousandsSeparator : Boolean When true, a separator character is used after the thousands place to
evaluate and render XMP types "Integer" and "Real".
| XMPText | ||
xmpArray : String The XMP multi-value data type of the field associated with component, one of:
| XMPText | ||
xmpFormat : String
A format string used to add prefixes or postfixes to single XMP values,
after they have been returned from the formatting function.
| XMPText | ||
xmpPath : String The XMP path for the field associated with this component.
| XMPText | ||
xmpSeparator : String
A string of characters that can be used to separate input values
for a multi-valued field.
| XMPText | ||
xmpType : String The XMP data type of the field associated with this component, one of:
| XMPText |
Method | Defined by | ||
---|---|---|---|
multivalueHandler(event:XMPEvent):void
A handler for the
xmpMultivalue event. | XMPText | ||
A handler for the
xmpRead event. | XMPText |
Event | Summary | Defined by | ||
---|---|---|---|---|
Occurs when the value of this component has been changed. | XMPText | |||
Occurs when user opens this panel. | XMPText |
allowCommas | property |
allowCommas:Boolean
[read-write]When true, commas can be accepted as part of the value in arrays (xmpArray != null). When false, commas are considered separators.
The default value is false
.
public function get allowCommas():Boolean
public function set allowCommas(value:Boolean):void
dataProvider | property |
dataProvider:Object
[read-write]Provides a collection of allowed values for an "Enum" XMP data type. The collection is an Array or ArrayCollection that contains Objects with properties "label" and "data", or with the single property "separator".
public function get dataProvider():Object
public function set dataProvider(value:Object):void
formatFunction | property |
formatFunction:Function
[read-write]
A custom formatting function for single values. If defined,
no other formatter (such as the DateFormatter) is applied.
The function must have this signature
function (rawValue: String): String
. If this function
public function get formatFunction():Function
public function set formatFunction(value:Function):void
formatString | property |
formatString:String
[read-write]The format to use to evaluate and render date-time values when XMP type is "Date". See XMP documentation for accepted formats.
The default value is MM/DD/YYYY - JJ:NN:SS
.
public function get formatString():String
public function set formatString(value:String):void
useThousandsSeparator | property |
useThousandsSeparator:Boolean
[read-write]When true, a separator character is used after the thousands place to evaluate and render XMP types "Integer" and "Real".
The default value is false
.
public function get useThousandsSeparator():Boolean
public function set useThousandsSeparator(value:Boolean):void
xmpArray | property |
xmpArray:String
[read-write]The XMP multi-value data type of the field associated with component, one of:
The default value is none
.
public function get xmpArray():String
public function set xmpArray(value:String):void
xmpFormat | property |
xmpFormat:String
[read-write]A format string used to add prefixes or postfixes to single XMP values, after they have been returned from the formatting function. The XMP value returned by the formatting function is substituted for the variable {0} in this format string.
This value can be a ZString (beginning with '$$$', in which case it is localized using translation dictionaries. In the translated display string, the variable value is designated as ^0.
For arrays values, the array is displayed on one line in a semicolon-separated list, and the formatting process is applied to each single value.
For example, with translation:
xmpFormat="$$$/AWS/FileInfoLib/Panels/Camera1/FocalLengthFormat=^0 mm"
Without translation:
xmpFormat="{0} mm"
In either case, if the format function returns a value of 100, the resulting display string is "100 mm".
Implementation public function get xmpFormat():String
public function set xmpFormat(value:String):void
xmpPath | property |
xmpPath:String
[read-write]The XMP path for the field associated with this component. The path can be nested, or direct to an array, struct or qualifier. Path expressions make use of XML namespaces; all prefixes must be registered.
Implementation public function get xmpPath():String
public function set xmpPath(value:String):void
xmpSeparator | property |
xmpSeparator:String
[read-write]A string of characters that can be used to separate input values for a multi-valued field. Must be at least one character long. Each character in this string is accepted as a separator for input. The first character is used to separate values for display.
The default value is the semicolon character (;)
.
public function get xmpSeparator():String
public function set xmpSeparator(value:String):void
xmpType | property |
xmpType:String
[read-write]The XMP data type of the field associated with this component, one of:
The default value is Text
.
public function get xmpType():String
public function set xmpType(value:String):void
multivalueHandler | () | method |
public function multivalueHandler(event:XMPEvent):void
A handler for the xmpMultivalue
event.
Called if the File Info dialog is started in multiple-file mode.
event:XMPEvent — The event object for a user-interaction event.
|
readXMP | () | method |
public function readXMP(event:XMPEvent):void
A handler for the xmpRead
event.
The default handler updates the component in response to a user-interaction event,
using information retrieved from the associated XMP property.
event:XMPEvent — The event object for a user-interaction event.
|
xmpModification | event |
com.adobe.xmp.events.XMPEvent
Occurs when the value of this component has been changed. Default handler sets the "modified" flag.
xmpRead | event |
com.adobe.xmp.events.XMPEvent
Occurs when user opens this panel. Default handler reads the associated XMP value and updates the display value.