|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.FocusPanel
public class FocusPanel
A simple panel that makes its contents focusable, and adds the ability to catch mouse and keyboard events.
| Constructor Summary | |
|---|---|
FocusPanel()
|
|
FocusPanel(Widget child)
|
|
| Method Summary | |
|---|---|
void |
addClickListener(ClickListener listener)
Adds a listener interface to receive click events. |
void |
addFocusListener(FocusListener listener)
Adds a listener interface to receive mouse events. |
void |
addKeyboardListener(KeyboardListener listener)
Adds a listener interface to receive keyboard events. |
void |
addMouseListener(MouseListener listener)
Adds a listener interface to receive mouse events. |
void |
addMouseWheelListener(MouseWheelListener listener)
Adds a listener interface to receive mouse events. |
int |
getTabIndex()
Gets the widget's position in the tab index. |
void |
onBrowserEvent(Event event)
Fired whenever a browser event is received. |
void |
removeClickListener(ClickListener listener)
Removes a previously added listener interface. |
void |
removeFocusListener(FocusListener listener)
Removes a previously added listener interface. |
void |
removeKeyboardListener(KeyboardListener listener)
Removes a previously added listener interface. |
void |
removeMouseListener(MouseListener listener)
Removes a previously added listener interface. |
void |
removeMouseWheelListener(MouseWheelListener listener)
Removes a previously added listener interface. |
void |
setAccessKey(char key)
Sets the widget's 'access key'. |
void |
setFocus(boolean focused)
Explicitly focus/unfocus this widget. |
void |
setTabIndex(int index)
Sets the widget's position in the tab index. |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, getContainerElement, getWidget, iterator, remove, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FocusPanel()
public FocusPanel(Widget child)
| Method Detail |
|---|
public void addClickListener(ClickListener listener)
SourcesClickEvents
addClickListener in interface SourcesClickEventslistener - the listener interface to addpublic void addFocusListener(FocusListener listener)
SourcesFocusEvents
addFocusListener in interface SourcesFocusEventslistener - the listener interface to addpublic void addKeyboardListener(KeyboardListener listener)
SourcesKeyboardEvents
addKeyboardListener in interface SourcesKeyboardEventslistener - the listener interface to addpublic void addMouseListener(MouseListener listener)
SourcesMouseEvents
addMouseListener in interface SourcesMouseEventslistener - the listener interface to addpublic void addMouseWheelListener(MouseWheelListener listener)
SourcesMouseWheelEvents
addMouseWheelListener in interface SourcesMouseWheelEventslistener - the listener interface to addpublic int getTabIndex()
HasFocus
getTabIndex in interface HasFocuspublic void onBrowserEvent(Event event)
EventListener
onBrowserEvent in interface EventListeneronBrowserEvent in class Widgetevent - the event receivedpublic void removeClickListener(ClickListener listener)
SourcesClickEvents
removeClickListener in interface SourcesClickEventslistener - the listener interface to removepublic void removeFocusListener(FocusListener listener)
SourcesFocusEvents
removeFocusListener in interface SourcesFocusEventslistener - the listener interface to removepublic void removeKeyboardListener(KeyboardListener listener)
SourcesKeyboardEvents
removeKeyboardListener in interface SourcesKeyboardEventslistener - the listener interface to removepublic void removeMouseListener(MouseListener listener)
SourcesMouseEvents
removeMouseListener in interface SourcesMouseEventslistener - the listener interface to removepublic void removeMouseWheelListener(MouseWheelListener listener)
SourcesMouseWheelEvents
removeMouseWheelListener in interface SourcesMouseWheelEventslistener - the listener interface to removepublic void setAccessKey(char key)
HasFocus
setAccessKey in interface HasFocuskey - the widget's access keypublic void setFocus(boolean focused)
HasFocus
setFocus in interface HasFocusfocused - whether this widget should take focus or release itpublic void setTabIndex(int index)
HasFocus-1 will cause this widget to
be removed from the tab order.
setTabIndex in interface HasFocusindex - the widget's tab index
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||