litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/IFocusWidget.java
|
@@ -1,21 +1,21 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.core.util.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.event.dom.client.*; |
7 |
|
- |
import com.google.gwt.event.shared.*; |
8 |
|
- |
|
9 |
|
- |
public interface IFocusWidget extends Enableable { |
10 |
|
- |
public HandlerRegistration addFocusHandler( FocusHandler handler ); |
11 |
|
- |
|
12 |
|
- |
public HandlerRegistration addBlurHandler( BlurHandler handler ); |
13 |
|
- |
|
14 |
|
- |
/** |
15 |
|
- |
* Explicitly focus/unfocus this widget. Only one widget can have focus at a |
16 |
|
- |
* time, and the widget that does will receive all keyboard events. |
17 |
|
- |
* |
18 |
|
- |
* @param focused whether this widget should take focus or release it |
19 |
|
- |
*/ |
20 |
|
- |
public void setFocus( boolean focused ); |
21 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.core.util.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.event.dom.client.*; |
|
7 |
+ |
import com.google.gwt.event.shared.*; |
|
8 |
+ |
|
|
9 |
+ |
public interface IFocusWidget extends Enableable { |
|
10 |
+ |
public HandlerRegistration addFocusHandler( FocusHandler handler ); |
|
11 |
+ |
|
|
12 |
+ |
public HandlerRegistration addBlurHandler( BlurHandler handler ); |
|
13 |
+ |
|
|
14 |
+ |
/** |
|
15 |
+ |
* Explicitly focus/unfocus this widget. Only one widget can have focus at a |
|
16 |
+ |
* time, and the widget that does will receive all keyboard events. |
|
17 |
+ |
* |
|
18 |
+ |
* @param focused whether this widget should take focus or release it |
|
19 |
+ |
*/ |
|
20 |
+ |
public void setFocus( boolean focused ); |
|
21 |
+ |
} |