|
||||||||||
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.Composite
net.pleso.framework.client.ui.controls.tabcontrol.TabBar
public class TabBar
A horizontal bar of folder-style tabs, most commonly used as part of a
TabPanel
.
Modified for "Close tab" button functionality.
Constructor Summary | |
---|---|
TabBar()
Creates an empty tab bar. |
Method Summary | |
---|---|
void |
addTab(java.lang.String text)
Adds a new tab with the specified text. |
void |
addTab(java.lang.String text,
boolean asHTML)
Adds a new tab with the specified text. |
void |
addTabListener(com.google.gwt.user.client.ui.TabListener listener)
|
void |
clickCloseButton(TabItemWidget item)
Calls when user click "close" button |
void |
clickLabel(TabItemWidget item)
Calls when user click label with caption |
RemoveTabListener |
getRemoveTabListener()
|
int |
getSelectedTab()
Gets the tab that is currently selected. |
int |
getTabCount()
Gets the number of tabs present. |
java.lang.String |
getTabHTML(int index)
Gets the specified tab's HTML. |
void |
insertTab(java.lang.String text,
boolean asHTML,
int beforeIndex)
Inserts a new tab at the specified index. |
void |
insertTab(java.lang.String text,
int beforeIndex)
Inserts a new tab at the specified index. |
void |
removeTab(int index)
Removes the tab at the specified index. |
void |
removeTabListener(com.google.gwt.user.client.ui.TabListener listener)
|
boolean |
selectTab(int index)
Programmatically selects the specified tab. |
void |
setRemoveTabListener(RemoveTabListener removeTabListener)
Sets RemoveTabListener. |
boolean |
setTabHTML(int index,
java.lang.String text)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getElement |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
getParent, isAttached, onBrowserEvent, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TabBar()
Method Detail |
---|
public void addTab(java.lang.String text)
text
- the new tab's textpublic void addTab(java.lang.String text, boolean asHTML)
text
- the new tab's textasHTML
- true
to treat the specified text as htmlpublic void addTabListener(com.google.gwt.user.client.ui.TabListener listener)
addTabListener
in interface com.google.gwt.user.client.ui.SourcesTabEvents
public int getSelectedTab()
public int getTabCount()
public java.lang.String getTabHTML(int index)
index
- the index of the tab whose HTML is to be retrieved
public boolean setTabHTML(int index, java.lang.String text)
public void insertTab(java.lang.String text, boolean asHTML, int beforeIndex)
text
- the new tab's textasHTML
- true
to treat the specified text as HTMLbeforeIndex
- the index before which this tab will be insertedpublic void insertTab(java.lang.String text, int beforeIndex)
text
- the new tab's textbeforeIndex
- the index before which this tab will be insertedpublic void removeTab(int index)
index
- the index of the tab to be removedpublic void removeTabListener(com.google.gwt.user.client.ui.TabListener listener)
removeTabListener
in interface com.google.gwt.user.client.ui.SourcesTabEvents
public boolean selectTab(int index)
index
- the index of the tab to be selected.
true
if successful, false
if the
change is denied by the TabListener
.public RemoveTabListener getRemoveTabListener()
public void setRemoveTabListener(RemoveTabListener removeTabListener)
removeTabListener
- public void clickCloseButton(TabItemWidget item)
TabItemWidgetEventListener
clickCloseButton
in interface TabItemWidgetEventListener
item
- TabItemWidget
container of this "close" buttonpublic void clickLabel(TabItemWidget item)
TabItemWidgetEventListener
clickLabel
in interface TabItemWidgetEventListener
item
- TabItemWidget
container of this label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |