creating spreadsheets with numbers

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P2

... markup in Example 3-9 is the rules for the nesting of elements within a listbox structure The number of columns needs to be set, each with a element, and all have to be wrapped in a ... cell within an to the column in the tree and is optional Tying the concepts presented in this section together allows us to present Example 3-11, which shows a multilevel tree with ... examples 3.4.1 List Boxes is used to display tabular data Example 3-9 shows a listbox widget with all the basic features, including the definition of the number of columns (listcol), the listbox...

Ngày tải lên: 17/10/2013, 19:15

12 382 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P3

... displayed is directly associated with the element using the src attribute You can also use list-style-image, which is a CSS2 property used to associate an image with an element To this, you need ... groups are useful UI controls that present the user with a choice of options in XUL In HTML, radio choices are represented by the element with the type attribute set to the value of radio, ... connect the tree view to the front end This connection ensures that the correct tree is associated with the view getCellText (row,column) Returns the text of a particular cell, or an empty string...

Ngày tải lên: 20/10/2013, 09:15

14 378 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P4

... label="New"/> You can associate the image with the button using the src attribute, but the more common way is to use the list-style-image ... Table 3-3 Button types Type Usage Description Menu integrated into the Menu type= "menu" button with small arrow icon Menu appears distinct Dual Menu type= "menu-button" from the button, in separate ... contextsensitive help Taking one of the button types in Table 3-3 as a mini-case study, you could use a button with the type menu-button to display more than one option at a time The default orientation for...

Ngày tải lên: 20/10/2013, 09:15

16 391 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P5

... controls used to create a simple three-tab control with content elements on each panel The tabs are associated with the appropriate panels by their order within the containing element 3.9.2.2 Status ... elements within In this example, the icons appear to the left and right of the bar, while the flexed text panel takes up the remaining space 3.9.3 Additional Box Features Boxes work in concert with ... specified as a numerical value, and all flex is relative For example, a child with a flex of is twice as flexible as a child with a flex of 1, as Example 3-20 shows The flex attribute is invaluable...

Ngày tải lên: 24/10/2013, 08:15

15 373 1
Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

Creating Applications with Mozilla-Chapter 3. XUL Elements and Features- P6

... base file at runtime (or be merged with it, as described later in this chapter in the Section 3.11.2 section) When the base element is empty, it is replaced with the corresponding overlay element ... in a base file: When an overlay is read with the content below, the previous line is replaced with that content: Overlay files are XUL files with a xul extension The content within that file has to be contained in an element, which is the root...

Ngày tải lên: 24/10/2013, 08:15

19 367 1
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P1

... element As with class, the ID is specified in the XUL with an attribute (e.g., ) and in the CSS with the pound sign preceding the ID itself In this example, the menu with an ... example, all menus with a XUL baseline class have no borders and a nine-point font size Note that you can use the class without the preceding XUL element to skin all XUL elements with a given class ... attribute selector allows you to style XUL elements with particular attributes or with attributes of a particular value In Example 4-2, all elements with a disabled attribute set to true will have...

Ngày tải lên: 28/10/2013, 15:15

18 337 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P2

... 4.2.2.7 Element relation selectors Contextual subgroups elements appearing within other elements, such as italicized text within a element or a in HTML can be grouped in CSS, but this ... menuitem has a border only when it appears within the toolbar whose class is given as "primary." In the parent-child example, all menu items in a menu with the id "file" are made bold Using +, ... expensive with each new level, and that the descendent operation is particularly processor-intensive 4.2.2.8 The !important keyword As you might imagine, when you have a technology with such...

Ngày tải lên: 28/10/2013, 15:15

16 334 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P3

... select the item, it appears momentarily with a dark gray background and white lettering, like reverse video The Quit menu item, unlike others, appears with a black background Note that it also ... preinstalled with the browser The Classic skin is modeled after earlier versions of the Mozilla UI and of the Netscape 4.x Communicator product It has the familiar light grey box look, with the larger, ... smoother overall look, with rounded edges on many of the widgets, subtle color differentiations, gradients, and 3D icons However, both skins sit on top of the same XUL With one notable exception...

Ngày tải lên: 07/11/2013, 09:15

13 333 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P4

... for these bindings is located in the content subdirectories with the binding XML files In this way, they "stay with" the widget and not with the selected skin You can easily extend or overwrite ... file loaded in Mozilla with no skin information The second is the same XUL file with the global skin loading instruction at the top The third is a screenshot of that XUL file with an instruction ... it is set apart from the regular skin and put in with the content, where it is loaded automatically It's not a good idea to edit this file 4.4 Creating New Skins You have already created the highest...

Ngày tải lên: 07/11/2013, 09:15

10 297 0
Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

Creating Applications with Mozilla-Chapter 4. CSS in Mozilla Applications-P5

... 4.5.1 Binding New Widgets to the Interface Using XBL A description of skins wouldn't be complete without a mention of binding widgets by using XBL, a very powerful feature of CSS in Mozilla The ... the -mozbinding property points to is where an XBL-based definition of a print button is located Creating a style rule in which your XUL element (in this case, a button in which the ID is "print-button") ... define new XUL content, new JavaScript, and new XPConnected interfaces CSS glues the XUL together with the XBL In the first part of the snippet in Example 4-13, for example, the CSS rule binds the...

Ngày tải lên: 07/11/2013, 09:15

12 311 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P1 doc

