public class Tab
extends java.lang.Object
| Constructor and Description |
|---|
Tab() |
Tab(java.lang.String title) |
Tab(java.lang.String title,
com.google.gwt.user.client.ui.Image icon) |
Tab(java.lang.String title,
com.google.gwt.resources.client.ImageResource iconResource) |
Tab(java.lang.String title,
java.lang.String icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
_destroyTabSetItem() |
com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem |
_ensureTabSetItem(TabSet tabSet) |
com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem |
_getTabSetItem() |
void |
_setPane(Canvas pane) |
void |
_setTabSet(TabSet tabSet) |
void |
clearBadge() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBadge() |
boolean |
getDisabled() |
com.google.gwt.user.client.ui.Image |
getIcon() |
java.lang.Boolean |
getIconPrerendered()
Whether the tab icon is prerendered.
|
java.lang.String |
getID() |
Canvas |
getPane() |
TabSet |
getTabSet() |
java.lang.String |
getTitle() |
void |
removeBadge() |
void |
setBadge(java.lang.String value) |
void |
setDisabled(boolean disabled) |
void |
setDisabled(java.lang.Boolean disabled) |
void |
setIcon(com.google.gwt.user.client.ui.Image icon) |
void |
setIconPrerendered(java.lang.Boolean iconPrerendered) |
void |
setID(java.lang.String id) |
void |
setPane(Canvas pane) |
void |
setTitle(java.lang.String title) |
public Tab()
public Tab(java.lang.String title)
public Tab(java.lang.String title,
java.lang.String icon)
public Tab(java.lang.String title,
com.google.gwt.resources.client.ImageResource iconResource)
public Tab(java.lang.String title,
com.google.gwt.user.client.ui.Image icon)
@SGWTInternal public com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem _ensureTabSetItem(TabSet tabSet)
@SGWTInternal public com.smartgwt.mobile.client.internal.widgets.tab.TabSetItem _getTabSetItem()
@SGWTInternal public void _destroyTabSetItem()
public final TabSet getTabSet()
@SGWTInternal public void _setTabSet(TabSet tabSet)
@SGWTInternal public void _setPane(Canvas pane)
public final Canvas getPane()
public void setPane(Canvas pane)
public final java.lang.String getID()
public void setID(java.lang.String id)
public final boolean getDisabled()
public void setDisabled(java.lang.Boolean disabled)
public void setDisabled(boolean disabled)
public final java.lang.String getBadge()
public void setBadge(java.lang.String value)
public void clearBadge()
public void removeBadge()
public final com.google.gwt.user.client.ui.Image getIcon()
public void setIcon(com.google.gwt.user.client.ui.Image icon)
public final java.lang.Boolean getIconPrerendered()
SmartGWT.mobile makes use of WebKit image masking to provide a basic tab icon masking effect; however, it is currently not possible in HTML and CSS only to replicate the sophisticated image processing operations that mobile operating systems apply when rendering tab icons. For a better user experience, it may be preferable to prerender the icon for a platform and use the prerendered icon instead.
Setting the iconPrerendered attribute to Boolean.TRUE makes SmartGWT.mobile
assume that the icon is a prerendered sprite image. SmartGWT.mobile will not apply any effect to the image,
but will instead resize the image to 32px x 64px. The top 32px x 32px area is used for
the nonselected icon and the bottom 32px x 32px area is used for the selected icon.
nullpublic void setIconPrerendered(java.lang.Boolean iconPrerendered)
public final java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object