EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificaciones Pagina 1

Busca en linea o descarga Especificaciones para Software EDOBE XDOM TAKE 6 IR - PRODUCTSHEET. EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Specifications Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 304
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - JAVASCRIPT TOOLS GUIDE

JAVASCRIPT TOOLS GUIDEADOBE® CREATIVE SUITE® 5

Pagina 2

CHAPTER 1: Introduction ExtendScript overview 10The samples are located under the ExtendScript SDK root directory:SDKroot/Samples/javascript/ sam

Pagina 3 - Contents

CHAPTER 4: User-Interface Tools Managing control titles 100XTo achieve a column orientation where the title appears above or below the graphic ele

Pagina 4

CHAPTER 4: User-Interface Tools Managing control titles 101XUse spacing to override the default number of pixels separating the title from the gra

Pagina 5

CHAPTER 4: User-Interface Tools Managing control titles 102XThis example demonstrates using characters and justify to vertically align the colons

Pagina 6

CHAPTER 4: User-Interface Tools Localization in ScriptUI objects 103Margins around the title and graphic objectThe margins property specifies the

Pagina 7

CHAPTER 4: User-Interface Tools Localization in ScriptUI objects 104standard. In this example, a btnText object contains localized text strings fo

Pagina 8

CHAPTER 4: User-Interface Tools ScriptUI object reference 105ScriptUI object referenceScriptUI is a component that works with the ExtendScript Jav

Pagina 9 - Introduction

CHAPTER 4: User-Interface Tools ScriptUI class 106compatabilityObject An object whose properties are the names of compatibility modes supported by

Pagina 10

CHAPTER 4: User-Interface Tools ScriptUI class 107ScriptUI class functionsevents.createEvent()ScriptUi.events.createEvent (eventType)eventTypeThe

Pagina 11 - External communication

CHAPTER 4: User-Interface Tools Common properties 108Environment objectThis global object is available through the ScriptUI.environment property.

Pagina 12 - JavaScript variables

CHAPTER 4: User-Interface Tools Common properties 109childrenx x x x xxxxxxxxx xxxxxxcolumnsxdefaultElementxenabledx x x x xxxxxxxxxxxxxxxxexpande

Pagina 13 - The ExtendScript Toolkit

CHAPTER 1: Introduction ExtendScript overview 11In addition to the basic set of common functions, some applications provide more extensive sets of

Pagina 14 - Panel menus

CHAPTER 4: User-Interface Tools Window class 110Window classThe Window class defines these static properties and functions. Window instances creat

Pagina 15 - Document windows