... DOM properties associated with a XUL window and the other XUL elements, but you can see all of them if you run the example Analyzing output like this can familiarize you with the interfaces available ... any element in the user interface or in the content of a web page Getting and setting attributes, creating elements, hiding elements, and appending children all involve direct manipulation of the ... as changing an image when the user clicks a button, you use the DOM to register an event handler with the button and DOM attributes on the image element to change its source The DOM Level and Level...

Ngày tải lên: 14/12/2013, 12:15

21 333 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P2 ppt

... 5.3 Adding Scripts to the UI Once you are comfortable with how JavaScript works in the context of the user interface layer and are familiar with some of the primary DOM methods used to manipulate ... the window and button events in Example 5-5 carry out some inline script, there is a variation with the onchange handler attached to the menulist element onchange contains a JavaScript function ... for use on XUL elements (and HTML elements) Appendix C has a full listing of these events along with explanations The following subset shows the potential for script interaction when the UI uses...

Ngày tải lên: 14/12/2013, 12:15

12 384 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P3 docx

... manipulated in this way 5.3.4 Creating Elements Dynamically Using the createElement method in XUL lets you accomplish things similar to document.write in HTML, with which you can create new pages ... your application The setAttribute method can also be used to update the element's class attribute with which style rules are so often associated toolbarbutton-1 and button-toolbar are two different ... 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 styles...

Ngày tải lên: 14/12/2013, 12:15

10 283 0
Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

Tài liệu Creating Applications with Mozilla-Chapter 5. Scripting Mozilla- P4 docx

... files Using these interfaces can make life a lot easier by letting you focus on creating your Mozilla application without having to implement XPCOM nsIFile objects manually from your script 5.5.1.4 ... follows: js> fu.spawn('/usr/X11R6/bin/Eterm'); This command spawns a new Eterm with no argument To open an Eterm with vi, you could also use this code: js> fu.spawn('/usr/X11R6/bin/Eterm', ['e/usr/bin/vi']); ... security boundaries) loaded in Mozilla instantiates a Mozilla sound component and plays a sound with it Go ahead and try it Example 5-11 Scripting components from HTML Sound Service...

Ngày tải lên: 14/12/2013, 12:15

22 336 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P1 docx

... target within the files, but the manifest that accompanies the overlay in your package tells Mozilla which overlays are associated with which XUL files The part of the manifest that deals with ... installed-chrome.txt is a convenience for developers who want to create and test new packages without having to install them with installation scripts and manifests Some earlier xFly examples in this book ... (http://optimoz.mozdev.org/gestures/ ), which enables the execution of common browser commands with mouse movements You can package new Mozilla development tools and libraries like JSLib (see...

Ngày tải lên: 14/12/2013, 12:15

24 358 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P2 ppt

... (like ZIP and JAR files) with a special script at the highest level that manages the installation A quick scan of the contents of a XPI file (which you can open using with any unzip utility) reveals ... Displays an Alert dialog box with a message and an OK button Method CancelInstall Description Aborts the installation of the software Displays a Confirm dialog box with Confirm the specified message ... GetFolder directory, for use with the addFile method Method GetLastError Description Returns the most recent nonzero error code getWinProfile Constructs an object for working with a Windows ini file...

Ngày tải lên: 14/12/2013, 12:15

23 354 0
Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

Tài liệu Creating Applications with Mozilla-Chapter 6. Packaging and Installing Applications-P3 pdf

... executables and software into any location on the local machine As with Mozilla application installs, you use an installation script within a XPI to initialize the installation, add the files you ... make your application available to Mozilla users everywhere 6.4.1 Creating the xFly XPI An XPI file is nothing more than a ZIP file with its own installation script Using a ZIP utility, you can archive ... distributing for your package, make the JAR file (xfly.jar) the top level, with the content, skin, and locale directories contained within: xfly.jar content skin locale The URLs you used to refer to...

Ngày tải lên: 14/12/2013, 12:15

15 413 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P1 pptx

... which a binding is associated with a bound element It is essentially a way of telling the element which binding to use Detachment is the process of removing that link and with it, the binding display ... chapter 7.1.2 An XBL Document XBL documents are files saved with an xml filename extension Most bindings implement XUL content and behavior with script, so XBL files reside in your XUL application's ... in Mozilla, HTML is another valid and popular binding format Using the XBL with HTML combination can be advantageous With it, web pages (rendered in Mozilla) can be more feature-rich and move...

Ngày tải lên: 14/12/2013, 12:15

17 367 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P2 pptx

... functions represented by the tag and encapsulated within the element They usually provide a binding object with a specific function like copying and saving some data ... like onclick and onmousedown, and provide a means for trapping them within your binding and carrying out tasks associated with them this.input.focus( ); ... add behavior is to add methods to your binding with the element Each parameter for a method defined in the element is contained within its own tag ...

Ngày tải lên: 14/12/2013, 12:15

11 391 0
Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P3 docx

Tài liệu Creating Applications with Mozilla-Chapter 7. Extending the UI with XBL- P3 docx

... getBindingParent(element) For use only within a binding, this method returns the bound element - i.e., the top-level node of the binding, when passed an element within a binding var listbox = document.getBindingParent(this); ... interfaces in XBL, illustrates how they work, and explains the core concepts involved in XBL interaction with the DOM, such as scope characteristics and insertion points 7.4.1 The XBL DOM Interfaces XBL ... interface methods 7.4.1.1 DocumentXBL methods The DocumentXBL interface gains access to and interacts with an XBL document The methods of this interface are as follows: loadBindingDocument(URL) XBL...

Ngày tải lên: 14/12/2013, 12:15

12 353 0
w