Changeset 238:380bad9f6852 for dwt/layout/RowData.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/layout/RowData.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/layout/RowData.d
r201 r238 17 17 import dwt.widgets.Control; 18 18 19 import tango.text.Util;20 19 import tango.util.Convert; 20 import dwt.dwthelper.utils; 21 21 22 22 /** … … 106 106 } 107 107 108 char[]getName () {109 char[]string = this.classinfo.name;110 int index = locatePrior( string,'.');111 if (index is string.length) return string;108 String getName () { 109 String string = this.classinfo.name; 110 int index = string.lastIndexOf('.'); 111 if (index is -1 ) return string; 112 112 return string[ index + 1 .. string.length ]; 113 113 } … … 119 119 * @return a string representation of the RowData object 120 120 */ 121 override public char[]toString () {122 char[]string = getName ()~" {";123 if (width !is DWT.DEFAULT) string ~= "width="~to!( char[])(width)~" ";124 if (height !is DWT.DEFAULT) string ~= "height="~to!( char[])(height)~" ";125 if (exclude) string ~= "exclude="~to!( char[])(exclude)~" ";126 string = trim( string);121 override public String toString () { 122 String string = getName ()~" {"; 123 if (width !is DWT.DEFAULT) string ~= "width="~to!(String)(width)~" "; 124 if (height !is DWT.DEFAULT) string ~= "height="~to!(String)(height)~" "; 125 if (exclude) string ~= "exclude="~to!(String)(exclude)~" "; 126 string = string.trim(); 127 127 string ~= "}"; 128 128 return string;
