litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/accordiontable/AccordionTablePrimaryRow.java
|
@@ -1,24 +1,21 @@ |
1 |
1 |
|
package com.temp.client.foundation.widget.accordiontable; |
2 |
2 |
|
|
3 |
|
- |
import com.google.gwt.user.client.ui.Composite; |
4 |
|
- |
import com.google.gwt.user.client.ui.HasVerticalAlignment; |
5 |
|
- |
import com.google.gwt.user.client.ui.HorizontalPanel; |
6 |
|
- |
import com.google.gwt.user.client.ui.Widget; |
|
3 |
+ |
import com.google.gwt.user.client.ui.*; |
7 |
4 |
|
|
8 |
5 |
|
public class AccordionTablePrimaryRow extends Composite { |
9 |
6 |
|
private HorizontalPanel rowPanel; |
10 |
7 |
|
private static final String TABLE_BORDER_CSS = "converter-border-top"; |
|
8 |
+ |
|
11 |
9 |
|
public AccordionTablePrimaryRow() { |
12 |
10 |
|
rowPanel = new HorizontalPanel(); |
13 |
|
- |
rowPanel.setHeight("40px"); |
14 |
|
- |
rowPanel.setWidth("100%"); |
15 |
|
- |
rowPanel.addStyleName(TABLE_BORDER_CSS); |
16 |
|
- |
rowPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); |
17 |
|
- |
initWidget(rowPanel); |
|
11 |
+ |
rowPanel.setHeight( "40px" ); |
|
12 |
+ |
rowPanel.setWidth( "100%" ); |
|
13 |
+ |
rowPanel.addStyleName( TABLE_BORDER_CSS ); |
|
14 |
+ |
rowPanel.setVerticalAlignment( HasVerticalAlignment.ALIGN_MIDDLE ); |
|
15 |
+ |
initWidget( rowPanel ); |
18 |
16 |
|
} |
19 |
17 |
|
|
20 |
|
- |
public void addColumn(Widget col){ |
21 |
|
- |
rowPanel.add(col); |
|
18 |
+ |
public void addColumn( Widget col ) { |
|
19 |
+ |
rowPanel.add( col ); |
22 |
20 |
|
} |
23 |
|
- |
|
24 |
21 |
|
} |