java.lang.Object | ||||
↳ | com.google.gwt.user.client.ui.UIObject | |||
↳ | com.google.gwt.user.client.ui.Widget | |||
↳ | com.google.gwt.user.client.ui.Composite | |||
↳ | com.google.gwt.user.client.ui.CaptionPanel |
A panel that wraps its contents in a border with a caption that appears in the upper left corner of the border. This is an implementation of the fieldset HTML element.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CaptionPanel.CaptionPanelImpl | Implementation class without browser-specific hacks. | ||||||||||
CaptionPanel.CaptionPanelImplMozilla | Implementation class that handles Mozilla rendering issues. | ||||||||||
CaptionPanel.CaptionPanelImplSafari | Implementation class that handles Safari rendering issues. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a CaptionPanel with an empty caption.
| |||||||||||
Constructs a CaptionPanel with specified caption text.
| |||||||||||
Constructs a CaptionPanel with specified caption text.
| |||||||||||
Constructs a CaptionPanel having the specified caption.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a child widget.
| |||||||||||
Removes the content widget.
| |||||||||||
Returns the caption as HTML; note that if the caption was previously set
using
setCaptionText(String) , the return value is undefined. | |||||||||||
Returns the caption as text; note that if the caption was previously set
using
setCaptionHTML(String) , the return value is undefined. | |||||||||||
Accesses the content widget, if present.
| |||||||||||
Iterates over the singular content widget, if present.
| |||||||||||
Removes the specified widget, although in practice the specified widget
must be the content widget.
| |||||||||||
Sets the caption for the panel using an HTML fragment.
| |||||||||||
Sets the caption for the panel using a SafeHtml string.
| |||||||||||
Sets the caption for the panel using text that will be automatically
escaped.
| |||||||||||
Sets or replaces the content widget within the CaptionPanel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Composite
| |||||||||||
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasWidgets
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
| |||||||||||
From interface
java.lang.Iterable
|
Constructs a CaptionPanel with an empty caption.
Constructs a CaptionPanel with specified caption text.
caption | the text of the caption |
---|
Constructs a CaptionPanel with specified caption text.
captionText | the text of the caption, which is automatically escaped |
---|
Constructs a CaptionPanel having the specified caption.
caption | the caption to display |
---|---|
asHTML | if true , the caption param is
interpreted as HTML; otherwise, caption is
treated as text and automatically escaped
|
Removes the content widget.
Returns the caption as HTML; note that if the caption was previously set
using setCaptionText(String)
, the return value is undefined.
Returns the caption as text; note that if the caption was previously set
using setCaptionHTML(String)
, the return value is undefined.
Accesses the content widget, if present.
setContentWidget(Widget)
Removes the specified widget, although in practice the specified widget must be the content widget.
w | the widget to remove; note that anything other than the Widget
returned by getContentWidget() will have no effect
|
---|
true
if the widget was present
Sets the caption for the panel using an HTML fragment. Pass in empty string to remove the caption completely, leaving just the unadorned panel.
html | HTML for the new caption; must not be null
|
---|
Sets the caption for the panel using a SafeHtml string.
html | HTML for the new caption; must not be null
|
---|
Sets the caption for the panel using text that will be automatically escaped. Pass in empty string to remove the caption completely, leaving just the unadorned panel.
text | text for the new caption; must not be null
|
---|
Sets or replaces the content widget within the CaptionPanel.
w | the content widget to be set |
---|