... 291 Data Objects 291 Data Source Duties 292 Data Target Duties ... wxWidgets graphics with wxArtProvider wxIcon; Chapter 11: Clipboard and Drag and Drop Data objects; data source duties; data target duties; using the clipboard; implementing drag and drop; implementing ... basic socket processing; connecting to a server; socket events; socket status and error notifications; sending and receiving socket data; creating a server; socket event recap; socket flags;...
Ngày tải lên: 17/03/2014, 13:20
... and display of data The view is a flexible feature of the tree that can handle everything from simple data in a content view to more dynamic data from a custom view or an RDF datasource (builder ... volume of data is expected to be high The tree widget has a simpler, more lightweight layout, but it is more difficult to use, requiring the addition of special "views" in order to display data 3.4.2.1 ... general categories of datasource, speed, and type of usage Table 3-2 Tree views Content view Builder view Rows are built from a Rows are built from an content model RDF datasource Fast but not...
Ngày tải lên: 17/10/2013, 19:15
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3
... tree views Custom views extend upon the static presentation of data in a tree with more flexibility, different ways to present the same data, and interfaces for defining behavior related to content ... For each entry or row in the browser history, the template extracts information from the datasource and renders it in a treecell It then updates it each time a page is visited For a more ... exposed in the nsITreeView XPCOM object is essentially the lifeline for the tree, supplying the data that populates the view The view is assigned to the code object that contains all the functions...
Ngày tải lên: 20/10/2013, 09:15
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4
... the Mozilla user interface but defined in a centralized file 3.7.1 Broadcaster and Observers Broadcasters and observers are a mechanism for making any number of elements aware of state and event ... different elements in your application that execute the same function, for example, the command and observer system is the ideal way to facilitate reuse Or you can use command sets to define command ... types Mozilla provides more than the standard "click" and "go" buttons in its toolkit Table 3-3 describes the various button types in Mozilla Table 3-3 Button types Type Usage Description Menu integrated...
Ngày tải lên: 20/10/2013, 09:15
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5
... to go one step further and use the format -moz-box-pack These special extensions to CSS are described in the section Section 4.2.3 in Chapter The most commonly used attributes are orient, align, ... ways: • By placing the top and left attributes directly on the tags • By setting them via stylesheets using the CSS properties top and left • By using DOM calls in your script Here is some script ... positioning elements in the box model Example 3-20 Flexible buttons
Ngày tải lên: 24/10/2013, 08:15
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6
... xFly application main workspace
Ngày tải lên: 24/10/2013, 08:15
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1
... the XUL file to load the CSS stylesheet information, or skin, into the XUL Note that the XUL stylesheet loading supports the use of ... separate from style matters as possible 4.2.2 Stylesheet Syntax Cascading Style Sheets are the blueprints for Mozilla skins In Cascading Style Sheets, style definitions take the following basic ... lower, more basic files like xul.css describe the look and feel of common UI elements such as buttons and menus, and higher-level CSS files consistently describe the layout and stylistic details...
Ngày tải lên: 28/10/2013, 15:15
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2
... notions of precedence as Cascading Style Sheets (the ID-based style trumps the class-based style, inline style attributes trump those loaded from an external stylesheet, etc.), you may need to identify ... within an "image sheet" that should be used as an icon in the user interface The -mozimage- following CSS style definition specifies the top- and leftmost button in the btn1.gif image sheet used in ... default skins, these image sheets are found only in the Modern skin They are gradually making their way into the skins; as of this writing, there are three or four image sheets in the Modern skin...
Ngày tải lên: 28/10/2013, 15:15
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3
... button stylesheet inclusion from the XBL file button.xml as a case in point: Here the XBL specific element ... This structure is described in the Section 4.3.2 section later in this chapter 4.3.1.1 Skin inheritance and skin modularization For the sake of discussion, this book describes two kinds of inheritance: ... all the differences in the browser's look and behavior 4.3.4 Skin Files Obviously, we cannot describe even a fraction of the CSS files that go into making up a single, overall theme There are,...
Ngày tải lên: 07/11/2013, 09:15
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4
... subdirectory, and load it from your xfly.xul file by adding the following stylesheet loading instruction at the top: You will recall that ... screenshot of that XUL file with an instruction for loading your own stylesheet, which in turn imports the global skin: The CSS ... start To this, verify that you have the following line at the top of the xfly.xul file: If you not have this line, add it now to the...
Ngày tải lên: 07/11/2013, 09:15
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5
... stylesheets in XBL can be found in Chapter 4.5.2 User Stylesheets In addition to the many CSS stylesheets that give the user interface its look, Mozilla also lets you create personal stylesheets ... url("chrome://xfly/skin/btnflyhov.gif "); } 4.4.4 Describing the Skin in RDF As described in Chapter 6, a manifest must accompany and describe the skin so it can be found and registered The manifest ... 4-13 that this binding pulls in an external stylesheet (toolbarbutton.css), which is contained in the section of the binding This stylesheet provides all the styles and theme information...
Ngày tải lên: 07/11/2013, 09:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc
... Element, and Document The following sections describe some interface methods used to manipulate the object model of application chrome, documents, or metadata in Mozilla The Document and Element interfaces, ... object model in which these structures are organized This model is the DOM for that document or data The DOM provides a context for the scripting language to operate in The specific context for ... XML documents the top-level window object, the elements that make up a web document, and the data stored in those elements as children is standardized in several different specifications,...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt
... scripts into the UI, one of the most common methods is to use Mozilla's event model, which is described in the next few sections 5.3.1 Handling Events from a XUL Element Events are input messages ... a natural process referred to as event propagation or event bubbling The next two sections describe event propagation and its complement, event capturing 5.3.2.1 Event propagation and event ... display a message when clicked However, the stopEvent( ) method has stopped propagation, so after the data in the table is updated, the event phase is effectively ended In this case, the function was...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx
... dynamically generate a list of menu choices based on input data or user feedback Try this example and experiment with different sources of data, such as a menu of different auto manufacturers, different ... manufacturers, different styles on group of boxes that come from user selection, or tabular data in a tree 5.3.5 Sharing Data Between Documents As the scale of your application development increases and ... applications grow new windows and components, you may become interested in passing data around and ensuring that the data remains in scope Misunderstanding that scope often leads to problems when...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx
... Chapter describes more about the XPConnect technology and how it connects components to the interface It also describes the components themselves and their interfaces, ... compile it as an XPCOM component whose methods and data can be accessed from XPConnect (using JavaScript) This kind of application programming is described in Chapter 8, which includes examples of ... source files such as file.js, dir.js, and fileUtils.js Table 5-1 describes the basic classes in the JSLib package's I/O module and describes how they are used Table 5-1 JSLib classes Class / (filename)...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx
... must have manifests describing their contents, skin information, and locale information These manifests are formatted in RDF, which makes them easy to combine with the RDF data that makes up the ... package manifest that describes a new locale, as shown in Example 6-3 (which is for a German language pack in Mozilla), you see a similar structure Again, the manifest describes the new package ... manifests the contents.rdf file, which typically describes a single package-component relationship; and the manifest.rdf file, which describes the package's relationship to all affected components...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt
... it's not stored in a single place Rather, it is a distributed collection of data and interfaces for data manipulation The data itself generally lives in RDF files, many of which are in the chrome ... described earlier in this chapter in the Section 6.2.4 section, the chrome registry handles the registration of new files and packages on the local system, the maintenance of user configurable data ... use the file format and installation information to make the xFly something you can put on a web server and have users install with a single click on a web page 6.2.4 The Chrome Registry The chrome...
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf
... example, defines "xfly" as the name of the package, as shown in Example 6-19 Example 6-19 Package metadata in the xFly manifest
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx
... between XBL bindings and Java objects 7.1.1 XBL Terminology The following terms are used to describe XBL and its use in the XPFE: XBL An acronym for the eXtensible Binding Language In some contexts, ... defined by the tag A simple XBL document is as follows: An XBL document is a valid XML document The ... XUL namespace declaration (xmlns:xul) and the XBL default namespace are declared:
Ngày tải lên: 14/12/2013, 12:15
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx
... own stylesheet like this: Notice the container element, which is a prerequisite for this feature The use of stylesheets in ... oncommand="document.getElementById('myNewWidget') dumpString('hello', 'there!');"/> Using the ...
Ngày tải lên: 14/12/2013, 12:15