本文整理汇总了Java中org.gwtbootstrap3.client.ui.TabListItem类的典型用法代码示例。如果您正苦于以下问题:Java TabListItem类的具体用法?Java TabListItem怎么用?Java TabListItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TabListItem类属于org.gwtbootstrap3.client.ui包,在下文中一共展示了TabListItem类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addItem
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
public void addItem(TabPanelEntry tab) {
tab.setInDropdown(true);
contents.add(tab);
allContentTabs.add(tab);
TabListItem tabWidget = tab.getTabWidget();
activatableWidgets.add(tabWidget);
tabHandlerRegistrations.put(tab,
tabWidget.addShowHandler(individualTabShowHandler));
tabHandlerRegistrations.put(tab,
tabWidget.addShownHandler(individualTabShownHandler));
tabHandlerRegistrations.put(tab,
tabWidget.addShownHandler(new TabShownHandler() {
@Override
public void onShown(TabShownEvent event) {
DropDownTab.this.getParent().addStyleName(Styles.ACTIVE);
}
}));
add(tabWidget);
tabContent.add(tab.getContentPane());
}
开发者ID:kiegroup,项目名称:appformer,代码行数:24,代码来源:TabPanelWithDropdowns.java
示例2: addRendererItem
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
@Override
public void addRendererItem(final String renderer) {
final TabPane pane = new TabPane();
final TabListItem tabListItem = new TabListItem();
tabListItem.setDataTargetWidget(pane);
tabListItem.setText(renderer);
tabListItem.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
selectedTab = tabListItem;
presenter.onRendererSelected();
}
});
tabContent.add(pane);
navTabs.add(tabListItem);
}
开发者ID:kiegroup,项目名称:appformer,代码行数:18,代码来源:RendererSelectorTabListView.java
示例3: findEntryForTabWidget
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
/**
* Finds the TabPanelEntry associated with the given tab widget, even if it's nested in a DropdownTab.
*/
public TabPanelEntry findEntryForTabWidget(final TabListItem tabWidget) {
for (TabPanelEntry entry : allContentTabs) {
if (entry.getTabWidget() == tabWidget) {
return entry;
}
}
return null;
}
开发者ID:kiegroup,项目名称:appformer,代码行数:12,代码来源:TabPanelWithDropdowns.java
示例4: selectTabIndex
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
public void selectTabIndex(int index) {
final TabListItem item = (TabListItem) tabBar.getWidget(index);
if (item != null) {
item.showTab();
}
}
开发者ID:kiegroup,项目名称:appformer,代码行数:7,代码来源:TabPanelWithDropdowns.java
示例5: setSelectedRendererIndex
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
@Override
public void setSelectedRendererIndex(int index) {
TabListItem tabListItem = (TabListItem) navTabs.getWidget(index);
tabListItem.setActive(true);
tabListItem.showTab();
}
开发者ID:kiegroup,项目名称:appformer,代码行数:7,代码来源:RendererSelectorTabListView.java
示例6: TabShownEvent
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
public TabShownEvent(final TabListItem tab, final Event nativeEvent) {
this.tab = tab;
this.nativeEvent = nativeEvent;
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:TabShownEvent.java
示例7: getTab
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
@Override
public TabListItem getTab() {
return tab;
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:TabShownEvent.java
示例8: TabShowEvent
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
public TabShowEvent(final TabListItem tab, final Event nativeEvent) {
this.tab = tab;
this.nativeEvent = nativeEvent;
}
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:5,代码来源:TabShowEvent.java
示例9: OverviewWidgetViewImpl
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
@Inject
public OverviewWidgetViewImpl(final MetadataWidget metadata,
final DiscussionWidgetPresenter discussionArea,
final VersionHistoryPresenter versionHistory) {
this.metadata = metadata;
this.discussionArea = discussionArea;
this.versionHistory = versionHistory;
versionHistory.setOnCurrentVersionRefreshed(new ParameterizedCommand<VersionRecord>() {
@Override
public void execute(VersionRecord record) {
metadata.setNote(record.comment());
setLastModified(record.author(),
record.date());
}
});
initWidget(uiBinder.createAndBindUi(this));
final TabPane versionHistoryPane = new TabPane() {{
add(versionHistory);
}};
final TabPane metadataPane = new TabPane() {{
add(metadata);
}};
tabContent.add(versionHistoryPane);
tabContent.add(metadataPane);
navTabs.add(new TabListItem(MetadataConstants.INSTANCE.VersionHistory()) {{
addStyleName("uf-dropdown-tab-list-item");
setDataTargetWidget(versionHistoryPane);
setActive(true);
}});
navTabs.add(new TabListItem(MetadataConstants.INSTANCE.Metadata()) {{
addStyleName("uf-dropdown-tab-list-item");
setDataTargetWidget(metadataPane);
}});
navTabs.getElement().setAttribute("data-uf-lock",
"false");
versionHistoryPane.setActive(true);
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:49,代码来源:OverviewWidgetViewImpl.java
示例10: showVersionHistory
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
@Override
public void showVersionHistory() {
((TabListItem) navTabs.getWidget(VERSION_HISTORY_TAB)).setActive(true);
}
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:5,代码来源:OverviewWidgetViewImpl.java
示例11: getTab
import org.gwtbootstrap3.client.ui.TabListItem; //导入依赖的package包/类
TabListItem getTab();
开发者ID:gwtbootstrap3,项目名称:gwtbootstrap3,代码行数:2,代码来源:TabEvent.java
注:本文中的org.gwtbootstrap3.client.ui.TabListItem类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论