litesoft
Diff Revisions
151
vs
243
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/nonpublic/FormContainerErrorPanel.java
|
@@ -4,7 +4,9 @@ |
4 |
4 |
|
import org.litesoft.GWT.client.widgets.*; |
5 |
5 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
6 |
6 |
|
|
|
7 |
+ |
import com.google.gwt.dom.client.*; |
7 |
8 |
|
import com.google.gwt.user.client.*; |
|
9 |
+ |
import com.google.gwt.user.client.Element; |
8 |
10 |
|
import com.google.gwt.user.client.ui.*; |
9 |
11 |
|
|
10 |
12 |
|
public class FormContainerErrorPanel extends AbstractSizeableOneDimensionalPanel |
|
@@ -17,7 +19,7 @@ |
17 |
19 |
|
public FormContainerErrorPanel() |
18 |
20 |
|
{ |
19 |
21 |
|
initializeElements( getHelper().create_OeTable_SeDiv_IeDiv( true ), null ); |
20 |
|
- |
DOM.setStyleAttribute( getHelper().getStyleElement(), "overflow", "visible" ); |
|
22 |
+ |
CommonElementHelper.setOverflowVisible( getHelper().getStyleElement() ); |
21 |
23 |
|
LLstretchableHorizontally(); |
22 |
24 |
|
add( mMessagePopUpPanel ); |
23 |
25 |
|
add( mMessagePopUpPanel.getIndicatorBar() ); |
|
@@ -85,9 +87,9 @@ |
85 |
87 |
|
mMinimumWidth = currentWidth; |
86 |
88 |
|
} |
87 |
89 |
|
} |
88 |
|
- |
DOM.setStyleAttribute( getHelper().getStyleElement(), "overflow", "hidden" ); |
|
90 |
+ |
CommonElementHelper.setOverflowHidden( getHelper().getStyleElement() ); |
89 |
91 |
|
super.setWidth( width ); |
90 |
|
- |
DOM.setStyleAttribute( getHelper().getStyleElement(), "overflow", "visible" ); |
|
92 |
+ |
CommonElementHelper.setOverflowVisible( getHelper().getStyleElement() ); |
91 |
93 |
|
} |
92 |
94 |
|
|
93 |
95 |
|
private Integer mMinimumWidth = null; |
|
@@ -120,7 +122,7 @@ |
120 |
122 |
|
stretchableHorizontally(); |
121 |
123 |
|
setWidget( mErrorPopUpLabel ); |
122 |
124 |
|
Element tableElement = getElement(); |
123 |
|
- |
DOM.setStyleAttribute( tableElement, "position", "absolute" ); |
|
125 |
+ |
CommonElementHelper.setPositionAbsolute( tableElement ); |
124 |
126 |
|
hide(); |
125 |
127 |
|
mIndicatorBar.addClickListener( new ClickListener() |
126 |
128 |
|
{ |
|
@@ -231,8 +233,7 @@ |
231 |
233 |
|
protected void position() |
232 |
234 |
|
{ |
233 |
235 |
|
int zOffsetToBottom = mIndicatorBar.getOffsetHeight(); |
234 |
|
- |
|
235 |
|
- |
DOM.setStyleAttribute( getElement(), "bottom", "" + zOffsetToBottom ); |
|
236 |
+ |
getElement().getStyle().setBottom( zOffsetToBottom, Style.Unit.PX ); |
236 |
237 |
|
} |
237 |
238 |
|
|
238 |
239 |
|
public void setWarningStyle() |