|
@@ -1,55 +1,55 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets; |
3 |
|
- |
|
4 |
|
- |
import com.google.gwt.event.dom.client.*; |
5 |
|
- |
import com.google.gwt.event.shared.*; |
6 |
|
- |
import com.google.gwt.user.client.ui.*; |
7 |
|
- |
|
8 |
|
- |
public class SuggestBoxChangeListenable extends SuggestBox implements IExtendedTextBox { |
9 |
|
- |
private TextBoxChangeListenable mTextBox; |
10 |
|
- |
|
11 |
|
- |
public SuggestBoxChangeListenable( SuggestOracle pOracle ) { |
12 |
|
- |
super( pOracle, new TextBoxChangeListenable() ); |
13 |
|
- |
mTextBox = (TextBoxChangeListenable) getTextBox(); |
14 |
|
- |
} |
15 |
|
- |
|
16 |
|
- |
@Override |
17 |
|
- |
public int getMaxLength() { |
18 |
|
- |
return mTextBox.getMaxLength(); |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
@Override |
22 |
|
- |
public int getVisibleLength() { |
23 |
|
- |
return mTextBox.getVisibleLength(); |
24 |
|
- |
} |
25 |
|
- |
|
26 |
|
- |
@Override |
27 |
|
- |
public void setMaxLength( int length ) { |
28 |
|
- |
mTextBox.setMaxLength( length ); |
29 |
|
- |
} |
30 |
|
- |
|
31 |
|
- |
@Override |
32 |
|
- |
public void setVisibleLength( int length ) { |
33 |
|
- |
mTextBox.setVisibleLength( length ); |
34 |
|
- |
} |
35 |
|
- |
|
36 |
|
- |
@Override |
37 |
|
- |
public HandlerRegistration addBlurHandler( BlurHandler handler ) { |
38 |
|
- |
return mTextBox.addBlurHandler( handler ); |
39 |
|
- |
} |
40 |
|
- |
|
41 |
|
- |
@Override |
42 |
|
- |
public HandlerRegistration addFocusHandler( FocusHandler handler ) { |
43 |
|
- |
return mTextBox.addFocusHandler( handler ); |
44 |
|
- |
} |
45 |
|
- |
|
46 |
|
- |
@Override |
47 |
|
- |
public boolean isEnabled() { |
48 |
|
- |
return mTextBox.isEnabled(); |
49 |
|
- |
} |
50 |
|
- |
|
51 |
|
- |
@Override |
52 |
|
- |
public void setEnabled( boolean pEnabled ) { |
53 |
|
- |
mTextBox.setEnabled( pEnabled ); |
54 |
|
- |
} |
55 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets; |
|
3 |
+ |
|
|
4 |
+ |
import com.google.gwt.event.dom.client.*; |
|
5 |
+ |
import com.google.gwt.event.shared.*; |
|
6 |
+ |
import com.google.gwt.user.client.ui.*; |
|
7 |
+ |
|
|
8 |
+ |
public class SuggestBoxChangeListenable extends SuggestBox implements IExtendedTextBox { |
|
9 |
+ |
private TextBoxChangeListenable mTextBox; |
|
10 |
+ |
|
|
11 |
+ |
public SuggestBoxChangeListenable( SuggestOracle pOracle ) { |
|
12 |
+ |
super( pOracle, new TextBoxChangeListenable() ); |
|
13 |
+ |
mTextBox = (TextBoxChangeListenable) getTextBox(); |
|
14 |
+ |
} |
|
15 |
+ |
|
|
16 |
+ |
@Override |
|
17 |
+ |
public int getMaxLength() { |
|
18 |
+ |
return mTextBox.getMaxLength(); |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
@Override |
|
22 |
+ |
public int getVisibleLength() { |
|
23 |
+ |
return mTextBox.getVisibleLength(); |
|
24 |
+ |
} |
|
25 |
+ |
|
|
26 |
+ |
@Override |
|
27 |
+ |
public void setMaxLength( int length ) { |
|
28 |
+ |
mTextBox.setMaxLength( length ); |
|
29 |
+ |
} |
|
30 |
+ |
|
|
31 |
+ |
@Override |
|
32 |
+ |
public void setVisibleLength( int length ) { |
|
33 |
+ |
mTextBox.setVisibleLength( length ); |
|
34 |
+ |
} |
|
35 |
+ |
|
|
36 |
+ |
@Override |
|
37 |
+ |
public HandlerRegistration addBlurHandler( BlurHandler handler ) { |
|
38 |
+ |
return mTextBox.addBlurHandler( handler ); |
|
39 |
+ |
} |
|
40 |
+ |
|
|
41 |
+ |
@Override |
|
42 |
+ |
public HandlerRegistration addFocusHandler( FocusHandler handler ) { |
|
43 |
+ |
return mTextBox.addFocusHandler( handler ); |
|
44 |
+ |
} |
|
45 |
+ |
|
|
46 |
+ |
@Override |
|
47 |
+ |
public boolean isEnabled() { |
|
48 |
+ |
return mTextBox.isEnabled(); |
|
49 |
+ |
} |
|
50 |
+ |
|
|
51 |
+ |
@Override |
|
52 |
+ |
public void setEnabled( boolean pEnabled ) { |
|
53 |
+ |
mTextBox.setEnabled( pEnabled ); |
|
54 |
+ |
} |
|
55 |
+ |
} |