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

Java Tab类代码示例

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

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



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

示例1: ControlTabSet

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public ControlTabSet(Set<Feature> initialFeatures,boolean isSelectionEnabled,VersionManagement versionManagement, MarkerManagement markerManagement){
	super();

	pointOfInterest = new MarkerControlDynamicForm(initialFeatures,
			MarkerType.POINT_OF_INTEREST,
			versionManagement, markerManagement);
	overview = new MarkerControlDynamicForm(initialFeatures,
			MarkerType.OVERVIEW,
			versionManagement, markerManagement);

	pointOfInterestTab = new Tab("Interessante Punkte");
	pointOfInterestTab.setPane(pointOfInterest);

	overviewTab = new Tab("Übersichtsmarkierungen");
	overviewTab.setPane(overview);
	if(!isSelectionEnabled) {
		pointOfInterest.setDisabled(true);
		overview.setDisabled(true);
	}
	this.addTab(pointOfInterestTab);
	this.addTab(overviewTab);
}
 
开发者ID:UKPLab,项目名称:naacl-bea2016-writing-study,代码行数:23,代码来源:ControlTabSet.java


示例2: GeneralItemDetailEdit

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public GeneralItemDetailEdit(Tab mapTab) {
	this.mapTab = mapTab;
	createEditButton();
	createButtonLayout(saveButton);
	createBasicMetadataEditor();


	HLayout layout = new HLayout();
	layout.addMember(stack);
       stack.setShowResizeBar(true);

       layout.addMember(editor);
	
	setAlign(Alignment.LEFT);
	// setBorder("1px dashed blue");
	
	
	addMember(layout);
	addMember(buttonLayout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:21,代码来源:GeneralItemDetailEdit.java


示例3: ProximityDependencyEditor

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public ProximityDependencyEditor(Tab mapTab) {
		this.mapTab = mapTab;
		createRadiusTextEdit();
		createLatTextEdit();
		createLngTextEdit();
		setPadding(10);
        radiusTextItem.addChangedHandler(new ChangedHandler() {
            @Override
            public void onChanged(ChangedEvent event) {
                try {
                int value = Integer.parseInt(""+event.getValue());
                if (circle != null) circle.setRadius(value);
                onSave();
                } catch (Exception e) {
                }
            }
        });
		form = new DynamicForm();
		form.setFields(radiusTextItem, latTextItem, lngTextItem);
//		addMember(radiusSlider);
		addMember(form);
		
//		setWidth100();
		ProximityDependencyEditor.this.setVisibility(Visibility.HIDDEN);

	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:27,代码来源:ProximityDependencyEditor.java


示例4: AdvancedDependenciesEditor

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public AdvancedDependenciesEditor(long gameId, Tab mapTab) {
		this.gameId= gameId;
		actionForm = new ActionForm(true, gameId){
			public void onSave() {
				super.onSave();
				depTreeGrid.update();
			}
		};
		proxDep = new ProximityDependencyEditor(mapTab) {
			public void onSave() {
				super.onSave();
				if (depTreeGrid != null) depTreeGrid.update();
			}
		};
		depTreeGrid = new DependencyGrid(actionForm, proxDep, timeEditor);
		addMember(fromDep);
		// addMember(moveControls);
		addMember(depTreeGrid);
		addMember(actionForm);
		addMember(proxDep);
		addMember(timeEditor);
		setHeight("*");
//		setBorder("2px solid blue");
		
	}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:26,代码来源:AdvancedDependenciesEditor.java


示例5: addSearchMethod

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public void addSearchMethod(GeometricSearchMethod searchMethod, int position) {
	if (searchMethod == null) {
		throw new IllegalArgumentException("Please provide a searchMethod.");
	}

	if (!searchMethods.contains(searchMethod)) {
		searchMethods.add(searchMethod);
		Tab tab = new Tab(searchMethod.getTitle());
		tab.setPane(searchMethod.getSearchCanvas());
		if (position > -1) {
			tabs.addTab(tab, position);
		} else {
			tabs.addTab(tab);
		}
		searchMethod.initialize(mapWidget, this);
	}
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:18,代码来源:GeometricSearchPanel.java


示例6: addSourceTab

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的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


示例7: getManualDetails

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的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


示例8: viewGeneralItem

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public void viewGeneralItem(final GeneralItem gi, final boolean canEdit, final Tab mapTab) {
	eraseView();
	view = new GeneralItemDetailView(canEdit) {
		protected void editClick() {
			editGeneralItem(gi, mapTab);
		}
	};
	view.loadGeneralItem(gi);
	addMember(view);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:11,代码来源:GeneralItemDetail.java


示例9: editGeneralItem

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public void editGeneralItem(final GeneralItem gi, final Tab mapTab) {
	eraseView();

	edit = new GeneralItemDetailEdit(mapTab){
		protected boolean saveClick() {
			boolean res = super.saveClick();
			if (res) viewGeneralItem(gi, true, mapTab);
			return res;
		}
	};
	edit.loadGeneralItem(gi);
	addMember(edit);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:14,代码来源:GeneralItemDetail.java


示例10: DependencyEditor

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public DependencyEditor(long gameId, Tab mapTab) {
	this.mapTab = mapTab;
	this.gameId = gameId;
	createAdvDepButton();
	createShowCountDownForm();
	simpleEditor = new ActionForm(false, gameId);
	simpleEditor.showActionForm();
	addMember(simpleEditor);
	addMember(countDownForm);
	createButtonLayout(advButton);
	addMember(buttonLayout);
}
 
开发者ID:WELTEN,项目名称:dojo-ibl,代码行数:13,代码来源:DependencyEditor.java


示例11: removeAll

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
/**
 * Remove all data from the widget.
 */
public void removeAll() {
	for (Tab tab : tabset.getTabs()) {
		tabset.removeTab(tab);
	}
	setEmpty();
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:10,代码来源:MultiFeatureListGrid.java


示例12: RibbonTabLayout

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的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


示例13: EditingManual

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
public EditingManual() {
	Tab tab1 = new Tab();
	tab1.setTitle("Create a new feature");
	HTMLPane pane1 = new HTMLPane();
	pane1.setContentsURL(CREATE_FEATURE_PAGE);
	tab1.setPane(pane1);
	tab1.setCanClose(false);
	addTab(tab1);

	Tab tab2 = new Tab();
	tab2.setTitle("Edit a feature");
	HTMLPane pane2 = new HTMLPane();
	pane2.setContentsURL(EDIT_FEATURE_PAGE);
	tab2.setPane(pane2);
	tab2.setCanClose(false);
	addTab(tab2);

	Tab tab3 = new Tab();
	tab3.setTitle("Delete a feature");
	HTMLPane pane3 = new HTMLPane();
	pane3.setContentsURL(DELETE_FEATURE_PAGE);
	tab3.setPane(pane3);
	tab3.setCanClose(false);
	addTab(tab3);

	Tab tab4 = new Tab();
	tab4.setTitle("Create donut polygon");
	HTMLPane pane4 = new HTMLPane();
	pane4.setContentsURL(DONUT_PAGE);
	tab4.setPane(pane4);
	tab4.setCanClose(false);
	addTab(tab4);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:34,代码来源:EditingManual.java


示例14: MainLayout

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的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


示例15: buildTasksTab

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
protected void buildTasksTab() {
    tasksTab = new Tab("Tasks", SchedulerImages.instance.monitoring_16().getSafeUri().asString());

    tasksTab.setPane(tasksPane);
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:6,代码来源:SchedulerPage.java


示例16: buildVisuTab

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的package包/类
protected void buildVisuTab() {
    visuTab = new Tab("Visualization", ImagesUnbundled.PA_16);
    visuTab.setPane(this.visuPane);
}
 
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:5,代码来源:SchedulerPage.java


示例17: showFiles

import com.smartgwt.client.widgets.tab.Tab; //导入依赖的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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java User类代码示例发布时间:2022-05-23
下一篇:
Java StyleSheet类代码示例发布时间: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