|
GWT Tk 0.2.3 | |||||||||
| 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.PopupPanel
asquare.gwt.tk.client.ui.CPopupPanel
public class CPopupPanel
Adds controller support to popup panels.
| Constructor Summary | |
|---|---|
CPopupPanel()
Creates a popup panel with auto hide disabled. |
|
CPopupPanel(boolean autoHide)
Creates a popup panel. |
|
| Method Summary | |
|---|---|
Widget |
addController(Controller controller)
Adds a controller to process events on this widget. |
protected List |
createControllers()
A factory method which gives a subclass the opportunity to override default controller creation. |
Controller |
getController(Class id)
Gets a controller with the specified id. |
protected void |
onAttach()
|
void |
onBrowserEvent(Event event)
|
protected void |
onDetach()
|
boolean |
onEventPreview(Event event)
|
Widget |
removeController(Controller controller)
Removes a controller |
void |
setControllers(List controllers)
Sets the controllers which will process events on this widget. |
void |
sinkEvents(int eventBits)
|
void |
unsinkEvents(int eventBits)
|
| Methods inherited from class com.google.gwt.user.client.ui.PopupPanel |
|---|
addPopupListener, getPopupLeft, getPopupTop, hide, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, remove, removePopupListener, setPopupPosition, show |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, getContainerElement, getWidget, iterator, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, clear, disown |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached, onLoad, removeFromParent |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CPopupPanel()
public CPopupPanel(boolean autoHide)
autoHide - true to hide the popup when the user clicks outside of it| Method Detail |
|---|
protected List createControllers()
nullpublic Widget addController(Controller controller)
ControllerSupport
addController in interface ControllerSupportcontroller - a controller to add
public Controller getController(Class id)
ControllerSupport
getController in interface ControllerSupportid - a Class identifying the type of controller to get
nullpublic Widget removeController(Controller controller)
ControllerSupport
removeController in interface ControllerSupportcontroller - a controller to remove
public void setControllers(List controllers)
ControllerSupportgetEventBits().
setControllers in interface ControllerSupportcontrollers - a list of 0 or more controllers, or nullpublic void sinkEvents(int eventBits)
sinkEvents in class UIObjectpublic void unsinkEvents(int eventBits)
unsinkEvents in class UIObjectprotected void onAttach()
onAttach in class Panelprotected void onDetach()
onDetach in class Panelpublic boolean onEventPreview(Event event)
onEventPreview in interface EventPreviewonEventPreview in class PopupPanelpublic void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class Widget
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||