This document describes the class libraries that are distributed together with the GNU Smalltalk programming language.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.
• BLOX package: | The GUI library | |
• Complex package: | Complex number computations | |
• DBI package: | The database connectivity library | |
• DebugTools package: | Controlling the execution of Smalltalk processes | |
• Sockets package: | The sockets library | |
• Iconv/I18N packages: | The internationalization library | |
• XML/XPath/XSL packages: | Using the XML library | |
• ZLib package: | Bindings to the popular data compression library | |
• Class index: | Index to the classes in the class reference | |
• Method index: | Index to the method selectors in the class reference | |
• Cross-reference: | Cross-reference between selectors |
Next: Complex package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• BLOX.BArc: | ||
• BLOX.BBalloon: | ||
• BLOX.BBoundingBox: | ||
• BLOX.BButton: | ||
• BLOX.BButtonLike: | ||
• BLOX.BCanvas: | ||
• BLOX.BCanvasObject: | ||
• BLOX.BCheckMenuItem: | ||
• BLOX.BColorButton: | ||
• BLOX.BContainer: | ||
• BLOX.BDialog: | ||
• BLOX.BDropDown: | ||
• BLOX.BDropDownEdit: | ||
• BLOX.BDropDownList: | ||
• BLOX.BEdit: | ||
• BLOX.BEmbeddedImage: | ||
• BLOX.BEmbeddedText: | ||
• BLOX.BEventSet: | ||
• BLOX.BEventTarget: | ||
• BLOX.BExtended: | ||
• BLOX.BForm: | ||
• BLOX.BImage: | ||
• BLOX.BLabel: | ||
• BLOX.BLine: | ||
• BLOX.BList: | ||
• BLOX.Blox: | ||
• BLOX.BMenu: | ||
• BLOX.BMenuBar: | ||
• BLOX.BMenuItem: | ||
• BLOX.BMenuObject: | ||
• BLOX.BOval: | ||
• BLOX.BPolyline: | ||
• BLOX.BPopupMenu: | ||
• BLOX.BPopupWindow: | ||
• BLOX.BPrimitive: | ||
• BLOX.BProgress: | ||
• BLOX.BRadioButton: | ||
• BLOX.BRadioGroup: | ||
• BLOX.BRectangle: | ||
• BLOX.BScrolledCanvas: | ||
• BLOX.BSpline: | ||
• BLOX.BText: | ||
• BLOX.BTextAttributes: | ||
• BLOX.BTextBindings: | ||
• BLOX.BTextTags: | ||
• BLOX.BToggle: | ||
• BLOX.BTransientWindow: | ||
• BLOX.BViewport: | ||
• BLOX.BWidget: | ||
• BLOX.BWindow: | ||
• BLOX.Gui: | ||
Classes documented in this manual are boldfaced. Object BLOX.BEventTarget BLOX.BCanvasObject BLOX.BBoundingBox BLOX.BEmbeddedImage BLOX.BEmbeddedText BLOX.BLine BLOX.BRectangle BLOX.BOval BLOX.BArc BLOX.BPolyline BLOX.BSpline BLOX.BEventSet BLOX.BBalloon BLOX.Blox BLOX.BMenuObject BLOX.BMenu BLOX.BPopupMenu BLOX.BMenuBar BLOX.BMenuItem BLOX.BCheckMenuItem BLOX.BWidget BLOX.BExtended BLOX.BButtonLike BLOX.BColorButton BLOX.BDropDown BLOX.BDropDownEdit BLOX.BDropDownList BLOX.BProgress BLOX.BPrimitive BLOX.BButton BLOX.BRadioButton BLOX.BToggle BLOX.BEdit BLOX.BForm BLOX.BContainer BLOX.BRadioGroup BLOX.BDialog BLOX.BWindow BLOX.BPopupWindow BLOX.BTransientWindow BLOX.BImage BLOX.BLabel BLOX.BViewport BLOX.BCanvas BLOX.BScrolledCanvas BLOX.BList BLOX.BText BLOX.BTextBindings BLOX.BTextAttributes BLOX.BTextTags BLOX.Gui |
Next: BLOX.BBalloon, Up: BLOX package [Index]
I can draw arcs, pie slices (don’t eat them!!), chords, and... nothing more.
• BLOX.BArc-accessing: | (instance) |
Answer the ending of the angular range that is occupied by the arc, expressed in degrees
Set the ending of the angular range that is occupied by the arc, expressed in degrees
Specify that the arc will be filled by painting an area delimited by the arc and the chord that joins the arc’s endpoints.
Specify that the arc will be filled by painting an area delimited by the arc and the two radii joins the center of the arc with each of the endpoints (that is, that a pie slice will be drawn).
Answer the starting point of the arc in cartesian coordinates
Set the starting point of the arc in cartesian coordinates
Set the two starting points of the arc in cartesian coordinates
Answer the beginning of the angular range that is occupied by the arc, expressed in degrees
Set the beginning of the angular range that is occupied by the arc, expressed in degrees
Answer the size of the angular range that is occupied by the arc, expressed in degrees
Set the size of the angular range that is occupied by the arc, expressed in degrees
Answer the ending point of the arc in cartesian coordinates
Set the ending point of the arc in cartesian coordinates
Next: BLOX.BBoundingBox, Previous: BLOX.BArc, Up: BLOX package [Index]
This event set allows a widget to show explanatory information when the mouse lingers over it for a while.
• BLOX.BBalloon class-accessing: | (class) | |
• BLOX.BBalloon-accessing: | (instance) | |
• BLOX.BBalloon-initializing: | (instance) |
Next: BLOX.BBalloon-accessing, Up: BLOX.BBalloon [Index]
Answer the time after which the balloon is shown (default is half a second).
Set the time after which the balloon is shown.
Answer whether a balloon is displayed
Next: BLOX.BBalloon-initializing, Previous: BLOX.BBalloon class-accessing, Up: BLOX.BBalloon [Index]
Answer whether the receiver’s balloon is displayed
Answer the text displayed in the balloon
Set the text displayed in the balloon to aString
Previous: BLOX.BBalloon-accessing, Up: BLOX.BBalloon [Index]
Initialize the event sets for the receiver
Next: BLOX.BButton, Previous: BLOX.BBalloon, Up: BLOX package [Index]
I am the ultimate ancestor of all items that you can put in a BCanvas and which are well defined by their bounding box - i.e. everything except BPolylines and BSplines.
• BLOX.BBoundingBox-accessing: | (instance) |
Up: BLOX.BBoundingBox [Index]
Answer a Rectangle enclosing all of the receiver
Answer the center point of the receiver
Move the object so that it is centered around the center Point and its size is given by the extent Point. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Answer the Point specifying the lower-right corner of the receiver
Set the Point specifying the lower-right corner of the receiver; pointOrArray can be a Point or a two-item Array. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Answer a Point specifying the size of the receiver
Set the Point specifying the size of the receiver; pointOrArray can be a Point or a two-item Array. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Move the object by the amount indicated by pointOrArray: that is, its whole bounding box is shifted by that amount. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Answer the Point specifying the top-left corner of the receiver
Set the Point specifying the top-left corner of the receiver; pointOrArray can be a Point or a two-item Array. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Set the bounding box of the object, based on a Point specifying the top-left corner of the receiver and another specifying the bottom-right corner; the two parameters can both be Points or two-item Arrays. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Set the bounding box of the object, based on a Point specifying the top-left corner of the receiver and another specifying its size; the two parameters can both be Points or two-item Arrays. No changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Next: BLOX.BButtonLike, Previous: BLOX.BBoundingBox, Up: BLOX package [Index]
I am a button that a user can click. In fact I am at the head of a small hierarchy of objects which exhibit button-like look and behavior
• BLOX.BButton class-instance creation: | (class) | |
• BLOX.BButton-accessing: | (instance) |
Next: BLOX.BButton-accessing, Up: BLOX.BButton [Index]
Answer a new BButton widget laid inside the given parent widget, showing by default the ‘label’ String.
Previous: BLOX.BButton class-instance creation, Up: BLOX.BButton [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer a DirectedMessage that is sent when the receiver is clicked, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is clicked. If the method accepts an argument, the receiver is passed.
Answer the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Generate a synthetic callback
Answer the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Next: BLOX.BCanvas, Previous: BLOX.BButton, Up: BLOX package [Index]
I am an object whose 3-D appearance resembles that of buttons.
• BLOX.BButtonLike-accessing: | (instance) |
Up: BLOX.BButtonLike [Index]
Answer a DirectedMessage that is sent when the receiver is clicked, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is clicked. If the method accepts an argument, the receiver is passed.
Generate a synthetic callback
This is the default callback for the widget; it does nothing if you don’t override it. Of course if a subclass overriddes this you (user of the class) might desire to call this method from your own callback.
Next: BLOX.BCanvasObject, Previous: BLOX.BButtonLike, Up: BLOX package [Index]
I am an host for whatever geometric shape you want. If you want to do some fancy graphics with Smalltalk, I’ll be happy to help. My friends derived from BCanvasObject ask me all sort of things to do, so I am the real worker, not they!
BCanvasObject: I am BCanvas: No I am BCanvasObject: No I am BCanvas: No I am
well, you know, he always has something to object.
• BLOX.BCanvas-accessing: | (instance) | |
• BLOX.BCanvas-geometry management: | (instance) | |
• BLOX.BCanvas-widget protocol: | (instance) |
Next: BLOX.BCanvas-geometry management, Up: BLOX.BCanvas [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Next: BLOX.BCanvas-widget protocol, Previous: BLOX.BCanvas-accessing, Up: BLOX.BCanvas [Index]
The widget identified by child has been added to the receiver. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to either the superclass implementation or #basicAddChild:, to perform some initialization on the children just added. Answer the new child.
Set the given child’s height.
Offset the given child’s height by value pixels.
Set the given child’s width.
Offset the given child’s width by value pixels.
Set the given child’s top-left corner’s x coordinate, in pixels in the canvas’ coordinate system.
Offset the given child’s top-left x by value pixels.
Set the given child’s top-left corner’s y coordinate, in pixels in the canvas’ coordinate system.
Offset the given child’s top-left y by value pixels.
Answer the given child’s height in pixels.
Answer the given child’s width in pixels.
Answer the given child’s top-left corner’s x coordinate, in pixels in the canvas’ coordinate system.
Answer the given child’s top-left corner’s y coordinate, in pixels in the canvas’ coordinate system.
Previous: BLOX.BCanvas-geometry management, Up: BLOX.BCanvas [Index]
Selects the topmost item in the canvas overlapping the point given by aPoint.
Evaluate aBlock for each item whose bounding box intersects the rectangle between the two Points, origin and corner. Pass the item to the block.
Answer the bounding box of all the items in the canvas
The widget has been destroyed. Tell all of its items about this fact.
Evaluate aBlock, passing each item to it.
Remove all the items from the canvas, leaving it empty
Answer the amount of space that is left as a border around the canvas items.
Set the amount of space that is left as a border around the canvas items.
Answer an Array containing all the items in the canvas
Given aPoint, a point expressed in window coordinates, answer the corresponding canvas coordinates that are displayed at that location.
Next: BLOX.BCheckMenuItem, Previous: BLOX.BCanvas, Up: BLOX package [Index]
I am the ultimate ancestor of all items that you can put in a BCanvas. I provide some general methods to my concrete offspring.
• BLOX.BCanvasObject class-instance creation: | (class) | |
• BLOX.BCanvasObject-accessing: | (instance) | |
• BLOX.BCanvasObject-widget protocol: | (instance) |
Next: BLOX.BCanvasObject-accessing, Up: BLOX.BCanvasObject [Index]
This method should not be called for instances of this class.
Answer a new instance of the receiver, displayed into the given parentCanvas.
Next: BLOX.BCanvasObject-widget protocol, Previous: BLOX.BCanvasObject class-instance creation, Up: BLOX.BCanvasObject [Index]
Answer the parent canvas of the receiver
Answer a Rectangle enclosing all of the receiver
Answer the color to be used to fill this item’s area.
Set the color to be used to fill this item’s area.
Answer a new BCanvasObject identical to this but displayed into another canvas, newCanvas. The new instance is not created at the time it is returned.
Answer a new BCanvasObject identical to this. Unlike #copy, which merely creates a new Smalltalk object with the same data and referring to the same canvas item, the object created with #copyObject is physically distinct from the original. The new instance is not created at the time it is returned.
Answer a new BCanvasObject identical to this. Unlike #copy, which merely creates a new Smalltalk object with the same data and referring to the same canvas item, the object created with #copyObject is physically distinct from the original. The new instance has already been created at the time it is returned.
Answer a new BCanvasObject identical to this but displayed into another canvas, newCanvas. The new instance has already been created at the time it is returned.
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver
Apply a 50% gray stippling pattern to the object
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver
Previous: BLOX.BCanvasObject-accessing, Up: BLOX.BCanvasObject [Index]
If the object has not been created yet and has been initialized correctly, insert it for real in the parent canvas
Answer whether the object is just a placeholder or has already been inserted for real in the parent canvas
Move the item to the lowest position in the display list. Child widgets always obscure other item types, and the stacking order of window items is determined by sending methods to the widget object directly.
Move the item to the highest position in the display list. Child widgets always obscure other item types, and the stacking order of window items is determined by sending methods to the widget object directly.
Force the object to be displayed in the parent canvas, creating it if it has not been inserted for real in the parent, and refresh its position if it has changed.
Remove the object from the canvas
Ensure that the object is visible in the center of the canvas, scrolling it if necessary.
Next: BLOX.BColorButton, Previous: BLOX.BCanvasObject, Up: BLOX package [Index]
I am a menu item which can be toggled between two states, marked and unmarked.
• BLOX.BCheckMenuItem class-instance creation: | (class) | |
• BLOX.BCheckMenuItem-accessing: | (instance) |
Next: BLOX.BCheckMenuItem-accessing, Up: BLOX.BCheckMenuItem [Index]
This method should not be called for instances of this class.
Previous: BLOX.BCheckMenuItem class-instance creation, Up: BLOX.BCheckMenuItem [Index]
Generate a synthetic callback
Answer whether the menu item is in a selected (checked) state.
Set whether the button is in a selected (checked) state and generates a callback accordingly.
Next: BLOX.BContainer, Previous: BLOX.BCheckMenuItem, Up: BLOX package [Index]
I am a button that shows a color and that, unless a different callback is used, lets you choose a color when it is clicked.
• BLOX.BColorButton-accessing: | (instance) |
Up: BLOX.BColorButton [Index]
Set the color that the receiver is painted in.
Set the color that the receiver is painted in.
This is the default callback; it brings up a ‘choose-a-color’ window and, if ‘Ok’ is pressed in the window, sets the receiver to be painted in the chosen color.
Next: BLOX.BDialog, Previous: BLOX.BColorButton, Up: BLOX package [Index]
I am used to group many widgets together. I can perform simple management by putting widgets next to each other, from left to right or from top to bottom.
• BLOX.BContainer-accessing: | (instance) |
Up: BLOX.BContainer [Index]
Answer whether the container will align the widgets vertically or horizontally. Horizontal alignment means that widgets are packed from left to right, while vertical alignment means that widgets are packed from the top to the bottom of the widget.
Widgets that are set to be “stretched” will share all the space that is not allocated to non-stretched widgets.
The layout of the widget can only be set before the first child is inserted in the widget.
Next: BLOX.BDropDown, Previous: BLOX.BContainer, Up: BLOX package [Index]
I am a facility for implementing dialogs with many possible choices and requests. In addition I provide support for a few platform native common dialog boxes, such as choose-a-file and choose-a-color.
• BLOX.BDialog class-instance creation: | (class) | |
• BLOX.BDialog class-prompters: | (class) | |
• BLOX.BDialog-accessing: | (instance) | |
• BLOX.BDialog-widget protocol: | (instance) |
Next: BLOX.BDialog class-prompters, Up: BLOX.BDialog [Index]
Answer a new dialog handler (containing a label widget and some button widgets) laid out within the given parent window. The label widget, when it is created, is empty.
Answer a new dialog handler (containing a label widget and some button widgets) laid out within the given parent window. The label widget, when it is created, contains aLabel.
Answer a new dialog handler (containing a label widget, some button widgets, and an edit window showing aString by default) laid out within the given parent window. The label widget, when it is created, contains aLabel.
Next: BLOX.BDialog-accessing, Previous: BLOX.BDialog class-instance creation, Up: BLOX.BDialog [Index]
Prompt for a color. The dialog box is created with the given parent window and with aLabel as its title bar text, and initially it selects the color given in the color parameter.
If the dialog box is canceled, nil is answered, else the selected color is returned as a String with its RGB value.
Pop up a dialog box for the user to select a file to open. Its purpose is for the user to select an existing file only. If the user enters an non-existent file, the dialog box gives the user an error prompt and requires the user to give an alternative selection or to cancel the selection. If an application allows the user to create new files, it should do so by providing a separate New menu command.
If the dialog box is canceled, nil is answered, else the selected file name is returned as a String.
The dialog box is created with the given parent window and with aLabel as its title bar text. The name parameter indicates which file is initially selected, and the default extension specifies a string that will be appended to the filename if the user enters a filename without an extension.
The typeList parameter is an array of arrays, like #((’Text files’ ’.txt’ ’.diz’) (’Smalltalk files’ ’.st’)), and is used to construct a listbox of file types. When the user chooses a file type in the listbox, only the files of that type are listed. Each item in the array contains a list of strings: the first one is the name of the file type described by a particular file pattern, and is the text string that appears in the File types listbox, while the other ones are the possible extensions that belong to this particular file type.
Pop up a dialog box for the user to select a file to save; this differs from the file open dialog box in that non-existent file names are accepted and existing file names trigger a confirmation dialog box, asking the user whether the file should be overwritten or not.
If the dialog box is canceled, nil is answered, else the selected file name is returned as a String.
The dialog box is created with the given parent window and with aLabel as its title bar text. The name parameter indicates which file is initially selected, and the default extension specifies a string that will be appended to the filename if the user enters a filename without an extension.
The typeList parameter is an array of arrays, like #((’Text files’ ’.txt’ ’.diz’) (’Smalltalk files’ ’.st’)), and is used to construct a listbox of file types. When the user chooses a file type in the listbox, only the files of that type are listed. Each item in the array contains a list of strings: the first one is the name of the file type described by a particular file pattern, and is the text string that appears in the File types listbox, while the other ones are the possible extensions that belong to this particular file type.
Next: BLOX.BDialog-widget protocol, Previous: BLOX.BDialog class-prompters, Up: BLOX.BDialog [Index]
Add a button to the dialog box that, when clicked, will cause the #dispatch: method to be triggered in anObject, passing anInt as the argument of the callback. The caption of the button is set to aLabel.
Add a button to the dialog box that, when clicked, will cause the aSymbol unary selector to be sent to anObject. The caption of the button is set to aLabel.
Add a button to the dialog box that, when clicked, will cause the aSymbol one-argument selector to be sent to anObject, passing arg as the argument of the callback. The caption of the button is set to aLabel.
Answer the text that is displayed in the entry widget associated to the dialog box.
Display newText in the entry widget associated to the dialog box.
Previous: BLOX.BDialog-accessing, Up: BLOX.BDialog [Index]
Center the dialog box’s parent window in the screen
Center the dialog box’s parent window in the given widget
Private - The receiver has been destroyed, clear the corresponding Tcl variable to avoid memory leaks.
Generate a synthetic callback corresponding to the index-th button being pressed, and destroy the parent window (triggering its callback if one was established).
Map the parent window modally. In other words, an event loop is started that ends only after the window has been destroyed. For more information on the treatment of events for modal windows, refer to BWindow>>#modalMap.
Next: BLOX.BDropDownEdit, Previous: BLOX.BDialog, Up: BLOX package [Index]
This class is an abstract superclass for widgets offering the ability to pick items from a pre-built list. The list is usually hidden, but a button on the right of this widgets makes it pop up. This widget is thus composed of three parts: an unspecified text widget (shown on the left of the button and always visible), the button widget (shown on the right, it depicts a down arrow, and is always visible), and the pop-up list widget.
• BLOX.BDropDown-accessing: | (instance) | |
• BLOX.BDropDown-callbacks: | (instance) | |
• BLOX.BDropDown-flexibility: | (instance) | |
• BLOX.BDropDown-list box accessing: | (instance) | |
• BLOX.BDropDown-widget protocol: | (instance) |
Next: BLOX.BDropDown-callbacks, Up: BLOX.BDropDown [Index]
Answer the value of the backgroundColor for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the normal background color to use when displaying the widget.
Answer the number of items that are visible at any time in the listbox.
Set the number of items that are visible at any time in the listbox.
Answer the value of the font option for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor for the widget, which in this class is only set for the list widget (that is, the pop-up widget). Subclasses should override this method so that the color is set properly for the text widget as well.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the list widget.
Set the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the list widget.
Answer the value of the highlightForeground option for the widget.
Specifies the foreground color to use when displaying selected items in the list widget.
Set the value of the highlightForeground option for the widget.
Specifies the foreground color to use when displaying selected items in the list widget.
Next: BLOX.BDropDown-flexibility, Previous: BLOX.BDropDown-accessing, Up: BLOX.BDropDown [Index]
Answer a DirectedMessage that is sent when the receiver is clicked, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is clicked. If the method accepts an argument, the receiver is passed.
Generate a synthetic callback
Next: BLOX.BDropDown-list box accessing, Previous: BLOX.BDropDown-callbacks, Up: BLOX.BDropDown [Index]
Create the popup widget to be used for the ‘drop-down list’. It is a BList by default, but you can use any other widget, overriding the ‘list box accessing’ methods if necessary.
Create the widget that will hold the string chosen from the list box and answer it. The widget must be a child of ‘self primitive’.
Answer the height of an item in the drop-down list. The default implementation assumes that the receiver understands #font, but you can modify it if you want.
Called when an item of the listbox is highlighted. Do nothing by default
Select the item lying at the given position in the list box. The default implementation assumes that list is a BList, but you can modify it if you want.
Answer the text currently chosen in the list box. The default implementation assumes that list is a BList, but you can modify it if you want.
Answer the text that the user has picked from the widget and/or typed in the control (the exact way the text is entered will be established by subclasses, since this is an abstract method).
Set the text widget to aString
Next: BLOX.BDropDown-widget protocol, Previous: BLOX.BDropDown-flexibility, Up: BLOX.BDropDown [Index]
Add an element with the given value after another element whose index is contained in the index parameter. The label displayed in the widget is anObject’s displayString. Answer anObject.
Add an element with the aString label after another element whose index is contained in the index parameter. This method allows the client to decide autonomously the label that the widget will display.
If anObject is nil, then string is used as the element as well. If aString is nil, then the element’s displayString is used as the label.
Answer anObject or, if it is nil, aString.
Add an element with the given value at the end of the listbox. The label displayed in the widget is anObject’s displayString. Answer anObject.
Add an element with the given value at the end of the listbox. This method allows the client to decide autonomously the label that the widget will display.
If anObject is nil, then string is used as the element as well. If aString is nil, then the element’s displayString is used as the label.
Answer anObject or, if it is nil, aString.
Answer an association whose key is the item at the given position in the listbox and whose value is the label used to display that item.
Answer the element displayed at the given position in the list box.
Set the elements displayed in the listbox, and set the labels to be their displayStrings.
Set the elements displayed in the listbox to be those in elementList, and set the labels to be the corresponding elements in stringCollection. The two collections must have the same size.
Iterate over each element of the listbox and pass it to aBlock.
Set the elements displayed in the listbox, and set the labels to be their displayStrings.
Highlight the item at the given position in the listbox, and transfer the text in the list box to the text widget.
Answer the label displayed at the given position in the list box.
Iterate over the labels in the list widget and pass each of them to aBlock.
Answer the number of items in the list box
Remove the item at the given index in the list box, answering the object associated to the element (i.e. the value that #at: would have returned for the given index)
Answer the number of items in the list box
Previous: BLOX.BDropDown-list box accessing, Up: BLOX.BDropDown [Index]
Answer the rectangle in which the list widget will pop-up. If possible, this is situated below the drop-down widget’s bottom side, but if the screen space there is not enough it could be above the drop-down widget’s above side. If there is no screen space above as well, we pick the side where we can offer the greatest number of lines in the pop-up widget.
Force the pop-up list widget to be visible.
Answer whether the pop-up widget is visible
Toggle the visibility of the pop-up widget.
Unmap the pop-up widget from the screen, transfer its selected item to the always visible text widget, and generate a callback.
Next: BLOX.BDropDownList, Previous: BLOX.BDropDown, Up: BLOX package [Index]
This class resembles an edit widget, but it has an arrow button that allows the user to pick an item from a pre-built list.
• BLOX.BDropDownEdit-accessing: | (instance) | |
• BLOX.BDropDownEdit-accessing-overrides: | (instance) | |
• BLOX.BDropDownEdit-text accessing: | (instance) |
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the list widget and the selection in the text widget.
Set the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the list widget and the selection in the text widget.
Next: BLOX.BDropDownEdit-text accessing, Previous: BLOX.BDropDownEdit-accessing, Up: BLOX.BDropDownEdit [Index]
Answer the text shown in the widget
Previous: BLOX.BDropDownEdit-accessing-overrides, Up: BLOX.BDropDownEdit [Index]
Clear the selection and append aString at the end of the text widget.
Insert aString in the text widget at the current insertion point, replacing the currently selected text (if any), and leaving the text selected.
Select the whole contents of the text widget
Sets the selection of the text widget to include the characters starting with the one indexed by first (the very first character in the widget having index 1) and ending with the one just before last. If last refers to the same character as first or an earlier one, then the text widget’s selection is cleared.
Answer an empty string if the text widget has no selection, else answer the currently selected text
Answer nil if the text widget has no selection, else answer an Interval object whose first item is the index of the first character in the selection, and whose last item is the index of the character just after the last one in the selection.
Set the contents of the text widget and select them.
Next: BLOX.BEdit, Previous: BLOX.BDropDownEdit, Up: BLOX package [Index]
This class resembles a list box widget, but its actual list shows up only when you click the arrow button beside the currently selected item.
• BLOX.BDropDownList-accessing: | (instance) | |
• BLOX.BDropDownList-callbacks: | (instance) | |
• BLOX.BDropDownList-list box accessing: | (instance) |
Next: BLOX.BDropDownList-callbacks, Up: BLOX.BDropDownList [Index]
Set the value of the backgroundColor for the widget, which in this class is set for the list widget and, when the focus is outside the control, for the text widget as well.
Specifies the normal background color to use when displaying the widget.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the foregroundColor for the widget, which in this class is set for the list widget and, when the focus is outside the control, for the text widget as well.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the list widget and, when the focus is inside the control, for the text widget as well.
Answer the value of the highlightForeground option for the widget.
Specifies the foreground color to use when displaying selected items in the list widget and, when the focus is inside the control, for the text widget as well.
Answer the text that the user has picked from the widget and/or typed in the control (the exact way the text is entered will be established by subclasses, since this is an abstract method).
Next: BLOX.BDropDownList-list box accessing, Previous: BLOX.BDropDownList-accessing, Up: BLOX.BDropDownList [Index]
Set up so that aReceiver is sent the aSymbol message (the name of a selector with at most two arguemtnts) when the active item in the receiver changegs. If the method accepts two arguments, the receiver is passed as the first parameter. If the method accepts one or two arguments, the selected index is passed as the last parameter.
Generate a synthetic callback.
Previous: BLOX.BDropDownList-callbacks, Up: BLOX.BDropDownList [Index]
Answer the value of the index option for the widget. Since it is not possible to modify an item once it has been picked from the list widget, this is always defined for BDropDownList widgets.
Next: BLOX.BEmbeddedImage, Previous: BLOX.BDropDownList, Up: BLOX package [Index]
I am a widget showing one line of modifiable text.
• BLOX.BEdit class-instance creation: | (class) | |
• BLOX.BEdit-accessing: | (instance) | |
• BLOX.BEdit-widget protocol: | (instance) |
Next: BLOX.BEdit-accessing, Up: BLOX.BEdit [Index]
Answer a new BEdit widget laid inside the given parent widget, with a default content of aString
Next: BLOX.BEdit-widget protocol, Previous: BLOX.BEdit class-instance creation, Up: BLOX.BEdit [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer a DirectedMessage that is sent when the receiver is modified, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is modified. If the method accepts an argument, the receiver is passed.
Return the contents of the widget
Set the contents of the widget
Answer the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the selectBackground option for the widget.
Specifies the background color to use when displaying selected parts of the widget.
Set the value of the selectBackground option for the widget.
Specifies the background color to use when displaying selected parts of the widget.
Answer the value of the selectForeground option for the widget.
Specifies the foreground color to use when displaying selected parts of the widget.
Set the value of the selectForeground option for the widget.
Specifies the foreground color to use when displaying selected parts of the widget.
Previous: BLOX.BEdit-accessing, Up: BLOX.BEdit [Index]
Private - The receiver has been destroyed, clear the corresponding Tcl variable to avoid memory leaks.
Answer whether there is selected text in the widget
Clear the selection and append aString at the end of the widget.
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any).
Generate a synthetic callback.
Clear the selection and append aCharacter at the end of the widget.
Clear the selection and append aString at the end of the widget.
Clear the selection and append a linefeed character at the end of the widget.
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any), and leaving the text selected.
Select the whole contents of the widget.
Sets the selection to include the characters starting with the one indexed by first (the very first character in the widget having index 1) and ending with the one just before last. If last refers to the same character as first or an earlier one, then the widget’s selection is cleared.
Answer an empty string if the widget has no selection, else answer the currently selected text
Answer nil if the widget has no selection, else answer an Interval object whose first item is the index of the first character in the selection, and whose last item is the index of the character just after the last one in the selection.
Clear the selection and append a space at the end of the widget.
Next: BLOX.BEmbeddedText, Previous: BLOX.BEdit, Up: BLOX package [Index]
I can draw a colorful image inside the canvas.
• BLOX.BEmbeddedImage-accessing: | (instance) |
Up: BLOX.BEmbeddedImage [Index]
Answer a new BCanvasObject identical to this but displayed into another canvas, newCanvas. The new instance is not created at the time it is returned.
Answer the data of the image. The result will be a String containing image data either as Base-64 encoded GIF data, as XPM data, or as PPM data.
Set the data of the image. aString may contain the data either as Base-64 encoded GIF data, as XPM data, or as PPM data. No changes are visible until you toggle a redraw using the appropriate method.
Force the object to be displayed in the parent canvas, creating it if it has not been inserted for real in the parent, and refresh its position and image data if it has changed.
Next: BLOX.BEventSet, Previous: BLOX.BEmbeddedImage, Up: BLOX package [Index]
I can draw text in all sorts of colors, sizes and fonts.
• BLOX.BEmbeddedText-accessing: | (instance) |
Up: BLOX.BEmbeddedText [Index]
Answer the value of the font option for the canvas object.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the canvas object.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer how to justify the text within its bounding region.
Sets how to justify the text within its bounding region. Can be #left, #right or #center (the default).
Force the object to be displayed in the parent canvas, creating it if it has not been inserted for real in the parent, and refresh its position.
Answer the text that is printed by the object
Set the text that is printed by the object
Next: BLOX.BEventTarget, Previous: BLOX.BEmbeddedText, Up: BLOX package [Index]
I combine event handlers and let you apply them to many objects. Basically, you derive a class from me, override the #initialize: method to establish the handlers, then use the #addEventSet: method understood by every Blox class to add the event handlers specified by the receiver to the object.
• BLOX.BEventSet class-initializing: | (class) | |
• BLOX.BEventSet-accessing: | (instance) | |
• BLOX.BEventSet-initializing: | (instance) |
Next: BLOX.BEventSet-accessing, Up: BLOX.BEventSet [Index]
This method should not be called for instances of this class.
Private - Create a new event set object that will attach to the given widget. Answer the object. Note: this method should be called by #addEventSet:, not directly
Next: BLOX.BEventSet-initializing, Previous: BLOX.BEventSet class-initializing, Up: BLOX.BEventSet [Index]
Answer the widget to which the receiver is attached.
Previous: BLOX.BEventSet-accessing, Up: BLOX.BEventSet [Index]
Initialize the receiver’s event handlers to attach to aBWidget. You can override this of course, but don’t forget to call the superclass implementation first.
Next: BLOX.BExtended, Previous: BLOX.BEventSet, Up: BLOX package [Index]
I track all the event handling procedures that you apply to an object.
• BLOX.BEventTarget-intercepting events: | (instance) |
Up: BLOX.BEventTarget [Index]
Add to the receiver the event handlers implemented by an instance of aBEventSetSubclass. Answer the new instance of aBEventSetSublass.
When an ASCII key is pressed and the receiver has the focus, send the 1-argument message identified by aSelector to anObject, passing to it a Character.
When the receiver is destroyed, send the unary message identified by aSelector to anObject.
When the focus enters the receiver, send the unary message identified by aSelector to anObject.
When the focus leaves the receiver, send the unary message identified by aSelector to anObject.
When the given key is pressed and the receiver has the focus, send the unary message identified by aSelector to anObject. Examples for key are: ’Ctrl-1’, ’Alt-X’, ’Meta-plus’, ’enter’. The last two cases include example of special key identifiers; these include: ’backslash’, ’exclam’, ’quotedbl’, ’dollar’, ’asterisk’, ’less’, ’greater’, ’asciicircum’ (caret), ’question’, ’equal’, ’parenleft’, ’parenright’, ’colon’, ’semicolon’, ’bar’ (pipe sign), ’underscore’, ’percent’, ’minus’, ’plus’, ’BackSpace’, ’Delete’, ’Insert’, ’Return’, ’End’, ’Home’, ’Prior’ (Pgup), ’Next’ (Pgdn), ’F1’..’F24’, ’Caps_Lock’, ’Num_Lock’, ’Tab’, ’Left’, ’Right’, ’Up’, ’Down’. There are in addition four special identifiers which map to platform-specific keys: ’<Cut>’, ’<Copy>’, ’<Paste>’, ’<Clear>’ (all with the angular brackets!).
When a key is pressed and the receiver has the focus, send the 1-argument message identified by aSelector to anObject. The pressed key will be passed as a String parameter; some of the keys will send special key identifiers such as those explained in the documentation for #onKeyEvent:send:to: Look at the #eventTest test program in the BloxTestSuite to find out the parameters passed to such an event procedure
When a key has been released and the receiver has the focus, send the 1-argument message identified by aSelector to anObject. The released key will be passed as a String parameter; some of the keys will send special key identifiers such as those explained in the documentation for #onKeyEvent:send:to: Look at the #eventTest test program in the BloxTestSuite to find out the parameters passed to such an event procedure
When the given button is double-clicked on the mouse, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When a button is double-clicked on the mouse, send the 2-argument message identified by aSelector to anObject. The mouse position will be passed as a Point in the first parameter, the button number will be passed as an Integer in the second parameter.
When the given button is pressed on the mouse, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When a button is pressed on the mouse, send the 2-argument message identified by aSelector to anObject. The mouse position will be passed as a Point in the first parameter, the button number will be passed as an Integer in the second parameter.
When the mouse enters the widget, send the unary message identified by aSelector to anObject.
When the mouse leaves the widget, send the unary message identified by aSelector to anObject.
When the mouse is moved while the given button is pressed on the mouse, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When the mouse is moved, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When the given button is triple-clicked on the mouse, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When a button is triple-clicked on the mouse, send the 2-argument message identified by aSelector to anObject. The mouse position will be passed as a Point in the first parameter, the button number will be passed as an Integer in the second parameter.
When the given button is released on the mouse, send the 1-argument message identified by aSelector to anObject. The mouse position will be passed as a Point.
When a button is released on the mouse, send the 2-argument message identified by aSelector to anObject. The mouse position will be passed as a Point in the first parameter, the button number will be passed as an Integer in the second parameter.
When the receiver is resized, send the 1-argument message identified by aSelector to anObject. The new size will be passed as a Point.
Next: BLOX.BForm, Previous: BLOX.BEventTarget, Up: BLOX package [Index]
Just like Gui, I serve as a base for complex objects which expose an individual protocol but internally use a Blox widget for creating their user interface. Unlike Gui, however, the instances of my subclasses understand the standard widget protocol. Just override my newPrimitive method to return another widget, and you’ll get a class which interacts with the user like that widget (a list box, a text box, or even a label) but exposes a different protocol.
• BLOX.BExtended-accessing: | (instance) | |
• BLOX.BExtended-customization: | (instance) |
Next: BLOX.BExtended-customization, Up: BLOX.BExtended [Index]
Answer the primitive widget that implements the receiver.
Previous: BLOX.BExtended-accessing, Up: BLOX.BExtended [Index]
After this method is called (the call is made automatically) the receiver will be attached to a ‘primitive’ widget (which can be in turn another extended widget). This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to super (which only calls #newPrimitive and saves the result), to perform some initialization on the primitive widget just created; overriding #create is in fact more generic than overriding #newPrimitive. For an example of this, see the implementation of BButtonLike.
Create and answer a new widget on which the implementation of the receiver will be based. You should not call this method directly; instead you must override it in BExtended’s subclasses.
Next: BLOX.BImage, Previous: BLOX.BExtended, Up: BLOX package [Index]
I am used to group many widgets together. I leave the heavy task of managing their position to the user.
• BLOX.BForm-accessing: | (instance) |
Up: BLOX.BForm [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer the value of the defaultHeight option for the widget.
Specifies the desired height for the form in pixels. If this option is less than or equal to zero then the window will not request any size at all.
Set the value of the defaultHeight option for the widget.
Specifies the desired height for the form in pixels. If this option is less than or equal to zero then the window will not request any size at all.
Answer the value of the defaultWidth option for the widget.
Specifies the desired width for the form in pixels. If this option is less than or equal to zero then the window will not request any size at all.
Set the value of the defaultWidth option for the widget.
Specifies the desired width for the form in pixels. If this option is less than or equal to zero then the window will not request any size at all.
Next: BLOX.BLabel, Previous: BLOX.BForm, Up: BLOX package [Index]
I can display colorful images.
• BLOX.BImage class-arrows: | (class) | |
• BLOX.BImage class-GNU: | (class) | |
• BLOX.BImage class-icons: | (class) | |
• BLOX.BImage class-instance creation: | (class) | |
• BLOX.BImage class-small icons: | (class) | |
• BLOX.BImage-accessing: | (instance) | |
• BLOX.BImage-image management: | (instance) | |
• BLOX.BImage-widget protocol: | (instance) |
Next: BLOX.BImage class-GNU, Up: BLOX.BImage [Index]
Answer the XPM representation of a 12x12 arrow pointing downwards.
Answer the XPM representation of a 12x12 arrow pointing leftwards.
Answer the XPM representation of a 12x12 arrow pointing rightwards.
Answer the XPM representation of a 12x12 arrow pointing upwards.
Next: BLOX.BImage class-icons, Previous: BLOX.BImage class-arrows, Up: BLOX.BImage [Index]
Answer the XPM representation of a 48x48 GNU.
Next: BLOX.BImage class-instance creation, Previous: BLOX.BImage class-GNU, Up: BLOX.BImage [Index]
Answer the XPM representation of a 32x32 exclamation mark icon.
Answer the XPM representation of a 32x32 ‘information’ icon.
Answer the XPM representation of a 32x32 question mark icon.
Answer the XPM representation of a 32x32 ‘critical stop’ icon.
Next: BLOX.BImage class-small icons, Previous: BLOX.BImage class-icons, Up: BLOX.BImage [Index]
Answer a new BImage widget laid inside the given parent widget, loading data from the given string (Base-64 encoded GIF, XPM, PPM are supported).
Answer a new BImage widget laid inside the given parent widget, loading data from the given file (GIF, XPM, PPM are supported).
Answer a new BImage widget laid inside the given parent widget, showing by default a transparent image of aPoint size.
Next: BLOX.BImage-accessing, Previous: BLOX.BImage class-instance creation, Up: BLOX.BImage [Index]
Answer the Base-64 GIF representation of a ‘directory folder’ icon.
Answer the Base-64 GIF representation of a ‘file’ icon.
Next: BLOX.BImage-image management, Previous: BLOX.BImage class-small icons, Up: BLOX.BImage [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer the value of the displayHeight option for the widget.
Specifies the height of the image in pixels. This is not the height of the widget, but specifies the area of the widget that will be taken by the image.
Set the value of the displayHeight option for the widget.
Specifies the height of the image in pixels. This is not the height of the widget, but specifies the area of the widget that will be taken by the image.
Answer the value of the displayWidth option for the widget.
Specifies the width of the image in pixels. This is not the width of the widget, but specifies the area of the widget that will be taken by the image.
Set the value of the displayWidth option for the widget.
Specifies the width of the image in pixels. This is not the width of the widget, but specifies the area of the widget that will be taken by the image.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the gamma option for the widget.
Specifies that the colors allocated for displaying the image widget should be corrected for a non-linear display with the specified gamma exponent value. (The intensity produced by most CRT displays is a power function of the input value, to a good approximation; gamma is the exponent and is typically around 2). The value specified must be greater than zero. The default value is one (no correction). In general, values greater than one will make the image lighter, and values less than one will make it darker.
Set the value of the gamma option for the widget.
Specifies that the colors allocated for displaying the image widget should be corrected for a non-linear display with the specified gamma exponent value. (The intensity produced by most CRT displays is a power function of the input value, to a good approximation; gamma is the exponent and is typically around 2). The value specified must be greater than zero. The default value is one (no correction). In general, values greater than one will make the image lighter, and values less than one will make it darker.
Next: BLOX.BImage-widget protocol, Previous: BLOX.BImage-accessing, Up: BLOX.BImage [Index]
Blank the corresponding image
Set the image to be drawn to aString, which can be a GIF in Base-64 representation or an X pixelmap.
Recalculate the dithered image in the window where the image is displayed. The dithering algorithm used in displaying images propagates quantization errors from one pixel to its neighbors. If the image data is supplied in pieces, the dithered image may not be exactly correct. Normally the difference is not noticeable, but if it is a problem, this command can be used to fix it.
Fill a rectangle with the given origin and extent, using the given color.
Fill a rectangle between the given corners, using the given color.
Fill a rectangle having the given bounding box, using the given color.
Read a GIF or XPM image from aFileStream. The whole contents of the file are read, not only from the file position.
Specifies the height of the image, in pixels. This option is useful primarily in situations where you wish to build up the contents of the image piece by piece. A value of zero (the default) allows the image to expand or shrink vertically to fit the data stored in it.
Specifies the width of the image, in pixels. This option is useful primarily in situations where you wish to build up the contents of the image piece by piece. A value of zero (the default) allows the image to expand or shrink horizontally to fit the data stored in it.
Draw a line with the given origin and extent, using the given color.
This method’s functionality has not been implemented yet.
Draw an horizontal line between the given corners, using the given color.
Draw a vertical line between the given corners, using the given color.
Draw a line having the given bounding box, using the given color.
Previous: BLOX.BImage-image management, Up: BLOX.BImage [Index]
Private - The receiver has been destroyed, clear the corresponding Tcl image to avoid memory leaks.
Next: BLOX.BLine, Previous: BLOX.BImage, Up: BLOX package [Index]
I am a label showing static text.
• BLOX.BLabel class-initialization: | (class) | |
• BLOX.BLabel class-instance creation: | (class) | |
• BLOX.BLabel-accessing: | (instance) |
Next: BLOX.BLabel class-instance creation, Up: BLOX.BLabel [Index]
Private - Initialize the receiver’s class variables.
Next: BLOX.BLabel-accessing, Previous: BLOX.BLabel class-initialization, Up: BLOX.BLabel [Index]
Answer a new BLabel widget laid inside the given parent widget, showing by default the ‘label’ String.
Previous: BLOX.BLabel class-instance creation, Up: BLOX.BLabel [Index]
Answer the value of the anchor option for the widget.
Specifies how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the symbols #topLeft, #topCenter, #topRight, #leftCenter, #center, #rightCenter, #bottomLeft, #bottomCenter, #bottomRight. For example, #topLeft means display the information such that its top-left corner is at the top-left corner of the widget.
Set the value of the anchor option for the widget.
Specifies how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the symbols #topLeft, #topCenter, #topRight, #leftCenter, #center, #rightCenter, #bottomLeft, #bottomCenter, #bottomRight. For example, #topLeft means display the information such that its top-left corner is at the top-left corner of the widget.
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Next: BLOX.BList, Previous: BLOX.BLabel, Up: BLOX package [Index]
I only draw straight lines but I can do that very well, even without a ruler...
• BLOX.BLine-accessing: | (instance) |
Up: BLOX.BLine [Index]
Answer the way in which caps are to be drawn at the endpoints of the line. The answer may be #butt (the default), #projecting, or #round).
Set the way in which caps are to be drawn at the endpoints of the line. aSymbol may be #butt (the default), #projecting, or #round).
Answer the width with which the line is drawn.
Set the width with which the line is drawn.
Next: BLOX.Blox, Previous: BLOX.BLine, Up: BLOX package [Index]
I represent a list box from which you can choose one or more elements.
• BLOX.BList-accessing: | (instance) | |
• BLOX.BList-widget protocol: | (instance) |
Next: BLOX.BList-widget protocol, Up: BLOX.BList [Index]
Add an element with the given value after another element whose index is contained in the index parameter. The label displayed in the widget is anObject’s displayString. Answer anObject.
Add an element with the aString label after another element whose index is contained in the index parameter. This method allows the client to decide autonomously the label that the widget will display.
If anObject is nil, then string is used as the element as well. If aString is nil, then the element’s displayString is used as the label.
Answer anObject or, if it is nil, aString.
Add an element with the given value at the end of the listbox. The label displayed in the widget is anObject’s displayString. Answer anObject.
Add an element with the given value at the end of the listbox. This method allows the client to decide autonomously the label that the widget will display.
If anObject is nil, then string is used as the element as well. If aString is nil, then the element’s displayString is used as the label.
Answer anObject or, if it is nil, aString.
Answer an association whose key is the item at the given position in the listbox and whose value is the label used to display that item.
Answer the element displayed at the given position in the list box.
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the elements displayed in the listbox, and set the labels to be their displayStrings.
Set the elements displayed in the listbox to be those in elementList, and set the labels to be the corresponding elements in stringCollection. The two collections must have the same size.
Iterate over each element of the listbox and pass it to aBlock.
Answer the collection of objects that represent the elements displayed by the list box.
Set the elements displayed in the listbox, and set the labels to be their displayStrings.
Answer the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Answer the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the widget.
Set the value of the highlightBackground option for the widget.
Specifies the background color to use when displaying selected items in the widget.
Answer the value of the highlightForeground option for the widget.
Specifies the foreground color to use when displaying selected items in the widget.
Set the value of the highlightForeground option for the widget.
Specifies the foreground color to use when displaying selected items in the widget.
Answer the value of the index option for the widget.
Indicates the element that has the location cursor. This item will be displayed in the highlightForeground color, and with the corresponding background color.
Answer the index of the element that covers the point in the listbox window specified by x and y (in pixel coordinates). If no element covers that point, then the closest element to that point is used.
Answer whether the element indicated by index is currently selected.
Return nil, it is here for Gtk+ support
Do nothing, it is here for Gtk+ support
Answer the label displayed at the given position in the list box.
Answer the labels displayed by the list box.
Iterate over each listbox element’s label and pass it to aBlock.
Answer the value of the mode option for the widget.
Specifies one of several styles for manipulating the selection. The value of the option may be either single, browse, multiple, or extended.
If the selection mode is single or browse, at most one element can be selected in the listbox at once. Clicking button 1 on an unselected element selects it and deselects any other selected item, while clicking on a selected element has no effect. In browse mode it is also possible to drag the selection with button 1. That is, moving the mouse while button 1 is pressed keeps the item under the cursor selected.
If the selection mode is multiple or extended, any number of elements may be selected at once, including discontiguous ranges. In multiple mode, clicking button 1 on an element toggles its selection state without affecting any other elements. In extended mode, pressing button 1 on an element selects it, deselects everything else, and sets the anchor to the element under the mouse; dragging the mouse with button 1 down extends the selection to include all the elements between the anchor and the element under the mouse, inclusive.
In extended mode, the selected range can be adjusted by pressing button 1 with the Shift key down: this modifies the selection to consist of the elements between the anchor and the element under the mouse, inclusive. The un-anchored end of this new selection can also be dragged with the button down. Also in extended mode, pressing button 1 with the Control key down starts a toggle operation: the anchor is set to the element under the mouse, and its selection state is reversed. The selection state of other elements is not changed. If the mouse is dragged with button 1 down, then the selection state of all elements between the anchor and the element under the mouse is set to match that of the anchor element; the selection state of all other elements remains what it was before the toggle operation began.
Most people will probably want to use browse mode for single selections and extended mode for multiple selections; the other modes appear to be useful only in special situations.
Set the value of the mode option for the widget.
Specifies one of several styles for manipulating the selection. The value of the option may be either single, browse, multiple, or extended.
If the selection mode is single or browse, at most one element can be selected in the listbox at once. Clicking button 1 on an unselected element selects it and deselects any other selected item, while clicking on a selected element has no effect. In browse mode it is also possible to drag the selection with button 1. That is, moving the mouse while button 1 is pressed keeps the item under the cursor selected.
If the selection mode is multiple or extended, any number of elements may be selected at once, including discontiguous ranges. In multiple mode, clicking button 1 on an element toggles its selection state without affecting any other elements. In extended mode, pressing button 1 on an element selects it, deselects everything else, and sets the anchor to the element under the mouse; dragging the mouse with button 1 down extends the selection to include all the elements between the anchor and the element under the mouse, inclusive.
In extended mode, the selected range can be adjusted by pressing button 1 with the Shift key down: this modifies the selection to consist of the elements between the anchor and the element under the mouse, inclusive. The un-anchored end of this new selection can also be dragged with the button down. Also in extended mode, pressing button 1 with the Control key down starts a toggle operation: the anchor is set to the element under the mouse, and its selection state is reversed. The selection state of other elements is not changed. If the mouse is dragged with button 1 down, then the selection state of all elements between the anchor and the element under the mouse is set to match that of the anchor element; the selection state of all other elements remains what it was before the toggle operation began.
Most people will probably want to use browse mode for single selections and extended mode for multiple selections; the other modes appear to be useful only in special situations.
Answer the number of items in the list box
Remove the item at the given index in the list box, answering the object associated to the element (i.e. the value that #at: would have returned for the given index)
Answer the number of items in the list box
Previous: BLOX.BList-accessing, Up: BLOX.BList [Index]
Answer a DirectedMessage that is sent when the active item in the receiver changes, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a selector with at most two arguemtnts) when the active item in the receiver changegs. If the method accepts two arguments, the receiver is passed as the first parameter. If the method accepts one or two arguments, the selected index is passed as the last parameter.
Highlight the item at the given position in the listbox.
Generate a synthetic callback.
Highlight the item at the given position in the listbox, without unhighlighting other items. This is meant for multiple- or extended-mode listboxes, but can be used with other selection mode in particular cases.
Ensure that the item at the given position in the listbox is visible.
Unhighlight all the items in the listbox.
Unhighlight the item at the given position in the listbox, without affecting the state of the other items.
Next: BLOX.BMenu, Previous: BLOX.BList, Up: BLOX package [Index]
I am the superclass for every visible user interface object (excluding canvas items, which are pretty different). I provide common methods and a simple Tcl interface for internal use. In addition, I expose class methods that do many interesting event-handling things.
NOTE: some of the methods (notably geometry methods) may not be suitable for all Blox subclasses and may be included only for backwards compatibility towards 1.1.5 BLOX. You should use geometry methods only for subclasses of BWidget.
• BLOX.Blox class-C call-outs: | (class) | |
• BLOX.Blox class-event dispatching: | (class) | |
• BLOX.Blox class-instance creation: | (class) | |
• BLOX.Blox class-utility: | (class) | |
• BLOX.Blox-accessing: | (instance) | |
• BLOX.Blox-basic: | (instance) | |
• BLOX.Blox-creating children: | (instance) | |
• BLOX.Blox-customization: | (instance) | |
• BLOX.Blox-widget protocol: | (instance) |
Next: BLOX.Blox class-event dispatching, Up: BLOX.Blox [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Next: BLOX.Blox class-instance creation, Previous: BLOX.Blox class-C call-outs, Up: BLOX.Blox [Index]
If this is the outermost dispatching loop that is started, dispatch events until the number of calls to #terminateMainLoop balances the number of calls to #dispatchEvents; return instantly if this is not the outermost dispatching loop that is started.
Dispatch some events; return upon destruction of the ‘mainWindow’ widget (which can be any kind of BWidget, but will be typically a BWindow).
Terminate the event dispatching loop if this call to #terminateMainLoop balances the number of calls to #dispatchEvents.
Initialize the Tcl and Blox environments; executed automatically on startup.
Next: BLOX.Blox class-utility, Previous: BLOX.Blox class-event dispatching, Up: BLOX.Blox [Index]
This method should not be called for instances of this class.
Create a new widget of the type identified by the receiver, inside the given parent widget. Answer the new widget
Next: BLOX.Blox-accessing, Previous: BLOX.Blox class-instance creation, Up: BLOX.Blox [Index]
Answer the currently active Blox, or nil if the focus does not belong to a Smalltalk window.
Answer the Blox containing the given point on the screen, or nil if no Blox contains the given point (either because no Smalltalk window is there or because it is covered by another window).
Answer the Blox under the mouse cursor’s hot spot, or nil if no Blox contains the given point (either because no Smalltalk window is there or because it is covered by another window).
Produce a bell
Clear the clipboard, answer its old contents.
Retrieve the text in the clipboard.
Set the contents of the clipboard to aString (or empty the clipboard if aString is nil).
Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given RGB components (range is 0~65535).
Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given CMY components (range is 0~65535).
Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given CMYK components (range is 0~65535).
Answer a color that can be passed to methods such as ‘backgroundColor:’. The color will have the given HSV components (range is 0~65535).
Answer the default font used by Blox.
Answer the names of the font families in the system. Additionally, ‘Times’, ‘Courier’ and ‘Helvetica’ are always made available.
If the mouse pointer is on the same screen as the application’s windows, returns a Point containing the pointer’s x and y coordinates measured in pixels in the screen’s root window (under X, if a virtual root window is in use on the screen, the position is computed in the whole desktop, not relative to the top-left corner of the currently shown portion). If the mouse pointer isn’t on the same screen as window then answer nil.
Answer the platform on which Blox is running; it can be either #unix, #macintosh or #windows.
Answer a Point indicating the coordinates of the upper left point of the screen in the virtual root window on which the application’s windows are drawn (under Windows and the Macintosh, that’s always 0 @ 0)
Answer a Point containing the resolution in dots per inch of the screen, in the x and y directions.
Answer a Point containing the size of the virtual root window on which the application’s windows are drawn (under Windows and the Macintosh, that’s the size of the screen)
Next: BLOX.Blox-basic, Previous: BLOX.Blox class-utility, Up: BLOX.Blox [Index]
Answer the value of the state option for the widget.
Specifies one of three states for the button: normal, active, or disabled. In normal state the button is displayed using the foreground and background options. The active state is typically used when the pointer is over the button. In active state the button is displayed using the activeForeground and activeBackground options. Disabled state means that the button should be insensitive: the application will refuse to activate the widget and will ignore mouse button presses.
Set the value of the state option for the widget.
Specifies one of three states for the button: normal, active, or disabled. In normal state the button is displayed using the foreground and background options. The active state is typically used when the pointer is over the button. In active state the button is displayed using the activeForeground and activeBackground options. Disabled state means that the button should be insensitive: the application will refuse to activate the widget and will ignore mouse button presses.
Next: BLOX.Blox-creating children, Previous: BLOX.Blox-accessing, Up: BLOX.Blox [Index]
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver
Destroy the receiver if it still exists, then perform the usual task of removing the dependency links
It does not make sense to make a copy, because it would make data inconsistent across different objects; so answer the receiver
Next: BLOX.Blox-customization, Previous: BLOX.Blox-basic, Up: BLOX.Blox [Index]
Create children of the receiver. Answer a Dictionary of the children. Each element of array is an Array including: a string which becomes the Dictionary’s key, a binding like #{Blox.BWindow} identifying the class name, an array with the parameters to be set (for example #(#width: 50 #height: 30 #backgroundColor: ’blue’)), and afterwards the children of the widget, described as arrays with this same format.
Private - Create children of the receiver, adding them to result; answer result. array has the format described in the comment to #make:
Private - Create a child of the receiver, adding them to result; each is a single element of the array described in the comment to #make:
Next: BLOX.Blox-widget protocol, Previous: BLOX.Blox-creating children, Up: BLOX.Blox [Index]
The widget identified by child has been added to the receiver. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to either the superclass implementation or #basicAddChild:, to perform some initialization on the children just added. Answer the new child.
The widget identified by child has been added to the receiver. Add it to the children collection and answer the new child. This method is public because you can call it from #addChild:.
Previous: BLOX.Blox-customization, Up: BLOX.Blox [Index]
Answer the primitive widget that implements the receiver.
Answer how many children the receiver has
Evaluate aBlock once for each of the receiver’s child widgets, passing the widget to aBlock as a parameter
Destroy the receiver
Answer a Rectangle identifying the receiver’s drawing area. The rectangle’s corners specify the upper-left and lower-right corners of the client area. Because coordinates are relative to the upper-left corner of a window’s drawing area, the coordinates of the rectangle’s corner are (0,0).
Answer whether the receiver is enabled to input. Although defined here, this method is only used for widgets that define a #state method
Set whether the receiver is enabled to input (enabled is a boolean). Although defined here, this method is only used for widgets that define a #state: method
Answer whether the receiver has been destroyed or not (answer false in the former case, true in the latter).
Answer the height of aString in pixels, when displayed in the same font as the receiver. Although defined here, this method is only used for widgets that define a #font method
Answer the width of aString in pixels, when displayed in the same font as the receiver. Although defined here, this method is only used for widgets that define a #font method
Answer whether the receiver represents a window on the screen.
Answer the receiver’s parent (or nil for a top-level window).
Answer the top-level object (typically a BWindow or BPopupWindow) connected to the receiver.
Answer the window in which the receiver stays. Note that while #toplevel won’t answer a BTransientWindow, this method will.
Evaluate aBlock passing the receiver, and then once for each of the receiver’s child widgets.
Next: BLOX.BMenuBar, Previous: BLOX.Blox, Up: BLOX package [Index]
I am a Menu that is part of a menu bar.
• BLOX.BMenu class-instance creation: | (class) | |
• BLOX.BMenu-accessing: | (instance) | |
• BLOX.BMenu-callback registration: | (instance) |
Next: BLOX.BMenu-accessing, Up: BLOX.BMenu [Index]
Add a new menu to the parent window’s menu bar, with ‘label’ as its caption (for popup menus, parent is the widget over which the menu pops up as the right button is pressed).
Next: BLOX.BMenu-callback registration, Previous: BLOX.BMenu class-instance creation, Up: BLOX.BMenu [Index]
Answer the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Previous: BLOX.BMenu-accessing, Up: BLOX.BMenu [Index]
Add a separator item at the end of the menu
Add a menu item described by anArray at the end of the menu. If anArray is empty, insert a separator line. If anArray has a single item, a menu item is created without a callback. If anArray has two or three items, the second one is used as the selector sent to receiver, and the third one (if present) is passed to the selector.
Add menu items described by anArray at the end of the menu. Each element of selectorPairs must be in the format described in BMenu>>#addMenuItemFor:notifying:. All the callbacks will be sent to receiver.
Destroy the menu widget; that is, simply remove ourselves from the parent menu bar.
Empty the menu widget; that is, remove all the children
Next: BLOX.BMenuItem, Previous: BLOX.BMenu, Up: BLOX package [Index]
I am the Menu Bar, the top widget in a full menu structure.
• BLOX.BMenuBar-accessing: | (instance) |
Up: BLOX.BMenuBar [Index]
Add aMenu to the menu bar
Remove aMenu from the menu bar
Next: BLOX.BMenuObject, Previous: BLOX.BMenuBar, Up: BLOX package [Index]
I am the tiny and humble Menu Item, a single command choice in the menu structure. But if it wasn’t for me, nothing could be done... eh eh eh!!
• BLOX.BMenuItem class-instance creation: | (class) | |
• BLOX.BMenuItem-accessing: | (instance) |
Next: BLOX.BMenuItem-accessing, Up: BLOX.BMenuItem [Index]
Add a new separator item to the specified menu.
Add a new menu item to the specified menu (parent) , with ‘label’ as its caption.
Previous: BLOX.BMenuItem class-instance creation, Up: BLOX.BMenuItem [Index]
Answer the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Next: BLOX.BOval, Previous: BLOX.BMenuItem, Up: BLOX package [Index]
I am an abstract superclass for widgets which make up a menu structure.
• BLOX.BMenuObject-accessing: | (instance) | |
• BLOX.BMenuObject-callback: | (instance) |
Next: BLOX.BMenuObject-callback, Up: BLOX.BMenuObject [Index]
Answer the value of the activeBackground option for the widget.
Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
Set the value of the activeBackground option for the widget.
Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
Answer the value of the activeForeground option for the widget.
Specifies foreground color to use when drawing active elements. See above for definition of active elements.
Set the value of the activeForeground option for the widget.
Specifies foreground color to use when drawing active elements. See above for definition of active elements.
Answer the primitive widget that implements the receiver.
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Previous: BLOX.BMenuObject-accessing, Up: BLOX.BMenuObject [Index]
Answer a DirectedMessage that is sent when the receiver is modified, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is clicked. If the method accepts an argument, the receiver is passed.
Set up so that aReceiver is sent the aSymbol message (the name of a one- or two-argument selector) when the receiver is clicked. If the method accepts two argument, the receiver is passed together with anObject; if it accepts a single one, instead, only anObject is passed.
Generate a synthetic callback
Next: BLOX.BPolyline, Previous: BLOX.BMenuObject, Up: BLOX package [Index]
I can draw ovals (ok, if you’re a mathematic, they’re really ellipses), or even circles.
Next: BLOX.BPopupMenu, Previous: BLOX.BOval, Up: BLOX package [Index]
I can draw closed or open polylines, and even fill them!
• BLOX.BPolyline-accessing: | (instance) |
Up: BLOX.BPolyline [Index]
Answer ‘boundingBox’.
Answer the way in which caps are to be drawn at the endpoints of the line.
This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.
Set the way in which caps are to be drawn at the endpoints of the line. aSymbol may be #butt (the default), #projecting, or #round).
This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.
Answer whether the polyline is an open or a closed one.
Set whether the polyline is an open or a closed one. This option may be set only once.
Answer the way in which joints are to be drawn at the vertices of the line.
This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.
Answer the way in which joints are to be drawn at the vertices of the line. aSymbol can be #bevel, #miter (the default) or #round.
This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.
Answer the color with which the outline of the polyline is drawn. This option is only available for closed polylines.
Set the color with which the outline of the polyline is drawn. This option is only available for closed polylines.
Answer the points that are vertices of the polyline.
Set the points that are vertices of the polyline. Each of the items of arrayOfPointsOrArrays can be a Point or a two-element Array. Note that no changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.
Answer the width with which the polyline (or its outline if it is a closed one) is drawn.
Set the width with which the polyline (or its outline if it is a closed one) is drawn.
Next: BLOX.BPopupWindow, Previous: BLOX.BPolyline, Up: BLOX package [Index]
I am a class that provides the ability to show popup menus when the right button (Button 3) is clicked on another window.
• BLOX.BPopupMenu-widget protocol: | (instance) |
Up: BLOX.BPopupMenu [Index]
Generate a synthetic menu popup event
Next: BLOX.BPrimitive, Previous: BLOX.BPopupMenu, Up: BLOX package [Index]
I am a pseudo-window that has no decorations and no ability to interact with the user. My main usage, as my name says, is to provide pop-up functionality for other widgets. Actually there should be no need to directly use me - always rely on the #new and #popup: class methods.
• BLOX.BPopupWindow-geometry management: | (instance) |
Up: BLOX.BPopupWindow [Index]
Private - The widget identified by child has been added to the receiver. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to either the superclass implementation or #basicAddChild:, to perform some initialization on the children just added. Answer the new child.
Set the given child’s height. This is done by setting its parent window’s (that is, our) height.
This method should not be called for instances of this class.
Set the given child’s width. This is done by setting its parent window’s (that is, our) width.
This method should not be called for instances of this class.
Set the x coordinate of the given child’s top-left corner. This is done by setting its parent window’s (that is, our) x.
This method should not be called for instances of this class.
Set the y coordinate of the given child’s top-left corner. This is done by setting its parent window’s (that is, our) y.
This method should not be called for instances of this class.
Answer the given child’s height, which is the height that was imposed on the popup window.
Answer the given child’s width in pixels, which is the width that was imposed on the popup window.
Answer the x coordinate of the given child’s top-left corner, which is desumed by the position of the popup window.
Answer the y coordinate of the given child’s top-left corner, which is desumed by the position of the popup window.
Next: BLOX.BProgress, Previous: BLOX.BPopupWindow, Up: BLOX package [Index]
I am the superclass for every widget (except menus) directly provided by the underlying GUI system.
• BLOX.BPrimitive-accessing: | (instance) |
Up: BLOX.BPrimitive [Index]
Answer the primitive widget that implements the receiver.
Next: BLOX.BRadioButton, Previous: BLOX.BPrimitive, Up: BLOX package [Index]
I show how much of a task has been completed.
• BLOX.BProgress-accessing: | (instance) |
Up: BLOX.BProgress [Index]
Answer the background color of the widget. This is used for the background of the non-filled part, as well as for the foreground of the filled part.
Set the background color of the widget. This is used for the background of the non-filled part, as well as for the foreground of the filled part.
Answer the background color of the widget’s filled part.
Set the background color of the widget’s filled part.
Set the foreground color of the widget. This is used for the non-filled part, while the background color also works as the foreground of the filled part.
Set the foreground color of the widget. This is used for the non-filled part, while the background color also works as the foreground of the filled part.
Answer the filled percentage of the receiver (0..1)
Set the filled percentage of the receiver and update the appearance. newValue must be between 0 and 1.
Next: BLOX.BRadioGroup, Previous: BLOX.BProgress, Up: BLOX package [Index]
I am just one in a group of mutually exclusive buttons.
• BLOX.BRadioButton-accessing: | (instance) |
Up: BLOX.BRadioButton [Index]
Set up so that aReceiver is sent the aSymbol message (the name of a selector accepting at most two arguments) when the receiver is clicked. If the method accepts two arguments, the receiver is passed as the first parameter. If the method accepts one or two arguments, true is passed as the last parameter for interoperability with BToggle widgets.
Answer whether this widget is the selected one in its radio button group.
Answer whether this widget is the selected one in its radio button group. Setting this property to false for a group’s currently selected button unhighlights all the buttons in that group.
Next: BLOX.BRectangle, Previous: BLOX.BRadioButton, Up: BLOX package [Index]
I am used to group many mutually-exclusive radio buttons together. In addition, just like every BContainer I can perform simple management by putting widgets next to each other, from left to right or (which is more useful in this particular case...) from top to bottom.
• BLOX.BRadioGroup-accessing: | (instance) | |
• BLOX.BRadioGroup-widget protocol: | (instance) |
Next: BLOX.BRadioGroup-widget protocol, Up: BLOX.BRadioGroup [Index]
Answer the index of the button that is currently selected, 1 being the first button added to the radio button group. 0 means that no button is selected
Force the value-th button added to the radio button group to be the selected one.
Previous: BLOX.BRadioGroup-accessing, Up: BLOX.BRadioGroup [Index]
Private - The receiver has been destroyed, clear the corresponding Tcl variable to avoid memory leaks.
Next: BLOX.BScrolledCanvas, Previous: BLOX.BRadioGroup, Up: BLOX package [Index]
I only draw rectangles but I can do that very well.
• BLOX.BRectangle-accessing: | (instance) |
Up: BLOX.BRectangle [Index]
Answer the color with which the outline of the rectangle is drawn.
Set the color with which the outline of the rectangle is drawn.
Answer the width with which the outline of the rectangle is drawn.
Set the width with which the outline of the rectangle is drawn.
Next: BLOX.BSpline, Previous: BLOX.BRectangle, Up: BLOX package [Index]
I am much similar to BCanvas, but I sport, in addition, two fancy scroll bars. This is just a convenience, since it could be easily done when creating the canvas...
Next: BLOX.BText, Previous: BLOX.BScrolledCanvas, Up: BLOX package [Index]
Unlike my father BPolyline, I am more smooth at doing my job.
• BLOX.BSpline-accessing: | (instance) |
Up: BLOX.BSpline [Index]
Answer the degree of smoothness desired for curves. Each spline will be approximated with this number of line segments.
Set the degree of smoothness desired for curves. Each spline will be approximated with this number of line segments.
Next: BLOX.BTextAttributes, Previous: BLOX.BSpline, Up: BLOX package [Index]
I represent a text viewer with pretty good formatting options.
• BLOX.BText class-accessing: | (class) | |
• BLOX.BText class-instance creation: | (class) | |
• BLOX.BText-accessing: | (instance) | |
• BLOX.BText-attributes: | (instance) | |
• BLOX.BText-geometry management: | (instance) | |
• BLOX.BText-images: | (instance) | |
• BLOX.BText-inserting text: | (instance) | |
• BLOX.BText-position & lines: | (instance) |
Next: BLOX.BText class-instance creation, Up: BLOX.BText [Index]
Answer whether we are using Emacs or Motif key bindings.
Set whether we are using Emacs or Motif key bindings.
Next: BLOX.BText-accessing, Previous: BLOX.BText class-accessing, Up: BLOX.BText [Index]
Answer a new read-only text widget (read-only is achieved simply by setting its state to be disabled)
Next: BLOX.BText-attributes, Previous: BLOX.BText class-instance creation, Up: BLOX.BText [Index]
Answer the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Set the value of the backgroundColor option for the widget.
Specifies the normal background color to use when displaying the widget.
Answer a DirectedMessage that is sent when the receiver is modified, or nil if none has been set up.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is modified. If the method accepts an argument, the receiver is passed.
Return the contents of the widget
Set the contents of the widget
Answer the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the widget.
Specifies the font to use when drawing text inside the widget. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Set the value of the foregroundColor option for the widget.
Specifies the normal foreground color to use when displaying the widget.
Answer an empty string if the widget has no selection, else answer the currently selected text
Answer the value of the selectBackground option for the widget.
Specifies the background color to use when displaying selected parts of the widget.
Set the value of the selectBackground option for the widget.
Specifies the background color to use when displaying selected parts of the widget.
Answer the value of the selectForeground option for the widget.
Specifies the foreground color to use when displaying selected parts of the widget.
Set the value of the selectForeground option for the widget.
Specifies the foreground color to use when displaying selected parts of the widget.
Answer the value of the wrap option for the widget.
Specifies how to handle lines in the text that are too long to be displayed in a single line of the text’s window. The value must be #none or #char or #word. A wrap mode of none means that each line of text appears as exactly one line on the screen; extra characters that do not fit on the screen are not displayed. In the other modes each line of text will be broken up into several screen lines if necessary to keep all the characters visible. In char mode a screen line break may occur after any character; in word mode a line break will only be made at word boundaries.
Set the value of the wrap option for the widget.
Specifies how to handle lines in the text that are too long to be displayed in a single line of the text’s window. The value must be #none or #char or #word. A wrap mode of none means that each line of text appears as exactly one line on the screen; extra characters that do not fit on the screen are not displayed. In the other modes each line of text will be broken up into several screen lines if necessary to keep all the characters visible. In char mode a screen line break may occur after any character; in word mode a line break will only be made at word boundaries.
Next: BLOX.BText-geometry management, Previous: BLOX.BText-accessing, Up: BLOX.BText [Index]
Clear the selection and append aString at the end of the widget. Use the given attributes to format the text.
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any). Use the given attributes to format the text.
Remove any kind of formatting from the text in the widget
Remove any kind of formatting from the text in the widget between the given endpoints. The two endpoints are Point objects in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.
Add the formatting given by attr to the text in the widget between the given endpoints. The two endpoints are Point objects in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.
Next: BLOX.BText-images, Previous: BLOX.BText-attributes, Up: BLOX.BText [Index]
Set the height of the given child to be ‘value’ pixels.
Adjust the height of the given child to be given by ‘value’ more pixels.
Set the width of the given child to be ‘value’ pixels.
Adjust the width of the given child to be given by ‘value’ more pixels.
Never fail and do nothing, the children stay where the text ended at the time each child was added in the widget
This method should not be called for instances of this class.
Never fail and do nothing, the children stay where the text ended at the time each child was added in the widget
This method should not be called for instances of this class.
Answer the given child’s height in pixels.
Answer the given child’s width in pixels.
Answer the given child’s top-left border’s x coordinate. We always answer 0 since the children actually move when the text widget scrolls
Answer the given child’s top-left border’s y coordinate. We always answer 0 since the children actually move when the text widget scrolls
Next: BLOX.BText-inserting text, Previous: BLOX.BText-geometry management, Up: BLOX.BText [Index]
Insert an image where the insertion point currently lies in the widget. anObject can be a String containing image data (either Base-64 encoded GIF data, XPM data, or PPM data), or the result or registering an image with #registerImage:
Insert an image at the given position in the widget. The position is a Point object in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.
anObject can be a String containing image data (either Base-64 encoded GIF data, XPM data, or PPM data), or the result or registering an image with #registerImage:
Insert an image at the end of the widgets text. anObject can be a String containing image data (either Base-64 encoded GIF data, XPM data, or PPM data), or the result or registering an image with #registerImage:
Register an image (whose data is in anObject, a String including Base-64 encoded GIF data, XPM data, or PPM data) to be used in the widget. If the same image must be used a lot of times, it is better to register it once and then pass the result of #registerImage: to the image insertion methods.
Registered image are private within each BText widget. Registering an image with a widget and using it with another could give unpredictable results.
Next: BLOX.BText-position & lines, Previous: BLOX.BText-images, Up: BLOX.BText [Index]
Clear the selection and append aString at the end of the widget.
Insert aString in the widget at the current insertion point, leaving the currently selected text (if any) in place, and selecting the text.
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any).
Insert aString in the widget at the given position, replacing the currently selected text (if any). The position is a Point object in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.
Insert aString in the widget after the current selection, leaving the currently selected text (if any) intact.
Generate a synthetic callback.
Clear the selection and append aCharacter at the end of the widget.
Clear the selection and append aString at the end of the widget.
Clear the selection and append a linefeed character at the end of the widget.
Arrange so that Tab characters, instead of being inserted in the widget, traverse the widgets in the parent window.
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any), and leaving the text selected.
Search aString in the widget. If it is not found, answer zero, else answer the 1-based line number and move the insertion point to the place where the string was found.
Clear the selection and append a space at the end of the widget.
Previous: BLOX.BText-inserting text, Up: BLOX.BText [Index]
Answer how many characters are there in the number-th line
Answer the 1-based column number where the insertion point currently lies.
Answer the 1-based line number where the insertion point currently lies.
Answer a Point representing where the insertion point currently lies. Both coordinates in the answer are 1-based: the first line is line 1, and the first character in the first line is character 1.
Move the insertion point to the position given by aPoint. Both coordinates in aPoint are interpreted as 1-based: the first line is line 1, and the first character in the first line is character 1.
If aBoolean is true, move the insertion point to the last character of the line-th line (1 being the first line in the widget); if aBoolean is false, move it to the start of the line-th line.
Answer the position of the character that covers the pixel whose coordinates within the text’s window are given by the supplied Point object.
Answer the number-th line of text in the widget
Answer the number of lines in the widget
Select the text between the given endpoints. The two endpoints are Point objects in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.
Move the insertion point to the end of the widget
Next: BLOX.BTextBindings, Previous: BLOX.BText, Up: BLOX package [Index]
I help you creating wonderful, colorful BTexts.
• BLOX.BTextAttributes class-instance-creation shortcuts: | (class) | |
• BLOX.BTextAttributes-colors: | (instance) | |
• BLOX.BTextAttributes-setting attributes: | (instance) |
Next: BLOX.BTextAttributes-colors, Up: BLOX.BTextAttributes [Index]
Create a new BTextAttributes object resulting in text with the given background color.
Create a new BTextAttributes object resulting in black text.
Create a new BTextAttributes object resulting in blue text.
Create a new BTextAttributes object resulting in centered paragraphs.
Create a new BTextAttributes object resulting in cyan text.
Create a new BTextAttributes object resulting in dark cyan text.
Create a new BTextAttributes object resulting in dark green text.
Create a new BTextAttributes object resulting in dark purple text.
Create a new BTextAttributes object for text that responds to events according to the callbacks established in aBTextBindings.
Create a new BTextAttributes object resulting in text with the given font. The font can be given as either an X font name or a Blox font description string.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Create a new BTextAttributes object resulting in text with the given foreground color.
Create a new BTextAttributes object resulting in green text.
Create a new BTextAttributes object resulting in magenta text.
Create a new BTextAttributes object resulting in red text.
Create a new BTextAttributes object resulting in struck-out text.
Create a new BTextAttributes object resulting in underlined text.
Create a new BTextAttributes object resulting in white text.
Create a new BTextAttributes object resulting in yellow text.
Next: BLOX.BTextAttributes-setting attributes, Previous: BLOX.BTextAttributes class-instance-creation shortcuts, Up: BLOX.BTextAttributes [Index]
Set the receiver so that applying it results in black text.
Set the receiver so that applying it results in blue text.
Set the receiver so that applying it results in cyan text.
Set the receiver so that applying it results in dark cyan text.
Set the receiver so that applying it results in dark green text.
Set the receiver so that applying it results in dark magenta text.
Set the receiver so that applying it results in green text.
Set the receiver so that applying it results in magenta text.
Set the receiver so that applying it results in red text.
Set the receiver so that applying it results in white text.
Set the receiver so that applying it results in black text.
Previous: BLOX.BTextAttributes-colors, Up: BLOX.BTextAttributes [Index]
Answer the value of the backgroundColor option for the text.
Specifies the background color to use when displaying text with these attributes. nil indicates that the default value is not overridden.
Set the value of the backgroundColor option for the text.
Specifies the background color to use when displaying text with these attributes. nil indicates that the default value is not overridden.
Center the text to which these attributes are applied
Answer the event bindings which apply to text subject to these attributes
Set the event bindings which apply to text subject to these attributes
Answer the value of the font option for the text. The font can be given as either an X font name or a Blox font description string, or nil if you want the widget’s default font to apply.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Set the value of the font option for the text. The font can be given as either an X font name or a Blox font description string, or nil if you want the widget’s default font to apply.
X font names are given as many fields, each led by a minus, and each of which can be replaced by an * to indicate a default value is ok: foundry, family, weight, slant, setwidth, addstyle, pixel size, point size (the same as pixel size for historical reasons), horizontal resolution, vertical resolution, spacing, width, charset and character encoding.
Blox font description strings have three fields, which must be separated by a space and of which only the first is mandatory: the font family, the font size in points (or in pixels if a negative value is supplied), and a number of styles separated by a space (valid styles are normal, bold, italic, underline and overstrike). Examples of valid fonts are “Helvetica 10 Bold”, “Times -14”, “Futura Bold Underline”. You must enclose the font family in braces if it is made of two or more words.
Answer the value of the foregroundColor option for the text.
Specifies the foreground color to use when displaying text with these attributes. nil indicates that the default value is not overridden.
Set the value of the foregroundColor option for the text.
Specifies the foreground color to use when displaying text with these attributes. nil indicates that the default value is not overridden.
Answer whether the text to which these attributes are applied is centered
Answer whether the text to which these attributes are applied is struckout
Answer whether the text to which these attributes are applied is underlined
Strike out the text to which these attributes are applied
Underline the text to which these attributes are applied
Next: BLOX.BTextTags, Previous: BLOX.BTextAttributes, Up: BLOX package [Index]
This object is used to assign event handlers to particular sections of text in a BText widget. To use it, you simply have to add event handlers to it, and then create a BTextAttributes object that refers to it.
• BLOX.BTextBindings class-instance creation: | (class) |
Up: BLOX.BTextBindings [Index]
Create a new instance of the receiver.
Next: BLOX.BToggle, Previous: BLOX.BTextBindings, Up: BLOX package [Index]
I am a private class. I sit between a BText and BTextAttributes, helping the latter in telling the former which attributes to use.
Next: BLOX.BTransientWindow, Previous: BLOX.BTextTags, Up: BLOX package [Index]
I represent a button whose choice can be included (by checking me) or excluded (by leaving me unchecked).
• BLOX.BToggle-accessing: | (instance) |
Up: BLOX.BToggle [Index]
Set up so that aReceiver is sent the aSymbol message (the name of a selector accepting at most two arguments) when the receiver is clicked. If the method accepts two arguments, the receiver is passed as the first parameter. If the method accepts one or two arguments, the state of the widget (true if it is selected, false if it is not) is passed as the last parameter.
Generate a synthetic callback.
Answer whether the button is in a selected (checked) state.
Set whether the button is in a selected (checked) state and generates a callback accordingly.
Set the value of Tk’s variable option for the widget.
Next: BLOX.BViewport, Previous: BLOX.BToggle, Up: BLOX package [Index]
I am almost a boss. I represent a window which is logically linked to another which sits higher in the widget hierarchy, e.g. a dialog box
• BLOX.BTransientWindow class-instance creation: | (class) | |
• BLOX.BTransientWindow-widget protocol: | (instance) |
This method should not be called for instances of this class.
Answer a new transient window attached to the given parent window and with nothing in its title bar caption.
Answer a new transient window attached to the given parent window and with ‘label’ as its title bar caption.
Previous: BLOX.BTransientWindow class-instance creation, Up: BLOX.BTransientWindow [Index]
Map the window and inform the windows manager that the receiver is a transient window working on behalf of its parent. The window is also put in its parent window’s window group: the window manager might use this information, for example, to unmap all of the windows in a group when the group’s leader is iconified.
Next: BLOX.BWidget, Previous: BLOX.BTransientWindow, Up: BLOX package [Index]
I represent an interface which is common to widgets that can be scrolled, like list boxes or text widgets.
• BLOX.BViewport-accessing: | (instance) | |
• BLOX.BViewport-scrollbars: | (instance) |
Next: BLOX.BViewport-scrollbars, Up: BLOX.BViewport [Index]
Private - Answer the name of Tk widget for the connected widget.
Previous: BLOX.BViewport-accessing, Up: BLOX.BViewport [Index]
Answer whether an horizontal scrollbar is drawn in the widget if needed.
Set whether an horizontal scrollbar is drawn in the widget if needed.
Answer whether an horizontal scrollbar is needed to show all the information in the widget.
Answer whether an horizontal scrollbar is drawn in the widget.
Answer whether a vertical scrollbar is drawn in the widget if needed.
Set whether a vertical scrollbar is drawn in the widget if needed.
Answer whether a vertical scrollbar is needed to show all the information in the widget.
Answer whether a vertical scrollbar is drawn in the widget.
Next: BLOX.BWindow, Previous: BLOX.BViewport, Up: BLOX package [Index]
I am the superclass for every widget except those related to menus. I provide more common methods and geometry management
• BLOX.BWidget class-popups: | (class) | |
• BLOX.BWidget-accessing: | (instance) | |
• BLOX.BWidget-customization: | (instance) | |
• BLOX.BWidget-geometry management: | (instance) | |
• BLOX.BWidget-widget protocol: | (instance) |
Next: BLOX.BWidget-accessing, Up: BLOX.BWidget [Index]
Create an instance of the receiver inside a BPopupWindow; do not map the window, answer the new widget. The created widget will become a child of the window and be completely attached to it (e.g. the geometry methods will modify the window’s geometry). Note that while the widget *seems* to be directly painted on the root window, it actually belongs to the BPopupWindow; so don’t send #destroy to the widget to remove it, but rather to the window.
Create an instance of the receiver inside a BPopupWindow; before returning, pass the widget to the supplied initializationBlock, then map the window. Answer the new widget. The created widget will become a child of the window and be completely attached to it (e.g. the geometry methods will modify the window’s geometry). Note that while the widget *seems* to be directly painted on the root window, it actually belongs to the BPopupWindow; so don’t send #destroy to the widget to remove it, but rather to the window.
Next: BLOX.BWidget-customization, Previous: BLOX.BWidget class-popups, Up: BLOX.BWidget [Index]
Answer the value of the borderWidth option for the widget.
Specifies a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the effect option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value is measured in pixels.
Set the value of the borderWidth option for the widget.
Specifies a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the effect option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value is measured in pixels.
Answer the value of the cursor option for the widget.
Specifies the mouse cursor to be used for the widget. The value of the option is given by the standard X cursor cursor, i.e., any of the names defined in cursorcursor.h, without the leading XC_.
Set the value of the cursor option for the widget.
Specifies the mouse cursor to be used for the widget. The value of the option is given by the standard X cursor cursor, i.e., any of the names defined in cursorcursor.h, without the leading XC_.
Answer the value of the effect option for the widget.
Specifies the effect desired for the widget’s border. Acceptable values are raised, sunken, flat, ridge, solid, and groove. The value indicates how the interior of the widget should appear relative to its exterior; for example, raised means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget. Raised and sunken give the traditional 3-D appearance (for example, that of Xaw3D), while ridge and groove give a “chiseled” appearance like that of Swing or GTK+’s Metal theme. Flat and solid are not 3-D.
Set the value of the effect option for the widget.
Specifies the effect desired for the widget’s border. Acceptable values are raised, sunken, flat, ridge, solid, and groove. The value indicates how the interior of the widget should appear relative to its exterior; for example, raised means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget. Raised and sunken give the traditional 3-D appearance (for example, that of Xaw3D), while ridge and groove give a “chiseled” appearance like that of Swing or GTK+’s Metal theme. Flat and solid are not 3-D.
Answer the value of the tabStop option for the widget.
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, Blox consults the value of the tabStop option. A value of false means that the window should be skipped entirely during keyboard traversal. true means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). If you do not set this option, Blox makes the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, it has no key bindings, or if it is not viewable. Of the standard widgets, BForm, BContainer, BLabel and BImage have no key bindings by default.
Set the value of the tabStop option for the widget.
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, Blox consults the value of the tabStop option. A value of false means that the window should be skipped entirely during keyboard traversal. true means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). If you do not set this option, Blox makes the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, it has no key bindings, or if it is not viewable. Of the standard widgets, BForm, BContainer, BLabel and BImage have no key bindings by default.
Next: BLOX.BWidget-geometry management, Previous: BLOX.BWidget-accessing, Up: BLOX.BWidget [Index]
The widget identified by child has been added to the receiver. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to basicAddChild, to perform some initialization on the children just added. Answer the new child.
Make the receiver able to respond to its widget protocol. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to super, to perform some initialization on the primitive widget just created; for an example of this, see the implementation of BButtonLike.
This is called by #new: to initialize the widget (as the name says...). The default implementation calls all the other methods in the ‘customization’ protocol and some private ones that take care of making the receiver’s status consistent, so you should usually call it instead of doing everything by hand. This method is public not because you can call it, but because it might be useful to override it. Always answer the receiver.
This is called by #initialize: to set the widget’s initial size. The whole area is occupied by default. This method is public not because you can call it, but because it can be useful to override it.
Next: BLOX.BWidget-widget protocol, Previous: BLOX.BWidget-customization, Up: BLOX.BWidget [Index]
Answer a Rectangle containing the bounding box of the receiver
Set the bounding box of the receiver to rect (a Rectangle).
Set the given child’s height to value. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #height method. You should not use this method, which is automatically called by the child’s #height: method, but you might want to override it. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just do nothing.
Adjust the given child’s height by a fixed amount of value pixel. This is meaningful for the default implementation, using ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #height and #heightOffset: methods. You should not use this method, which is automatically called by the child’s #heightOffset: method, but you might want to override it. if it doesn’t apply to the kind of geometry management that the receiver does, just add value to the current height of the widget.
This method is only used when on the path from the receiver to its toplevel there is a BContainer. It decides whether child is among the widgets that are stretched to fill the entire width of the BContainer; if this has not been set for this widget, it is propagated along the widget hierarchy.
Set the given child’s width to value. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #width method. You should not use this method, which is automatically called by the child’s #width: method, but you might want to override it. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just do nothing.
Adjust the given child’s width by a fixed amount of value pixel. This is meaningful for the default implementation, using ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #width and #widthOffset: methods. You should not use this method, which is automatically called by the child’s #widthOffset: method, but you might want to override it. if it doesn’t apply to the kind of geometry management that the receiver does, just add value to the current width of the widget.
Set the given child’s x to value. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #x method. You should not use this method, which is automatically called by the child’s #x: method, but you might want to override it. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just do nothing.
Adjust the given child’s x by a fixed amount of value pixel. This is meaningful for the default implementation, using ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #x and #xOffset: methods. You should not use this method, which is automatically called by the child’s #xOffset: method, but you might want to override it. if it doesn’t apply to the kind of geometry management that the receiver does, just add value to the current x of the widget.
Set the given child’s y to value. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #y method. You should not use this method, which is automatically called by the child’s #y: method, but you might want to override it. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just do nothing.
Adjust the given child’s y by a fixed amount of value pixel. This is meaningful for the default implementation, using ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #y and #yOffset: methods. You should not use this method, which is automatically called by the child’s #yOffset: method, but you might want to override it. if it doesn’t apply to the kind of geometry management that the receiver does, just add value to the current y of the widget.
Answer a Point containing the receiver’s size
Set the receiver’s size to the width and height contained in extent (a Point).
Answer the ‘variable’ part of the receiver’s height within the parent widget. The value returned does not include any fixed amount of pixels indicated by #heightOffset: and must be interpreted in a relative fashion: the ratio of the returned value to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management. Behavior if the left or right edges are not within the client area of the parent is not defined – the window might be clamped or might be positioned according to the specification.
Set to ‘value’ the height of the widget within the parent widget. The value is specified in a relative fashion as an integer, so that the ratio of ‘value’ to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management.
Force a recalculation of the layout of widgets in the receiver’s parent, then answer the current height of the receiver in pixels.
Answer the given child’s height. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #height method. You should not use this method, which is automatically called by the child’s #height method, but you might want to override. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just return 0.
Private - Answer the pixels to be added or subtracted to the height of the receiver, with respect to the value set in a relative fashion through the #height: method.
Add or subtract to the height of the receiver a fixed amount of ‘value’ pixels, with respect to the value set in a relative fashion through the #height: method. Usage of this method is deprecated; use #inset: and BContainers instead.
Set the current height of the receiver to ‘value’ pixels. Note that, after calling this method, #height will answer 0, which is logical considering that there is no ‘variable’ part of the size (refer to #height and #height: for more explanations).
Inset the receiver’s bounding box by the specified amount.
Set the bounding box of the receiver through its components.
Set the receiver’s origin to the width and height contained in position (a Point).
Position the receiver immediately to the right of aBlox.
Position the receiver just below aBlox.
This method is only considered when on the path from the receiver to its toplevel there is a BContainer. It decides whether we are among the widgets that are stretched to fill the entire width of the BContainer.
Answer the ‘variable’ part of the receiver’s width within the parent widget. The value returned does not include any fixed amount of pixels indicated by #widthOffset: and must be interpreted in a relative fashion: the ratio of the returned value to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management. Behavior if the left or right edges are not within the client area of the parent is not defined – the window might be clamped or might be positioned according to the specification.
Set to ‘value’ the width of the widget within the parent widget. The value is specified in a relative fashion as an integer, so that the ratio of ‘value’ to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management.
Set the size of the receiver through its components xSize and ySize.
Force a recalculation of the layout of widgets in the receiver’s parent, then answer the current width of the receiver in pixels.
Answer the given child’s width. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #width method. You should not use this method, which is automatically called by the child’s #width method, but you might want to override. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just return 0.
Private - Answer the pixels to be added or subtracted to the width of the receiver, with respect to the value set in a relative fashion through the #width: method.
Add or subtract to the width of the receiver a fixed amount of ‘value’ pixels, with respect to the value set in a relative fashion through the #width: method. Usage of this method is deprecated; use #inset: and BContainers instead.
Set the current width of the receiver to ‘value’ pixels. Note that, after calling this method, #width will answer 0, which is logical considering that there is no ‘variable’ part of the size (refer to #width and #width: for more explanations).
Answer the ‘variable’ part of the receiver’s x within the parent widget. The value returned does not include any fixed amount of pixels indicated by #xOffset: and must be interpreted in a relative fashion: the ratio of the returned value to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management. Behavior if the left or right edges are not within the client area of the parent is not defined – the window might be clamped or might be positioned according to the specification.
Set to ‘value’ the x of the widget within the parent widget. The value is specified in a relative fashion as an integer, so that the ratio of ‘value’ to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management.
Set the origin of the receiver through its components xPos and yPos.
Set the bounding box of the receiver through its origin and size.
Force a recalculation of the layout of widgets in the receiver’s parent, then answer the current x of the receiver in pixels.
Answer the given child’s x. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #x method. You should not use this method, which is automatically called by the child’s #x method, but you might want to override. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just return 0.
Private - Answer the pixels to be added or subtracted to the x of the receiver, with respect to the value set in a relative fashion through the #x: method.
Add or subtract to the x of the receiver a fixed amount of ‘value’ pixels, with respect to the value set in a relative fashion through the #x: method. Usage of this method is deprecated; use #inset: and BContainers instead.
Set the current x of the receiver to ‘value’ pixels. Note that, after calling this method, #x will answer 0, which is logical considering that there is no ‘variable’ part of the size (refer to #x and #x: for more explanations).
Answer the x position of the receiver with respect to the top-left corner of the desktop (including the offset of the virtual root window under X).
Answer the ‘variable’ part of the receiver’s y within the parent widget. The value returned does not include any fixed amount of pixels indicated by #yOffset: and must be interpreted in a relative fashion: the ratio of the returned value to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management. Behavior if the left or right edges are not within the client area of the parent is not defined – the window might be clamped or might be positioned according to the specification.
Set to ‘value’ the y of the widget within the parent widget. The value is specified in a relative fashion as an integer, so that the ratio of ‘value’ to the current size of the parent will be preserved upon resize. This apparently complicated method is known as ‘rubber sheet’ geometry management.
Force a recalculation of the layout of widgets in the receiver’s parent, then answer the current y of the receiver in pixels.
Answer the given child’s y. The default implementation of this method uses ‘rubber-sheet’ geometry management as explained in the comment to BWidget’s #y method. You should not use this method, which is automatically called by the child’s #y method, but you might want to override. The child’s property slots whose name ends with ‘Geom’ are reserved for this method. This method should never fail – if it doesn’t apply to the kind of geometry management that the receiver does, just return 0.
Private - Answer the pixels to be added or subtracted to the y of the receiver, with respect to the value set in a relative fashion through the #y: method.
Add or subtract to the y of the receiver a fixed amount of ‘value’ pixels, with respect to the value set in a relative fashion through the #y: method. Usage of this method is deprecated; use #inset: and BContainers instead.
Set the current y of the receiver to ‘value’ pixels. Note that, after calling this method, #y will answer 0, which is logical considering that there is no ‘variable’ part of the size (refer to #y and #y: for more explanations).
Answer the y position of the receiver with respect to the top-left corner of the desktop (including the offset of the virtual root window under X).
Previous: BLOX.BWidget-geometry management, Up: BLOX.BWidget [Index]
At any given time, one window on each display is designated as the focus window; any key press or key release events for the display are sent to that window. This method allows one to choose which window will have the focus in the receiver’s display
If the application currently has the input focus on the receiver’s display, this method resets the input focus for the receiver’s display to the receiver. If the application doesn’t currently have the input focus on the receiver’s display, Blox will remember the receiver as the focus for its top-level; the next time the focus arrives at the top-level, it will be redirected to the receiver (this is because most window managers will set the focus only to top-level windows, leaving it up to the application to redirect the focus among the children of the top-level).
Activate the next widget in the focus ‘tabbing’ order. The focus order depends on the widget creation order; you can set which widgets are in the order with the #tabStop: method.
Activate the previous widget in the focus ‘tabbing’ order. The focus order depends on the widget creation order; you can set which widgets are in the order with the #tabStop: method.
Raise the receiver so that it is above all of its siblings in the widgets’ z-order; the receiver will not be obscured by any siblings and will obscure any siblings that overlap it.
Return whether the receiver is the window that currently owns the focus on its display.
Lower the receiver so that it is below all of its siblings in the widgets’ z-order; the receiver will be obscured by any siblings that overlap it and will not obscure any siblings.
Next: BLOX.Gui, Previous: BLOX.BWidget, Up: BLOX package [Index]
I am the boss. Nothing else could be viewed or interacted with if it wasn’t for me... )):->
• BLOX.BWindow class-instance creation: | (class) | |
• BLOX.BWindow-accessing: | (instance) | |
• BLOX.BWindow-widget protocol: | (instance) |
Next: BLOX.BWindow-accessing, Up: BLOX.BWindow [Index]
Answer a new top-level window.
Answer a new top-level window with ‘label’ as its title bar caption.
This method should not be called for instances of this class.
Next: BLOX.BWindow-widget protocol, Previous: BLOX.BWindow class-instance creation, Up: BLOX.BWindow [Index]
Answer a DirectedMessage that is sent to verify whether the receiver must be destroyed when the user asks to unmap it.
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the user asks to unmap the receiver. If the method accepts an argument, the receiver is passed.
If the method returns true, the window and its children are destroyed (which is the default action, taken if no callback is set up). If the method returns false, the window is left in place.
Generate a synthetic callback, destroying the window if no callback was set up or if the callback method answers true.
Answer the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the label option for the widget.
Specifies a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as anchor. For windows, this is the title of the window.
Set the value of the menu option for the widget.
Specifies a menu widget to be used as a menubar. On the Macintosh, the menubar will be displayed accross the top of the main monitor. On Microsoft Windows and all UNIX platforms, the menu will appear accross the toplevel window as part of the window dressing maintained by the window manager.
Answer the value of the resizable option for the widget.
Answer whether the user can be resize the window or not. If resizing is disabled, then the window’s size will be the size from the most recent interactive resize or geometry-setting method. If there has been no such operation then the window’s natural size will be used.
Set the value of the resizable option for the widget.
Answer whether the user can be resize the window or not. If resizing is disabled, then the window’s size will be the size from the most recent interactive resize or geometry-setting method. If there has been no such operation then the window’s natural size will be used.
Previous: BLOX.BWindow-accessing, Up: BLOX.BWindow [Index]
Center the window in the screen
Center the window in the given widget
Answer the height of the window, as deduced from the geometry that the window manager imposed on the window.
Ask the window manager to give the given height to the window.
Answer the height of the window, as deduced from the geometry that the window manager imposed on the window.
This method should not be called for instances of this class.
Map a window and in iconified state. If a window has not been mapped yet, this is achieved by mapping the window in withdrawn state first, and then iconifying it.
Answer whether the window is mapped
Answer ‘true’.
Map the window and bring it to the topmost position in the Z-order.
Map the window while establishing an application-local grab for it. An event loop is started that ends only after the window has been destroyed.
When a grab is set for a particular window, all pointer events are restructed to the grab window and its descendants in Blox’s window hierarchy. Whenever the pointer is within the grab window’s subtree, the pointer will behave exactly the same as if there had been no grab grab at all and all events will be reported in the normal fashion. When the pointer is outside the window’s tree, button presses and releases and mouse motion events are reported to the grabbing window, and window entry and window exit events are ignored. In other words, windows outside the grab subtree will be visible on the screen but they will be insensitive until the grab is released. The tree of windows underneath the grab window can include top-level windows, in which case all of those top-level windows and their descendants will continue to receive mouse events during the grab. Keyboard events (key presses and key releases) are delivered as usual: the window manager controls which application receives keyboard events, and if they are sent to any window in the grabbing application then they are redirected to the window owning the focus.
Set the value of the state option for the window.
Specifies one of four states for the window: either normal, iconic, withdrawn, or (Windows only) zoomed.
Raise an error. To set a BWindow’s state, use #map and #unmap.
Unmap a window, causing it to be forgotten about by the window manager
Answer the width of the window, as deduced from the geometry that the window manager imposed on the window.
Ask the window manager to give the given width to the window.
Ask the window manager to give the given width and height to the window.
Answer the width of the window, as deduced from the geometry that the window manager imposed on the window.
This method should not be called for instances of this class.
Answer the receiver.
Answer the x coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.
Ask the window manager to move the window’s left border to the given x coordinate, keeping the size unchanged
Ask the window manager to move the window’s top-left corner to the given coordinates, keeping the size unchanged
Ask the window manager to give the requested geometry to the window.
Answer the x coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.
This method should not be called for instances of this class.
Answer the y coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.
Ask the window manager to move the window’s left border to the given y coordinate, keeping the size unchanged
Answer the y coordinate of the window’s top-left corner, as deduced from the geometry that the window manager imposed on the window.
This method should not be called for instances of this class.
Previous: BLOX.BWindow, Up: BLOX package [Index]
I am a small class which serves as a base for complex objects which expose an individual protocol but internally use a Blox widget for creating their user interface.
• BLOX.Gui-accessing: | (instance) |
Return instance of blox subclass which implements window
Set instance of blox subclass which implements window
Next: DBI package, Previous: BLOX package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• Complex: | ||
Classes documented in this manual are boldfaced. Object Magnitude Number Complex |
Up: Complex package [Index]
I provide complex numbers, with full interoperability with other kinds of numbers. Complex numbers can be created from imaginary numbers, which in turn are created with ‘Complex i’ or the #i method (e.g. ‘3 i’). Alternatively, they can be created from polar numbers.
• Complex class-instance creation: | (class) | |
• Complex-comparing: | (instance) | |
• Complex-converting: | (instance) | |
• Complex-creation/coercion: | (instance) | |
• Complex-math: | (instance) | |
• Complex-printing: | (instance) | |
• Complex-testing: | (instance) | |
• Complex-transcendental functions: | (instance) |
Next: Complex-comparing, Up: Complex [Index]
Return the imaginary unit, -1 sqrt.
Initialize some common complex numbers.
This method should not be called for instances of this class.
Return a complex number with the given real and imaginary parts.
Private - Return a new complex number knowing that re and im have the same generality.
Return a complex number whose absolute value is dist and whose argument is angle.
Next: Complex-converting, Previous: Complex class-instance creation, Up: Complex [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: Complex-creation/coercion, Previous: Complex-comparing, Up: Complex [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: Complex-math, Previous: Complex-converting, Up: Complex [Index]
Not commented.
Not commented.
Return the receiver multiplied by the imaginary unit.
Answer ‘im’.
Answer ‘true’.
Answer ‘One’.
Answer ‘re’.
Not commented.
Answer ‘Zero’.
Next: Complex-printing, Previous: Complex-creation/coercion, Up: Complex [Index]
Multiply the receiver by the (real or complex) number z.
Sum the receiver with the (real or complex) number z.
Subtract the (real or complex) number z from the receiver.
Divide the receiver by the (real or complex) number z.
Return the absolute value of the receiver.
Return the squared absolute value of the receiver.
Return the complex conjugate of the receiver.
Return the reciprocal of the receiver.
Next: Complex-testing, Previous: Complex-math, Up: Complex [Index]
Not commented.
Not commented.
Next: Complex-transcendental functions, Previous: Complex-printing, Up: Complex [Index]
Answer whether the receiver performs exact arithmetic. Complex numbers do so as long as both parts, real and imaginary, are exact.
Previous: Complex-testing, Up: Complex [Index]
Return the arc-tangent of the receiver.
Return the arc-tangent of aNumber divided by the receiver.
Return the argument of the receiver.
Return the cosine of the receiver.
Return the hyperbolic cosine of the receiver.
Return e raised to the receiver.
Return the natural logarithm of the receiver.
Return the base-10 logarithm of the receiver.
Return the sine of the receiver.
Return the hyperbolic sine of the receiver.
Return the square root of the receiver. Can be improved!
Return the tangent of the receiver.
Return the hyperbolic tangent of the receiver.
Next: DebugTools package, Previous: Complex package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• DBI.ColumnInfo: | ||
• DBI.Connection: | ||
• DBI.ConnectionInfo: | ||
• DBI.FieldConverter: | ||
• DBI.ResultSet: | ||
• DBI.Row: | ||
• DBI.Statement: | ||
• DBI.Table: | ||
Classes documented in this manual are boldfaced. DBI.ROE.RASQLRelation DBI.Table Object DBI.ColumnInfo DBI.Connection DBI.ConnectionInfo DBI.FieldConverter DBI.Row DBI.Statement Iterable Stream DBI.ResultSet |
Next: DBI.Connection, Up: DBI package [Index]
• DBI.ColumnInfo-accessing: | (instance) | |
• DBI.ColumnInfo-printing: | (instance) |
Next: DBI.ColumnInfo-printing, Up: DBI.ColumnInfo [Index]
Return the 1-based index of the column in the result set (abstract).
Return whether the column can be NULL (always returns true in ColumnInfo).
Return the name of the column (abstract).
Return the size of the column (abstract).
Return a string containing the type of the column (abstract).
Previous: DBI.ColumnInfo-accessing, Up: DBI.ColumnInfo [Index]
Print a representation of the receiver on aStream.
Print a representation of the receiver on aStream.
Next: DBI.ConnectionInfo, Previous: DBI.ColumnInfo, Up: DBI package [Index]
I represent a connection to a database.
• DBI.Connection class-connecting: | (class) | |
• DBI.Connection class-initialization: | (class) | |
• DBI.Connection-accessing: | (instance) | |
• DBI.Connection-connecting: | (instance) | |
• DBI.Connection-querying: | (instance) |
Next: DBI.Connection class-initialization, Up: DBI.Connection [Index]
Connect to the database server identified by aDSN using the given username and password. The DSN is in the format dbi:DriverName:dbname=database_name;host=hostname;port=port Where dbi is constant, DriverName is the name of the driver, and everything else is parameters in the form name1=value1;name2=value2;...
Individual drivers may parse the parameters differently, though the existing ones all support parameters dbname, host and port.
Connect to the database server using the parameters in params (a Dictionary) and the given username and password (abstract).
Next: DBI.Connection-accessing, Previous: DBI.Connection class-connecting, Up: DBI.Connection [Index]
Private - Look for new subclasses of Connection.
Next: DBI.Connection-connecting, Previous: DBI.Connection class-initialization, Up: DBI.Connection [Index]
Returns a Table object corresponding to the given table.
Returns the database name for this connection. This corresponds to the catalog in SQL standard parlance (abstract).
Returns a FieldConverter that can be used to insert Smalltalk objects into queries.
Returns a Table object corresponding to the given table.
Returns a Table object corresponding to the given table.
Next: DBI.Connection-querying, Previous: DBI.Connection-accessing, Up: DBI.Connection [Index]
Close the connection now; should happen on GC too (abstract).
Previous: DBI.Connection-connecting, Up: DBI.Connection [Index]
Executes a SQL statement (usually one that doesn’t return a result set). Return value is a ResultSet, to which you can send #rowsAffected (abstract).
Creates a statement object, that can be executed (with parameters, if applicable) repeatedly (abstract).
Returns a Table object corresponding to the given table. Should be overridden by subclasses.
Prepares and executes a SQL statement. Returns the result set or throws an exception on failure (abstract).
Next: DBI.FieldConverter, Previous: DBI.Connection, Up: DBI package [Index]
A utility class to contain connection info.
• DBI.ConnectionInfo class-instance creation: | (class) | |
• DBI.ConnectionInfo-accessing: | (instance) |
Next: DBI.ConnectionInfo-accessing, Up: DBI.ConnectionInfo [Index]
Parse a DSN in the format dbi:DriverName:dbname=database_name;host=hostname;port=port where dbi is constant, DriverName is the name of the driver, and everything else is parameters in the form name1=value1;name2=value2;...
Previous: DBI.ConnectionInfo class-instance creation, Up: DBI.ConnectionInfo [Index]
Answer the driver; this is not the driver class.
Set the driver; this is not the driver class.
Set the parameter list.
Return the parsed parameters in a Dictionary.
Answer the scheme; the only supported one is ’dbi’.
Set the scheme; the only supported one is ’dbi’.
Next: DBI.ResultSet, Previous: DBI.ConnectionInfo, Up: DBI package [Index]
• DBI.FieldConverter class-instance creation: | (class) | |
• DBI.FieldConverter-actions: | (instance) | |
• DBI.FieldConverter-converting-smalltalk: | (instance) |
Next: DBI.FieldConverter-actions, Up: DBI.FieldConverter [Index]
Not commented.
Not commented.
Next: DBI.FieldConverter-converting-smalltalk, Previous: DBI.FieldConverter class-instance creation, Up: DBI.FieldConverter [Index]
Not commented.
Not commented.
Previous: DBI.FieldConverter-actions, Up: DBI.FieldConverter [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: DBI.Row, Previous: DBI.FieldConverter, Up: DBI package [Index]
I represent a result set, ie. the set of rows returned from a SELECT statement. I may also be returned for DML statements (INSERT, UPDATE, DELETE), in which case I only hold the number of rows affected.
• DBI.ResultSet-accessing: | (instance) | |
• DBI.ResultSet-cursor access: | (instance) | |
• DBI.ResultSet-printing: | (instance) | |
• DBI.ResultSet-stream protocol: | (instance) |
Next: DBI.ResultSet-cursor access, Up: DBI.ResultSet [Index]
Answer the aIndex’th column name.
Answer an array of column names in order (abstract).
Answer a Dictionary of column name -> ColumnInfo pairs (abstract).
Returns true if the statement was not a SELECT or similar operation (e.g. SHOW, DESCRIBE, EXPLAIN).
Returns true if the statement was a SELECT or similar operation (e.g. SHOW, DESCRIBE, EXPLAIN), false otherwise.
Returns the number of rows in the result set; error for DML statements.
Answer the contents of the execution result as array of Rows.
For DML statments, returns the number of rows affected; error for SELECT statements.
Return the Statement, if any, that generated the result set.
Next: DBI.ResultSet-printing, Previous: DBI.ResultSet-accessing, Up: DBI.ResultSet [Index]
Return whether all the rows in the result set have been consumed. (abstract).
Return the next row, or nil if at the end of the result set.
Return the next row, or raise an error if at the end of the stream (abstract).
Next: DBI.ResultSet-stream protocol, Previous: DBI.ResultSet-cursor access, Up: DBI.ResultSet [Index]
Print a representation of the receiver on aStream.
Previous: DBI.ResultSet-printing, Up: DBI.ResultSet [Index]
Returns the current row index (0-based) in the result set (abstract).
Sets the current row index (0-based) in the result set (abstract).
Returns the number of rows in the result set.
Next: DBI.Statement, Previous: DBI.ResultSet, Up: DBI package [Index]
I represent a row in a result set.
• DBI.Row-accessing: | (instance) | |
• DBI.Row-printing: | (instance) |
Next: DBI.Row-printing, Up: DBI.Row [Index]
Return the values of the columns.
Return the names and values of the columns as a dictionary.
Return the value of the named column (abstract).
Return the value of the column at the given 1-based index (abstract).
Return a ColumnInfo object for the aIndex-th column in the row.
Return the number of columns in the row.
Return an array of column names for the columns in the row.
Return a Dictionary of ColumnInfo objects for the columns in the row, where the keys are the column names.
Pass to aBlock each column name and the corresponding value.
Return the result set that includes the receiver.
Previous: DBI.Row-accessing, Up: DBI.Row [Index]
Print a representation of the receiver on aStream.
Next: DBI.Table, Previous: DBI.Row, Up: DBI package [Index]
I represent a prepared statement.
• DBI.Statement class-instance creation: | (class) | |
• DBI.Statement-querying: | (instance) |
Next: DBI.Statement-querying, Up: DBI.Statement [Index]
Return a new statement for this connection.
Previous: DBI.Statement class-instance creation, Up: DBI.Statement [Index]
Execute with no parameters (abstract).
Execute with one parameters.
Execute with two parameters.
Execute with three parameters.
Execute taking parameters from the Collection aParams (abstract).
Previous: DBI.Statement, Up: DBI package [Index]
• DBI.Table-accessing: | (instance) | |
• DBI.Table-core: | (instance) | |
• DBI.Table-printing: | (instance) |
Next: DBI.Table-core, Up: DBI.Table [Index]
Answer the aIndex’th column name.
Answer an array of column names in order (abstract).
Not commented.
Returns the database name for this table. This corresponds to the catalog in SQL standard parlance.
Next: DBI.Table-printing, Previous: DBI.Table-accessing, Up: DBI.Table [Index]
Not commented.
Previous: DBI.Table-core, Up: DBI.Table [Index]
Not commented.
Next: Iconv/I18N packages, Previous: DBI package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• Debugger: | ||
Classes documented in this manual are boldfaced. Object Debugger |
Up: DebugTools package [Index]
I provide debugging facilities for another inferior process. I have methods that allow the controlled process to proceed with varying granularity. In addition, I keep a cache mapping instruction pointer bytecodes to line numbers.
• Debugger class-disabling debugging: | (class) | |
• Debugger class-instance creation: | (class) | |
• Debugger class-source code: | (class) | |
• Debugger-inferior process properties: | (instance) | |
• Debugger-stepping commands: | (instance) |
Next: Debugger class-instance creation, Up: Debugger [Index]
Answer ‘nil’.
Next: Debugger class-source code, Previous: Debugger class-disabling debugging, Up: Debugger [Index]
Suspend aProcess and return a new Debugger that controls aProcess. aProcess must not be the currently running process.
Next: Debugger-inferior process properties, Previous: Debugger class-instance creation, Up: Debugger [Index]
Not commented.
Next: Debugger-stepping commands, Previous: Debugger class-source code, Up: Debugger [Index]
Return the line number in traced process.
Answer true if the inferior process is still running.
Answer the inferior process.
Answer the suspended execution state of the inferior process.
Previous: Debugger-inferior process properties, Up: Debugger [Index]
Terminate the controlling process and continue execution of the traced process.
Run to the next return.
Run up until aContext returns.
Run to the end of the current line in the inferior process, skipping over message sends.
Run in single-step mode up to the next return.
Run in single-step mode until aContext returns.
Run to the end of the current line in the inferior process or to the next message send.
Run a single bytecode in the inferior process.
Suspend the inferior process and raise a DebuggerReentered notification in the controlling process.
Suspend the inferior process and raise a DebuggerReentered notification in the controlling process with anObject as the exception’s message.
Next: Sockets package, Previous: DebugTools package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• I18N.BigEndianFileStream: | ||
• I18N.EncodedStream: | ||
• I18N.EncodedString: | ||
• I18N.EncodedStringFactory: | ||
• I18N.Encoder: | ||
• I18N.FileStreamSegment: | ||
• I18N.IncompleteSequenceError: | ||
• I18N.InvalidCharsetError: | ||
• I18N.InvalidSequenceError: | ||
• I18N.LcMessages: | ||
• I18N.LcMessagesCatalog: | ||
• I18N.LcMessagesDomain: | ||
• I18N.LcMessagesDummyDomain: | ||
• I18N.LcMessagesMoFileVersion0: | ||
• I18N.LcMessagesTerritoryDomain: | ||
• I18N.LcMonetary: | ||
• I18N.LcMonetaryISO: | ||
• I18N.LcNumeric: | ||
• I18N.LcPrintFormats: | ||
• I18N.LcTime: | ||
• I18N.Locale: | ||
• I18N.LocaleConventions: | ||
• I18N.LocaleData: | ||
• I18N.RTEAlternativeNode: | ||
• I18N.RTEBinaryNode: | ||
• I18N.RTELiteralNode: | ||
• I18N.RTENegationNode: | ||
• I18N.RTEParameterNode: | ||
• I18N.RunTimeExpression: | ||
Classes documented in this manual are boldfaced. Object Exception Error I18N.IncompleteSequenceError I18N.InvalidSequenceError SystemExceptions.InvalidValue SystemExceptions.SystemExceptions.InvalidArgument I18N.InvalidCharsetError FileSegment I18N.FileStreamSegment I18N.EncodedStringFactory I18N.LocaleData I18N.LcMessagesDomain I18N.LcMessagesCatalog I18N.LcMessagesMoFileVersion0 I18N.LcMessagesDummyDomain I18N.LcMessagesTerritoryDomain I18N.Locale I18N.LocaleConventions I18N.LcMessages I18N.LcPrintFormats I18N.LcNumeric I18N.LcMonetary I18N.LcMonetaryISO I18N.LcTime I18N.RunTimeExpression I18N.RTEAlternativeNode I18N.RTEBinaryNode I18N.RTELiteralNode I18N.RTENegationNode I18N.RTEParameterNode Iterable Collection SequenceableCollection ArrayedCollection CharacterArray I18N.EncodedString Stream FileDescriptor FileStream I18N.BigEndianFileStream I18N.EncodedStream I18N.Encoder |
Next: I18N.EncodedStream, Up: Iconv/I18N packages [Index]
Unlike ByteStream and FileStream, this retrieves integer numbers in big-endian (68000, PowerPC, SPARC) order.
Next: I18N.EncodedString, Previous: I18N.BigEndianFileStream, Up: Iconv/I18N packages [Index]
This class is a factory for subclasses of Encoder. Encoders act as parts of a pipe, hence this class provides methods that construct an appropriate pipe.
• I18N.EncodedStream class-initializing: | (class) | |
• I18N.EncodedStream class-instance creation: | (class) |
Initialize the registry of the encoders to include the standard encoders contained in the library.
Register the two classes that will respectively convert from the charsets in arrayOfAliases to UTF-32 and vice versa.
The former class is a stream that accepts characters and returns (via #next) integers representing UTF-32 character codes, while the latter accepts UTF-32 character codes and converts them to characters. For an example see respectively FromUTF7 and ToUTF7 (I admit it is not a trivial example).
Previous: I18N.EncodedStream class-initializing, Up: I18N.EncodedStream [Index]
Answer a pipe of encoders that converts anUnicodeString to default encoding for strings (the current locale’s default charset if none is specified).
Answer a pipe of encoders that converts anUnicodeString (which contains to the supplied encoding (which can be an ASCII String or Symbol).
Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the given encoding to the default locale’s default charset.
Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) between the two supplied encodings (which can be ASCII Strings or Symbols)
Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the default locale’s default charset to the given encoding.
Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from its encoding (or the current locale’s default charset, if the encoding cannot be determined) to integers representing Unicode character codes.
Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the supplied encoding (which can be an ASCII String or Symbol) to integers representing Unicode character codes.
Next: I18N.EncodedStringFactory, Previous: I18N.EncodedStream, Up: Iconv/I18N packages [Index]
An EncodedString, like a String, is a sequence of bytes representing a specific encoding of a UnicodeString. Unlike a String, however, the encoding name is known, rather than detected, irrelevant or assumed to be the system default.
• I18N.EncodedString class-accessing: | (class) | |
• I18N.EncodedString class-instance creation: | (class) | |
• I18N.EncodedString-accessing: | (instance) | |
• I18N.EncodedString-copying: | (instance) | |
• I18N.EncodedString-initializing: | (instance) | |
• I18N.EncodedString-printing: | (instance) |
Answer false; the receiver stores bytes (i.e. an encoded form), not characters.
Next: I18N.EncodedString-accessing, Previous: I18N.EncodedString class-accessing, Up: I18N.EncodedString [Index]
Not commented.
Not commented.
This method should not be called for instances of this class.
This method should not be called for instances of this class.
Next: I18N.EncodedString-copying, Previous: I18N.EncodedString class-instance creation, Up: I18N.EncodedString [Index]
Answer ‘string’.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: I18N.EncodedString-initializing, Previous: I18N.EncodedString-accessing, Up: I18N.EncodedString [Index]
Not commented.
Not commented.
Not commented.
Next: I18N.EncodedString-printing, Previous: I18N.EncodedString-copying, Up: I18N.EncodedString [Index]
Not commented.
Not commented.
Previous: I18N.EncodedString-initializing, Up: I18N.EncodedString [Index]
Print a representation of the receiver on aStream. Unlike #printOn:, this method does not display the encoding and enclosing quotes.
Print a representation of the receiver on aStream.
Next: I18N.Encoder, Previous: I18N.EncodedString, Up: Iconv/I18N packages [Index]
An EncodedStringFactory is used (in place of class objects) so that Encoders can return EncodedString objects with the correct encoding.
• I18N.EncodedStringFactory class-instance creation: | (class) | |
• I18N.EncodedStringFactory-accessing: | (instance) | |
• I18N.EncodedStringFactory-instance creation: | (instance) |
Answer a new EncodedStringFactory, creating strings with the given encoding.
Next: I18N.EncodedStringFactory-instance creation, Previous: I18N.EncodedStringFactory class-instance creation, Up: I18N.EncodedStringFactory [Index]
Answer false; the receiver stores bytes (i.e. an encoded form), not characters.
Previous: I18N.EncodedStringFactory-accessing, Up: I18N.EncodedStringFactory [Index]
Answer the encoding used for the created Strings.
Set the encoding used for the created Strings.
Answer an EncodedString based on aString and in the encoding represented by the receiver.
Answer a new, empty EncodedString using the encoding represented by the receiver.
Answer a new EncodedString of the given size, using the encoding represented by the receiver.
Next: I18N.FileStreamSegment, Previous: I18N.EncodedStringFactory, Up: Iconv/I18N packages [Index]
This class is the superclass of streams that take an origin and encode it to another character set. The subclasses are are for internal use unless you are writing support for your own encodings.
• I18N.Encoder class-instance creation: | (class) | |
• I18N.Encoder-stream operations: | (instance) |
Next: I18N.Encoder-stream operations, Up: I18N.Encoder [Index]
Answer a new encoder that translates from fromEncoding to toEncoding. The encodings are guaranteed to be those for which the encoder was registered.
Previous: I18N.Encoder class-instance creation, Up: I18N.Encoder [Index]
Return whether the receiver can produce another character in the receiver; by default, this is true if there is another character in the origin.
Return whether there is another character in the origin. This method is for private use by encoders, calling it outside won’t corrupt the internal state of the encoder but the result probably won’t be meaningful (depending on the innards of the encoder).
Return the next character in the receiver; by default, this is the next character in the origin.
Return the next character in the origin. This method is for private use by encoders, calling it outside may corrupt the internal state of the encoder.
Place up to N characters from the origin in aCollection. This method is for private use by encoders, calling it outside may corrupt the internal state of the encoder.
Return the next character in the origin without advancing it.
We answer a string of Characters encoded in our destination encoding.
Next: I18N.IncompleteSequenceError, Previous: I18N.Encoder, Up: Iconv/I18N packages [Index]
Unlike FileSegment, this object assumes that the ‘file’ instance variable is a FileStream, not a file name.
• I18N.FileStreamSegment-basic: | (instance) |
Up: I18N.FileStreamSegment [Index]
Answer the name of the file containing the segment
Evaluate aBlock, passing a FileStream corresponding to the file
Next: I18N.InvalidCharsetError, Previous: I18N.FileStreamSegment, Up: Iconv/I18N packages [Index]
I am raised if an invalid sequence is found while converting a string from a charset to another. In particular, I am raised if the input stream ends abruptly in the middle of a multi-byte sequence.
• I18N.IncompleteSequenceError-accessing: | (instance) |
Answer a textual description of the exception.
Next: I18N.InvalidSequenceError, Previous: I18N.IncompleteSequenceError, Up: Iconv/I18N packages [Index]
I am raised if the user tries to encode from or to an unknown encoding
• I18N.InvalidCharsetError-accessing: | (instance) |
Answer a textual description of the exception.
Next: I18N.LcMessages, Previous: I18N.InvalidCharsetError, Up: Iconv/I18N packages [Index]
I am raised if an invalid sequence is found while converting a string from a charset to another
• I18N.InvalidSequenceError-accessing: | (instance) |
Answer a textual description of the exception.
Next: I18N.LcMessagesCatalog, Previous: I18N.InvalidSequenceError, Up: Iconv/I18N packages [Index]
This object is a factory of LcMessagesDomain objects
• I18N.LcMessages class-accessing: | (class) | |
• I18N.LcMessages-accessing: | (instance) | |
• I18N.LcMessages-opening MO files: | (instance) |
Next: I18N.LcMessages-accessing, Up: I18N.LcMessages [Index]
Answer the environment variable used to determine the default locale
Answer the selector that accesses the receiver when sent to a Locale object.
Next: I18N.LcMessages-opening MO files, Previous: I18N.LcMessages class-accessing, Up: I18N.LcMessages [Index]
Answer the directory holding MO files for the language
Answer the directory holding MO files for the language, given the root directory of the locale data.
Answer the directory holding MO files for the language, specific to the territory
Answer the directory holding MO files for the language, specific to the territory, given the root directory of the locale data.
Previous: I18N.LcMessages-accessing, Up: I18N.LcMessages [Index]
Answer an object for the aString domain, querying both the language catalog (e.g. pt) and the territory catalog (e.g. pt_BR or pt_PT).
Answer an object for the aString domain, querying both the language catalog (e.g. pt) and the territory catalog (e.g. pt_BR or pt_PT).
Answer an object for the aString domain, querying both the language catalog (e.g. pt) and the territory catalog (e.g. pt_BR or pt_PT). The localeDirectory is usually ’<installprefix>/share/locale’.
Next: I18N.LcMessagesDomain, Previous: I18N.LcMessages, Up: Iconv/I18N packages [Index]
This object is an abstract superclass of objects that retrieve translated strings from a file.
Next: I18N.LcMessagesDummyDomain, Previous: I18N.LcMessagesCatalog, Up: Iconv/I18N packages [Index]
This object is an abstract superclass for message domains (catalogs). It contains methods to create instances of its subclasses, but they are commonly used only by LcMessages.
Translations are accessed using either #at: or the shortcut binary messages ‘?’. This way, common idioms to access translated strings will be
string := NLS? ’abc’. string := self? ’abc’.
(in the first case NLS is a class variable, in the second the receiver implements #? through delegation) which is only five or six characters longer than the traditional
string := ’abc’.
(cfr. the _("abc") idiom used by GNU gettext)
• I18N.LcMessagesDomain class-opening MO files: | (class) | |
• I18N.LcMessagesDomain-handling the cache: | (instance) | |
• I18N.LcMessagesDomain-querying: | (instance) |
Create an instance of the receiver with a given locale identifier from a path to the MO file
Next: I18N.LcMessagesDomain-querying, Previous: I18N.LcMessagesDomain class-opening MO files, Up: I18N.LcMessagesDomain [Index]
Flush the receiver’s cache of translations
Answer whether translations should be cached. Never override this method to always answer false, because that would cause bugs when transliteration is being used.
Previous: I18N.LcMessagesDomain-handling the cache, Up: I18N.LcMessagesDomain [Index]
Answer the translation of ‘aString’, or answer aString itself if none is available.
Answer the translation of ‘aString’, or answer aString itself if none is available.
Answer either the translation of pluralString with ‘%1’ replaced by n if n ~= 1, or the translation of singularString if n = 1.
This method should not be called for instances of this class.
Answer information on the translation, or nil if there is none. This information is stored as the ‘translation’ of an empty string.
Answer information on the translation associated to a given key
Answer information on the translation associated to a given key and to a subkey of the key
Next: I18N.LcMessagesMoFileVersion0, Previous: I18N.LcMessagesDomain, Up: Iconv/I18N packages [Index]
This object does no attempt to translate strings, returning instead the same string passed as an argument to #?.
Next: I18N.LcMessagesTerritoryDomain, Previous: I18N.LcMessagesDummyDomain, Up: Iconv/I18N packages [Index]
This object is an concrete class that retrieves translated strings from a GNU gettext MO file. The class method #fileFormatDescription contains an explanation of the file format.
• I18N.LcMessagesMoFileVersion0 class-documentation: | (class) | |
• I18N.LcMessagesMoFileVersion0 class-plurals: | (class) | |
• I18N.LcMessagesMoFileVersion0-flushing the cache: | (instance) |
The Format of GNU MO Files (excerpt of the GNU gettext manual) ==============================================================
The format of the generated MO files is best described by a picture, which appears below.
The first two words serve the identification of the file. The magic number will always signal GNU MO files. The number is stored in the byte order of the generating machine, so the magic number really is two numbers: ‘0x950412de’ and ‘0xde120495’. The second word describes the current revision of the file format. For now the revision is 0. This might change in future versions, and ensures that the readers of MO files can distinguish new formats from old ones, so that both can be handled correctly. The version is kept separate from the magic number, instead of using different magic numbers for different formats, mainly because ‘/etc/magic’ is not updated often. It might be better to have magic separated from internal format version identification.
Follow a number of pointers to later tables in the file, allowing for the extension of the prefix part of MO files without having to recompile programs reading them. This might become useful for later inserting a few flag bits, indication about the charset used, new tables, or other things.
Then, at offset O and offset T in the picture, two tables of string descriptors can be found. In both tables, each string descriptor uses two 32 bits integers, one for the string length, another for the offset of the string in the MO file, counting in bytes from the start of the file. The first table contains descriptors for the original strings, and is sorted so the original strings are in increasing lexicographical order. The second table contains descriptors for the translated strings, and is parallel to the first table: to find the corresponding translation one has to access the array slot in the second array with the same index.
Having the original strings sorted enables the use of simple binary search, for when the MO file does not contain an hashing table, or for when it is not practical to use the hashing table provided in the MO file. This also has another advantage, as the empty string in a PO file GNU ‘gettext’ is usually *translated* into some system information attached to that particular MO file, and the empty string necessarily becomes the first in both the original and translated tables, making the system information very easy to find.
The size S of the hash table can be zero. In this case, the hash table itself is not contained in the MO file. Some people might prefer this because a precomputed hashing table takes disk space, and does not win *that* much speed. The hash table contains indices to the sorted array of strings in the MO file. Conflict resolution is done by double hashing. The precise hashing algorithm used is fairly dependent of GNU ‘gettext’ code, and is not documented here.
As for the strings themselves, they follow the hash file, and each is terminated with a <NUL>, and this <NUL> is not counted in the length which appears in the string descriptor. The ‘msgfmt’ program has an option selecting the alignment for MO file strings. With this option, each string is separately aligned so it starts at an offset which is a multiple of the alignment value. On some RISC machines, a correct alignment will speed things up.
Nothing prevents a MO file from having embedded <NUL>s in strings. However, the program interface currently used already presumes that strings are <NUL> terminated, so embedded <NUL>s are somewhat useless. But MO file format is general enough so other interfaces would be later possible, if for example, we ever want to implement wide characters right in MO files, where <NUL> bytes may accidently appear.
This particular issue has been strongly debated in the GNU ‘gettext’ development forum, and it is expectable that MO file format will evolve or change over time. It is even possible that many formats may later be supported concurrently. But surely, we have to start somewhere, and the MO file format described here is a good start. Nothing is cast in concrete, and the format may later evolve fairly easily, so we should feel comfortable with the current approach.
byte +——————————————+ 0 | magic number = 0x950412de | | | 4 | file format revision = 0 | | | 8 | number of strings | == N | | 12 | offset of table with original strings | == O | | 16 | offset of table with translation strings | == T | | 20 | size of hashing table | == S | | 24 | offset of hashing table | == H | | . . . (possibly more entries later) . . . | | O | length & offset 0th string —————-. O + 8 | length & offset 1st string ——————. ... ... | | O + ((N-1)*8)| length & offset (N-1)th string | | | | | | | T | length & offset 0th translation —————. T + 8 | length & offset 1st translation —————–. ... ... | | | | T + ((N-1)*8)| length & offset (N-1)th translation | | | | | | | | | | | H | start hash table | | | | | ... ... | | | | H + S * 4 | end hash table | | | | | | | | | | | | NUL terminated 0th string <—————-’ | | | | | | | | | NUL terminated 1st string <——————’ | | | | | | ... ... | | | | | | | NUL terminated 0th translation <—————’ | | | | | NUL terminated 1st translation <—————–’ | | ... ... | | +——————————————+
Locating Message Catalog Files ——————————
Because many different languages for many different packages have to be stored we need some way to add these information to file message catalog files. The way usually used in Unix environments is have this encoding in the file name. This is also done here. The directory name given in ‘bindtextdomain’s second argument (or the default directory), followed by the value and name of the locale and the domain name are concatenated:
DIR_NAME/LOCALE/LC_CATEGORY/DOMAIN_NAME.mo
The default value for DIR_NAME is system specific. For the GNU library, and for packages adhering to its conventions, it’s: /usr/local/share/locale
LOCALE is the value of the locale whose name is this ‘LC_CATEGORY’. For ‘gettext’ and ‘dgettext’ this locale is always ‘LC_MESSAGES’.
Next: I18N.LcMessagesMoFileVersion0-flushing the cache, Previous: I18N.LcMessagesMoFileVersion0 class-documentation, Up: I18N.LcMessagesMoFileVersion0 [Index]
Initialize a table with the expressions computing the plurals for the most common languages
Answer a RunTimeExpression yielding the plural form for the given language and territory, if one is known, else evaluate aBlock and answer it.
Flush the cache and reread the catalog’s metadata.
Answer true, we always cache translations if they are read from a file
Next: I18N.LcMonetary, Previous: I18N.LcMessagesMoFileVersion0, Up: Iconv/I18N packages [Index]
This object asks for strings to a primary domain (e.g. it_IT) and a secondary one (e.g. it).
• I18N.LcMessagesTerritoryDomain class-instance creation: | (class) |
Answer an instance of the receiver that queries, in sequence, domain1 and domain2
Next: I18N.LcMonetaryISO, Previous: I18N.LcMessagesTerritoryDomain, Up: Iconv/I18N packages [Index]
Sending either #?, #printString: or #print:on: converts a Number to a String according to the rules that are mandated by ISO for printing currency amounts in the current locale.
• I18N.LcMonetary class-accessing: | (class) | |
• I18N.LcMonetary-printing: | (instance) |
Next: I18N.LcMonetary-printing, Up: I18N.LcMonetary [Index]
Answer the environment variable used to determine the default locale
Answer the selector that accesses the receiver when sent to a Locale object.
Previous: I18N.LcMonetary class-accessing, Up: I18N.LcMonetary [Index]
Print aNumber on aStream according to the receiver’s formatting conventions. Always print a currency sign and don’t force to print negative numbers by putting parentheses around them.
Print aNumber on aStream according to the receiver’s formatting conventions. If currency is true, print a currency sign, and if p is true force to print negative numbers by putting parentheses around them. If p is true, for positive numbers spaces are put around the number to keep them aligned.
Next: I18N.LcNumeric, Previous: I18N.LcMonetary, Up: Iconv/I18N packages [Index]
• I18N.LcMonetaryISO class-accessing: | (class) |
Up: I18N.LcMonetaryISO [Index]
Answer the selector that accesses the receiver when sent to a Locale object.
Next: I18N.LcPrintFormats, Previous: I18N.LcMonetaryISO, Up: Iconv/I18N packages [Index]
Sending either #?, #printString: or #print:on: converts a Number to a String according to the rules that are used in the given locale.
• I18N.LcNumeric class-accessing: | (class) | |
• I18N.LcNumeric-printing: | (instance) |
Next: I18N.LcNumeric-printing, Up: I18N.LcNumeric [Index]
Answer the environment variable used to determine the default locale
Answer the selector that accesses the receiver when sent to a Locale object.
Previous: I18N.LcNumeric class-accessing, Up: I18N.LcNumeric [Index]
Print aNumber on aStream according to the receiver’s formatting conventions, without currency signs or anything like that. This method must not be overridden.
Print aNumber on aStream according to the receiver’s formatting conventions.
Next: I18N.LcTime, Previous: I18N.LcNumeric, Up: Iconv/I18N packages [Index]
LcPrintFormats subclasses have instances that understand #?, #printString: and #print:on: (the last of which is abstract) which provide a means to convert miscellaneous objects to Strings according to the rules that are used in the given locale.
• I18N.LcPrintFormats-printing: | (instance) |
Up: I18N.LcPrintFormats [Index]
Answer how anObject must be printed according to the receiver’s formatting conventions.
Print anObject on aStream according to the receiver’s formatting conventions.
Answer how anObject must be printed according to the receiver’s formatting conventions.
Next: I18N.Locale, Previous: I18N.LcPrintFormats, Up: Iconv/I18N packages [Index]
Sending either #?, #printString: or #print:on: converts a Date or Time to a String according to the rules that are used in the given locale.
• I18N.LcTime class-accessing: | (class) | |
• I18N.LcTime-printing: | (instance) | |
• I18N.LcTime-tests: | (instance) |
Next: I18N.LcTime-printing, Up: I18N.LcTime [Index]
Answer the environment variable used to determine the default locale
Answer the selector that accesses the receiver when sent to a Locale object.
Next: I18N.LcTime-tests, Previous: I18N.LcTime class-accessing, Up: I18N.LcTime [Index]
Print aDateOrTimeOrArray on aStream according to the receiver’s formatting conventions. It can be a Date, Time, DateTime, or an array made of a Date and a Time
Print aDateOrTimeOrArray on aStream according to the receiver’s formatting conventions. It can be a Date, Time, DateTime, or an array made of a Date and a Time: Date is printed with dateFmt and Time with timeFmt, while in the other cases fullFmt is used. For information on the formatting codes, see #print:time:format:on:.
Print the specified date and time on aStream according to the receiver’s formatting conventions, using the given format. The valid abbreviations are the same used by the C function strftime: abbreviated weekday (%a) weekday (%A) abbreviated month (%b) month (%B) date & time (%c) century (%C) day of the month (%d) date (US) (%D) day of the month (%e) year for the ISO week (%g) year for the ISO week (%G) abbreviated month (%h) hours (%H) hours (AM/PM) (%I) day of the year (%j) hours (%k) hours (AM/PM) (%l) month (%m) minutes (%M) AM/PM (%p) lowercase AM/PM (%P) AM/PM time (%r) time (US) (%R) time_t (%s) seconds (%S) time (US) (%T) day of the week (%u) week number starting at Sun (%U) week number starting at Thu (%V) day of the week, Sunday=0 (%w) week number starting at Mon (%W) date (%x) time (%X) year (2-digit) (%y) year (4-digit) (%Y).
Previous: I18N.LcTime-printing, Up: I18N.LcTime [Index]
Answer a long string that includes all the possible formats
Next: I18N.LocaleConventions, Previous: I18N.LcTime, Up: Iconv/I18N packages [Index]
This object is an abstract superclass of objects related to the territory and language in which the program is being used. Instances of it are asked about information on the current locale, and provide a means to be asked for things with a common idiom, the #? binary message.
• I18N.Locale class-C call-outs: | (class) | |
• I18N.Locale class-initialization: | (class) | |
• I18N.Locale class-instance creation: | (class) | |
• I18N.Locale-C call-outs: | (instance) | |
• I18N.Locale-subobjects: | (instance) |
Next: I18N.Locale class-initialization, Up: I18N.Locale [Index]
Not commented.
Next: I18N.Locale class-instance creation, Previous: I18N.Locale class-C call-outs, Up: I18N.Locale [Index]
Answer the directory under which locale definition files are found.
Set under which directory locale definition files are found.
Next: I18N.Locale-C call-outs, Previous: I18N.Locale class-initialization, Up: I18N.Locale [Index]
Answer an instance of the receiver that accesses the default locale.
Flush the information on locales that are not valid across an image save/load.
Answer an instance of the receiver that accesses the given locale (in the form language[_territory][.charset]).
Answer an instance of the receiver that accesses the POSIX locale.
Next: I18N.Locale-subobjects, Previous: I18N.Locale class-instance creation, Up: I18N.Locale [Index]
Not commented.
Previous: I18N.Locale-C call-outs, Up: I18N.Locale [Index]
Answer the LcMessages object for the locale represented by the receiver.
Answer the LcMonetary object for the locale represented by the receiver.
Answer the LcMonetaryISO object for the locale represented by the receiver.
Answer the LcNumeric object for the locale represented by the receiver.
Answer the LcTime object for the locale represented by the receiver.
Next: I18N.LocaleData, Previous: I18N.Locale, Up: Iconv/I18N packages [Index]
I am an abstract superclass of objects that are referred to by a Locale object.
• I18N.LocaleConventions class-accessing: | (class) | |
• I18N.LocaleConventions-accessing: | (instance) |
Next: I18N.LocaleConventions-accessing, Up: I18N.LocaleConventions [Index]
Query the default object, forwarding the message to it.
Answer an instance of the receiver that accesses the default locale.
Answer an instance of the receiver that accesses the given locale (in the form language[_territory][.charset]).
Answer an instance of the receiver that accesses the POSIX locale.
This method’s functionality should be implemented by subclasses of LocaleConventions
Previous: I18N.LocaleConventions class-accessing, Up: I18N.LocaleConventions [Index]
This method’s functionality should be implemented by subclasses of LocaleConventions
Next: I18N.RTEAlternativeNode, Previous: I18N.LocaleConventions, Up: Iconv/I18N packages [Index]
I am an abstract superclass of objects that represent localization information.
• I18N.LocaleData class-accessing: | (class) | |
• I18N.LocaleData class-database: | (class) | |
• I18N.LocaleData-accessing: | (instance) | |
• I18N.LocaleData-initialization: | (instance) |
Next: I18N.LocaleData class-database, Up: I18N.LocaleData [Index]
Answer ‘nil’.
This method’s functionality should be implemented by subclasses of LocaleData
Flush the contents of the instances of each subclass of LocaleData.
This method’s functionality should be implemented by subclasses of LocaleData
Answer the local object for the given language.
Answer the local object for the given language and territory.
Answer the local object for the given language, territory and charset.
This method should not be called for instances of this class.
This method’s functionality should be implemented by subclasses of LocaleData
Flush instances of the receiver when an image is loaded.
Next: I18N.LocaleData-accessing, Previous: I18N.LocaleData class-accessing, Up: I18N.LocaleData [Index]
Answer the default charset used when nothing is specified.
Set the default charset used when nothing is specified.
Answer the default territory-language and language-charset associations.
Initialize the receiver’s class variables.
ISO639 language codes
ISO3166 territory codes
Next: I18N.LocaleData-initialization, Previous: I18N.LocaleData class-database, Up: I18N.LocaleData [Index]
Return the charset supported by the receiver.
Return the identifier of the locale supported by the receiver.
Answer whether the receiver implements the default POSIX behavior for a locale.
Return the language supported by the receiver.
Answer the directory where data files for the current language reside.
Answer the directory where data files for the current language reside, given the root directory of the locale data.
Return the territory supported by the receiver.
Answer the directory where data files for the current language, specific to the territory, reside.
Answer the directory where data files for the current language, specific to the territory, reside, given the root directory of the locale data.
Previous: I18N.LocaleData-accessing, Up: I18N.LocaleData [Index]
Private - Set which locale the receiver contains data for
Set which locale the receiver contains data for, starting from a string describing the locale.
Next: I18N.RTEBinaryNode, Previous: I18N.LocaleData, Up: Iconv/I18N packages [Index]
• I18N.RTEAlternativeNode class-compiling: | (class) | |
• I18N.RTEAlternativeNode-computing: | (instance) |
Private - Create a node in the parse tree for the run-time expression, mapping s to a Smalltalk arithmetic selector
Previous: I18N.RTEAlternativeNode class-compiling, Up: I18N.RTEAlternativeNode [Index]
Initialize the children of the receiver and the conditional expression to choose between them
Print a representation of the receiver on aStream
Evaluate the receiver by conditionally choosing one of its children and evaluating it
Next: I18N.RTELiteralNode, Previous: I18N.RTEAlternativeNode, Up: Iconv/I18N packages [Index]
• I18N.RTEBinaryNode class-compiling: | (class) | |
• I18N.RTEBinaryNode-compiling: | (instance) | |
• I18N.RTEBinaryNode-computing: | (instance) |
Next: I18N.RTEBinaryNode-compiling, Up: I18N.RTEBinaryNode [Index]
Private - Create a node in the parse tree for the run-time expression, mapping s to a Smalltalk arithmetic selector
Next: I18N.RTEBinaryNode-computing, Previous: I18N.RTEBinaryNode class-compiling, Up: I18N.RTEBinaryNode [Index]
Answer ‘lhs’.
Answer ‘op’.
Answer ‘rhs’.
Previous: I18N.RTEBinaryNode-compiling, Up: I18N.RTEBinaryNode [Index]
Initialize the children of the receiver and the operation to be done between them
Print a representation of the receiver on aStream
Private - Evaluate the receiver by evaluating both children and performing an arithmetic operation between them.
Next: I18N.RTENegationNode, Previous: I18N.RTEBinaryNode, Up: Iconv/I18N packages [Index]
• I18N.RTELiteralNode class-initializing: | (class) | |
• I18N.RTELiteralNode-computing: | (instance) |
Next: I18N.RTELiteralNode-computing, Up: I18N.RTELiteralNode [Index]
Parse a literal number from aStream and return a new node
Previous: I18N.RTELiteralNode class-initializing, Up: I18N.RTELiteralNode [Index]
Set the value of the literal that the node represents
Print a representation of the receiver on aStream
Answer a fixed value, the literal encoded in the node
Next: I18N.RTEParameterNode, Previous: I18N.RTELiteralNode, Up: Iconv/I18N packages [Index]
• I18N.RTENegationNode class-initializing: | (class) | |
• I18N.RTENegationNode-computing: | (instance) |
Next: I18N.RTENegationNode-computing, Up: I18N.RTENegationNode [Index]
Answer a new node representing the logical negation of aNode
Previous: I18N.RTENegationNode class-initializing, Up: I18N.RTENegationNode [Index]
Set the child of which the receiver will compute the negation
Print a representation of the receiver on aStream
Evaluate the receiver by computing the child’s logical negation
Next: I18N.RunTimeExpression, Previous: I18N.RTENegationNode, Up: Iconv/I18N packages [Index]
• I18N.RTEParameterNode-computing: | (instance) |
Up: I18N.RTEParameterNode [Index]
Print a representation of the receiver on aStream
Evaluate the receiver by answering the parameter
Previous: I18N.RTEParameterNode, Up: Iconv/I18N packages [Index]
• I18N.RunTimeExpression class-compiling: | (class) | |
• I18N.RunTimeExpression class-initializing: | (class) | |
• I18N.RunTimeExpression class-instance creation: | (class) | |
• I18N.RunTimeExpression-computing: | (instance) |
Private - Compile the expression in the stream
Parse an operand from the stream (i.e. an unary negation, a parenthesized subexpression, ‘n’ or a number) and answer the corresponding parse node.
Answer a Symbol for an operator read from stream, or nil if something else is found.
Next: I18N.RunTimeExpression class-instance creation, Previous: I18N.RunTimeExpression class-compiling, Up: I18N.RunTimeExpression [Index]
Private - Initialize internal tables for the parser
Next: I18N.RunTimeExpression-computing, Previous: I18N.RunTimeExpression class-initializing, Up: I18N.RunTimeExpression [Index]
Compile aString and answer a RunTimeExpression
Previous: I18N.RunTimeExpression class-instance creation, Up: I18N.RunTimeExpression [Index]
This method’s functionality should be implemented by subclasses of RunTimeExpression
Evaluate the receiver, and answer its value as an integer
Next: ZLib package, Previous: Iconv/I18N packages, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• Sockets.AbstractSocket: | ||
• Sockets.AbstractSocketImpl: | ||
• Sockets.CAddrInfoStruct: | ||
• Sockets.CSockAddrIn6Struct: | ||
• Sockets.Datagram: | ||
• Sockets.DatagramSocket: | ||
• Sockets.DatagramSocketImpl: | ||
• Sockets.DummyStream: | ||
• Sockets.ICMP6SocketImpl: | ||
• Sockets.ICMPSocketImpl: | ||
• Sockets.IP6Address: | ||
• Sockets.IPAddress: | ||
• Sockets.MulticastSocket: | ||
• Sockets.MulticastSocketImpl: | ||
• Sockets.OOBSocketImpl: | ||
• Sockets.RawSocketImpl: | ||
• Sockets.ReadBuffer: | ||
• Sockets.ServerSocket: | ||
• Sockets.Socket: | ||
• Sockets.SocketAddress: | ||
• Sockets.SocketImpl: | ||
• Sockets.StreamSocket: | ||
• Sockets.TCPSocketImpl: | ||
• Sockets.UDPSocketImpl: | ||
• Sockets.UnixAddress: | ||
• Sockets.UnixDatagramSocketImpl: | ||
• Sockets.UnixSocketImpl: | ||
• Sockets.WriteBuffer: | ||
Classes documented in this manual are boldfaced. Object CObject CCompound CStruct Sockets.CAddrInfoStruct Sockets.CSockAddrIn6Struct Iterable Stream FileDescriptor Sockets.AbstractSocketImpl Sockets.DatagramSocketImpl Sockets.MulticastSocketImpl Sockets.UDPSocketImpl Sockets.OOBSocketImpl Sockets.RawSocketImpl Sockets.ICMP6SocketImpl Sockets.ICMPSocketImpl Sockets.UnixDatagramSocketImpl Sockets.SocketImpl Sockets.TCPSocketImpl Sockets.UnixSocketImpl PositionableStream ReadStream Sockets.ReadBuffer WriteStream Sockets.WriteBuffer Sockets.AbstractSocket Sockets.DatagramSocket Sockets.MulticastSocket Sockets.ServerSocket Sockets.StreamSocket Sockets.Socket Sockets.DummyStream Sockets.Datagram Sockets.SocketAddress Sockets.IP6Address Sockets.IPAddress Sockets.UnixAddress |
Next: Sockets.AbstractSocketImpl, Up: Sockets package [Index]
This class models a client site socket. A socket is a TCP/IP endpoint for network communications conceptually similar to a file handle.
This class only takes care of buffering and blocking if requested. It uses an underlying socket implementation object which is a subclass of AbstractSocketImpl. This is necessary to hide some methods in FileDescriptor that are not relevant to sockets, as well as to implement buffering independently of the implementation nuances required by the different address families. The address family class (a subclass of SocketAddress) acts as a factory for socket implementation objects.
• Sockets.AbstractSocket class-defaults: | (class) | |
• Sockets.AbstractSocket class-instance creation: | (class) | |
• Sockets.AbstractSocket class-timed-out operations: | (class) | |
• Sockets.AbstractSocket class-well known ports: | (class) | |
• Sockets.AbstractSocket-accessing: | (instance) | |
• Sockets.AbstractSocket-printing: | (instance) | |
• Sockets.AbstractSocket-socket options: | (instance) | |
• Sockets.AbstractSocket-stream protocol: | (instance) | |
• Sockets.AbstractSocket-testing: | (instance) |
Answer the default address family to be used. In the library, the address family is represented by a subclass of SocketAddress which is by default IPAddress.
Set the default address family to be used. In the library, the address family is represented by a subclass of SocketAddress which is by default IPAddress.
Answer the default implementation class. Depending on the subclass, this might be the default stream socket implementation class of the given address class, or rather its default datagram socket implementation class.
Next: Sockets.AbstractSocket class-timed-out operations, Previous: Sockets.AbstractSocket class-defaults, Up: Sockets.AbstractSocket [Index]
This method should not be called for instances of this class.
Answer a new instance of the receiver, using as the underlying layer the object passed as the ‘implementation’ parameter; the object is probably going to be some kind of AbstractSocketImpl.
Answer a new instance of the receiver, using as the underlying layer a new instance of ‘implementationClass’ and using the protocol family of ‘addressClass’.
Next: Sockets.AbstractSocket class-well known ports, Previous: Sockets.AbstractSocket class-instance creation, Up: Sockets.AbstractSocket [Index]
Answer the period that is to elapse between socket polls if data data is not ready and the connection is still open (in milliseconds)
Set the period that is to elapse between socket polls if data data is not ready and the connection is still open (in milliseconds)
Answer the period that is to elapse between the request for (yet unavailable) data and the moment when the connection is considered dead (in milliseconds)
Set the period that is to elapse between the request for (yet unavailable) data and the moment when the connection is considered dead (in milliseconds)
Next: Sockets.AbstractSocket-accessing, Previous: Sockets.AbstractSocket class-timed-out operations, Up: Sockets.AbstractSocket [Index]
Answer the port that is used (by default) for the given service (high level protocol)
Answer the port that is used (by default) for the given service (high level protocol), or the specified port if none is registered.
Associate the given port to the service specified by ‘protocol’.
Answer the port on which the rsh daemon listens
Answer the port on which the DNS listens
Answer the port on which the TOD service listens
Answer the port on which the DISCARD service listens
Answer the port on which the ECHO service listens
Answer the port on which the exec server listens
Answer the port on which the FTP daemon listens
Answer the port on which the finger daemon listens
Answer the port on which the Gopher daemon listens
Answer the port on which the http daemon listens
Answer the port on which the rlogin daemon listens
Answer the port on which the nntp daemon listens
Answer the port on which the NETSTAT service listens
Answer the port on which the pop3 daemon listens
Answer the last port reserved to privileged processes
Answer the port on which the SMTP daemon listens
Answer the port on which the SSH daemon listens
Answer the port on which the SYSTAT service listens
Answer the port on which the TELNET daemon listens
Answer the port on which the time server listens
Answer the port on which the WHOIS daemon listens
Next: Sockets.AbstractSocket-printing, Previous: Sockets.AbstractSocket class-well known ports, Up: Sockets.AbstractSocket [Index]
Answer an IP address that is of common interest (this can be either the local or the remote address, according to the definition in the subclass).
Answer whether there is data available on the socket. Same as #canRead, present for backwards compatibility.
Answer whether there is data available on the socket.
Answer whether there is free space in the socket’s write buffer.
Close the socket represented by the receiver.
Flush any buffers used by the receiver.
Answer whether the connection between the receiver and the remote endpoint is still alive.
Answer whether the connection with the peer remote machine is still valid.
Answer the local IP address of the socket.
Answer the local IP port of the socket.
Answer an IP port that is of common interest (this can be the port for either the local or remote endpoint, according to the definitions in the subclass
Answer the IP address of the socket’s remote endpoint.
Answer the IP port of the socket’s remote endpoint.
Next: Sockets.AbstractSocket-socket options, Previous: Sockets.AbstractSocket-accessing, Up: Sockets.AbstractSocket [Index]
Print a representation of the receiver on aStream
Next: Sockets.AbstractSocket-stream protocol, Previous: Sockets.AbstractSocket-printing, Up: Sockets.AbstractSocket [Index]
Answer the number of seconds that the socket is allowed to wait if it promises reliable delivery but has unacknowledged/untransmitted packets when it is closed, or nil if those packets are left to their destiny or discarded.
Set the number of seconds that the socket is allowed to wait if it promises reliable delivery but has unacknowledged/untransmitted packets when it is closed.
Specify that, even if the socket promises reliable delivery, any packets that are unacknowledged/untransmitted when it is closed are to be left to their destiny or discarded.
Answer ‘String’.
Next: Sockets.AbstractSocket-testing, Previous: Sockets.AbstractSocket-socket options, Up: Sockets.AbstractSocket [Index]
By default, answer whether the connection is still open.
Read another character from the socket, failing if the connection is dead.
Write ‘char’ to the socket, failing if the connection is dead. The SIGPIPE signal is automatically caught and ignored by the system.
Write ‘char’ to the socket, failing if the connection is dead. The SIGPIPE signal is automatically caught and ignored by the system.
Previous: Sockets.AbstractSocket-stream protocol, Up: Sockets.AbstractSocket [Index]
Answer whether the receiver streams on a file or socket.
Next: Sockets.CAddrInfoStruct, Previous: Sockets.AbstractSocket, Up: Sockets package [Index]
This abstract class serves as the parent class for socket implementations. The implementation class serves an intermediary to routines that perform the actual socket operations. It hides the buffering and blocking behavior of the Socket classes.
A default implementation is provided by each address family, but this can be changed by class methods on SocketAddress sublcasses.
• Sockets.AbstractSocketImpl class-abstract: | (class) | |
• Sockets.AbstractSocketImpl class-C call-outs: | (class) | |
• Sockets.AbstractSocketImpl class-C constants: | (class) | |
• Sockets.AbstractSocketImpl class-socket creation: | (class) | |
• Sockets.AbstractSocketImpl-accessing: | (instance) | |
• Sockets.AbstractSocketImpl-asynchronous operations: | (instance) | |
• Sockets.AbstractSocketImpl-C call-outs: | (instance) | |
• Sockets.AbstractSocketImpl-C constants: | (instance) | |
• Sockets.AbstractSocketImpl-socket operations: | (instance) | |
• Sockets.AbstractSocketImpl-socket options: | (instance) |
Answer the class responsible for handling addresses for the receiver
Answer the protocol parameter for ‘create’
Answer the socket type parameter for ‘create’.
Next: Sockets.AbstractSocketImpl class-C constants, Previous: Sockets.AbstractSocketImpl class-abstract, Up: Sockets.AbstractSocketImpl [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: Sockets.AbstractSocketImpl class-socket creation, Previous: Sockets.AbstractSocketImpl class-C call-outs, Up: Sockets.AbstractSocketImpl [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: Sockets.AbstractSocketImpl-accessing, Previous: Sockets.AbstractSocketImpl class-C constants, Up: Sockets.AbstractSocketImpl [Index]
Create a socket for the receiver.
Next: Sockets.AbstractSocketImpl-asynchronous operations, Previous: Sockets.AbstractSocketImpl class-socket creation, Up: Sockets.AbstractSocketImpl [Index]
Connect the receiver to the given IP address and port. ‘Connecting’ means attaching the remote endpoint of the socket.
Answer the address of the local endpoint of the socket (even if IP is not being used, this identifies the machine that is bound to the socket).
Answer the port of the local endpoint of the socket (even if IP is not being used, this identifies the service or process that is bound to the socket).
Answer the address of the remote endpoint of the socket (even if IP is not being used, this identifies the machine to which the socket is connected).
Answer the port of the remote endpoint of the socket (even if IP is not being used, this identifies the service or process to which the socket is connected).
Next: Sockets.AbstractSocketImpl-C call-outs, Previous: Sockets.AbstractSocketImpl-accessing, Up: Sockets.AbstractSocketImpl [Index]
If the file is open, wait until data can be read from it. The wait allows other Processes to run.
If the file is open, wait until we can write to it. The wait allows other Processes to run.
If the file is open, wait until an exceptional condition (such as presence of out of band data) has occurred on it. The wait allows other Processes to run.
Next: Sockets.AbstractSocketImpl-C constants, Previous: Sockets.AbstractSocketImpl-asynchronous operations, Up: Sockets.AbstractSocketImpl [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Next: Sockets.AbstractSocketImpl-socket operations, Previous: Sockets.AbstractSocketImpl-C call-outs, Up: Sockets.AbstractSocketImpl [Index]
Not commented.
Next: Sockets.AbstractSocketImpl-socket options, Previous: Sockets.AbstractSocketImpl-C constants, Up: Sockets.AbstractSocketImpl [Index]
Accept a connection on the receiver, and create a new instance of implementationClass that will deal with the newly created active server socket.
Bind the receiver to the given IP address and port. ‘Binding’ means attaching the local endpoint of the socket.
Private - Used to limit the number of primitives used by FileStreams
Private - Used to limit the number of primitives used by FileStreams.
Private - Used to limit the number of primitives used by FileStreams
Private - Used to limit the number of primitives used by FileStreams.
Private - Used to limit the number of primitives used by FileStreams
Private - Used to limit the number of primitives used by FileStreams.
Private - Used to limit the number of primitives used by FileStreams
Private - Used to limit the number of primitives used by FileStreams.
Retrieve a ByteArray containing a sockaddr_in struct for the local endpoint of the socket.
Make the receiver a passive server socket with a pending connections queue of the given size.
Previous: Sockets.AbstractSocketImpl-socket operations, Up: Sockets.AbstractSocketImpl [Index]
Modify the value of a socket option. The option identifier is in ‘opt’ and the level is in ‘level’. anObject can be a boolean, integer, socket address or ByteArray. A layer over this method is provided for the most common socket options, so this will be rarely used.
Answer in a ByteArray of the given size the value of a socket option. The option identifier is in ‘opt’ and the level is in ‘level’. A layer over this method is provided for the most common socket options, so this will be rarely used.
Answer the number of seconds by which a ‘close’ operation can block to ensure that all the packets have reliably reached the destination, or nil if those packets are left to their destiny.
Set the number of seconds by which a ‘close’ operation can block to ensure that all the packets have reliably reached the destination. If linger is nil, those packets are left to their destiny.
Answer whether another socket can be bound the same local address as this one. If you enable this option, you can actually have two sockets with the same Internet port number; but the system won’t allow you to use the two identically-named sockets in a way that would confuse the Internet. The reason for this option is that some higher-level Internet protocols, including FTP, require you to keep reusing the same socket number.
Set whether another socket can be bound the same local address as this one.
Evaluate aBlock, ensuring that any data that it writes to the socket is sent immediately to the network.
Next: Sockets.CSockAddrIn6Struct, Previous: Sockets.AbstractSocketImpl, Up: Sockets package [Index]
• Sockets.CAddrInfoStruct class-C call-outs: | (class) | |
• Sockets.CAddrInfoStruct-C call-outs: | (instance) | |
• Sockets.CAddrInfoStruct-C function wrappers: | (instance) |
Not commented.
Next: Sockets.CAddrInfoStruct-C function wrappers, Previous: Sockets.CAddrInfoStruct class-C call-outs, Up: Sockets.CAddrInfoStruct [Index]
Not commented.
Not commented.
Not commented.
Previous: Sockets.CAddrInfoStruct-C call-outs, Up: Sockets.CAddrInfoStruct [Index]
Not commented.
Not commented.
Next: Sockets.Datagram, Previous: Sockets.CAddrInfoStruct, Up: Sockets package [Index]
Next: Sockets.DatagramSocket, Previous: Sockets.CSockAddrIn6Struct, Up: Sockets package [Index]
This class models a packet of data that is to be sent across the network using a connectionless protocol such as UDP. It contains the data to be send, as well as the destination address and port. Note that datagram packets can arrive in any order and are not guaranteed to be delivered at all.
This class can also be used for receiving data from the network.
• Sockets.Datagram class-instance creation: | (class) | |
• Sockets.Datagram-accessing: | (instance) |
Next: Sockets.Datagram-accessing, Up: Sockets.Datagram [Index]
Answer a new datagram with the specified data.
Answer a new datagram with the specified target socket, and aByteArray as its data.
Serialize the object onto a ByteArray, and create a Datagram with the object as its contents, and the specified receiver. Note that each invocation of this method creates a separate ObjectDumper; if different objects that you’re sending are likely to contain references to the same objects, you should use #object:objectDumper:address:port:.
Serialize the object onto a ByteArray, and create a Datagram with the object as its contents, and the specified receiver. Serialization takes place through ObjectDumper passed as ‘od’, and the stream attached to the ObjectDumper is resetted every time. Using this method is indicated if different objects that you’re sending are likely to contain references to the same objects.
Previous: Sockets.Datagram class-instance creation, Up: Sockets.Datagram [Index]
Answer the address of the target socket
Set the address of the target socket
Answer the data attached to the datagram
Set the data attached to the datagram
Answer the size of the message.
I am called to update the size...
Parse the data attached to the datagram through a newly created ObjectDumper, and answer the resulting object. This method is complementary to #object:address:port:.
Parse the data attached to the datagram through the given ObjectDumper without touching the stream to which it is attached, and answer the resulting object. The state of the ObjectDumper, though, is updated. This method is complementary to #object:objectDumper:address:port:.
Answer the IP port of the target socket
Set the IP port of the target socket
I determine the size of the datagram. It is either an explicitly specified dataSize, or the size of the whole collection.
Next: Sockets.DatagramSocketImpl, Previous: Sockets.Datagram, Up: Sockets package [Index]
This class models a connectionless datagram socket that sends individual packets of data across the network. In the TCP/IP world, this means UDP. Datagram packets do not have guaranteed delivery, or any guarantee about the order the data will be received on the remote host.
This class uses an underlying socket implementation object which is a subclass of DatagramSocketImpl. This is less necessary for datagram sockets than for stream sockets (except for hiding some methods in FileDescriptor that are not relevant to sockets), but it is done for cleanliness and symmetry.
• Sockets.DatagramSocket class-accessing: | (class) | |
• Sockets.DatagramSocket class-initialization: | (class) | |
• Sockets.DatagramSocket class-instance creation: | (class) | |
• Sockets.DatagramSocket-accessing: | (instance) | |
• Sockets.DatagramSocket-direct operations: | (instance) |
Answer the default maximum size for input datagrams.
Set the default maximum size for input datagrams.
Answer the default implementation class. Depending on the subclass, this might be the default stream socket implementation class of the given address class, or rather its default datagram socket implementation class.
Next: Sockets.DatagramSocket class-instance creation, Previous: Sockets.DatagramSocket class-accessing, Up: Sockets.DatagramSocket [Index]
Initialize the class to use an input datagram size of 128.
Next: Sockets.DatagramSocket-accessing, Previous: Sockets.DatagramSocket class-initialization, Up: Sockets.DatagramSocket [Index]
Create a new socket and bind it to the given host (passed as a String to be resolved or as an IPAddress), on the given port.
Answer a new datagram socket (by default an UDP socket), without a specified local address and port.
Create a new socket and bind it to the local host on the given port.
Create a new socket and bind it to the given host (passed as a String to be resolved or as a SocketAddress), and to the given remotePort. The default destination for the datagrams will be ipAddressOrString (if not nil), on the remotePort port.
Next: Sockets.DatagramSocket-direct operations, Previous: Sockets.DatagramSocket class-instance creation, Up: Sockets.DatagramSocket [Index]
Answer the local address.
Answer the size of the buffer in which datagrams are stored.
Set the size of the buffer in which datagrams are stored.
Answer the class used by the socket to return datagrams.
Read a datagram on the socket and answer it.
Send the given datagram on the socket.
Peek for a datagram on the socket and answer it.
Peek for a datagram on the socket, store it in ‘datagram’, and answer the datagram itself.
Answer the local port.
Read a datagram from the socket, store it in ‘datagram’, and answer the datagram itself.
Previous: Sockets.DatagramSocket-accessing, Up: Sockets.DatagramSocket [Index]
Answer the next datagram from the given address and port.
Next: Sockets.DummyStream, Previous: Sockets.DatagramSocket, Up: Sockets package [Index]
This abstract class serves as the parent class for datagram socket implementations.
• Sockets.DatagramSocketImpl class-parameters: | (class) | |
• Sockets.DatagramSocketImpl-accessing: | (instance) | |
• Sockets.DatagramSocketImpl-C constants: | (instance) | |
• Sockets.DatagramSocketImpl-socket operations: | (instance) |
Answer the datagram class returned by default by instances of this class.
Answer the socket type parameter for ‘create’.
Next: Sockets.DatagramSocketImpl-C constants, Previous: Sockets.DatagramSocketImpl class-parameters, Up: Sockets.DatagramSocketImpl [Index]
Answer the size of the buffer in which datagrams are stored.
Set the size of the buffer in which datagrams are stored.
Next: Sockets.DatagramSocketImpl-socket operations, Previous: Sockets.DatagramSocketImpl-accessing, Up: Sockets.DatagramSocketImpl [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Not commented.
Previous: Sockets.DatagramSocketImpl-C constants, Up: Sockets.DatagramSocketImpl [Index]
Retrieve a datagram from the receiver, answer a new object of the receiver’s datagram class.
Send aDatagram on the socket
Peek for a datagram on the receiver, answer a new object of the receiver’s datagram class.
Peek for a datagram on the receiver, answer aDatagram modified to contain information on the newly received datagram.
Retrieve a datagram from the receiver, answer aDatagram modified to contain information on the newly received datagram.
Receive a new datagram into ‘datagram’, with the given flags, and answer ‘datagram’ itself; this is an abstract method. The flags can be zero to receive the datagram, or ‘self msgPeek’ to only peek for it without removing it from the queue.
Send aDatagram on the socket to the given receiver and port
Next: Sockets.ICMP6SocketImpl, Previous: Sockets.DatagramSocketImpl, Up: Sockets package [Index]
Next: Sockets.ICMPSocketImpl, Previous: Sockets.DummyStream, Up: Sockets package [Index]
Unless the application installs its own implementation, this is the default socket implementation that will be used for IPv6 raw sockets. It uses C call-outs to implement standard BSD style sockets of family AF_INET, type SOCK_RAW, protocol IPPROTO_ICMPV6.
• Sockets.ICMP6SocketImpl class-C constants: | (class) |
Up: Sockets.ICMP6SocketImpl [Index]
Not commented.
Next: Sockets.IP6Address, Previous: Sockets.ICMP6SocketImpl, Up: Sockets package [Index]
Unless the application installs its own implementation, this is the default socket implementation that will be used for IPv4 raw sockets. It uses C call-outs to implement standard BSD style sockets of family AF_INET, type SOCK_RAW, protocol IPPROTO_ICMP.
• Sockets.ICMPSocketImpl class-C constants: | (class) |
Up: Sockets.ICMPSocketImpl [Index]
Not commented.
Next: Sockets.IPAddress, Previous: Sockets.ICMPSocketImpl, Up: Sockets package [Index]
This class models an IPv6 address. It also acts as a factory for IPv6 stream (TCP), datagram (UDP) and raw sockets.
• Sockets.IP6Address class-C constants: | (class) | |
• Sockets.IP6Address class-constants: | (class) | |
• Sockets.IP6Address class-initialization: | (class) | |
• Sockets.IP6Address class-instance creation: | (class) | |
• Sockets.IP6Address-accessing: | (instance) | |
• Sockets.IP6Address-printing: | (instance) |
Next: Sockets.IP6Address class-constants, Up: Sockets.IP6Address [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Next: Sockets.IP6Address class-initialization, Previous: Sockets.IP6Address class-C constants, Up: Sockets.IP6Address [Index]
Answer the size of an IPv4 address.
Answer the version of IP that the receiver implements.
Next: Sockets.IP6Address class-instance creation, Previous: Sockets.IP6Address class-constants, Up: Sockets.IP6Address [Index]
Answer an object representing the loopback host in the address family for the receiver. This is ::1 for IPv4.
Answer an object representing an unkown address in the address family for the receiver
Set up the default implementation classes for the receiver
Next: Sockets.IP6Address-accessing, Previous: Sockets.IP6Address class-initialization, Up: Sockets.IP6Address [Index]
Answer a new IP6Address from an array of numbers; the numbers are to be thought as the colon-separated numbers in the standard numbers-and-colons notation for IPv4 addresses.
Answer a new IP6Address from a ByteArray containing the bytes in the same order as the digit form: 131.175.6.2 would be represented as #[131 175 6 2].
Private - Answer a new IP6Address from a ByteArray containing a C sockaddr_in structure. The portAdaptor’s value is changed to contain the port that the structure refers to.
Answer a new IP6Address from a String containing the requested address in digit form.
This method should not be called for instances of this class.
Next: Sockets.IP6Address-printing, Previous: Sockets.IP6Address class-instance creation, Up: Sockets.IP6Address [Index]
Answer a read-only ByteArray of size four containing the receiver’s bytes in network order (big-endian)
Answer whether the receiver reprensents an address reserved for multicast datagram connections
Previous: Sockets.IP6Address-accessing, Up: Sockets.IP6Address [Index]
Print the receiver in dot notation.
Next: Sockets.MulticastSocket, Previous: Sockets.IP6Address, Up: Sockets package [Index]
This class models an IPv4 address. It also acts as a factory for IPv4 stream (TCP), datagram (UDP) and raw sockets.
• Sockets.IPAddress class-C constants: | (class) | |
• Sockets.IPAddress class-constants: | (class) | |
• Sockets.IPAddress class-initialization: | (class) | |
• Sockets.IPAddress class-instance creation: | (class) | |
• Sockets.IPAddress-accessing: | (instance) | |
• Sockets.IPAddress-printing: | (instance) |
Next: Sockets.IPAddress class-constants, Up: Sockets.IPAddress [Index]
Not commented.
Not commented.
Next: Sockets.IPAddress class-initialization, Previous: Sockets.IPAddress class-C constants, Up: Sockets.IPAddress [Index]
Answer the size of an IPv4 address.
Answer the version of IP that the receiver implements.
Next: Sockets.IPAddress class-instance creation, Previous: Sockets.IPAddress class-constants, Up: Sockets.IPAddress [Index]
Answer an object representing the loopback host in the address family for the receiver. This is 127.0.0.1 for IPv4.
Answer an object representing an unkown address in the address family for the receiver
Set up the default implementation classes for the receiver
Next: Sockets.IPAddress-accessing, Previous: Sockets.IPAddress class-initialization, Up: Sockets.IPAddress [Index]
Answer a new IPAddress from an array of numbers; the numbers are to be thought as the dot-separated numbers in the standard numbers-and-dots notation for IPv4 addresses.
Answer a new IPAddress from a ByteArray containing the bytes in the same order as the digit form: 131.175.6.2 would be represented as #[131 175 6 2].
Private - Answer a new IPAddress from a ByteArray containing a C sockaddr_in structure. The portAdaptor’s value is changed to contain the port that the structure refers to.
Answer a new IPAddress from a String containing the requested address in digit form. Hexadecimal forms are not allowed.
An Internet host address is a number containing four bytes of data. These are divided into two parts, a network number and a local network address number within that network. The network number consists of the first one, two or three bytes; the rest of the bytes are the local address.
Network numbers are registered with the Network Information Center (NIC), and are divided into three classes–A, B, and C. The local network address numbers of individual machines are registered with the administrator of the particular network.
Class A networks have single-byte numbers in the range 0 to 127. There are only a small number of Class A networks, but they can each support a very large number of hosts (several millions). Medium-sized Class B networks have two-byte network numbers, with the first byte in the range 128 to 191; they support several thousands of host, but are almost exhausted. Class C networks are the smallest and the most commonly available; they have three-byte network numbers, with the first byte in the range 192-223. Class D (multicast, 224.0.0.0 to 239.255.255.255) and E (research, 240.0.0.0 to 255.255.255.255) also have three-byte network numbers.
Thus, the first 1, 2, or 3 bytes of an Internet address specifies a network. The remaining bytes of the Internet address specify the address within that network. The Class A network 0 is reserved for broadcast to all networks. In addition, the host number 0 within each network is reserved for broadcast to all hosts in that network. The Class A network 127 is reserved for loopback; you can always use the Internet address ‘127.0.0.1’ to refer to the host machine (this is answered by the #loopbackHost class method).
Since a single machine can be a member of multiple networks, it can have multiple Internet host addresses. However, there is never supposed to be more than one machine with the same host address.
There are four forms of the standard numbers-and-dots notation for Internet addresses: a.b.c.d specifies all four bytes of the address individually; a.b.c interprets as a 2-byte quantity, which is useful for specifying host addresses in a Class B network with network address number a.b; a.b intrprets the last part of the address as a 3-byte quantity, which is useful for specifying host addresses in a Class A network with network address number a.
If only one part is given, this corresponds directly to the host address number.
This method should not be called for instances of this class.
Answer a new IPAddress whose bytes (from most-significant to least-significant) are in the parameters.
Next: Sockets.IPAddress-printing, Previous: Sockets.IPAddress class-instance creation, Up: Sockets.IPAddress [Index]
Answer the ‘address class’ of the receiver (see IPAddress class>>#fromString:)
Answer a read-only ByteArray of size four containing the receiver’s bytes in network order (big-endian)
Answer an host number for the receiver; this is given by the last three bytes for class A addresses, by the last two bytes for class B addresses, else by the last byte.
Answer whether the receiver reprensents an address reserved for multicast datagram connections
Answer a network number for the receiver; this is given by the first three bytes for class C/D/E addresses, by the first two bytes for class B addresses, else by the first byte.
Answer an host number for the receiver; this is 0 for class A addresses, while it is given by the last byte of the network number for class B/C/D/E addresses.
Previous: Sockets.IPAddress-accessing, Up: Sockets.IPAddress [Index]
Print the receiver in dot notation.
Next: Sockets.MulticastSocketImpl, Previous: Sockets.IPAddress, Up: Sockets package [Index]
This class models a multicast socket that sends packets to a multicast group. All members of the group listening on that address and port will receive all the messages sent to the group.
In the TCP/IP world, these sockets are UDP-based and a multicast group consists of a multicast address (a class D internet address, i.e. one whose most significant bits are 1110), and a well known port number.
• Sockets.MulticastSocket-instance creation: | (instance) |
Up: Sockets.MulticastSocket [Index]
Answer the local device supporting the multicast socket. This is usually set to any local address.
Set the local device supporting the multicast socket. This is usually set to any local address.
Join the multicast socket at the given IP address
Leave the multicast socket at the given IP address
Send the datagram with a specific TTL (time-to-live)
Answer the socket’s datagrams’ default time-to-live
Set the default time-to-live for the socket’s datagrams
Next: Sockets.OOBSocketImpl, Previous: Sockets.MulticastSocket, Up: Sockets package [Index]
This abstract class serves as the parent class for datagram socket implementations that support multicast.
• Sockets.MulticastSocketImpl-multicasting: | (instance) |
Answer the local device for a multicast socket (in the form of an address)
Set the local device for a multicast socket (in the form of an address, usually anyLocalAddress)
Join the multicast socket at the given address
Leave the multicast socket at the given address
Answer the time to live of the datagrams sent through the receiver to a multicast socket.
Set the time to live of the datagrams sent through the receiver to a multicast socket.
Next: Sockets.RawSocketImpl, Previous: Sockets.MulticastSocketImpl, Up: Sockets package [Index]
This abstract class serves as the parent class for socket implementations that send out-of-band data over a stream socket.
• Sockets.OOBSocketImpl-C constants: | (instance) | |
• Sockets.OOBSocketImpl-implementation: | (instance) |
Not commented.
Previous: Sockets.OOBSocketImpl-C constants, Up: Sockets.OOBSocketImpl [Index]
Answer whether out-of-band data is available on the socket
Stop the process until an error occurs or out-of-band data becomes available on the socket
Next: Sockets.ReadBuffer, Previous: Sockets.OOBSocketImpl, Up: Sockets package [Index]
This abstract class serves as the parent class for raw socket implementations. Raw socket packets are modeled as datagrams.
• Sockets.RawSocketImpl class-parameters: | (class) |
Up: Sockets.RawSocketImpl [Index]
Answer the socket type parameter for ‘create’.
Next: Sockets.ServerSocket, Previous: Sockets.RawSocketImpl, Up: Sockets package [Index]
I’m a ReadStream that, when the end of the stream is reached, evaluates an user defined block to try to get some more data.
• Sockets.ReadBuffer class-instance creation: | (class) | |
• Sockets.ReadBuffer-accessing-reading: | (instance) | |
• Sockets.ReadBuffer-buffer handling: | (instance) |
Next: Sockets.ReadBuffer-accessing-reading, Up: Sockets.ReadBuffer [Index]
Answer a Stream that uses aCollection as a buffer. You should ensure that the fillBlock is set before the first operation, because the buffer will report that the data has ended until you set the fillBlock.
Next: Sockets.ReadBuffer-buffer handling, Previous: Sockets.ReadBuffer class-instance creation, Up: Sockets.ReadBuffer [Index]
Place the next anInteger objects from the receiver into aCollection, starting at position pos. Return the number of items stored.
Copy the next anInteger objects from the receiver to aStream. Return the number of items stored.
Returns a collection of the same type that the stream accesses, up to but not including the object anObject. Returns the entire rest of the stream’s contents if anObject is not present.
Returns a collection of the same type that the stream accesses, up to but not including the object anObject. Returns the entire rest of the stream’s contents if anObject is not present.
Previous: Sockets.ReadBuffer-accessing-reading, Up: Sockets.ReadBuffer [Index]
Answer whether the data stream has ended.
Answer how many bytes are available in the buffer.
Answer the data that is in the buffer, and empty it.
Not commented.
Fill the buffer with more data if it is empty, and answer true if the fill block was able to read more data.
Set the block that fills the buffer. It receives a collection and the number of bytes to fill in it, and must return the number of bytes actually read
Answer whether the next input operation will force a buffer fill
Answer whether the buffer has been just filled
Check whether the next input operation will force a buffer fill and answer true if it will not.
Try to fill the buffer if the data stream has ended.
Next: Sockets.Socket, Previous: Sockets.ReadBuffer, Up: Sockets package [Index]
This class models server side sockets. The basic model is that the server socket is created and bound to some well known port. It then listens for and accepts connections. At that point the client and server sockets are ready to communicate with one another utilizing whatever application layer protocol they desire.
As with the other AbstractSocket subclasses, most instance methods of this class simply redirect their calls to an implementation class.
• Sockets.ServerSocket class-accessing: | (class) | |
• Sockets.ServerSocket class-instance creation: | (class) | |
• Sockets.ServerSocket-accessing: | (instance) | |
• Sockets.ServerSocket-initializing: | (instance) |
Answer the default implementation class.
Next: Sockets.ServerSocket-accessing, Previous: Sockets.ServerSocket class-accessing, Up: Sockets.ServerSocket [Index]
Answer the default length of the queue for pending connections. When the queue fills, new clients attempting to connect fail until the server has sent #accept to accept a connection from the queue.
Answer a new ServerSocket serving on any local address, on the given port, with a pending connections queue of the default length.
Answer a new ServerSocket serving on the given address and port, with a pending connections queue of the default length.
Answer a new ServerSocket serving on any local address, on the given port, with a pending connections queue of the given length.
Answer a new ServerSocket serving on the given address and port, and with a pending connections queue of the given length.
Answer a new ServerSocket serving on any local address and port, with a pending connections queue of the given length.
Answer a new ServerSocket serving on the given local address, and on any port, with a pending connections queue of the given length.
Next: Sockets.ServerSocket-initializing, Previous: Sockets.ServerSocket class-instance creation, Up: Sockets.ServerSocket [Index]
Accept a new connection and create a new instance of Socket if there is one, else answer nil.
Accept a new connection and create a new instance of socketClass if there is one, else answer nil. This is usually needed only to create DatagramSockets.
Answer the local address
Answer the local port (the port that the passive socket is listening on).
Accept a new connection and create a new instance of Socket if there is one, else fail.
Wait for a connection to be available, and suspend the currently executing process in the meanwhile.
Previous: Sockets.ServerSocket-accessing, Up: Sockets.ServerSocket [Index]
Initialize the ServerSocket so that it serves on the given address and port, and has a pending connections queue of the given length.
Next: Sockets.SocketAddress, Previous: Sockets.ServerSocket, Up: Sockets package [Index]
This class adds read and write buffers to the basic model of AbstractSocket.
• Sockets.Socket class-accessing: | (class) | |
• Sockets.Socket class-tests: | (class) | |
• Sockets.Socket class-well known ports: | (class) | |
• Sockets.Socket-stream protocol: | (instance) |
Next: Sockets.Socket class-tests, Up: Sockets.Socket [Index]
Answer the size of the write buffer for newly-created sockets
Set the size of the write buffer for newly-created sockets
Next: Sockets.Socket class-well known ports, Previous: Sockets.Socket class-accessing, Up: Sockets.Socket [Index]
Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.
Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.
Send data from one socket to another on the local machine. Tests most of the socket primitives.
Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameter is the size of the input and output buffer sizes.
Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameters are the size of the input and output buffer sizes, and the address class (family) to use.
Send data from one socket to another on the local machine. Tests most of the socket primitives. The parameter is the address class (family) to use.
Extremely small test (try to receive SMTP header)
Send data from one datagram socket to another on the local machine. Tests most of the socket primitives and works with different processes.
Send data from one socket to another on the local machine. Tests most of the socket primitives and works with different processes.
Send data to the ’discard’ socket of localhost.
Send data to the ’discard’ socket of the given host. Tests the speed of one-way data transfers across the network to the given host. Note that many hosts do not run a discard server.
Not commented.
Not commented.
Send data from one socket to another on the local machine, trying to avoid buffering overhead. Tests most of the socket primitives. Comparison of the results of loopbackTest and tweakedLoopbackTest should give a measure of the overhead of buffering when sending/receiving large quantities of data.
Next: Sockets.Socket-stream protocol, Previous: Sockets.Socket class-tests, Up: Sockets.Socket [Index]
Initialize the receiver’s defaults
Previous: Sockets.Socket class-well known ports, Up: Sockets.Socket [Index]
Answer whether more data is available in the socket’s read buffer or from the operating system.
Answer whether more data is available in the socket’s read buffer or from the operating system.
Flush the write buffer to the operating system
Write aString to the socket; this acts as a bit-bucket when the socket is closed. This might yield control to other Smalltalk Processes.
Write a character to the socket; this acts as a bit-bucket when the socket is closed. This might yield control to other Smalltalk Processes.
Create a new write buffer of the given size, flushing the old one is needed. This might yield control to other Smalltalk Processes.
Next: Sockets.SocketImpl, Previous: Sockets.Socket, Up: Sockets package [Index]
This class is the abstract class for machine addresses over a network. It also fulfills the function of the C style functions gethostname(), gethostbyname(), and gethostbyaddr(), resolves machine names into their corresponding numeric addresses (via DNS, /etc/hosts, or other mechanisms) and vice versa.
• Sockets.SocketAddress class-abstract: | (class) | |
• Sockets.SocketAddress class-accessing: | (class) | |
• Sockets.SocketAddress class-C call-outs: | (class) | |
• Sockets.SocketAddress class-C constants: | (class) | |
• Sockets.SocketAddress class-creating sockets: | (class) | |
• Sockets.SocketAddress class-host name lookup: | (class) | |
• Sockets.SocketAddress class-initialization: | (class) | |
• Sockets.SocketAddress-accessing: | (instance) | |
• Sockets.SocketAddress-testing: | (instance) |
Private - Answer a new SocketAddress from a ByteArray containing a C sockaddr structure. The portAdaptor’s value is changed to contain the port that the structure refers to.
Private - Answer a new IPAddress from a ByteArray containing a C sockaddr structure. The portAdaptor’s value is changed to contain the port that the structure refers to. Raise an error if the address family is unknown.
Next: Sockets.SocketAddress class-C call-outs, Previous: Sockets.SocketAddress class-abstract, Up: Sockets.SocketAddress [Index]
Answer an IPAddress representing a local address.
Private - Answer the list of addresses associated to the given host in the cache. If the host is not cached yet, evaluate aBlock and cache and answer the result.
Answer the class that, by default, is used to map between the Socket’s protocol and a low-level C interface.
Set which class will be used by default to map between the receiver’s protocol and a low-level C interface.
Answer the class that, by default, is used to map between the Socket’s protocol and a low-level C interface.
Set which class will be used by default to map between the receiver’s protocol and a low-level C interface.
Answer the class that, by default, is used to map between the Socket’s protocol and a low-level C interface.
Set which class will be used by default to map between the receiver’s protocol and a low-level C interface.
Answer whether the receiver can interpret aString as a valid address without going through a resolver.
Answer the name of the local machine.
Answer an instance of the receiver representing the local machine (127.0.0.1 in the IPv4 family).
Answer an instance of the receiver representing an unknown machine (0.0.0.0 in the IPv4 family).
Next: Sockets.SocketAddress class-C constants, Previous: Sockets.SocketAddress class-accessing, Up: Sockets.SocketAddress [Index]
Not commented.
Not commented.
Next: Sockets.SocketAddress class-creating sockets, Previous: Sockets.SocketAddress class-C call-outs, Up: Sockets.SocketAddress [Index]
Not commented.
Not commented.
Not commented.
Not commented.
Next: Sockets.SocketAddress class-host name lookup, Previous: Sockets.SocketAddress class-C constants, Up: Sockets.SocketAddress [Index]
Create a new raw socket, providing access to low-level network protocols and interfaces for the protocol family represented by the receiver (for example, the C protocol family PF_INET for the IPAddress class) Ordinary user programs usually have no need to use this method.
Next: Sockets.SocketAddress class-initialization, Previous: Sockets.SocketAddress class-creating sockets, Up: Sockets.SocketAddress [Index]
Answer all the IP addresses that refer to the the given host. If a digit address is passed in aString, the result is an array containing the single passed address. If the host could not be resolved to an IP address, answer nil.
Answer a single IP address that refer to the the given host. If a digit address is passed in aString, the result is the same as using #fromString:. If the host could not be resolved to an IP address, answer nil.
Next: Sockets.SocketAddress-accessing, Previous: Sockets.SocketAddress class-host name lookup, Up: Sockets.SocketAddress [Index]
Private - Store an object representing a local address in the address family for the receiver
Answer an object representing the loopback host in the address family for the receiver.
Answer an object representing an unkown address in the address family for the receiver
Flush the cached IP addresses.
Private - Initialize the anyLocalAddress class-instance variable for the entire hierarchy.
Flush all the caches for IPAddress subclasses
Next: Sockets.SocketAddress-testing, Previous: Sockets.SocketAddress class-initialization, Up: Sockets.SocketAddress [Index]
Answer whether the receiver and aSocketAddress represent the same machine. The host name is not checked because an IPAddress created before a DNS is activated is named after its numbers-and-dots notation, while the same IPAddress, created when a DNS is active, is named after its resolved name.
Convert the receiver to a ByteArray passed to the operating system’s socket functions)
Answer an hash value for the receiver
Answer the host name (or the digit notation if the DNS could not resolve the address). If the DNS answers a different IP address for the same name, the second response is not cached and the digit notation is also returned (somebody’s likely playing strange jokes with your DNS).
Previous: Sockets.SocketAddress-accessing, Up: Sockets.SocketAddress [Index]
Answer whether an address is reserved for multicast connections.
Next: Sockets.StreamSocket, Previous: Sockets.SocketAddress, Up: Sockets package [Index]
This abstract class serves as the parent class for stream socket implementations.
• Sockets.SocketImpl class-parameters: | (class) | |
• Sockets.SocketImpl-abstract: | (instance) | |
• Sockets.SocketImpl-socket operations: | (instance) |
Next: Sockets.SocketImpl-abstract, Up: Sockets.SocketImpl [Index]
Answer the socket type parameter for ‘create’.
Next: Sockets.SocketImpl-socket operations, Previous: Sockets.SocketImpl class-parameters, Up: Sockets.SocketImpl [Index]
Return an implementation class to be used for out-of-band data on the receiver.
Previous: Sockets.SocketImpl-abstract, Up: Sockets.SocketImpl [Index]
Try to connect the socket represented by the receiver to the given remote machine.
Retrieve a ByteArray containing a sockaddr_in struct for the remote endpoint of the socket.
Next: Sockets.TCPSocketImpl, Previous: Sockets.SocketImpl, Up: Sockets package [Index]
This class adds a read buffer to the basic model of AbstractSocket.
• Sockets.StreamSocket class-accessing: | (class) | |
• Sockets.StreamSocket class-initialize: | (class) | |
• Sockets.StreamSocket class-instance creation: | (class) | |
• Sockets.StreamSocket-accessing: | (instance) | |
• Sockets.StreamSocket-accessing-reading: | (instance) | |
• Sockets.StreamSocket-out-of-band data: | (instance) | |
• Sockets.StreamSocket-printing: | (instance) | |
• Sockets.StreamSocket-stream protocol: | (instance) |
Answer the default implementation class. Depending on the subclass, this might be the default stream socket implementation class of the given address class, or rather its default datagram socket implementation class.
Answer the size of the read buffer for newly-created sockets
Set the size of the read buffer for newly-created sockets
Next: Sockets.StreamSocket class-instance creation, Previous: Sockets.StreamSocket class-accessing, Up: Sockets.StreamSocket [Index]
Initialize the receiver’s defaults
Next: Sockets.StreamSocket-accessing, Previous: Sockets.StreamSocket class-initialize, Up: Sockets.StreamSocket [Index]
Create a new socket and connect to the given host (passed as a String to be resolved or as a SocketAddress), and to the given port.
Create a new socket and connect to the given host (passed as a String to be resolved or as a SocketAddress), and to the given remotePort. Then bind it to the local address passed in ipAddress, on the localPort port; if the former is nil, any local address will do, and if the latter is 0, any local port will do.
Next: Sockets.StreamSocket-accessing-reading, Previous: Sockets.StreamSocket class-instance creation, Up: Sockets.StreamSocket [Index]
Answer the address of the remote endpoint
Answer the port of the remote endpoint
Next: Sockets.StreamSocket-out-of-band data, Previous: Sockets.StreamSocket-accessing, Up: Sockets.StreamSocket [Index]
Place up to anInteger objects from the receiver into aCollection, starting from position pos and stopping if no more data is available.
Copy up to anInteger objects from the receiver to aStream, stopping if no more data is available.
Next: Sockets.StreamSocket-printing, Previous: Sockets.StreamSocket-accessing-reading, Up: Sockets.StreamSocket [Index]
Return a datagram socket to be used for receiving out-of-band data on the receiver.
Next: Sockets.StreamSocket-stream protocol, Previous: Sockets.StreamSocket-out-of-band data, Up: Sockets.StreamSocket [Index]
Print a representation of the receiver on aStream
Previous: Sockets.StreamSocket-printing, Up: Sockets.StreamSocket [Index]
Answer whether more data is available on the socket
Answer how many bytes are available in the socket’s read buffer or from the operating system.
Answer the current contents of the read buffer
Answer whether more data is available in the socket’s read buffer or from the operating system.
Flush and close the socket.
Fill the read buffer with data read from the socket
Answer whether the connection with the peer remote machine is still valid.
Read a byte from the socket. This might yield control to other Smalltalk Processes.
Read a byte from the socket, without advancing the buffer; answer nil if no more data is available. This might yield control to other Smalltalk Processes.
Read a byte from the socket, advancing the buffer only if it matches anObject; answer whether they did match or not. This might yield control to other Smalltalk Processes.
Create a new read buffer of the given size (which is only possible before the first read or if the current buffer is empty).
Next: Sockets.UDPSocketImpl, Previous: Sockets.StreamSocket, Up: Sockets package [Index]
Unless the application installs its own implementation, this is the default socket implementation that will be used for IPv4 stream sockets. It uses C call-outs to implement standard BSD style sockets of family AF_INET and type SOCK_STREAM.
• Sockets.TCPSocketImpl class-C constants: | (class) | |
• Sockets.TCPSocketImpl-socket options: | (instance) |
Not commented.
Not commented.
Not commented.
Previous: Sockets.TCPSocketImpl class-C constants, Up: Sockets.TCPSocketImpl [Index]
Evaluate aBlock, ensuring that any data that it writes to the socket is sent immediately to the network.
Next: Sockets.UnixAddress, Previous: Sockets.TCPSocketImpl, Up: Sockets package [Index]
Unless the application installs its own implementation, this is the default socket implementation that will be used for IPv4 datagram sockets. It uses C call-outs to implement standard BSD style sockets of family AF_INET and type SOCK_DGRAM.
• Sockets.UDPSocketImpl class-C constants: | (class) | |
• Sockets.UDPSocketImpl-multicasting: | (instance) |
Next: Sockets.UDPSocketImpl-multicasting, Up: Sockets.UDPSocketImpl [Index]
Not commented.
Not commented.
Previous: Sockets.UDPSocketImpl class-C constants, Up: Sockets.UDPSocketImpl [Index]
Answer the local device for a multicast socket (in the form of an address)
Set the local device for a multicast socket (in the form of an address, usually anyLocalAddress)
Join the multicast socket at the given address
Leave the multicast socket at the given address
Private - Used to join or leave a multicast service.
Answer the time to live of the datagrams sent through the receiver to a multicast socket.
Set the time to live of the datagrams sent through the receiver to a multicast socket.
Next: Sockets.UnixDatagramSocketImpl, Previous: Sockets.UDPSocketImpl, Up: Sockets package [Index]
This class represents an address for a machine using the AF_UNIX address family. Since this address family is only used for local sockets, the class is a singleton; the filesystem path to the socket is represented using the port argument to socket functions, as either a String or a File object.
• Sockets.UnixAddress class-C constants: | (class) | |
• Sockets.UnixAddress class-initialization: | (class) | |
• Sockets.UnixAddress class-instance creation: | (class) | |
• Sockets.UnixAddress-accessing: | (instance) | |
• Sockets.UnixAddress-printing: | (instance) | |
• Sockets.UnixAddress-testing: | (instance) |
Not commented.
Not commented.
Next: Sockets.UnixAddress class-instance creation, Previous: Sockets.UnixAddress class-C constants, Up: Sockets.UnixAddress [Index]
Answer an object representing the loopback host in the address family for the receiver. This is 127.0.0.1 for IPv4.
Answer an object representing an unkown address in the address family for the receiver
Set up the default implementation classes for the receiver
Next: Sockets.UnixAddress-accessing, Previous: Sockets.UnixAddress class-initialization, Up: Sockets.UnixAddress [Index]
Private - Answer the unique UnixAddress instance, filling in the portAdaptor’s value from a ByteArray containing a C sockaddr_in structure.
Not commented.
Next: Sockets.UnixAddress-printing, Previous: Sockets.UnixAddress class-instance creation, Up: Sockets.UnixAddress [Index]
Answer whether the receiver and aSocketAddress represent the same socket on the same machine.
Answer an hash value for the receiver
Next: Sockets.UnixAddress-testing, Previous: Sockets.UnixAddress-accessing, Up: Sockets.UnixAddress [Index]
Print the receiver in dot notation.
Previous: Sockets.UnixAddress-printing, Up: Sockets.UnixAddress [Index]
Answer whether an address is reserved for multicast connections.
Next: Sockets.UnixSocketImpl, Previous: Sockets.UnixAddress, Up: Sockets package [Index]
This class represents a datagram socket using the AF_UNIX address family. It unlinks the filesystem path when the socket is closed.
• Sockets.UnixDatagramSocketImpl-socket operations: | (instance) |
Not commented.
Next: Sockets.WriteBuffer, Previous: Sockets.UnixDatagramSocketImpl, Up: Sockets package [Index]
This class represents a stream socket using the AF_UNIX address family. It unlinks the filesystem path when the socket is closed.
• Sockets.UnixSocketImpl-socket operations: | (instance) |
Up: Sockets.UnixSocketImpl [Index]
Not commented.
Previous: Sockets.UnixSocketImpl, Up: Sockets package [Index]
I’m a WriteStream that, instead of growing the collection, evaluates an user defined block and starts over with the same collection.
• Sockets.WriteBuffer-accessing-writing: | (instance) | |
• Sockets.WriteBuffer-buffer handling: | (instance) | |
• Sockets.WriteBuffer-testing: | (instance) |
Next: Sockets.WriteBuffer-buffer handling, Up: Sockets.WriteBuffer [Index]
Put n characters or bytes of aCollection, starting at the pos-th, in the collection buffer.
Next: Sockets.WriteBuffer-testing, Previous: Sockets.WriteBuffer-accessing-writing, Up: Sockets.WriteBuffer [Index]
Not commented.
Evaluate the flushing block and reset the stream
Set which block will be used to flush the buffer. The block will be evaluated with a collection and an Integer n as parameters, and will have to write the first n elements of the collection.
Previous: Sockets.WriteBuffer-buffer handling, Up: Sockets.WriteBuffer [Index]
Not commented.
Next: XML/XPath/XSL packages, Previous: Sockets package, Up: Top [Index]
Alphabetic list: | ||
---|---|---|
• ZLib.DeflateStream: | ||
• ZLib.DeflateWriteStream: | ||
• ZLib.GZipDeflateStream: | ||
• ZLib.GZipDeflateWriteStream: | ||
• ZLib.GZipInflateStream: | ||
• ZLib.InflateStream: | ||
• ZLib.RawDeflateStream: | ||
• ZLib.RawDeflateWriteStream: | ||
• ZLib.RawInflateStream: | ||
• ZLib.ZlibError: | ||
• ZLib.ZlibReadStream: | ||
• ZLib.ZlibStream: | ||
• ZLib.ZlibWriteStream: | ||
Classes documented in this manual are boldfaced. Object Exception Error ZLib.ZlibError Iterable Stream ZLib.ZlibStream ZLib.ZlibReadStream ZLib.RawDeflateStream ZLib.DeflateStream ZLib.GZipDeflateStream ZLib.RawInflateStream ZLib.GZipInflateStream ZLib.InflateStream ZLib.ZlibWriteStream ZLib.RawDeflateWriteStream ZLib.DeflateWriteStream ZLib.GZipDeflateWriteStream |
Next: ZLib.DeflateWriteStream, Up: ZLib package [Index]
Instances of this class produce "standard" (zlib, RFC1950) deflated data.
• ZLib.DeflateStream class-instance creation: | (class) |
Up: ZLib.DeflateStream [Index]
Answer a stream that receives data via #nextPut: and compresses it onto aStream.
Answer a stream that receives data via #nextPut: and compresses it onto aStream with the given compression level.
Next: ZLib.GZipDeflateStream, Previous: ZLib.DeflateStream, Up: ZLib package [Index]
Instances of this class produce "standard" (zlib, RFC1950) deflated data.
Next: ZLib.GZipDeflateWriteStream, Previous: ZLib.DeflateWriteStream, Up: ZLib package [Index]
Instances of this class produce GZip (RFC1952) deflated data.
• ZLib.GZipDeflateStream class-instance creation: | (class) |
Up: ZLib.GZipDeflateStream [Index]
Answer a stream that receives data via #nextPut: and compresses it onto aStream.
Answer a stream that receives data via #nextPut: and compresses it onto aStream with the given compression level.
Next: ZLib.GZipInflateStream, Previous: ZLib.GZipDeflateStream, Up: ZLib package [Index]
Instances of this class produce GZip (RFC1952) deflated data.
Next: ZLib.InflateStream, Previous: ZLib.GZipDeflateWriteStream, Up: ZLib package [Index]
Instances of this class reinflate GZip (RFC1952) deflated data.
Next: ZLib.RawDeflateStream, Previous: ZLib.GZipInflateStream, Up: ZLib package [Index]
Instances of this class reinflate "standard" (zlib, RFC1950) deflated data.
Next: ZLib.RawDeflateWriteStream, Previous: ZLib.InflateStream, Up: ZLib package [Index]
Instances of this class produce "raw" (PKZIP) deflated data.
• ZLib.RawDeflateStream class-instance creation: | (class) |
Up: ZLib.RawDeflateStream [Index]
Answer a stream that receives data via #nextPut: and compresses it onto aStream.
Answer a stream that receives data via #nextPut: and compresses it onto aStream with the given compression level.
Answer a stream that compresses the data in aStream with the default compression level.
Answer a stream that compresses the data in aStream with the given compression level.
Next: ZLib.RawInflateStream, Previous: ZLib.RawDeflateStream, Up: ZLib package [Index]
Instances of this class produce "raw" (PKZIP) deflated data.
• ZLib.RawDeflateWriteStream class-instance creation: | (class) |
Answer a stream that compresses the data in aStream with the default compression level.
Answer a stream that compresses the data in aStream with the given compression level.
Next: ZLib.ZlibError, Previous: ZLib.RawDeflateWriteStream, Up: ZLib package [Index]
Instances of this class reinflate "raw" (PKZIP) deflated data.
• ZLib.RawInflateStream-positioning: | (instance) |
Up: ZLib.RawInflateStream [Index]
Answer the data on which the receiver is streaming, from the start-th item to the end-th. Note that this method is 0-based, unlike the one in Collection, because a Stream’s #position method returns 0-based values. Notice that this class can only provide the illusion of random access, by appropriately rewinding the input stream or skipping compressed data.
Answer true if the stream supports moving backwards with #skip:.
Set the current position in the stream to anInteger. Notice that this class can only provide the illusion of random access, by appropriately rewinding the input stream or skipping compressed data.
Reset the stream to the beginning of the compressed data.
Move the current position by anInteger places, either forwards or backwards.
Next: ZLib.ZlibReadStream, Previous: ZLib.RawInflateStream, Up: ZLib package [Index]
This exception is raised whenever there is an error in a compressed stream.
• ZLib.ZlibError-accessing: | (instance) |
Up: ZLib.ZlibError [Index]
Answer the ZlibStream that caused the error.
Set the ZlibStream that caused the error.
Next: ZLib.ZlibStream, Previous: ZLib.ZlibError, Up: ZLib package [Index]
This abstract class implements the basic buffering that is used for communication with zlib.
• ZLib.ZlibReadStream-accessing-reading: | (instance) | |
• ZLib.ZlibReadStream-streaming: | (instance) |
Next: ZLib.ZlibReadStream-streaming, Up: ZLib.ZlibReadStream [Index]
Place up to anInteger objects from the receiver into aCollection, starting from position pos and stopping if no more data is available.
Copy up to anInteger objects from the receiver to aStream, stopping if no more data is available.
Previous: ZLib.ZlibReadStream-accessing-reading, Up: ZLib.ZlibReadStream [Index]
Answer whether the stream has got to an end
Return the next object (character or byte) in the receiver.
Returns the next element of the stream without moving the pointer. Returns nil when at end of stream.
Returns true and gobbles the next element from the stream of it is equal to anObject, returns false and doesn’t gobble the next element if the next element is not equal to anObject.
Answer the current value of the stream pointer. Note that only inflating streams support random access to the stream data.
Next: ZLib.ZlibWriteStream, Previous: ZLib.ZlibReadStream, Up: ZLib package [Index]
This abstract class implements the basic interface to the zlib module. Its layout matches what is expected by the C code.
• ZLib.ZlibStream class-accessing: | (class) | |
• ZLib.ZlibStream class-instance creation: | (class) | |
• ZLib.ZlibStream-streaming: | (instance) |
Next: ZLib.ZlibStream class-instance creation, Up: ZLib.ZlibStream [Index]
Answer the size of the output buffers that are passed to zlib. Each zlib stream uses a buffer of this size.
Set the size of the output buffers that are passed to zlib. Each zlib stream uses a buffer of this size.
Return the default compression level used by deflating streams.
Set the default compression level used by deflating streams. It should be a number between 1 and 9.
Next: ZLib.ZlibStream-streaming, Previous: ZLib.ZlibStream class-accessing, Up: ZLib.ZlibStream [Index]
This method should not be called for instances of this class.
Answer an instance of the receiver that decorates aStream.
Previous: ZLib.ZlibStream class-instance creation, Up: ZLib.ZlibStream [Index]
Answer whether the receiver streams on a file or socket.
Return the name of the underlying stream.
Return the type of the collections returned by #upTo: etc.
Answer the wrapped stream.
Previous: ZLib.ZlibStream, Up: ZLib package [Index]
This abstract class implements the basic buffering that is used for communication with zlib in a WriteStream decorator.
• ZLib.ZlibWriteStream-streaming: | (instance) |
Up: ZLib.ZlibWriteStream [Index]
Finish the deflated output to the destination stream using Z_FINISH. The destination stream is closed, which implies flushing.
Finish the deflated output to the destination stream using Z_FINISH and return the deflated data (requires the destination stream to support #contents).
Finish the deflated output to the destination stream using Z_FINISH. The destination stream is not flushed.
Flush the deflated output to the destination stream, and flush the destination stream.
Flush the deflated output to the destination stream.
Flush the deflated output to the destination stream using Z_FULL_FLUSH, and flush the destination stream.
Put n characters or bytes of aCollection, starting at the pos-th, in the deflation buffer.
Append a character or byte (depending on whether the destination stream works on a ByteArray or String) to the deflation buffer.
Flush the deflated output to the destination stream using Z_PARTIAL_FLUSH, and flush the destination stream.
Answer the number of compressed bytes written.
Finish the deflated output to the destination stream using Z_FINISH and return a ReadStream on the deflated data (requires the destination stream to support #readStream).
Flush the deflated output to the destination stream using Z_SYNC_FLUSH, and flush the destination stream. Note that this includes the four bytes 0/0/255/255 at the end of the flush.
Next: Class index, Previous: ZLib package, Up: Top [Index]
by Thomas Gagne, edited by Paolo Bonzini
• Building a DOM from XML: | ||
• Building XML: | ||
• Using DTDs: | ||
• XSL Processing: | ||
• Attributions: |
Next: Building XML, Up: XML/XPath/XSL packages [Index]
If you’re like me, the first thing you may be trying to do is build a Document Object Model (DOM) tree from some kind of XML input. Assuming you’ve got the XML in a String the following code will build an XML Document:
XML.SAXParser defaultParserClass processDocumentString: theXMLString beforeScanDo: [ :p | p validate: false].
Though the code above appears as though it should be easy to use, there’s
some hidden features you should know about. First, theXMLString
can not contain any null bytes. Depending on where your XML comes from
it may have a NULL byte at the end (like mine did). Many languages implement
strings as an array of bytes (usually printable ones) ending with a null
(a character with integer value 0). In my case, the XML was coming from
a remote client written in C using middleware to send the message to my server.
Since the middleware doesn’t assume to know anything about the message
it received, it’s received into a String, null-byte and all. To remove it I used:
XML.SAXParser defaultParserClass processDocumentString: (aString copyWithout: 0 asCharacter) beforeScanDo: [ :p | p validate: false].
Starting out, I didn’t know much about the value of DTDs either (Document Type Definitions), so I wasn’t using them (more on why you should later). What you need to know is XML comes in two flavors, (three if you include broken as a flavor) well-formed and valid.
Well-formed XML is simply XML following the basic rules, like only one top-level (the document’s root), no overlapping tags, and a few other contraints. Valid XML means not only is the XML well-formed, but it’s also compliant with some kind of rule base about which elements are allowed to follow which other ones, whether or not attributes are permitted and what their values and defaults should be, etc.
There’s no way to get around well-formedness. Most XML tools complain vociferously about missing or open tags. What you may not have lying around, though, is a DTD describing how the XML should be assembled. If you need to skip validation for any reason you must include the selector:
beforeScanDo: [ :p | p validate: false].
Now that you have your XML document, you probably want to access its contents (why else would you want one, right?). Let’s take the following (brief) XML as an example:
<porder porder_num="10351"> <porder_head> <order_date>01/04/2000</order_date> </porder_head> <porder_line> <part>widget</part> <quantity>1.0000</quantity> </porder_line> <porder_line> <part>doodad</part> <quantity>2.0000</quantity> </porder_line> </porder>
The first thing you probably want to know is how to access the different tags, and more specifically, how to access the contents of those tags. First, by way of providing a roadmap to the elements I’ll show you the Smalltalk code for getting different pieces of the document, assuming the variable you’ve assigned the document to is named doc. I’ll also create instance variables for the various elements as I go along:
Element you want | Code to get it |
porder element | doc root |
porder_head | doc root elementNamed: 'porder_head' |
order_date (as a String) | (porderHead elementNamed: 'order_date') characterData |
order_date (as a Date) | (Date readFrom: (porderHead elementNamed: 'order_date') characterData readStream) |
a collection with both porder_lines | doc root elementsNamed: 'porder_line' |
I’ve deliberately left-out accessing porder
’s attribute because accessing
them is different from accessing other nodes. You can get an OrderedCollection
of attributes using:
attributes := doc root attributes.
but the ordered collection isn’t really useful. To access any single attribute you’d need to look for it in the collection:
porderNum := (attributes detect: [ :each | each key type = 'porder_num' ]) value.
But that’s not a whole lot of fun, especially if there’s a lot you need to get,
and if there’s any possibility the attribute may not exist. Then you have to do the whole
detect:ifNone:
thing, and boy, does that make the code readable!
What I did instead was create a method in my objects’ abstract:
dictionaryForAttributes: aCollection ^Dictionary withAll: (aCollection collect: [ :each | each key type -> each value ])
Now what you have is an incrementally more useful method for getting attributes:
attributes := self dictionaryForAttributes: doc root attributes. porderNum := attributes at: 'porder_num'.
At first this appears like more code, and for a single attribute it probably is. But if an element includes more than one attribute the payoff is fairly decent. Of course, you still need to handle the absence of an attribute in the dictionary but I think it reads a little better using a Dictionary than an OrderedCollection:
porderNum := attributes at: 'porder_num' ifAbsent: [].
Next: Using DTDs, Previous: Building a DOM from XML, Up: XML/XPath/XSL packages [Index]
There’s little reason to build an XML document if its not going to be processed by something down the road. Most XML tools require XML documents have a document root. A root is a tag inside which all other tags exist, or put another way, a single parent node from which all other nodes descend. In my case, a co-worker was attempting to use Sablot’s sabcmd to transform the XML from my server into HTML. So start your document with the root ready to go:
replyDoc := XML.Document new. replyDoc addNode: (XML.Element tag: 'response').
Before doing anything more complex, we can play with our new XML document. Assuming you’re going to want to send the XML text to someone or write it to a file, you may first want to capture it in a string. Even if you don’t want to first capture it into a string our example is going to:
replyStream := String new writeStream. replyDoc printOn: replyStream.
If we examine’d the contents of our replyStream
(replyStream contents
) we’d see:
<response/>
Which is what an empty tag looks like.
Let’s add some text to our XML document now. Let’s say we want it to look like:
<response>Hello, world!</response>
Building this actually requires two nodes be added to a new XML
document. The first node (or element) is named response
.
The second node adds text to the first:
replyDoc := XML.Document new. replyDoc addNode: (XML.Element tag: response). "our root node" replyDoc root addNode: (XML.Text text: 'Hello, world!').
Another way of writing it, and the way I’ve adopted in my code is to create the whole
node before adding it. This is not just to reduce the appearance of assignments,
but it suggests a template for cascading #addNode:
messages to an element,
which, if you’re building any kind of nontrivial XML, you’ll be doing a lot of:
replyDoc := XML.Document new. replyDoc addNode: ( (XML.Element tag: response) addNode: (XML.Text text: 'Hello, world!') ).
Unless you’re absolutely sure you’ll never accidentally add text nodes that have an ampersand (&) in them, you’ll need to escape it to get past XML parsers. The way I got around this was to escape them whenever I added text nodes. To make it easier, I (again) created a method in my objects’ abstract superclass:
asXMLElement: tag value: aValue | n | n := XML.Element tag: tag. aValue isNil ifFalse: [ n addNode: (XML.Text text: (aValue displayString copyReplaceAll: '&' with: '&'))]. ^n
Calls to self asXMLElement: 'sometagname' value: anInstanceVariable
are
littered throughout my code.
Adding attributes to documents is, thankfully, easier than accessing them. If we wanted to add an attribute to our document above we can do so with a single statement:
replyDoc root addAttribute: (XML.Attribute name: 'isExample' value: 'yes').
Now, our XML looks like:
<response isExample="yes">Hello, world!</response>
Next: XSL Processing, Previous: Building XML, Up: XML/XPath/XSL packages [Index]
What I didn’t appreciate in my first XML project (this one) was how much error checking I was doing just to verify the format of incoming XML. During testing I’d go looking for attributes or elements that should have been there but for various reasons were not. Because I was coding fast and furious I overlooked some and ignored others. Testing quickly ferreted out my carelessnes and my application started throwing exceptions faster than election officials throw chads.
The cure, at least for formatting, is having a DTD, or Document Type Definition describing the XML format. You can read more about the syntax of DTDs in the XML specification.
There’s not a lot programmers are able to do with DTDs in VisualWorks, except requiring incoming XML to include DOCTYPE statements. There is something programmers need to do to handle the exceptions the XML parser throws when it finds errors.
I’m not an expert at writing Smalltalk exception handling code, and I haven’t decided on what those exceptions should look like to the client who sent the poorly formatted XML in the first place. The code below does a decent job of catching the errors and putting the description of the error into an XML response. It’s also a fairly decent example of XML document building as discussed earlier.
replyDoc := XML.Document new. replyDoc addNode: (XML.Element tag: 'response'). [ doc := XML.SAXParser defaultParserClass processDocumentString: (anIsdMessage message copyWithout: 0) asString ] on: Exception do: [ :ex | replyDoc root addAttribute: (XML.Attribute name: 'type' value: 'Exception'); addNode: ((XML.Element tag: 'description') addNode: (XML.Text text: ex signal description)); addNode: ((XML.Element tag: 'message') addNode: (XML.Text text: ex messageText)) ].
I said before there’s not a lot programmers can do with DTDs, but there are some things I wish the XML library would do:
Next: Attributions, Previous: Using DTDs, Up: XML/XPath/XSL packages [Index]
I spent a night the other week trying to figure out how to get the XSL libraries to do anything. I no longer need it now, but I did discover some things others with an immediate need may want to be aware of.
A code snippet for doing just that appears below.
| rules xmlDoc htmlDoc | rules := XSL.RuleDatabase new readFileNamed: 'paymentspending.xsl'. xmlDoc := XML.SAXParser defaultParserClass processDocumentInFilename: 'paymentspending.xml' beforeScanDo: [ :p | p validate: false ]. htmlDoc := rules process: xmlDoc.
There is also a readString:
method which can be used
instead of readFileNamed:
.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
position()
and count()
aren’t
implemented, or if they are, aren’t implemented in the way other XSL
tools implement it.
Previous: XSL Processing, Up: XML/XPath/XSL packages [Index]
Cincom, for supporting Smalltalk and the Smalltalk community by making the library available for GNU Smalltalk under the LGPL.
Thanks also to Randy Ynchausti, Bijan Parsia, Reinout Heeck, and Joseph Bacanskas for answering many questions on the XML library.
Next: Method index, Previous: XML/XPath/XSL packages, Up: Top [Index]
Jump to: | B C D I S Z |
---|
Jump to: | B C D I S Z |
---|
Next: Cross-reference, Previous: Class index, Up: Top [Index]
Jump to: | *
+
-
/
<
=
>
?
~
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
---|
Jump to: | *
+
-
/
<
=
>
?
~
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
---|
Previous: Method index, Up: Top [Index]
Jump to: | A B C D E F H I L M N O P R S T U W X Y |
---|
Jump to: | A B C D E F H I L M N O P R S T U W X Y |
---|