• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TabSet类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.smartgwt.client.widgets.tab.TabSet的典型用法代码示例。如果您正苦于以下问题:Java TabSet类的具体用法?Java TabSet怎么用?Java TabSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TabSet类属于com.smartgwt.client.widgets.tab包,在下文中一共展示了TabSet类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: GeometricSearchPanel

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
/**
 * @param mapWidget map widget
 */
public GeometricSearchPanel(final MapWidget mapWidget) {
	super(mapWidget);
	selectionStyle = new ShapeStyle();
	selectionStyle.setFillColor("#FFFF00");
	selectionStyle.setFillOpacity(0.3f);
	selectionStyle.setStrokeColor("#B45F04");
	selectionStyle.setStrokeOpacity(0.9f);
	selectionStyle.setStrokeWidth(2f);

	this.mapWidget = mapWidget;
	this.setTitle(messages.geometricSearchWidgetTitle());
	VLayout layout = new VLayout(0);
	layout.setWidth100();
	tabs = new TabSet();
	tabs.setWidth(GsfLayout.geometricSearchPanelTabWidth);
	tabs.setHeight(GsfLayout.geometricSearchPanelTabHeight);
	layout.addMember(tabs);

	addChild(layout);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:24,代码来源:GeometricSearchPanel.java


示例2: MultiFeatureListGrid

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
public MultiFeatureListGrid(MapWidget map) {
	super();
	this.map = map;

	tabset = new TabSet();
	tabset.setWidth100();
	tabset.setHeight100();
	tabset.setOverflow(Overflow.HIDDEN);
	tabset.addCloseClickHandler(new CloseClickHandler() {

		public void onCloseClick(TabCloseClickEvent event) {
			setEmpty((tabset.getTabs().length == 1));
		}
	});
	this.addChild(tabset);

	empty = new Label(MESSAGES.multiFeatureListGridNoData());
	empty.setWidth100();
	empty.setAlign(Alignment.CENTER);
	empty.setPadding(15);
	this.addChild(empty);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:MultiFeatureListGrid.java


示例3: SearchPage

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
/**
 * Create a tab page with a search functionality.
 *
 * @param map The map for whom we are searching for features.
 * @param tabSet The set of tabs to whom this tab will be added. Also when a search is done, this tab-set is used to
 * make the tab with the feature grid visible.
 * @param featureGrid The actual feature grid instance from the second tab. This feature grid is used to display the
 * features that result from a search.
 */
public SearchPage(MapWidget map, final TabSet tabSet, FeatureListGrid featureGrid) {
	super("Search", map);

	// Create a SearchWidget, based upon a map's model:
	FeatureSearch searchWidget = new FeatureSearch(map.getMapModel(), true);

	// What to do when the result of a search comes in?
	// The DefaultSearchHandler will add all the features in the result to the given FeatureListGrid.
	searchWidget.addSearchHandler(new DefaultSearchHandler(featureGrid) {

		// After the features have been added to the FeatureListGrid, make sure the tab with the grid is visible:
		public void afterSearch() {
			tabSet.selectTab(1);
		}
	});

	// Limit the maximum number of features that a search may produce:
	searchWidget.setMaximumResultSize(20);
	mainLayout.addMember(searchWidget);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:30,代码来源:SearchPage.java


示例4: addSourceTab

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
private void addSourceTab(TabSet tabs, String content) {
	VLayout sourceLayout = new VLayout();
	HTMLPane tabSource = new HTMLPane();
	tabSource.setWidth100();
	tabSource.setHeight100();
	tabSource.setContents(
			HtmlBuilder.tagStyleHtmlContent(Html.Tag.PRE, "color:#000000;", JavaParser.parseJava(content)));
	tabSource.setContentsType(ContentsType.PAGE);

	sourceLayout.addMember(tabSource);

	String tabTitle = MESSAGES.generalJavaSource();
	int pos = tabTitle.lastIndexOf('/');
	tabTitle = tabTitle.substring(pos + 1);

	Tab tab = new Tab(tabTitle, "[ISOMORPHIC]/geomajas/example/image/silk/script_go.png");
	tab.setPane(sourceLayout);
	tabs.addTab(tab);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:20,代码来源:SamplePanel.java


示例5: getManualDetails

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
private void getManualDetails() {

        final TabSet tabSet = new TabSet();
        tabSet.setTabBarPosition(Side.TOP);
        tabSet.setTabBarAlign(Side.LEFT);
        tabSet.setWidth100();
        tabSet.setHeight100();

        Tab tabGuide = new Tab("Guide");
        tabGuide.setPane(new GuideHtmlPane());

        Tab tabFaq = new Tab("FAQ");
        //tabFaq.setPane(new FaqListGrid());
        tabFaq.setPane(new FaqHtmlPane());

        Tab tabContact = new Tab("Contact");
        Canvas tabPane3 = new Canvas();
        tabPane3.addChild(getContacts());
        tabContact.setPane(tabPane3);

        tabSet.addTab(tabGuide);
        tabSet.addTab(tabFaq);
        tabSet.addTab(tabContact);

        addMember(tabSet);
    }
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:27,代码来源:UserManual.java


示例6: createTabArea

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
private void createTabArea() {

        // layout to hold the tabset
        VLayout tabAreaLayout = new VLayout();
        tabAreaLayout.setAlign(Alignment.CENTER);
        tabAreaLayout.setWidth(WIDTH);
        tabAreaLayout.setHeight100();

        i_tabSet = new TabSet();
        i_tabSet.setTabBarPosition(Side.TOP);
        i_tabSet.setWidth(WIDTH);
        i_tabSet.setHeight(HEIGHT);

        i_tabLogin = new TabLogin();
        i_tabRequestNewPassword = new TabRequestNewPassword();
        i_tabRegister = new TabRegister();

        i_tabSet.addTab(i_tabLogin);
        i_tabSet.addTab(i_tabRegister);
        i_tabSet.addTab(i_tabRequestNewPassword);

        tabAreaLayout.addMember(i_tabSet);

        addMember(tabAreaLayout);

    }
 
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:27,代码来源:LoginPanel.java


示例7: RibbonTabLayout

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
/**
 * Create a ribbon bar widget using a back-end spring bean identifier and a map.
 * 
 * @param mapWidget
 *            The map widget onto which many actions in this ribbon apply.
 * @param application
 *            The name of the application wherein to search for the ribbon configuration.
 * @param beanId
 *            A unique spring bean identifier for a bean of class {@link RibbonInfo}. This configuration is then
 *            fetched and applied.
 * @param ribbonBarMembersMargin
 * 			  Sets the margin between the different 
 * 			  {@link org.geomajas.widget.utility.common.client.ribbon.RibbonGroup}s. 
 * 			  If null, the {@link GuwLayout#ribbonBarInternalMargin} is used.
 */
public RibbonTabLayout(final MapWidget mapWidget, String application, String beanId, 
		final Integer ribbonBarMembersMargin) {
	tabs = new TabSet();
	tabs.setPaneMargin(0);
	addMember(tabs);

	setOverflow(GuwLayout.ribbonBarOverflow);

	ClientConfigurationService.getApplicationWidgetInfo(application, beanId,
		new WidgetConfigurationCallback<RibbonInfo>() {

			public void execute(RibbonInfo ribbonInfo) {
				for (RibbonBarInfo tabInfo : ribbonInfo.getTabs()) {
					RibbonBarLayout ribbon = new RibbonBarLayout(tabInfo, mapWidget);
					if (null != ribbonBarMembersMargin) {
						ribbon.setMembersMargin(ribbonBarMembersMargin);
					} else {
						ribbon.setMembersMargin(GuwLayout.ribbonBarInternalMargin);
					}
					// if no custom style is set, replace smartgwt's default 'normal' with our default 'ribbon'.
					String styleName = !"normal".equals(getStyleName()) ? getStyleName() : "ribbon";
					ribbon.setStyleName(styleName);
					ribbon.setBorder("0px");
					Tab tab = new Tab(tabInfo.getTitle());
					tab.setTitleStyle(styleName + "TabTitle");
					tab.setPane(ribbon);
					tabs.addTab(tab);
					tabs.setStyleName(getStyleName() + "TabSet");
				}
			}
		});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:48,代码来源:RibbonTabLayout.java


示例8: MainLayout

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
/**
 * Initializes Layout and elements
 */
private MainLayout() {
	initEditor();

	setBorder(Constants.CLIENT.GUI.CSS_BORDER);
	menubar = new InViEditMenuBar(versionManagement,
			config.isShowLoad(), config.isShowSave(),
			config.getLogOutURL());
	menubar.setSize("100%", "30px");
	addMember(menubar);

	markersControls = new VLayout();
	markersControls.setSize("*", "100%");

	if (config.isShowAllMarkersDisplay() || config.isShowDismissedMarkersDisplay()) {
		TabSet markerDisplayTabSet = new TabSet();
		markerDisplayTabSet.setSize("100%", "*");

		Tab selectedMarkerTab = new Tab(Constants.CLIENT.GUI.SELECTED_MARKER_TAB_TITLE);
		selectedMarkerTab.setPane(selectedMarkers);
		markerDisplayTabSet.addTab(selectedMarkerTab);

		if (config.isShowAllMarkersDisplay()) {
			Tab allMarkerTab = new Tab(Constants.CLIENT.GUI.ALL_MARKER_TAB_TITLE);
			allMarkerTab.setPane(allMarkers);
			markerDisplayTabSet.addTab(allMarkerTab);
		}

		if (config.isShowDismissedMarkersDisplay()) {
			Tab dismissedMarkerTab = new Tab(Constants.CLIENT.GUI.DISMISSED_MARKER_TAB_TITLE);
			dismissedMarkerTab.setPane(dismissedMarkers);
			markerDisplayTabSet.addTab(dismissedMarkerTab);
		}

		markersControls.addMember(markerDisplayTabSet);
	} else {
		selectedMarkers.setBorder(Constants.CLIENT.GUI.CSS_BORDER);
		selectedMarkers.setSize("100%", "*");
		markersControls.addMember(selectedMarkers);
	}

	if (config.isFeatureSelectionEnabled()) {
		controls = new ControlTabSet(config.getEnabledFeatures(),
				config.isFeatureSelectionEnabled(),
				versionManagement, markerManagement);
		controls.setSize("100%", "30%");
		markersControls.addMember(controls);
	}

	editorMarkersControls = new HLayout();
	editorMarkersControls.setSize("100%", "*");
	editorMarkersControls.addMember(editor);
	editorMarkersControls.addMember(markersControls);
	addMember(editorMarkersControls);
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:58,代码来源:MainLayout.java


示例9: showFiles

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
private void showFiles(Map<String, String> fileContents) {
	Window sourceWindow = new Window();
	sourceWindow.setTitle(MESSAGES.generalSourceTitle());
	sourceWindow.setHeaderIcon(WidgetLayout.iconGeomajas, 16, 16);
	sourceWindow.setKeepInParentRect(true);
	sourceWindow.setWidth(640);
	sourceWindow.setHeight(480);
	sourceWindow.setTop(100);
	sourceWindow.setLeft(100);
	sourceWindow.setMembersMargin(5);
	sourceWindow.setCanDragReposition(true);
	sourceWindow.setCanDragResize(true);

	TabSet tabs = new TabSet();
	tabs.setTabBarPosition(Side.TOP);
	tabs.setWidth100();
	tabs.setHeight100();

	addSourceTab(tabs, fileContents.get(getSourceFileName()));

	for (Entry<String, String> entry : fileContents.entrySet()) {
		if (!entry.getKey().equals(getSourceFileName())) {
			VLayout resourceLayout = new VLayout();
			HTMLPane tabPane = new HTMLPane();
			tabPane.setWidth100();
			tabPane.setHeight100();
			tabPane.setContents("<pre style='color:#000000;'>" + XmlParser.parseXML(entry.getValue()) + "</pre>");
			tabPane.setContentsType(ContentsType.PAGE);

			Label resourceLabel = new Label(MESSAGES.generalFile() + ": <b>"
					+ entry.getKey() + "</b>");
			resourceLabel.setHeight(30);
			resourceLabel.setPadding(5);
			resourceLayout.addMember(resourceLabel);

			VLayout paneLayout = new VLayout();
			paneLayout.setBorder("1px solid #C0C0C0");
			paneLayout.addMember(tabPane);

			resourceLayout.addMember(paneLayout);

			String tabTitle = entry.getKey();
			int pos = tabTitle.lastIndexOf('/');
			tabTitle = tabTitle.substring(pos + 1);

			Tab tab = new Tab(tabTitle, "[ISOMORPHIC]/geomajas/example/image/silk/script_go.png");
			tab.setPane(resourceLayout);
			tabs.addTab(tab);
		}
	}

	sourceWindow.addItem(tabs);
	addChild(sourceWindow);
	sourceWindow.show();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:56,代码来源:SamplePanel.java


示例10: setPanel

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
public void setPanel(TabSet panel) {
    this.panel = panel;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:4,代码来源:DataPanel.java


示例11: getPanel

import com.smartgwt.client.widgets.tab.TabSet; //导入依赖的package包/类
public TabSet getPanel() {
    return this.panel;
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:4,代码来源:DataPanel.java



注:本文中的com.smartgwt.client.widgets.tab.TabSet类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Formatter类代码示例发布时间:2022-05-23
下一篇:
Java Suggestion类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap