|
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.ComplexPanel
asquare.gwt.tk.client.ui.CComplexPanel
asquare.gwt.tk.client.ui.DropDownPanel
public class DropDownPanel
A panel that consists of a hideable content DIV and an optional header DIV.
By default, the user can click the header to show/hide the content.
The panel is closed initially. It can be opened & closed with
setOpen(boolean).
Usage Notes
width:1px will cancel white-space:nowrap in IE6. to prevent line wrapping in the header.default. The cursor CSS will be applied as soon as the cursor is moved.
| Nested Class Summary | |
|---|---|
static class |
DropDownPanel.OpenerController
|
| Field Summary | |
|---|---|
static String |
PROPERTY_INTERACTIVE
|
static String |
PROPERTY_OPEN
|
| Constructor Summary | |
|---|---|
DropDownPanel()
Constructs an empty panel. |
|
DropDownPanel(Widget w,
String text,
boolean asHTML)
Constructs a new panel, adding a widget to the content area and optionally setting the header. |
|
| Method Summary | |
|---|---|
void |
add(Widget w)
Adds a widget to the panel. |
void |
addDropDownListener(DropDownListener listener)
Add a listener to be notified when the content DIV is shown/hidden. |
protected List |
createHeaderControllers()
|
boolean |
hasHeader()
Has the header been specified? |
boolean |
isInteractive()
Will clicking in the header will toggle the content DIV? |
boolean |
isOpen()
Is the content DIV currently visible? |
boolean |
remove(Widget w)
|
void |
removeDropDownListener(DropDownListener listener)
|
void |
setHeaderText(String text,
boolean asHTML)
Sets the text in the header DIV. |
void |
setInteractive(boolean interactive)
Sets whether clicking in the header will toggle the content DIV. |
void |
setOpen(boolean open)
Sets the visibility of the content DIV. |
void |
toggleOpen()
Toggles the visibility of the content DIV. |
| Methods inherited from class asquare.gwt.tk.client.ui.CComplexPanel |
|---|
addController, createControllers, getController, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeController, setControllers, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, getChildren, insert, iterator |
| 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, 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 |
| Field Detail |
|---|
public static final String PROPERTY_OPEN
public static final String PROPERTY_INTERACTIVE
| Constructor Detail |
|---|
public DropDownPanel()
add(Widget) and setHeaderText(String, boolean).
public DropDownPanel(Widget w,
String text,
boolean asHTML)
w - the widget to be added, or nulltext - the header text associated with this widget, or nullasHTML - true to treat the specified text as HTML.
Ignored if text is null.| Method Detail |
|---|
protected List createHeaderControllers()
public void addDropDownListener(DropDownListener listener)
public void removeDropDownListener(DropDownListener listener)
public void add(Widget w)
add in interface HasWidgetsadd in class Panelw - the widget to be addedpublic boolean hasHeader()
public void setHeaderText(String text,
boolean asHTML)
text - the text to be associated with it, or null to remove the headerasHTML - true to treat the specified text as HTMLpublic boolean remove(Widget w)
remove in interface HasWidgetsremove in class ComplexPanelpublic void setOpen(boolean open)
open - true to show the content DIVpublic boolean isOpen()
public void toggleOpen()
public boolean isInteractive()
public void setInteractive(boolean interactive)
interactive - true to enable header click processing
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||