|
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.BasicPanel
public class BasicPanel
A barebones ComplexPanel
which allows specification of the root element and display style of
added children.
| Field Summary | |
|---|---|
static String |
DISPLAY_BLOCK
Specifies display:block style for added children. |
static String |
DISPLAY_DEFAULT
Do not specify a display style for added children. |
static String |
DISPLAY_INHERIT
Specifies display:inherit style for added children. |
static String |
DISPLAY_INLINE
Specifies display:inline style for added children. |
static String |
ELEMENT_DEFAULT
The default element ( DIV), if no element is specified. |
| Constructor Summary | |
|---|---|
BasicPanel()
Constructs a panel based on a DIV element and default children
display property. |
|
BasicPanel(Element element)
Constructs a panel based on the specified element and the default display style. |
|
BasicPanel(Element element,
String childrenDisplay)
Constructs a panel based on the specified element and display style. |
|
BasicPanel(String element)
Constructs a panel based on the specified element and the default display style. |
|
BasicPanel(String element,
String childrenDisplay)
Constructs a panel based on the specified element and display style. |
|
| Method Summary | |
|---|---|
void |
add(Widget w)
Adds a widget to this panel. |
String |
getChildrenDisplay()
Gets the display style value which will be applied to added children. |
Widget |
getWidget(int index)
|
int |
getWidgetCount()
Get the number of widgets in this panel. |
int |
getWidgetIndex(Widget child)
|
void |
insert(Widget w,
int beforeIndex)
Inserts a widget at the specified index. |
boolean |
remove(int index)
|
void |
setChildrenDisplay(String childrenDisplay)
Sets the display style value which will be applied to added children. |
void |
setId(String id)
Sets a unique id for referencing this specific panel. |
| 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, remove |
| 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 ELEMENT_DEFAULT
DIV), if no element is specified.
public static final String DISPLAY_DEFAULT
public static final String DISPLAY_BLOCK
display:block style for added children.
public static final String DISPLAY_INLINE
display:inline style for added children.
public static final String DISPLAY_INHERIT
display:inherit style for added children.
By default the display style is not inherited.
| Constructor Detail |
|---|
public BasicPanel()
DIV element and default children
display property.
public BasicPanel(Element element)
element - a DOM elementpublic BasicPanel(String element)
element - a html element tag
public BasicPanel(String element,
String childrenDisplay)
element - a html element tagchildrenDisplay - a css display style value to apply
to added children
public BasicPanel(Element element,
String childrenDisplay)
element - a DOM elementchildrenDisplay - a css display style value to apply
to added children| Method Detail |
|---|
public String getChildrenDisplay()
display style value or null if none specifiedpublic void setChildrenDisplay(String childrenDisplay)
childrenDisplay - a css display style value to apply
to added childrenpublic Widget getWidget(int index)
getWidget in interface IndexedPanelpublic int getWidgetIndex(Widget child)
getWidgetIndex in interface IndexedPanelpublic void add(Widget w)
add in interface HasWidgetsadd in class Panel
public void insert(Widget w,
int beforeIndex)
w - a widgetbeforeIndex - the index before which w will be
inserted
IndexOutOfBoundsException - if beforeIndex is less
than 0 or greater than the current widget countpublic boolean remove(int index)
remove in interface IndexedPanelpublic int getWidgetCount()
getWidgetCount in interface IndexedPanelpublic void setId(String id)
id - a unique idDomUtil.setId(com.google.gwt.user.client.ui.UIObject, String)
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||