|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.gwtbootstrap.client.ui.Tab
public class Tab
The tab widget for TabPanel
.
It's for UiBinder. Tab class provide easy syntax on UiBinder.
Example:
<b:TabPanel>
<b:Tab heading="Typically">
<b:Heading size="3">Typically Tab</b:Heading>
<b:Paragraph>
huhuhu hahha
</b:Paragraph>
</b:Tab>
<b:Tab heading="Custom">
<b:customTab>
<b:Image resources="{res.logo}"/>
</b:customTab>
<b:Heading size="3">CustomTab Tab</b:Heading>
</b:Tab>
</b:TabPanel>
}
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
HasWidgets.ForIsWidget |
Constructor Summary | |
---|---|
Tab()
Create tmpy tab |
Method Summary | |
---|---|
void |
add(Widget w)
Add widget to tab pane. |
HandlerRegistration |
addClickHandler(ClickHandler handler)
add ClickEventHandler to TabLink |
void |
addDecorate(Widget w)
|
void |
addStyle(Style style)
add TabLink style Adds the provided style to the widget. |
TabLink |
asTabLink()
Return TabLink |
Widget |
asWidget()
Tab as a TabLink |
void |
clear()
Clear tab pane children |
void |
fireEvent(GwtEvent<?> event)
fire TabLink event |
String |
getHeading()
Get Tab text |
protected TabPane |
getTabPane()
Get Container TabPane |
boolean |
isActive()
has active style name |
Iterator<Widget> |
iterator()
call ComplexPanel.iterator() |
boolean |
remove(Widget w)
call ComplexPanel.remove(Widget) |
void |
removeStyle(Style style)
remove TabLink style Removes the provided style from the widget. |
void |
setActive(boolean active)
Set tab active |
void |
setHeading(String text)
Set tab text |
void |
setHideOn(Device device)
Set TabLink and TabPane show on device. |
void |
setIcon(IconType type)
set TabLink icon type. |
void |
setIconSize(IconSize size)
Set TabLink icon size Sets the size of the icon. |
void |
setShowOn(Device device)
Set TabLink and TabPane show on device. |
void |
setStyle(Style style)
set TabLink style Replaces the widet's style with the provided one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tab()
Method Detail |
---|
public Widget asWidget()
asWidget
in interface IsWidget
protected TabPane getTabPane()
public TabLink asTabLink()
public void setActive(boolean active)
active
- public boolean isActive()
public void setHeading(String text)
text
- tab textpublic String getHeading()
public void add(Widget w)
add
in interface HasWidgets
public void clear()
clear
in interface HasWidgets
public Iterator<Widget> iterator()
ComplexPanel.iterator()
iterator
in interface HasWidgets
iterator
in interface Iterable<Widget>
public boolean remove(Widget w)
ComplexPanel.remove(Widget)
remove
in interface HasWidgets
ComplexPanel.remove(Widget)
resultpublic HandlerRegistration addClickHandler(ClickHandler handler)
addClickHandler
in interface HasClickHandlers
public void setIcon(IconType type)
setIcon
in interface HasIcon
public void setIconSize(IconSize size)
Default is DEFAULT.
setIconSize
in interface HasIcon
size
- the new size.public void setShowOn(Device device)
The widget is not shown on any other device.
Only works if responsive design is turned on!
setShowOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setHideOn(Device)
public void setHideOn(Device device)
The widget is not hidden on any other device.
Only works if responsive design is turned on!
setHideOn
in interface IsResponsive
Configurator.hasResponsiveDesign()
,
IsResponsive.setShowOn(Device)
public void setStyle(Style style)
setStyle
in interface HasStyle
style
- the style to be applied to the Widget.public void addStyle(Style style)
addStyle
in interface HasStyle
style
- the style to be added to the Widget.public void removeStyle(Style style)
removeStyle
in interface HasStyle
style
- the style to be removed from the Widget.public void fireEvent(GwtEvent<?> event)
fireEvent
in interface HasHandlers
@UiChild(limit=1, tagname="customTab") public void addDecorate(Widget w)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |