|
@@ -3,6 +3,7 @@ |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.GWT.client.*; |
5 |
5 |
|
import org.litesoft.GWT.client.widgets.*; |
|
6 |
+ |
import org.litesoft.GWT.client.widgets.nonpublic.*; |
6 |
7 |
|
import org.litesoft.core.simpletypes.*; |
7 |
8 |
|
import org.litesoft.core.util.*; |
8 |
9 |
|
import org.litesoft.uispecification.*; |
|
@@ -29,7 +30,7 @@ |
29 |
30 |
|
zDialogBox.add( buildPickerPanel() ); |
30 |
31 |
|
zDialogBox.setText( mPickerButtonTooltip ); |
31 |
32 |
|
mPickerButton.setTitle( mPickerButtonTooltip ); |
32 |
|
- |
DOM.setStyleAttribute( mPickerButton.getElement(), "cursor", "pointer" ); |
|
33 |
+ |
Cursor.Pointer.set( mPickerButton ); |
33 |
34 |
|
setPicker( zDialogBox ); |
34 |
35 |
|
} |
35 |
36 |
|
|
|
@@ -51,8 +52,9 @@ |
51 |
52 |
|
zListPanel.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER ); |
52 |
53 |
|
mPopupListWrapper = new SimplePanel(); |
53 |
54 |
|
mPopupListWrapper.setHeight( "200" ); |
54 |
|
- |
DOM.setStyleAttribute( mPopupListWrapper.getElement(), "overflow", "auto" ); |
55 |
|
- |
DOM.setStyleAttribute( mPopupListWrapper.getElement(), "borderBottom", "solid 1px black" ); |
|
55 |
+ |
Element zElement = mPopupListWrapper.getElement(); |
|
56 |
+ |
CommonElementHelper.setOverflowAuto( zElement ); |
|
57 |
+ |
DOM.setStyleAttribute( zElement, "borderBottom", "solid 1px black" ); |
56 |
58 |
|
|
57 |
59 |
|
zListPanel.add( mPopupListWrapper ); |
58 |
60 |
|
zListPanel.add( new Spacer( 5 ) ); |
|
@@ -151,13 +153,13 @@ |
151 |
153 |
|
{ |
152 |
154 |
|
mCurrentTooltip = mPickerButtonTooltip; |
153 |
155 |
|
mPickerButton.setTitle( "Loading..." ); |
154 |
|
- |
DOM.setStyleAttribute( mPickerButton.getElement(), "cursor", "wait" ); |
|
156 |
+ |
Cursor.Wait.set( mPickerButton ); |
155 |
157 |
|
} |
156 |
158 |
|
|
157 |
159 |
|
private void restoreFromLoading() |
158 |
160 |
|
{ |
159 |
161 |
|
mPickerButton.setTitle( mCurrentTooltip ); |
160 |
|
- |
DOM.setStyleAttribute( mPickerButton.getElement(), "cursor", "pointer" ); |
|
162 |
+ |
Cursor.Pointer.set( mPickerButton ); |
161 |
163 |
|
} |
162 |
164 |
|
|
163 |
165 |
|
private class ListGrid extends TightGrid |
|
@@ -219,7 +221,7 @@ |
219 |
221 |
|
for ( int i = 0; i < getRowCount(); i++ ) |
220 |
222 |
|
{ |
221 |
223 |
|
String zStyle = mRowFormatter.getStyleName( i ); |
222 |
|
- |
if ( zStyle.indexOf( "ItemRow-Selected" ) >= 0 ) |
|
224 |
+ |
if ( zStyle.contains( "ItemRow-Selected" ) ) |
223 |
225 |
|
{ |
224 |
226 |
|
mRowFormatter.removeStyleName( i, "ItemRow-Selected" ); |
225 |
227 |
|
} |