litesoft
Diff Revisions
150
vs
151
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/forms/client/components/nonpublic/TimePickerFieldsPanel.java
|
@@ -1,13 +1,14 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt |
2 |
2 |
|
package org.litesoft.GWT.forms.client.components.nonpublic; |
3 |
3 |
|
|
4 |
|
- |
import com.google.gwt.user.client.*; |
5 |
|
- |
import com.google.gwt.user.client.ui.*; |
6 |
4 |
|
import org.litesoft.GWT.client.widgets.*; |
7 |
5 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
8 |
6 |
|
import org.litesoft.core.*; |
9 |
7 |
|
import org.litesoft.core.simpletypes.temporal.*; |
10 |
8 |
|
|
|
9 |
+ |
import com.google.gwt.user.client.*; |
|
10 |
+ |
import com.google.gwt.user.client.ui.*; |
|
11 |
+ |
|
11 |
12 |
|
public class TimePickerFieldsPanel extends HorizontalPanel |
12 |
13 |
|
{ |
13 |
14 |
|
private MyTimeField mHrs; |
|
@@ -41,8 +42,7 @@ |
41 |
42 |
|
{ |
42 |
43 |
|
if ( mMilliSecs != null ) |
43 |
44 |
|
{ |
44 |
|
- |
return new SimpleTime( mHrs.getIntValue(), mMins.getIntValue(), mSecs.getIntValue(), |
45 |
|
- |
mMilliSecs.getIntValue() ); |
|
45 |
+ |
return new SimpleTime( mHrs.getIntValue(), mMins.getIntValue(), mSecs.getIntValue(), mMilliSecs.getIntValue() ); |
46 |
46 |
|
} |
47 |
47 |
|
if ( mSecs != null ) |
48 |
48 |
|
{ |
|
@@ -89,11 +89,7 @@ |
89 |
89 |
|
|
90 |
90 |
|
String upCellId = "upId" + zUniqueID; |
91 |
91 |
|
String downCellId = "downId" + zUniqueID; |
92 |
|
- |
HTMLPanel zButtonsPanel = new HTMLPanel( |
93 |
|
- |
"<div class='litesoft-TimeFieldUpArrowImageButton_border'><div class='litesoft-TimeFieldUpArrowImageButton' id=" + |
94 |
|
- |
upCellId + |
95 |
|
- |
"></div></div><div class='litesoft-TimeFieldUpArrowImageButton_border'><div class='litesoft-TimeFieldUpArrowImageButton' id=" + |
96 |
|
- |
downCellId + "></div></div>" ); |
|
92 |
+ |
HTMLPanel zButtonsPanel = new HTMLPanel( "<div class='litesoft-TimeFieldUpArrowImageButton_border'><div class='litesoft-TimeFieldUpArrowImageButton' id=" + upCellId + "></div></div><div class='litesoft-TimeFieldUpArrowImageButton_border'><div class='litesoft-TimeFieldUpArrowImageButton' id=" + downCellId + "></div></div>" ); |
97 |
93 |
|
|
98 |
94 |
|
zButtonsPanel.add( new UpDownButton( 1 ), upCellId ); |
99 |
95 |
|
zButtonsPanel.add( new UpDownButton( -1 ), downCellId ); |