thinlet-development Mailing List for Thinlet (Page 5)
Brought to you by:
bajzat
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(22) |
Apr
(7) |
May
(26) |
Jun
(42) |
Jul
(9) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
(6) |
Jun
(12) |
Jul
(2) |
Aug
(9) |
Sep
(1) |
Oct
(8) |
Nov
(1) |
Dec
|
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(13) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ab...@us...> - 2003-06-26 15:21:57
|
Update of /cvsroot/thinlet/thinlet/examples/amazon/browser In directory sc8-pr-cvs1:/tmp/cvs-serv29772/examples/amazon/browser Removed Files: AmazonBrowser.java amazonbrowser.xml manifest.mf Log Message: New CVS layout and build infrastructure. Contributed by Campbell Boucher-Burnet. Many thanks\! --- AmazonBrowser.java DELETED --- --- amazonbrowser.xml DELETED --- --- manifest.mf DELETED --- |
Update of /cvsroot/thinlet/thinlet/drafts In directory sc8-pr-cvs1:/tmp/cvs-serv29772/drafts Removed Files: AutoFill.java BeanTest.java ClassExplorer.java DesktopProperties.java Drafts.java EventLogger.java FolderBrowser.java MDI.java Style.java SwingProperties.java SystemColors.java SystemProperties.java TabbedPane.java Utilities.java Utilities2.java autofill.xml beantest.xml classexplorer.xml desktopproperties.xml drafts.html drafts.xml eventlogger.xml folderbrowser.xml mdi.xml mdidialog.xml style.xml swingproperties.xml systemcolors.xml systemproperties.xml tabbedpane.xml Log Message: New CVS layout and build infrastructure. Contributed by Campbell Boucher-Burnet. Many thanks\! --- AutoFill.java DELETED --- --- BeanTest.java DELETED --- --- ClassExplorer.java DELETED --- --- DesktopProperties.java DELETED --- --- Drafts.java DELETED --- --- EventLogger.java DELETED --- --- FolderBrowser.java DELETED --- --- MDI.java DELETED --- --- Style.java DELETED --- --- SwingProperties.java DELETED --- --- SystemColors.java DELETED --- --- SystemProperties.java DELETED --- --- TabbedPane.java DELETED --- --- Utilities.java DELETED --- --- Utilities2.java DELETED --- --- autofill.xml DELETED --- --- beantest.xml DELETED --- --- classexplorer.xml DELETED --- --- desktopproperties.xml DELETED --- --- drafts.html DELETED --- --- drafts.xml DELETED --- --- eventlogger.xml DELETED --- --- folderbrowser.xml DELETED --- --- mdi.xml DELETED --- --- mdidialog.xml DELETED --- --- style.xml DELETED --- --- swingproperties.xml DELETED --- --- systemcolors.xml DELETED --- --- systemproperties.xml DELETED --- --- tabbedpane.xml DELETED --- |
Update of /cvsroot/thinlet/thinlet/midp In directory sc8-pr-cvs1:/tmp/cvs-serv29772/midp Removed Files: Converter.java MANIFEST.MF ThinletDemo.jad ThinletDemo.png eventcode.txt readme.txt Log Message: New CVS layout and build infrastructure. Contributed by Campbell Boucher-Burnet. Many thanks\! --- Converter.java DELETED --- --- MANIFEST.MF DELETED --- --- ThinletDemo.jad DELETED --- --- ThinletDemo.png DELETED --- --- eventcode.txt DELETED --- --- readme.txt DELETED --- |
From: <ab...@us...> - 2003-06-26 15:21:57
|
Update of /cvsroot/thinlet/thinlet/midp/demo In directory sc8-pr-cvs1:/tmp/cvs-serv29772/midp/demo Removed Files: Demo.java demo.xml image.png Log Message: New CVS layout and build infrastructure. Contributed by Campbell Boucher-Burnet. Many thanks\! --- Demo.java DELETED --- --- demo.xml DELETED --- --- image.png DELETED --- |
From: <ab...@us...> - 2003-06-26 15:16:29
|
Update of /cvsroot/thinlet/thinlet/lib In directory sc8-pr-cvs1:/tmp/cvs-serv26749/lib Log Message: Directory /cvsroot/thinlet/thinlet/lib added to the repository |
From: <ab...@us...> - 2003-06-26 15:15:27
|
Update of /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples/demo In directory sc8-pr-cvs1:/tmp/cvs-serv28928/midp/examples/demo Log Message: Directory /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples/demo added to the repository |
From: <ab...@us...> - 2003-06-26 15:15:27
|
Update of /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples/calculator In directory sc8-pr-cvs1:/tmp/cvs-serv28928/midp/examples/calculator Log Message: Directory /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples/calculator added to the repository |
From: <ab...@us...> - 2003-06-26 15:15:27
|
Update of /cvsroot/thinlet/thinlet/src/midp/thinlet/midp In directory sc8-pr-cvs1:/tmp/cvs-serv28928/midp Log Message: Directory /cvsroot/thinlet/thinlet/src/midp/thinlet/midp added to the repository |
From: <ab...@us...> - 2003-06-26 15:15:27
|
Update of /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples In directory sc8-pr-cvs1:/tmp/cvs-serv28928/midp/examples Log Message: Directory /cvsroot/thinlet/thinlet/src/midp/thinlet/midp/examples added to the repository |
From: <ab...@us...> - 2003-06-26 15:14:29
|
Update of /cvsroot/thinlet/thinlet/src/midp/thinlet In directory sc8-pr-cvs1:/tmp/cvs-serv28733/thinlet Log Message: Directory /cvsroot/thinlet/thinlet/src/midp/thinlet added to the repository |
From: <ab...@us...> - 2003-06-26 15:12:17
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon/browser In directory sc8-pr-cvs1:/tmp/cvs-serv28488/amazon/browser Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon/browser added to the repository |
From: <ab...@us...> - 2003-06-26 15:12:17
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon/explorer In directory sc8-pr-cvs1:/tmp/cvs-serv28488/amazon/explorer Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon/explorer added to the repository |
From: <ab...@us...> - 2003-06-26 15:12:16
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon In directory sc8-pr-cvs1:/tmp/cvs-serv28488/amazon Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples/amazon added to the repository |
From: <ab...@us...> - 2003-06-26 15:12:16
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples/demo In directory sc8-pr-cvs1:/tmp/cvs-serv28488/demo Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples/demo added to the repository |
From: <ab...@us...> - 2003-06-26 15:12:16
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples/common In directory sc8-pr-cvs1:/tmp/cvs-serv28488/common Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples/common added to the repository |
From: <ab...@us...> - 2003-06-26 15:11:05
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/examples In directory sc8-pr-cvs1:/tmp/cvs-serv28324/examples Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/examples added to the repository |
From: <ab...@us...> - 2003-06-26 15:11:05
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet/drafts In directory sc8-pr-cvs1:/tmp/cvs-serv28324/drafts Log Message: Directory /cvsroot/thinlet/thinlet/src/java/thinlet/drafts added to the repository |
From: <ab...@us...> - 2003-06-26 15:09:58
|
Update of /cvsroot/thinlet/thinlet/src/java/icons In directory sc8-pr-cvs1:/tmp/cvs-serv28105/icons Log Message: Directory /cvsroot/thinlet/thinlet/src/java/icons added to the repository |
From: <ab...@us...> - 2003-06-26 15:09:20
|
Update of /cvsroot/thinlet/thinlet/src/java In directory sc8-pr-cvs1:/tmp/cvs-serv28018/java Log Message: Directory /cvsroot/thinlet/thinlet/src/java added to the repository |
From: <ab...@us...> - 2003-06-26 15:09:20
|
Update of /cvsroot/thinlet/thinlet/src/midp In directory sc8-pr-cvs1:/tmp/cvs-serv28018/midp Log Message: Directory /cvsroot/thinlet/thinlet/src/midp added to the repository |
From: <ab...@us...> - 2003-06-23 12:04:40
|
Update of /cvsroot/thinlet/thinlet/doc/widget In directory sc8-pr-cvs1:/tmp/cvs-serv12459 Modified Files: button.xml checkbox.xml combobox.xml component.xml list.xml menubar.xml panel.xml spinbox.xml tabbedpane.xml table.xml textarea.xml textfield.xml tree.xml Log Message: Update widget docs to reflect recent changes. Index: button.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/button.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- button.xml 10 May 2003 20:51:54 -0000 1.1 +++ button.xml 23 Jun 2003 12:04:35 -0000 1.2 @@ -8,14 +8,14 @@ The text string that the button displays. </parameter> <parameter name="icon" type="icon"> - The icon image that the button displays. + The icon image that the button displays. Icons are always displayed to the left of text (if any). </parameter> <parameter name="alignment" type="choice" default="center"> The alignment of the text and image similar to label. Possible values are: center, left, and right. The default value is center. </parameter> <parameter name="mnemonic" type="integer" default="-1"> - Specifies the underlined char and the key combination (alt+mnemonic) + Specifies the index of underlined char, and the key combination (alt+mnemonic) which invokes the (not necessarily focused, but enabled and visible) button's action listener. </parameter> @@ -24,10 +24,11 @@ </parameter> <parameter name="type" type="choice" default="normal"> Possible values are: normal, default, cancel, and link. The default value is normal. - Default, and cancel values are for dialog control. + Default, and cancel values are for dialog control. Link changes the appearance of + button so that it resembles HTML link. </parameter> <parameter extend="component"> - name, enabled, visible, tooltip, property, width, height, colspan, rowspan, + name, enabled, visible, tooltip, property, i18n, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component </parameter> </parameters> Index: checkbox.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/checkbox.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- checkbox.xml 10 May 2003 20:51:54 -0000 1.1 +++ checkbox.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -2,7 +2,7 @@ <widget class="checkbox" title="CheckBox"> <p>The first checkbox has a short text and an icon, its state is selected. The second one is a deselected radio button, - one of a set of buttons identified by a string id.</p> + one of a set of buttons identified by a group name.</p> <xul><![CDATA[<checkbox text="CheckBox" icon="image.gif" selected="true"/> <checkbox text="RadioButton" group="group"/>]]></xul> <parameters> @@ -17,7 +17,7 @@ Possible values are: left, center, and right. </parameter> <parameter name="mnemonic" type="integer" default="-1"> - Specifies the underlined char and the key combination + Specifies the index of underlined char, and the key combination which change the checkboxs's state and invokes the action listener. </parameter> <parameter name="selected" type="boolean" default="false"> @@ -34,7 +34,7 @@ by mouse or keyboard event. </parameter> <parameter extend="component"> - name, enabled, visible, tooltip, property, width, height, colspan, rowspan, + name, enabled, visible, tooltip, property, i18n, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component </parameter> </parameters> Index: combobox.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/combobox.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- combobox.xml 10 May 2003 20:51:54 -0000 1.1 +++ combobox.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -22,17 +22,17 @@ text, columns, and editable parameters are described at textfield </parameter> <parameter extend="component"> - name, enabled, visible, tooltip, property, width, height, colspan, rowspan, + name, enabled, visible, tooltip, property, i18n, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component </parameter> </parameters> <!-- - - - choice - - - --> <widget class="choice" title="Choice"> <p>The drop down list of a combobox contains choices. - The popup combolist internally handles scrolling.</p> + The combolist popup internally handles scrolling.</p> <parameters> <parameter name="name" type="string"> - Identifies the item. + Identifies the choice item. </parameter> <parameter name="enabled" type="boolean" default="true"> Enables or disables the item. A disabled item is painted gray, @@ -53,17 +53,17 @@ otherwise the tooltip text of the component. </parameter> <parameter name="font" type="font" default=""> - [Pending] + Custom font to use for text. </parameter> <parameter name="foreground" type="color" default=""> - [Pending] + Custom foreground (text) color. </parameter> <parameter name="background" type="color" default=""> - [Pending] + Custom background color. </parameter> <parameter name="property" type="property"> Adds an arbitrary key/value client property stored in a hashtable of the item. - The format of its value is key=value, both are string objects. + The format of its value is key=value (or key=value;key=value ... for multiple keys), both are string objects. </parameter> </parameters> </widget> Index: component.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/component.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- component.xml 10 May 2003 20:51:54 -0000 1.1 +++ component.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -17,13 +17,21 @@ The text pops up when the mouse lingers inside the component. </parameter> <parameter name="font" type="font" default=""> - [Pending] + Custom font for texts. The format of this parameter is: font="[NAME] [SIZE] [italic] [bold]", where NAME is the font name, and SIZE is integer font size in points. At least one font parameter must be present. </parameter> <parameter name="foreground" type="color" default=""> - [Pending] + Custom foreground (text) color to use, instead of the + default text color set with setColors(). The format of + this parameter is: foreground="#RRGGBB", with RGB + values in hexadecimal. </parameter> <parameter name="background" type="color" default=""> - [Pending] + Custom background color to use, instead of the + default background color set with setColors(). + Parameter format is the same as for foreground. + NOTE: for components with gradients (buttons, menubars, + etc...) this means that the background will be + filled with SOLID color, and not a custom gradient. </parameter> <parameter name="width" type="integer" default="0"> Fixed preferred width of the component irrespectively of its content. @@ -58,9 +66,11 @@ <parameter name="property" type="property"> Binds an arbitrary key/value client property. The format of its value is key=value, both are strings and stored in a hashtable of the component. + Use format property="key1=value1;key2=value2" for multiple properties. </parameter> <parameter name="init" type="method"> - [Pending] + A method to invoke when the loading of this component + is finished. </parameter> <parameter name="focuslost" type="method"> [Pending] @@ -71,7 +81,7 @@ </parameters> <!-- - - - popupmenu - - - --> <widget class="popupmenu" title="PopupMenu"> - <p>[Pending].</p> + <p>Popup menus resemble in functionality normal menus, and can be added to most container components. Popupmenu component can have the same sub-components as menubar. Popup menus are invoked with mouse right-click.</p> <parameters> <parameter name="menushown" type="method"> [Pending] Index: list.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/list.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- list.xml 10 May 2003 20:51:54 -0000 1.1 +++ list.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -20,10 +20,10 @@ Calls the method whenever the selection changes. </parameter> <parameter name="perform" type="method"> - [Pending] + Calls the method whenever a perform event (double-click) occurs. </parameter> <parameter name="line" type="boolean" default="true"> - [Pending] + If present and set to false, don't draw lines separating the list items. </parameter> <parameter extend="component"> name, enabled, visible, tooltip, property, width, height, colspan, rowspan, Index: menubar.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/menubar.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- menubar.xml 10 May 2003 20:51:54 -0000 1.1 +++ menubar.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -18,6 +18,12 @@ <textarea weighty="1" /> </panel>]]></xul> <parameters> + <parameter name="placement" type="choice" default="top"> + Menubar may unfold the menus either downwards (default - + for menubars placed at the top of the container), or + upwards from the menubar position (placement="bottom" - + for menubars placed at the bottom of the container). + </parameter> <parameter extend="component"> name, enabled, visible, tooltip, property, width, height, colspan, rowspan, weightx, weighty, halign, and valign parameters are similar to component @@ -25,11 +31,12 @@ </parameters> <!-- - - - menu - - - --> <widget class="menu" title="Menu"> - <p>Menubar includes menu, and menu could contain menuitems, check or radio + <p>Menubar includes menu, and menu may contain menuitems, check or radio button items, separators, and menus.</p> <parameters> <parameter name="mnemonic" type="integer" default="-1"> - Specifies the index of the underlined char and the key combination + Specifies the index of the underlined char and + the key combination (Alt + underlined character) which selects the menu. </parameter> <parameter extend="choice"> @@ -62,7 +69,7 @@ </widget> <!-- - - - checkboxmenuitem - - - --> <widget class="checkboxmenuitem" title="CheckBoxMenuItem"> - <p>A menu item that can be selected or deselected. The selecte menuitem + <p>A menu item that can be selected or deselected. The selected menuitem appears with a checkmark next to it. A radio-button menu-item is a menu item that is part of a group of menu items in which only one item in the group can be selected.</p> Index: panel.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/panel.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- panel.xml 10 May 2003 20:51:54 -0000 1.1 +++ panel.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -43,7 +43,8 @@ Border painted if true. </parameter> <parameter name="scrollable" type="boolean" default="false"> - [Pending] + If present and set to true, add scrollbars to the panel + if its contents is bigger than the panel's bounds. </parameter> <parameter extend="component"> name, enabled, visible, tooltip, property, width, height, colspan, rowspan, Index: spinbox.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/spinbox.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- spinbox.xml 10 May 2003 20:51:54 -0000 1.1 +++ spinbox.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -4,17 +4,19 @@ (increase, and decrease by 1) its integer value.</p> <xul><![CDATA[<spinbox text="100" />]]></xul> <parameters> - <parameter name="minimum" type="integer" default="0"> - [Pending] + <parameter name="minimum" type="integer" default="0"> + Minimum value (0 by default). It's not possible to + set the spinbox below this value. </parameter> <parameter name="maximum" type="integer" default="100"> - [Pending] + Maximum value (100 by default). It's not possible to + set the spinbox above this value. </parameter> <parameter name="step" type="integer" default="1"> - [Pending] + Increment step when using spinbox arrows. 1 by default. </parameter> <parameter name="value" type="integer" default="0"> - [Pending] + Spinbox value. 0 by default. </parameter> <parameter name="action" type="method"> Invokes the given method when there was change in the text or a new Index: tabbedpane.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/tabbedpane.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tabbedpane.xml 10 May 2003 20:51:54 -0000 1.1 +++ tabbedpane.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -18,7 +18,7 @@ <parameters> <parameter name="placement" type="choice" default="top"> The placement for the tabs relative to the content. Possible values are: - top, left, bottom, right, and stack. The default value, if not set, is top. + top, left, bottom, right, and stack. The default value, if not set, is top. The stack placement arranges tabs so that they resemble a sidebar. </parameter> <parameter name="selected" type="integer" default="0"> The index of the currently selected tab, and the visible content Index: table.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/table.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- table.xml 10 May 2003 20:51:54 -0000 1.1 +++ table.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -32,19 +32,29 @@ </parameters> <!-- - - - header - - - --> <widget class="header" title="Header"> - <p>Table header includes the column texts, these items defines the column - widths. The key for the list of columns is 'column'.</p> + <p>Table header includes the columns. They define the column + texts and widths. The key for the list of columns is 'column'.</p> </widget> <!-- - - - column - - - --> <widget class="column" title="Column"> - <p>Table header includes the column texts, these items defines the column - widths. The key for the list of columns is 'column'.</p> + <p>Table header includes the columns. They define the column + texts and widths. The key for the list of columns is 'column'. + If the total sum of column widths exceeds table bounds set by + a parent container, horizontal scrollbar is drawn.</p> <parameters> <parameter name="width" type="integer" default="80"> - The width of the column. + The width of the column. The last (rightmost) + column always extends to fill in the remaining + width of the table, as determined by the parent + container. </parameter> <parameter name="sort" type="choice" default="none"> - [Pending] + If present, and set to either "ascent" or "descent", + an arrow is drawn near right end + of the column, as a visual indication of + sorting order. NOTE: for now this is just a + visual decoration, application still needs to + do the sorting. </parameter> <parameter extend="label"> name, text, icon, and alignment parameters are described at label Index: textarea.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/textarea.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- textarea.xml 10 May 2003 20:51:54 -0000 1.1 +++ textarea.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -15,11 +15,18 @@ </parameter> <parameter name="editable" type="boolean" default="true"> The specified boolean to indicate whether or not this textarea - should be editable. A not editable area is focusable, and selectable. + should be editable. A non-editable area is focusable, and selectable. </parameter> <parameter name="wrap" type="boolean" default="false"> If set to true the lines will be wrapped at word boundaries (whitespace) if they are too long to fit within the allocated width. + </parameter> + <parameter name="border" type="boolean" default="true"> + If set to false, no border will be drawn around the + textarea, and its background will be set to the default + background color, to visually "blend" with its + container. You can still override this by setting a + custom background color. </parameter> <parameter name="start" type="integer" default="0"> Start index of the selection. Index: textfield.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/textfield.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- textfield.xml 10 May 2003 20:51:54 -0000 1.1 +++ textfield.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -13,7 +13,7 @@ </parameter> <parameter name="editable" type="boolean" default="true"> The specified boolean to indicate whether or not this textfield - should be editable. A not editable field is focusable, and selectable. + should be editable. A non-editable field is focusable, and selectable. </parameter> <parameter name="start" type="integer" default="0"> Start index of the selection. Index: tree.xml =================================================================== RCS file: /cvsroot/thinlet/thinlet/doc/widget/tree.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tree.xml 10 May 2003 20:51:54 -0000 1.1 +++ tree.xml 23 Jun 2003 12:04:36 -0000 1.2 @@ -1,8 +1,8 @@ <!-- - - - tree - - - --> <widget class="tree" title="Tree"> <p>Tree displays a set of hierarchical data, contains nodes - (not only one root node is allowed), and a node could have subnodes. - It internally handles scrolling. + (not only one root node is allowed), and nodes can have subnodes. + It handles scrolling internally. The following example shows a tree with 2 root nodes ('Node A', and 'Node D'), the first has 2 subnodes (a selected 'Node B' and 'Node C'), the collapsed 'Node D' includes one node.</p> @@ -25,6 +25,9 @@ </parameter> <parameter name="action" type="method"> Calls the method whenever the selection changes. + </parameter> + <parameter name="perform" type="method"> + Calls the method whenever a perform event (double-click) occurs. </parameter> <parameter name="expand" type="method"> The listener that's notified when the tree expands a node. |
From: <ab...@us...> - 2003-05-16 13:07:32
|
Update of /cvsroot/thinlet/thinlet/examples/demo In directory sc8-pr-cvs1:/tmp/cvs-serv12467 Modified Files: Demo.java Log Message: Sync with API change (setColor). Index: Demo.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/examples/demo/Demo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Demo.java 8 May 2003 21:33:25 -0000 1.1 +++ Demo.java 16 May 2003 13:07:29 -0000 1.2 @@ -255,7 +255,7 @@ float[] hsb = Color.RGBtoHSB(red, green, blue, null); - setBackground(rgb_label, new Color(red, green, blue)); + setColor(rgb_label, "background", new Color(red, green, blue)); setString(tf_hue, "text", String.valueOf(hsb[0])); setString(tf_saturation, "text", String.valueOf(hsb[1])); setString(tf_brightness, "text", String.valueOf(hsb[2])); |
From: <ab...@us...> - 2003-05-12 14:01:52
|
Update of /cvsroot/thinlet/thinlet/src/thinlet In directory sc8-pr-cvs1:/tmp/cvs-serv13278 Modified Files: Thinlet.java Log Message: Replace setForeground/setBackground with setColor. Workaround for yet another NPE. The source of these problems is somewhere in the layout code, and remains to be fixed. The symptoms occur when many components are quickly added. Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/thinlet/Thinlet.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- Thinlet.java 9 May 2003 16:51:52 -0000 1.18 +++ Thinlet.java 12 May 2003 14:01:47 -0000 1.19 @@ -179,28 +179,20 @@ } /** - * Set custom foreground color (text color) on a component - * - * @param component component to use the custom foreground - * @param color custom color to use, or null to reset component to use default foreground - */ - public void setForeground(Object component, Color color) { - if (component != null) set(component, "foreground", color); - } - - /** - * Set custom background color on a component. - * <p>Note: on gradient-filled + * Set custom color on a component. + * <p>Notes: For "foreground" key, this sets the text color. + * For "background" key, on gradient-filled * components (such as tabs, buttons etc) this will result in a * component filled with solid background color, and not a new gradient. * Also, Color.brighter() will be used for highlight, and Color.darker() * will be used for pressed or not selected. * - * @param component component to use the custom background - * @param color custom color to use, or null to reset component to use default background + * @param component component to use for custom color + * @param key currently "background" and "foreground" are supported + * @param color custom color to use, or null to reset component to use default color */ - public void setBackground(Object component, Color color) { - if (component != null) set(component, "background", color); + public void setColor(Object component, String key, Color color) { + if (component != null) set(component, key, color); } /** @@ -1834,6 +1826,10 @@ // paint selected tab and its content if (selectedtab != null) { Rectangle r = getRectangle(selectedtab, "bounds"); + if (r == null) { + r = new Rectangle(); + set(selectedtab, "bounds", r); + } // paint tabbedpane border if (stacked) { g.setColor(enabled ? c_border : c_disable); |
From: <ba...@us...> - 2003-05-10 20:51:28
|
Update of /cvsroot/thinlet/thinlet/doc/widget In directory sc8-pr-cvs1:/tmp/cvs-serv8698/widget Log Message: Directory /cvsroot/thinlet/thinlet/doc/widget added to the repository |
From: <ab...@us...> - 2003-05-09 16:51:55
|
Update of /cvsroot/thinlet/thinlet/src/thinlet In directory sc8-pr-cvs1:/tmp/cvs-serv23382 Modified Files: Thinlet.java Log Message: Support custom background for panels and dialogs. Catch one more NPE. Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/thinlet/Thinlet.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Thinlet.java 8 May 2003 20:30:56 -0000 1.17 +++ Thinlet.java 9 May 2003 16:51:52 -0000 1.18 @@ -875,7 +875,7 @@ // set :popup bounds String classname = getClass(component); Rectangle menubounds = getRectangle(selected, "bounds"); - if ("menubar" == classname) { // below the menubar + if ("menubar" == classname) { // below or above the menubar boolean below = getString(component, "placement", "bottom") == "bottom"; popupowner = component; if (below) { @@ -1665,11 +1665,14 @@ g.setColor(enabled ? ((inside != pressed) ? c_hover : (pressed ? c_press : c_bg)) : c_bg); g.fillRect(0, 0, bounds.width, bounds.height); } else { - + Color bg = (Color) get(component, "background"); + if (bg == null) bg = enabled ? ((inside != pressed) ? c_hover : ((pressed || toggled) ? c_press : c_ctrl)) : + (toggled ? c_press : c_bg); + else bg = enabled ? ((inside != pressed) ? bg.brighter() : ((pressed || toggled) ? bg.darker() : bg)) : + (toggled ? bg.darker() : bg); paintRect(g, 0, 0, bounds.width, bounds.height, enabled ? c_border : c_disable, - enabled ? ((inside != pressed) ? c_hover : ((pressed || toggled) ? c_press : c_ctrl)) : - (toggled ? c_press : c_bg), true, true, true, true, true); + bg, true, true, true, true, true); } if (focus) { g.setColor(c_focus); @@ -1880,6 +1883,8 @@ } else if (("panel" == classname) || ("dialog" == classname)) { int titleheight = getInteger(component, ":titleheight", 0); + Color bg = (Color) get(component, "background"); + if (bg == null) bg = c_bg; if ("dialog" == classname) { paintRect(g, 0, 0, bounds.width, 3 + titleheight, // dialog titlebar c_border, c_ctrl, true, true, false, true, true); @@ -1888,11 +1893,11 @@ paintContent(component, g, clipx, clipy, clipwidth, clipheight, 3, 2, bounds.width - 6, titleheight, c_text, "left", false); paintRect(g, 3, 3 + titleheight, bounds.width - 6, bounds.height - 6 - titleheight, // content area - c_border, c_bg, true, true, true, true, true); + c_border, bg, true, true, true, true, true); } else { // panel boolean border = getBoolean(component, "border", false); paintRect(g, 0, titleheight / 2, bounds.width, bounds.height - (titleheight / 2), - enabled ? c_border : c_disable, c_bg, border, border, border, border, true); + enabled ? c_border : c_disable, bg, border, border, border, border, true); paintContent(component, g, clipx, clipy, clipwidth, clipheight, // panel title 3, 0, bounds.width - 6, titleheight, enabled ? c_text : c_disable, "left", false); } @@ -2398,6 +2403,10 @@ set(component, ":lead", lead = item); // draw first item focused when lead is null } Rectangle r = getRectangle(item, "bounds"); + if (r == null) { + r = new Rectangle(); + set(item, "bounds", r); + } if (clipy + clipheight <= r.y) { break; } // clip rectangle is above boolean subnode = false; boolean expanded = false; if ("tree" != classname) { |