Mercurial > projects > dwt-addons
comparison dwtx/jface/layout/TableColumnLayout.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | b6c35faf97c8 |
children |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
43 /* | 43 /* |
44 * (non-Javadoc) | 44 * (non-Javadoc) |
45 * | 45 * |
46 * @see dwtx.jface.layout.AbstractColumnLayout#getColumnCount(dwt.widgets.Scrollable) | 46 * @see dwtx.jface.layout.AbstractColumnLayout#getColumnCount(dwt.widgets.Scrollable) |
47 */ | 47 */ |
48 int getColumnCount(Scrollable tableTree) { | 48 override int getColumnCount(Scrollable tableTree) { |
49 return (cast(Table) tableTree).getColumnCount(); | 49 return (cast(Table) tableTree).getColumnCount(); |
50 } | 50 } |
51 | 51 |
52 /* | 52 /* |
53 * (non-Javadoc) | 53 * (non-Javadoc) |
54 * | 54 * |
55 * @see dwtx.jface.layout.AbstractColumnLayout#setColumnWidths(dwt.widgets.Scrollable, | 55 * @see dwtx.jface.layout.AbstractColumnLayout#setColumnWidths(dwt.widgets.Scrollable, |
56 * int[]) | 56 * int[]) |
57 */ | 57 */ |
58 void setColumnWidths(Scrollable tableTree, int[] widths) { | 58 override void setColumnWidths(Scrollable tableTree, int[] widths) { |
59 TableColumn[] columns = (cast(Table) tableTree).getColumns(); | 59 TableColumn[] columns = (cast(Table) tableTree).getColumns(); |
60 for (int i = 0; i < widths.length; i++) { | 60 for (int i = 0; i < widths.length; i++) { |
61 columns[i].setWidth(widths[i]); | 61 columns[i].setWidth(widths[i]); |
62 } | 62 } |
63 } | 63 } |
65 /* | 65 /* |
66 * (non-Javadoc) | 66 * (non-Javadoc) |
67 * | 67 * |
68 * @see dwtx.jface.layout.AbstractColumnLayout#getLayoutData(int) | 68 * @see dwtx.jface.layout.AbstractColumnLayout#getLayoutData(int) |
69 */ | 69 */ |
70 ColumnLayoutData getLayoutData(Scrollable tableTree, int columnIndex) { | 70 override ColumnLayoutData getLayoutData(Scrollable tableTree, int columnIndex) { |
71 TableColumn column = (cast(Table) tableTree).getColumn(columnIndex); | 71 TableColumn column = (cast(Table) tableTree).getColumn(columnIndex); |
72 return cast(ColumnLayoutData) column.getData(LAYOUT_DATA); | 72 return cast(ColumnLayoutData) column.getData(LAYOUT_DATA); |
73 } | 73 } |
74 | 74 |
75 Composite getComposite(Widget column) { | 75 Composite getComposite(Widget column) { |
77 } | 77 } |
78 | 78 |
79 /* (non-Javadoc) | 79 /* (non-Javadoc) |
80 * @see dwtx.jface.layout.AbstractColumnLayout#updateColumnData(dwt.widgets.Widget) | 80 * @see dwtx.jface.layout.AbstractColumnLayout#updateColumnData(dwt.widgets.Widget) |
81 */ | 81 */ |
82 void updateColumnData(Widget column) { | 82 override void updateColumnData(Widget column) { |
83 TableColumn tColumn = cast(TableColumn) column; | 83 TableColumn tColumn = cast(TableColumn) column; |
84 Table t = tColumn.getParent(); | 84 Table t = tColumn.getParent(); |
85 | 85 |
86 if( ! IS_GTK || t.getColumn(t.getColumnCount()-1) !is tColumn ){ | 86 if( ! IS_GTK || t.getColumn(t.getColumnCount()-1) !is tColumn ){ |
87 tColumn.setData(LAYOUT_DATA,new ColumnPixelData(tColumn.getWidth())); | 87 tColumn.setData(LAYOUT_DATA,new ColumnPixelData(tColumn.getWidth())); |