CHAPTER 4: User-Interface Tools Window class 111Window class functionsAccess these function through the class. For example:Window.alert(“Notificat

Pagina 16 - Workspaces

CHAPTER 4: User-Interface Tools Window object 112Window objectWindow object constructorThe constructor creates and returns a new Window object, or

Pagina 17 - Selecting scripts

CHAPTER 4: User-Interface Tools Window object 113Window object propertiesThe following element properties apply specifically to Window elements:X

Pagina 18 - The Script Editor

CHAPTER 4: User-Interface Tools Window object 114maximizedBoolean When true, the window is expanded.minimizedBoolean When true, the window is mini

Pagina 19 - Navigation aids

CHAPTER 4: User-Interface Tools Window object 115Container propertiesThe following table shows properties that apply to Window objects and contain

Pagina 20 - Bookmarks

CHAPTER 4: User-Interface Tools Window object 116alignmentString, or Array of 2 StringsApplies to child elements of a container. If defined, this

Pagina 21

CHAPTER 4: User-Interface Tools Window object 117margins Margins A Margins object describing the number of pixels between the edges of this contai

Pagina 22 - Coding aids

CHAPTER 4: User-Interface Tools Window object 118Window object functionsThese functions are defined for Window instances, and as indicated for con

Pagina 23 - Version comments

CHAPTER 4: User-Interface Tools Window object 119addEventListener() windowObj.addEventListener (eventName, handler[, capturePhase]); eventNameThe

Pagina 24 - Searching in text

CHAPTER 1: Introduction Scripting for specific applications 12Scripting for specific applicationsOn startup, all Adobe JavaScript-enabled applicat

Pagina 25

CHAPTER 4: User-Interface Tools Window object 120findElement() windowOrContainerObj.findElement (name)nameThe name of the element, as specified in

Pagina 26 - Syntax marking

CHAPTER 4: User-Interface Tools Window object 121removeEventListener() windowObj.removeEventListener (eventName, handler[, capturePhase]); eventNa

Pagina 27 - Debugging in the Toolkit

CHAPTER 4: User-Interface Tools Window object 122Window event-handling callbacksThe following callback functions can be defined to respond to even

Pagina 28 - The JavaScript console

CHAPTER 4: User-Interface Tools Control objects 123Control objectsUI elements that belong to windows can be containers or controls. Containers sha

Pagina 29 - Controlling code execution

CHAPTER 4: User-Interface Tools Control objects 124Control types and creation parametersThe following keywords can be used in string literals as t

Pagina 30 - Out Of Memory, always

CHAPTER 4: User-Interface Tools Control objects 125dropdownlist DropDownListA drop-down list with zero or more items. Calls the onChange callback

Pagina 31 - Setting breakpoints

CHAPTER 4: User-Interface Tools Control objects 126edittext (cont’d) enterKeySignalsOnChange: When false (the default), the control signals an onC

Pagina 32 - Breakpoint icons

CHAPTER 4: User-Interface Tools Control objects 127group GroupA container for other controls. Containers have additional properties that control t

Pagina 33 - Tracking data

CHAPTER 4: User-Interface Tools Control objects 128image ImageDisplays an icon or image.To add to a window w: w.add (“image” [, bounds, icon, {cre

Pagina 34 - The call stack

CHAPTER 4: User-Interface Tools Control objects 129listbox (cont’d) creation_properties: Optional. An object that contains any of the following pr

Pagina 35

132The ExtendScript ToolkitThe ExtendScript Toolkit provides an interactive development and testing environment for ExtendScript in all JavaScrip

Pagina 36 - Inspecting object models

CHAPTER 4: User-Interface Tools Control objects 130panel (cont’d) creation_properties: Optional. An object that contains the following property: n

Pagina 37

CHAPTER 4: User-Interface Tools Control objects 131radiobutton RadioButtonA dual-state control, grouped with other radiobuttons, of which only one

Pagina 38

CHAPTER 4: User-Interface Tools Control objects 132scrollbar (cont’d) To add to a window w: w.add (“scrollbar” [, bounds, value, minvalue, maxvalu

Pagina 39 - File System Access

CHAPTER 4: User-Interface Tools Control objects 133statictext StaticTextA text field that the user cannot change. To add to a window w: w.add (“st

Pagina 40

CHAPTER 4: User-Interface Tools Control objects 134tab (cont’d) creation_properties: Optional. An object that contains the following property: nam

Pagina 41 - Volume and drive names

CHAPTER 4: User-Interface Tools Control objects 135Control object propertiesThe following table shows the properties of ScriptUI control elements.

Pagina 42 - Portability issues

CHAPTER 4: User-Interface Tools Control objects 136alignment (cont’d) For an array value, the first string element defines the horizontal alignmen

Pagina 43 - File error handling

CHAPTER 4: User-Interface Tools Control objects 137imageObject A ScriptUIImage object, or the name of an icon resource, or the pathname or File ob

Pagina 44 - File access error messages

CHAPTER 4: User-Interface Tools Control objects 138location Point A Point object describing the location of the element as an array, [x, y], repr

Pagina 45 - Additional encodings

CHAPTER 4: User-Interface Tools Control objects 139selection (ListBox)Array of ListItemFor a ListBox, an array of ListItem objects for the current

Pagina 46 - Common encoding names

CHAPTER 2: The ExtendScript Toolkit Configuring the Toolkit window 14You can, for example, adjust the relative sizes of the panels by dragging the

Pagina 47 - File object

CHAPTER 4: User-Interface Tools Control objects 140subitemsArray For ListItem objects only. When the parent is a multi-column ListBox, the ListIte

Pagina 48 - File class functions

CHAPTER 4: User-Interface Tools Control objects 141titleLayoutObject For a DropDownList, FlashPlayer, IconButton, Image, or TabbedPanel with a tit

Pagina 49 - File object properties

CHAPTER 4: User-Interface Tools Control objects 142Control object functionsThe following table shows the methods defined for each element type, an

Pagina 50

CHAPTER 4: User-Interface Tools Control objects 143dispatchEvent() controlObj.dispatchEvent (eventObj)eventObjAn object of the UIEvent base class.

Pagina 51 - File object functions

CHAPTER 4: User-Interface Tools Control objects 144List control object functionsThe following table shows the methods defined for list objects onl

Pagina 52

CHAPTER 4: User-Interface Tools Control objects 145FlashPlayer control functionsThese functions apply only to controls of type flashplayer. NOTE:

Pagina 53

CHAPTER 4: User-Interface Tools Control objects 146invokePlayerFunction()flashPlayerObj.invokePlayerFunction(fnName, [arg1[,...argn]] )fnNameStrin

Pagina 54

CHAPTER 4: User-Interface Tools Control objects 147Control event-handling callbacksThe following events are signalled in certain types of controls

Pagina 55

CHAPTER 4: User-Interface Tools Control objects 148DrawState objectA helper object that describes an input state at the time of the triggering onD

Pagina 56 - Folder object

CHAPTER 4: User-Interface Tools Event handling 149Event handling Several helper classes provide low-level event-handling capabilities.X Event obje

Pagina 57

CHAPTER 2: The ExtendScript Toolkit Configuring the Toolkit window 15Document windowsWhen you open scripts or text files, each file appears in its

Pagina 58 - Folder class functions

CHAPTER 4: User-Interface Tools Event handling 150UIEvent object functionsinitUIEvent()eventObj.initUIEvent (eventName, bubble, isCancelable, view

Pagina 59 - Folder object functions

CHAPTER 4: User-Interface Tools Event handling 151KeyboardEvent objectThis type of object is passed to your registered event handler when a keyboa

Pagina 60

CHAPTER 4: User-Interface Tools Event handling 152KeyboardEvent object functionsIn addition to the functions defined for UIEvent base class, a key

Pagina 61

CHAPTER 4: User-Interface Tools Event handling 153MouseEvent objectThis type of object is passed to your registered event handler when a mouse-inp

Pagina 62 - User-Interface Tools

CHAPTER 4: User-Interface Tools Event handling 154MouseEvent object functionsIn addition to the functions defined for UIEvent base class, a mouse

Pagina 63 - ScriptUI programming model

CHAPTER 4: User-Interface Tools Graphic customization objects 155Keyboard state objectThis JavaScript object reports the active state of the keybo

Pagina 64 - Window layout

CHAPTER 4: User-Interface Tools Graphic customization objects 156ScriptUIGraphics class propertiesThese static properties provide color type const

Pagina 65 - Adding elements to containers

CHAPTER 4: User-Interface Tools Graphic customization objects 157ScriptUIGraphics object functionsThese functions directly customize the appearanc

Pagina 66 - Accessing child elements

CHAPTER 4: User-Interface Tools Graphic customization objects 158drawString()controlObj.graphics.drawString (text, pen, x, y, font)textThe text st

Pagina 67 - Types of controls

CHAPTER 4: User-Interface Tools Graphic customization objects 159measureString()controlObj.graphics.measureString (text, font[, boundingWidth])tex

Pagina 68 - User-interface controls

CHAPTER 2: The ExtendScript Toolkit Configuring the Toolkit window 16WorkspacesThe Toolkit saves the current layout when you exit, and restores it

Pagina 69

CHAPTER 4: User-Interface Tools Graphic customization objects 160newPen() controlObj.graphics.newPen( type, color, lineWidth);type The pen type, o

Pagina 70

CHAPTER 4: User-Interface Tools Graphic customization objects 161ScriptUIBrush objectA helper object that encapsulates the qualities of a brush us

Pagina 71

CHAPTER 4: User-Interface Tools Graphic customization objects 162ScriptUIImage objectA helper object that encapsulates a set of images that can be

Pagina 72 - Displaying images

CHAPTER 4: User-Interface Tools Graphic customization objects 163ScriptUIPen objectA helper object that encapsulates the qualities of a pen used t

Pagina 73 - Creating multi-column lists

CHAPTER 4: User-Interface Tools Graphic customization objects 164A custom element's onDraw event handler function is not called when the mous

Pagina 74 - Modal dialogs

CHAPTER 4: User-Interface Tools LayoutManager object 165}}function drawButton (drawingState) {...}LayoutManager objectControls the automatic layou

Pagina 75 - Default and cancel elements

1665Interapplication Communication with ScriptsThe Adobe scripting environment provides an interapplication messaging framework, a way for to sen

Pagina 76 - Size and location objects

CHAPTER 5: Interapplication Communication with Scripts Cross-DOM functions 167Identifying applicationsWhen calling external functions or exchangin

Pagina 77 - Drawing objects

CHAPTER 5: Interapplication Communication with Scripts Cross-DOM functions 168of application-specific functions. Each application determines the e

Pagina 78 - Resource specifications

CHAPTER 5: Interapplication Communication with Scripts Cross-DOM functions 169openAsNew()appspec.openAsNew([options]) optionsOptional. Application

Pagina 79 - Using resource strings

CHAPTER 2: The ExtendScript Toolkit Selecting scripts 17Selecting scriptsYou can open multiple scripts (or text files, including programs in other

Pagina 80

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 170Communicating through messages Adobe Bridge provides an a

Pagina 81

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 171var bt = new BridgeTalk; // send this msg to the Adobe Br

Pagina 82 - Simulating user events

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 172var targetApp = BridgeTalk.getSpecifier( "bridge-3.0

Pagina 83

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 173To change the default behavior set the BridgeTalk.onRecei

Pagina 84

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 174A response message can be:X The result of an error in pro

Pagina 85

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 175bt.send(); Example: Handling any errorIn this example, th

Pagina 86 - Automatic layout

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 176}}Example: Setting up a sender to receive multiple respon

Pagina 87 - Automatic layout properties

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 177Passing simple typesWhen your message object’s onResult c

Pagina 88 - Aligning children

CHAPTER 5: Interapplication Communication with Scripts Communicating through messages 178// now you can access the returned arrayfor (i=0; i< a

Pagina 89

CHAPTER 5: Interapplication Communication with Scripts Messaging framework API reference 179Messaging framework API referenceThis application prog

Pagina 90 - Alignment in two dimensions

CHAPTER 2: The ExtendScript Toolkit The Script Editor 18The favorite script locations that you define are also available to the Find and Replace d

Pagina 91 - Spacing between children

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 180BridgeTalk class propertiesThe BridgeTalk class provides these static p

Pagina 92 - Determining a preferred size

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 181BridgeTalk class functionsThe BridgeTalk class provides these static me

Pagina 93

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 182getSpecifier()BridgeTalk.getSpecifier (appName,[version],[locale])appNa

Pagina 94 - Creating dynamic content

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 183getStatus()BridgeTalk.getStatus (targetSpec)targetSpecOptional, a speci

Pagina 95 - Custom layout-manager example

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk class 184XIf neither version nor locale is supplied, returns base specifiers wit

Pagina 96

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 185BridgeTalk message objectThe message object defines the basic

Pagina 97

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 186BridgeTalk message object propertiesbodyString The data paylo

Pagina 98 - Managing control titles

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 187BridgeTalk message object callbacksNOTE: The message callbacks

Pagina 99

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 188onResultFunction A callback function that the target applicati

Pagina 100

CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 189BridgeTalk message object functionssend()bridgeTalkObj.send ([

Pagina 101

CHAPTER 2: The ExtendScript Toolkit The Script Editor 19XA full-featured text search tool that can search in multiple files; see “Searching in tex

Pagina 102 - Title truncation

CHAPTER 5: Interapplication Communication with Scripts Messaging error codes 190Messaging error codesThe interapplication messaging protocol defin

Pagina 103

CHAPTER 5: Interapplication Communication with Scripts Application and namespace specifiers 191Application and namespace specifiersAll forms of in

Pagina 104

CHAPTER 5: Interapplication Communication with Scripts Application and namespace specifiers 192The following are examples of legal specifiers:phot

Pagina 105 - ScriptUI class

CHAPTER 5: Interapplication Communication with Scripts Application and namespace specifiers 193Namespace specifiersWhen calling cross-DOM and expo

Pagina 106

1946External Communication ToolsExtendScript offers tools for communicating with other computers or the Internet using standard protocols.X The S

Pagina 107 - ScriptUI class functions

CHAPTER 6: External Communication Tools Socket object 195incoming connections and then return immediately. If there is a connection request, the c

Pagina 108 - Common properties

CHAPTER 6: External Communication Tools Socket object 196 // poll for a new connection var connection = tcp.poll(); if (connection

Pagina 109

CHAPTER 6: External Communication Tools Socket object reference 197Socket object referenceThis section provides details of the object’s properties

Pagina 110 - Window class

CHAPTER 6: External Communication Tools Socket object reference 198listen()socketObj.listen (port [, encoding]);portNumber. The TCP/IP port number

Pagina 111 - Window class functions

CHAPTER 6: External Communication Tools Socket object reference 199readln()socketObj.readln ();Reads one line of text up to the next line feed. Li

Pagina 112 - Window object

© 2010 Adobe Systems Incorporated. All rights reserved. Adobe® Creative Suite® 5 JavaScript Tools Guide for Windows® and Macintosh®.NOTICE: All inform

Pagina 113 - Window object properties

CHAPTER 2: The ExtendScript Toolkit The Script Editor 20BookmarksThe Edit > Bookmarks menu allows you to set and clear navigation points in you

Pagina 114

2007Integrating External LibrariesYou can extend the JavaScript DOM for an application by writing a C or C++ shared library, compiling it for the

Pagina 115 - Container properties

CHAPTER 7: Integrating External Libraries ExternalObject object 201automatically defined, and you can access the properties and methods through an

Pagina 116

CHAPTER 7: Integrating External Libraries ExternalObject object 202ExternalObject class propertiesThe ExternalObject class provides these static p

Pagina 117

CHAPTER 7: Integrating External Libraries Defining entry points for direct access 203Defining entry points for direct accessA library to be loaded

Pagina 118 - Window object functions

CHAPTER 7: Integrating External Libraries Defining entry points for direct access 204X string — Must be UTF-8 encoded.The library must define an e

Pagina 119

CHAPTER 7: Integrating External Libraries Defining entry points for direct access 205For example, suppose your library defines these two entry poi

Pagina 120

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 206Defining entry points for indirect accessThe C-client objec

Pagina 121

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 207SoServerInterfaceSoServerInterface is a structure of functi

Pagina 122

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 208addClass()ESerror_t addClass (SoHServer hServer, char* name

Pagina 123 - Control objects

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 209addProperties()ESerror_t addProperties (SoHObject hObject,

Pagina 124

CHAPTER 2: The ExtendScript Toolkit The Script Editor 21Mouse navigation and selectionYou can use the mouse or special keyboard shortcuts to move

Pagina 125 - NTER or the control

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 210SoObjectInterfaceWhen you add a JavaScript class with SoSer

Pagina 126

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 211All SoObjectInterface members must be valid function pointe

Pagina 127

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 212call()ESerror_t call (SoHObject hObject, SoCClientName* nam

Pagina 128

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 213Support structuresThese support structures are passed to fu

Pagina 129

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 214TaggedDataThe TaggedData structure is used to communicate d

Pagina 130

CHAPTER 7: Integrating External Libraries Defining entry points for indirect access 215typeThe data type tag. One of:X kTypeUndefined: a null valu

Pagina 131

2168ExtendScript Tools and FeaturesIn addition to the specific functional modules and development tools, ExtendScript provides these tools and fe

Pagina 132

CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 217engineNameString The name of the current JavaScript engine, if set. Read only.erro

Pagina 133

CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 218Dollar ($) object functionslocaleString Gets or sets the current locale. The strin

Pagina 134

CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 219colorPicker()$.colorPicker (name)Invokes the platform-specific color selection dia

Pagina 135 - Control object properties

CHAPTER 2: The ExtendScript Toolkit The Script Editor 22The Script Editor supports extended keyboard input via IME (Windows) or TMS (Mac OS). This

Pagina 136

CHAPTER 8: ExtendScript Tools and Features Dollar ($) object 220write()$.write (text[, text...]...)Writes the specified text to the JavaScript Con

Pagina 137

CHAPTER 8: ExtendScript Tools and Features ExtendScript reflection interface 221ExtendScript reflection interfaceExtendScript provides a reflectio

Pagina 138

CHAPTER 8: ExtendScript Tools and Features ExtendScript reflection interface 222ExamplesThis code determines the class name of an object:obj = new

Pagina 139

CHAPTER 8: ExtendScript Tools and Features ExtendScript reflection interface 223ReflectionInfo object propertiesargumentsArray of ReflectionInfoFo

Pagina 140

CHAPTER 8: ExtendScript Tools and Features Localizing ExtendScript strings 224Localizing ExtendScript stringsLocalization is the process of transl

Pagina 141

CHAPTER 8: ExtendScript Tools and Features Localizing ExtendScript strings 225To use automatic translation of localization objects, you must enabl

Pagina 142 - Control object functions

CHAPTER 8: ExtendScript Tools and Features Localizing ExtendScript strings 2265. If not found, it removes the region identifier (for example, en)

Pagina 143

CHAPTER 8: ExtendScript Tools and Features User notification dialogs 227For example:today = {en: "Today is %1/%2",de: "Heute ist de

Pagina 144 - List control object functions

CHAPTER 8: ExtendScript Tools and Features User notification dialogs 228This figure shows alert dialogs with error icons.Global confirm functionDi

Pagina 145 - FlashPlayer control functions

CHAPTER 8: ExtendScript Tools and Features User notification dialogs 229Global prompt functionDisplays a platform-standard dialog containing a sho

Pagina 146

CHAPTER 2: The ExtendScript Toolkit The Script Editor 23You can use the flyout menu at the upper right corner of the document window to choose an

Pagina 147 - NTER. The exact behavior

CHAPTER 8: ExtendScript Tools and Features Specifying measurement values 230Specifying measurement valuesExtendScript provides the UnitValue objec

Pagina 148 - DrawState object

CHAPTER 8: ExtendScript Tools and Features Specifying measurement values 231For example, all the following formats are equivalent:myVal = new Unit

Pagina 149 - Event handling

CHAPTER 8: ExtendScript Tools and Features Specifying measurement values 232XPercentage values are relative to a total measurement. For example, 1

Pagina 150 - UIEvent object functions

CHAPTER 8: ExtendScript Tools and Features Preprocessor directives 233XBinary operators (+, -, *, /, %)If one operand is unitValue object and the

Pagina 151 - KeyboardEvent object

CHAPTER 8: ExtendScript Tools and Features Preprocessor directives 234#include fileIncludes a JavaScript source file from another location. Insert

Pagina 152

CHAPTER 8: ExtendScript Tools and Features Operator overloading 235Operator overloadingExtendScript allows you to extend or override the behavior

Pagina 153 - MouseEvent object

CHAPTER 8: ExtendScript Tools and Features Operator overloading 236You can override the following operators:X The operators > and >= are imp

Pagina 154 - MouseEvent object functions

2379Integrating XML into JavaScriptExtendScript defines the XML object, which allows you to process XML with your JavaScript scripts. This featur

Pagina 155 - Graphic customization objects

CHAPTER 9: Integrating XML into JavaScript The XML Object 238If an element is empty in the XML, the corresponding property exists and contains an

Pagina 156

CHAPTER 9: Integrating XML into JavaScript The XML Object 239Accessing XML attributesAttribute are properties of their parent elements. In ExtendS

Pagina 157

CHAPTER 2: The ExtendScript Toolkit The Script Editor 24/*** @@@BUILDINFO@@@ SnpCreateDialog.jsx !Version! Tue Dec 05 2006 08:03:38 GMT-0800*/You

Pagina 158

CHAPTER 9: Integrating XML into JavaScript The XML Object 240Modifying XML elements and attributesYou can change an element by assigning a value t

Pagina 159

CHAPTER 9: Integrating XML into JavaScript The XML Object 241The result is this XML:<book category="LITERATURE, FANTASY"><title

Pagina 160

CHAPTER 9: Integrating XML into JavaScript The XML Object 242XThe result of XML.children() contains 3 elements, the direct child tags <one>

Pagina 161 - ScriptUIFont object

CHAPTER 9: Integrating XML into JavaScript The XML Object 243<book category="COOKING"><title lang="en">The Boston

Pagina 162 - ScriptUIPath object

CHAPTER 9: Integrating XML into JavaScript The XML Object 244XIf you have assigned an element to a namespace, and have not made it the default, yo

Pagina 163 - Custom element class

CHAPTER 9: Integrating XML into JavaScript The XML Object 245All XML statements and functions that collect XML return the result as an XMLList, wh

Pagina 164

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 246XML Object ReferenceThis section provides reference details for the properties

Pagina 165 - LayoutManager object

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 247XML class functionsThese static functions are available through the XML class,

Pagina 166 - Communications overview

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 248XML object functionsaddNamespace()xmlObj.addNamespace (ns);nsA Namespace object

Pagina 167 - Cross-DOM functions

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 249contains()xmlObj.contains (element);elementAn XML object.Reports whether an ele

Pagina 168 - Cross-DOM API reference

CHAPTER 2: The ExtendScript Toolkit The Script Editor 25XAll scripts made public by the current target applicationX Folders that you have defined

Pagina 169

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 250inScopeNamespaces()xmlObj.inScopeNamespaces ();Retrieves the current list of va

Pagina 170 - Sending messages

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 251namespace()xmlObj.namespace ();Retrieves the namespace URI of this element.Retu

Pagina 171

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 252processingInstructions()xmlObj.processingInstructions ([name]);nameA String, th

Pagina 172 - Handling unsolicited messages

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 253setNamespace()xmlObj.setNamespace(ns);nsA Namespace object for a namespace that

Pagina 173

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 254Global functionsThese functions are available in the JavaScript global namespac

Pagina 174

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 255QName objectThis object encapsulates a fully qualified XML name, the combinatio

Pagina 175

CHAPTER 9: Integrating XML into JavaScript XML Object Reference 256Namespace object constructorsThe Namespace constructor takes several forms:new

Pagina 176

25710Scripting Access to XMP MetadataXMPScript, the XMP ExtendScript API, offers JavaScript access to the Adobe XMP Core and XMP Files libraries.

Pagina 177 - Passing complex types

CHAPTER 10: Scripting Access to XMP Metadata Accessing the XMP scripting API 258Using the XMP scripting APIThe XMPMeta object is the primary means

Pagina 178

CHAPTER 10: Scripting Access to XMP Metadata Accessing the XMP scripting API 259// retrieve propertyprop = xmp.getProperty(XMPConst.NS_XMP, "

Pagina 179 - BridgeTalk class

CHAPTER 2: The ExtendScript Toolkit The Script Editor 26In a replace operation, you can use the captured regions of a match in the replacement exp

Pagina 180 - BridgeTalk class properties

CHAPTER 10: Scripting Access to XMP Metadata Accessing the XMP scripting API 260Integrating XMPScript with Adobe Bridge This script adds a command

Pagina 181 - BridgeTalk class functions

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 261XMPScript object referenceThe classes defined for the XMP JavaScript AP

Pagina 182

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 262XMPAliasInfo objectThis object is returned by XMPMeta.resolveAlias(). T

Pagina 183

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 263Type namespace string constants Constant values for the field-type name

Pagina 184

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 264File format numeric constants Constant values for supported file types,

Pagina 185 - BridgeTalk message object

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 265XMPDateTime objectThis class represents a date and time. Times include

Pagina 186

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 266XMPDateTime object propertiesAll properties are read-write, and allow y

Pagina 187

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 267XMPFile objectThis class corresponds to the Adobe XMP Toolkit's Fi

Pagina 188

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 268XMPFile object constructorsnew XMPFile( filePath, format, openFlags)XMP

Pagina 189

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 269XMPFile class functionsThis function is available as a static method of

Pagina 190 - Messaging error codes

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 27Debugging in the ToolkitYou can debug the code in the currently active document win

Pagina 191 - Application specifiers

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 270closeFile()XMPFileObj.closeFile(closeFlags)closeFlagsA close-option con

Pagina 192

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 271XMPFileInfo objectThis object is returned by XMPFile.getFileInfo(). The

Pagina 193 - Namespace specifiers

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 272XMPIterator objectCreated by a call to XMPMeta.iterator(). Walks recurs

Pagina 194 - External Communication Tools

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 273There is one static property on the class that provides XMP version inf

Pagina 195 - Chat server sample

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 274deleteNamespace()XMPMeta.deleteNamespace (namespaceURI)namespaceURIThe

Pagina 196

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 275registerAlias()XMPMeta.registerAlias (aliasNS, aliasProp, actualNS, act

Pagina 197 - Socket object reference

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 276XMPMeta object functionsresolveAlias()XMPMeta.resolveAlias (aliasNS, al

Pagina 198

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 277deleteArrayItem()XMPMetaObj.deleteArrayItem(schemaNS, arrayName,itemInd

Pagina 199

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 278doesArrayItemExist()XMPMetaObj.doesArrayItemExist(schemaNS, arrayName,

Pagina 200

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 279dumpObject()XMPMetaObj.dumpObject ( )Creates and returns a string conta

Pagina 201 - ExternalObject object

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 28executing code, is halted at a breakpoint, or, having executed all scripts, is wait

Pagina 202 - ExternalObject class function

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 280getProperty()XMPMetaObj.getProperty(schemaNS, propName[, valueType])sch

Pagina 203 - Additional functions

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 281insertArrayItem()XMPMetaObj.insertArrayItem(schemaNS, arrayName, itemIn

Pagina 204 - Library initialization

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 282serialize()XMPMetaObj.serialize([options, padding, indent, newline, bas

Pagina 205 - Library termination

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 283serializeToArray()XMPMetaObj.serializeToArray([options, padding, indent

Pagina 206 - Shared-library function API

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 284setArrayItem()XMPMetaObj.setArrayItem(schemaNS, arrayName, itemIndex, i

Pagina 207 - SoServerInterface

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 285setStructField()XMPMetaObj.setStructField(schemaNS, structName, fieldNS

Pagina 208

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 286setProperty()XMPMetaObj.setProperty(schemaNS, propName, propValue[, set

Pagina 209

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 287XMPPacketInfo objectThis object is returned by XMPFile.getPacketInfo().

Pagina 210 - SoObjectInterface

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 288XMPUtils objectThis class provides additional utility functions for the

Pagina 211

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 289catenateArrayItems()XMPUtils.catenateArrayItems(xmpObj, schemaNS, array

Pagina 212

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 29The console is a JavaScript listener, that expects input text to be JavaScript code

Pagina 213 - Support structures

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 290fieldNSThe field namespace URI string.fieldNameThe field name. Must be

Pagina 214 - TaggedData

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 291qualNameThe qualifier name. Must be a simple XML name.Creates and retur

Pagina 215

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 292removeProperties()XMPUtils.removeProperties(xmpObj, schemaNS, propName,

Pagina 216 - Dollar ($) object

CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 293separateArrayItems()XMPUtils.separateArrayItems(xmpObj, schemaNS, array

Pagina 217

29411Porting GuideThis chapter briefly describes changes between this release and the previous release of ExtendScript, to aid you in porting app

Pagina 218 - Dollar ($) object functions

295IndexAabsolute paths, 40ActionScript, calling foreign functions, 85active engine status, 27addition operator, 235alertsabout, 74creating, 110d

Pagina 219

Index 296interapplication, See interapplication communicationoverview, 166TCP connections, 194comparison operators, 233complex data types, passin

Pagina 220 - Function Return type

Index 297Eediting features, 18EditText objects, 69creating, 125encodingbinary, 43common names, 46specific platform features, 45supported names, 4

Pagina 221 - Reflection object

Index 298object references, 39, 47, 56Flashcommunicating with, 85control functions, 145examples, 86FlashPlayer objects, 72floating palettes, 63Fo

Pagina 222 - ReflectionInfo object

Index 299LlayoutAutoLayoutManager algorithm, 97automatic, 86, 165custom example, 95default behavior, 87preferred size of elements, 92properties,

Pagina 223

3Contents1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 224

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 30Visual indication of execution statesWhen the execution of a script halts because t

Pagina 225 - Locale names

Index 300MouseEvent object, 153multi-column lists, 73NNamespace object, 255namespace specifiersabout, 193accessing cross-DOM functions, 167identi

Pagina 226 - Global localize function

Index 301platform-independent paths, 39Point object, 77portability of file references, 42porting guide, 294preferenceskeyboard shortcuts, 21savin

Pagina 227 - User notification dialogs

Index 302shortcut keys for user-interface elements, 81shortcutsbookmarks, 20configuring, 16dismissing dialogs, 75keyboard list, 21mouse and keybo

Pagina 228 - Global confirm function

Index 303fonts, 161graphic customization objects, 155grouping, 64, 67methods, 142pens, 163placing, 76properties, 135registering listeners, 82remo

Pagina 229 - Global prompt function

Index 304XMPMeta object, 272using, 258XMPProperty object, 287XMPScript, 257API reference, 261constant values, 262integrating with Adobe Bridge, 2

Pagina 230 - Specifying measurement values

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 31Setting breakpointsWhen debugging a script, it is often helpful to make it stop at

Pagina 231 - UnitValue object functions

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 32condition statement. You can also specify a hit count, which allows you to skip the

Pagina 232 - Computing with unit values

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 33Evaluation in help tipsIf you let your mouse pointer rest over a variable or functi

Pagina 233 - Preprocessor directives

CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 34You can inspect the contents of an object by clicking its icon. The list expands to

Pagina 234

CHAPTER 2: The ExtendScript Toolkit Code profiling for optimization 35Switching between the functions in the call hierarchy allows you to trace ho

Pagina 235 - Operator overloading

CHAPTER 2: The ExtendScript Toolkit Inspecting object models 36When execution halts (at termination, at a breakpoint, or due to a runtime error),

Pagina 236

CHAPTER 2: The ExtendScript Toolkit Inspecting object models 37The Object Model Viewer (OMV) comes up as a separate, floating window. The OMV allo

Pagina 237 - The XML Object

CHAPTER 2: The ExtendScript Toolkit Inspecting object models 38XEach Adobe application defines a dictionary for that application’s Document Object

Pagina 238 - Accessing XML elements

393File System AccessAdobe ExtendScript defines classes that simplify cross-platform file-system access. These classes are available to all appli

Pagina 239 - Viewing XML objects

4File error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 240

CHAPTER 3: File System Access Using File and Folder objects 40Absolute and relative path namesAn absolute path name in URI notation describes the

Pagina 241 - Retrieving contained elements

CHAPTER 3: File System Access Using File and Folder objects 41The home directoryA path name can start with a tilde (~) to indicate the user’s home

Pagina 242

CHAPTER 3: File System Access Using File and Folder objects 42a folder C:\C on Windows. A path starting with /c always addresses the drive C:, so

Pagina 243 - Setting a default namespace

CHAPTER 3: File System Access Using File and Folder objects 43As an example, suppose you use the UNIX machine myServer for data storage. If you se

Pagina 244 - XML lists

CHAPTER 3: File System Access File access error messages 44File access error messagesThe following messages can be returned in the error property.

Pagina 245

CHAPTER 3: File System Access File- and Folder-supported encoding names 45File- and Folder-supported encoding namesThe following list of names is

Pagina 246 - XML Object Reference

CHAPTER 3: File System Access File- and Folder-supported encoding names 46Common encoding namesThe following encoding names are implemented both i

Pagina 247 - XML object properties

CHAPTER 3: File System Access File object 47Additional Mac OS encoding namesThese names are alias names for encodings that Mac OS might know.TIS-6

Pagina 248 - XML object functions

CHAPTER 3: File System Access File object 48File class propertiesThis property is available as a static property of the File class. It is not nece

Pagina 249

CHAPTER 3: File System Access File object 49File object propertiesThese properties are available for File objects.openDialog()File.openDialog ([pr

Pagina 250

5The AutoLayoutManager algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97Automatic

Pagina 251

CHAPTER 3: File System Access File object 50encodingString Gets or sets the encoding for subsequent read/write operations. One of the encoding con

Pagina 252

CHAPTER 3: File System Access File object 51File object functionsThese functions are available for File objects.relativeURIString The path name fo

Pagina 253

CHAPTER 3: File System Access File object 52execute()fileObj.execute ()Opens this file using the appropriate application, as if it had been double

Pagina 254 - Global functions

CHAPTER 3: File System Access File object 53openDlg()fileObj.OpenDlg ([prompt][,filter][,multiSelect])promptOptional. A string containing the prom

Pagina 255 - Namespace object

CHAPTER 3: File System Access File object 54remove()fileObj.remove ()Deletes the file associated with this object from disk, immediately, without

Pagina 256 - Namespace object properties

CHAPTER 3: File System Access File object 55seek()fileObj.seek (pos[, mode])posThe new current position in the file as an offset in bytes from the

Pagina 257

CHAPTER 3: File System Access Folder object 56Folder objectRepresents a file-system folder or directory in a platform-independent manner. All prop

Pagina 258 - Using the XMP scripting API

CHAPTER 3: File System Access Folder object 57desktopFolder A Folder object for the folder that contains the user’s desktop. Read only.X In Window

Pagina 259

CHAPTER 3: File System Access Folder object 58Folder class functionsThese functions are available as a static methods of the Folder class. It is n

Pagina 260

CHAPTER 3: File System Access Folder object 59Folder object propertiesThese properties are available for Folder objects.Folder object functionsThe

Pagina 261 - XMPScript object reference

6AutoLayoutManager object functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1655 Interappli

Pagina 262 - XMPConst object

CHAPTER 3: File System Access Folder object 60create()folderObj.create ()Creates a folder at the location given by this object’s path property. Re

Pagina 263

CHAPTER 3: File System Access Folder object 61rename()folderObj.rename (newName)newNameThe new folder name, with no path.Renames the associated fo

Pagina 264

624User-Interface ToolsAdobe provides the ScriptUI component, which works with the ExtendScript JavaScript interpreter to provide JavaScript scri

Pagina 265 - XMPDateTime object

CHAPTER 4: User-Interface Tools ScriptUI programming model 63ScriptUI programming modelScriptUI defines Window objects that represent platform-spe

Pagina 266 - XMPDateTime object functions

CHAPTER 4: User-Interface Tools ScriptUI programming model 64Container elements All Windows are containers—that is, they contain other elements wi

Pagina 267 - XMPFile object

CHAPTER 4: User-Interface Tools ScriptUI programming model 65The following examples show equivalent ways of changing an existing window’s width an

Pagina 268 - XMPFile class properties

CHAPTER 4: User-Interface Tools ScriptUI programming model 66The order of optional parameters must be maintained. Use the value undefined for a pa

Pagina 269 - XMPFile object functions

CHAPTER 4: User-Interface Tools Types of controls 67If you use a creation property to assign a name to a newly created element, you can access tha

Pagina 270

CHAPTER 4: User-Interface Tools Types of controls 68User-interface controlsThese are types of Control objects that are contained in windows, panel

Pagina 271 - XMPFileInfo object

CHAPTER 4: User-Interface Tools Types of controls 69ImageDisplays an iconic image.X The image property identifies the icon image; see “Displaying

Pagina 272 - XMPMeta object

7Defining entry points for indirect access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 273 - XMPMeta class functions

CHAPTER 4: User-Interface Tools Types of controls 70CheckboxAllows the user to set a boolean state.X Set the text property to assign an identifyin

Pagina 274

CHAPTER 4: User-Interface Tools Types of controls 71ScrollbarLike a slider, the scrollbar is a bar with a draggable indicator. It also has “steppe

Pagina 275 - direct mapping. It can be

CHAPTER 4: User-Interface Tools Types of controls 72Displaying imagesYou can display icon images in Image or IconButton controls, or display image

Pagina 276 - XMPMeta object functions

CHAPTER 4: User-Interface Tools Types of controls 73If a script does not explicitly set the preferredSize or size property of an element that disp

Pagina 277

CHAPTER 4: User-Interface Tools Types of controls 74Notice that the columns have headers, and the label in the second column of the second row has

Pagina 278

CHAPTER 4: User-Interface Tools Types of controls 75closed. If the function returns true, the window is closed, but if it returns false, the close

Pagina 279

CHAPTER 4: User-Interface Tools Size and location objects 76a button whose name or text value is "cancel" (disregarding case). Because i

Pagina 280

CHAPTER 4: User-Interface Tools Drawing objects 77Drawing objectsScriptUI allows you to draw directly on controls to customize their appearance. Y

Pagina 281

CHAPTER 4: User-Interface Tools Resource specifications 78For details of these objects, see “Graphic customization objects” on page 155.The Script

Pagina 282

CHAPTER 4: User-Interface Tools Resource specifications 79testBtn: Button { text: ’Test’ } The following resource string specifies a panel that co

Pagina 283

8XMPScript object reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 284 - The new string value

CHAPTER 4: User-Interface Tools Defining behavior with event callbacks and listeners 80The Build button event handler builds a resource string fro

Pagina 285

CHAPTER 4: User-Interface Tools Defining behavior with event callbacks and listeners 81XButton, RadioButton, and Checkbox controls generate events

Pagina 286

CHAPTER 4: User-Interface Tools Defining behavior with event callbacks and listeners 82Simulating user eventsYou can simulate user actions by send

Pagina 287 - XMPProperty object

CHAPTER 4: User-Interface Tools Defining behavior with event callbacks and listeners 83myButton.addEventListener( ’click’, myFunction );XA locally

Pagina 288 - XMPUtils object

CHAPTER 4: User-Interface Tools Defining behavior with event callbacks and listeners 84The ScriptUI implementation of W3C mouse events follows the

Pagina 289

CHAPTER 4: User-Interface Tools Communicating with the Flash application 85the bubbling phase. For example, the following click handler, registere

Pagina 290

CHAPTER 4: User-Interface Tools Automatic layout 86You do not need to register the ExtendScript function in the ActionScript environment. Your Act

Pagina 291

CHAPTER 4: User-Interface Tools Automatic layout 87The script programmer has considerable control over the automatic layout process. Each containe

Pagina 292

CHAPTER 4: User-Interface Tools Automatic layout 88et: EditText { characters:4, justify:’right’ } \}");w.show(); Each example shows the effec

Pagina 293

CHAPTER 4: User-Interface Tools Automatic layout 89If you set the alignment value using a constant and then query the property, it returns an inde

Pagina 294 - Porting Guide

91IntroductionJavaScript is a platform-independent scripting language that you can use to control many features and automate many tasks in Adobe®

Pagina 295 - 295

CHAPTER 4: User-Interface Tools Automatic layout 90You can override the container’s child alignment, as specified by alignChildren, by setting the

Pagina 296 - Index 296

CHAPTER 4: User-Interface Tools Automatic layout 91Setting marginsThe margins property of a container specifies the number of pixels between the e

Pagina 297 - Index 297

CHAPTER 4: User-Interface Tools Automatic layout 92Determining a preferred sizeEach element has a preferredSize property, which is initially defin

Pagina 298 - Index 298

CHAPTER 4: User-Interface Tools Automatic layout 93info: Panel { orientation: ’column’, \text: ’Personal Info’, \name: Group { orientation: ’row’,

Pagina 299 - Index 299

CHAPTER 4: User-Interface Tools Automatic layout 94} \}, \workInfo: Panel { orientation: ’column’, \text: ’Work Info’, \name: Group { orientation:

Pagina 300 - Index 300

CHAPTER 4: User-Interface Tools Automatic layout 95res ="dialog { \whichInfo: DropDownList { alignment:’left’ }, \allGroups: Panel { orientat

Pagina 301 - Index 301

CHAPTER 4: User-Interface Tools Automatic layout 96/* Define a custom layout manager that arranges the children** of ’container’ in a stair-step f

Pagina 302 - Index 302

CHAPTER 4: User-Interface Tools Automatic layout 97// Create window using resource specwin = new Window (res);// Create list items, select first o

Pagina 303 - Index 303

CHAPTER 4: User-Interface Tools Managing control titles 985. Determine the column, row, or stack dimensions, based on the dimensions of the childr

Pagina 304 - Index 304

CHAPTER 4: User-Interface Tools Managing control titles 99XThe title property is a String that defines a text label for a UI element. The title ca

Comentarios a estos manuales

Sin comentarios