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

Java TabItem类代码示例

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

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



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

示例1: doStop

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public void doStop() {
 for (TabItem item : advanced.getItems()) {
	 final CIModel model = (CIModel)item.getData("model");

	 // Do a HTTP request..
	 RequestBuilder req = new RequestBuilder(RequestBuilder.GET, getStopURL(model));

	 try {
		 Info.display("Stop", "Send stop to " + model.getDisplayName());
		 req.sendRequest(null, new RequestCallback() {

			 public void onResponseReceived(Request request, Response response) {
				 Info.display("Stop", "COMPLETED. Stop sent to " + model.getDisplayName());
			 }

			 public void onError(Request arg0, Throwable arg1) {
				 Info.display("Stop", "FAILED. to stop " + model.getDisplayName());
			 }
		 });

	 } catch (RequestException e) {
		 Info.display("Stop", "ERROR. to stop " + model.getDisplayName());
	 } 
 }
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:26,代码来源:MDRStartWidget.java


示例2: deactivateTabIfNeeded

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
/**
 * This method performs a server-side async call to retrieve the value in the configuration 
 * deactivate the tab provided as parameter
 * 
 * @param gsManagerServiceRemote
 * @param tabToDeactivate
 */
public static void deactivateTabIfNeeded(GsUsersManagerRemoteServiceAsync gsManagerServiceRemote, final TabItem tabToDeactivate){
    
    AsyncCallback callback = new AsyncCallback() {
        public void onSuccess(Object result) {
            if(!(Boolean)result){
                tabToDeactivate.setEnabled(false);
                tabToDeactivate.setVisible(false);
            }
        }

        public void onFailure(Throwable caught) {
            
        }
      };
    gsManagerServiceRemote.activateUserGroupTabs(callback);
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:24,代码来源:TabUtils.java


示例3: addTab

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
@Override
public void addTab(String tabTitle, final Widget tabView) {
  final TabItem tabItem = new TabItem(tabTitle);
  tabItem.addListener(Events.Select, new Listener<ComponentEvent>() {
    @Override
    public void handleEvent(ComponentEvent be) {
      fixTabViewHeight(tabView, tabItem);
    }
  });
  tabItem.add(tabView);

  Window.addResizeHandler(new ResizeHandler() {
    @Override
    public void onResize(ResizeEvent event) {
      fixTabViewHeight(tabView, tabItem);
    }
  });
  fixTabViewHeight(tabView, tabItem);

  tabPanel.add(tabItem);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:22,代码来源:ContactView.java


示例4: ReportPanel

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public ReportPanel(){
	this.setHeaderVisible(false);
	TabPanel folder = new TabPanel(); 
	folder.setHeight(700);
	
	TabItem hourReportTabItem = new TabItem( myConstants.hour_report()); 
	TabItem departmentReportTabItem = new TabItem( myConstants.department_report()); 

	hourReportTabItem.add(new HourUserReport());
	departmentReportTabItem.add(new DepartmentReport());
	
	folder.add(hourReportTabItem);
	folder.add(departmentReportTabItem);
	
	add(folder);
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:17,代码来源:ReportPanel.java


示例5: onRender

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
@Override
protected void onRender(Element parent, int index) {
	ContentFile mdr = new ContentFile();
	String mdrConf = item.getParams().get("mdrConfig");
	if (mdrConf == null) {
		mdrConf = CMDBSession.get().getConfig().get(Config.OneCMDBWebService);
	}
	mdr.setPath(mdrConf);
	
	super.onRender(parent, index);
	setLayout(new FitLayout());

	TabPanel tab = new TabPanel();
	TabItem overviewItem = new TabItem("MDR Overview");
	overviewItem.setLayout(new FitLayout());
	overviewItem.add(new MDROverview(mdr, this.permissions));
	
	TabItem detailTab = new TabItem("MDR Details");
	detailTab.setLayout(new FitLayout());
	detailTab.add(detail);
	
	tab.add(overviewItem);
	tab.add(detailTab);
	
	add(tab);
	layout();
	
	if (getParent() instanceof Window) {
		 ((Window)getParent()).addListener(Events.BeforeClose, new Listener<BaseEvent>() {

			public void handleEvent(BaseEvent be) {
				HelpInfo.abort();
			}
		 });
	 }
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:37,代码来源:MDRViewWindow.java


示例6: doStart

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public void doStart() {
 for (TabItem item : advanced.getItems()) {
	 CIModel model = (CIModel)item.getData("model");
	 item.removeAll();
	 Frame f = new Frame();
	 item.add(f);
	 f.setUrl(getStartURL(model));
	 item.layout();
 }
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:11,代码来源:MDRStartWidget.java


示例7: onAttachTabWidgets

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
/**
 * On attach tab widgets.
 *
 * @param event
 *            the event
 */
private void onAttachTabWidgets(AppEvent event)
{
    if (tabWidget == null)
    {
        tabWidget = (TabWidget) event.getData();

        TabItem usersTabItem = new GsUsersTabItem(USERS_TAB_ITEM_ID, gsManagerServiceRemote,
                profilesManagerServiceRemote);
        tabWidget.add(usersTabItem);
    }
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:18,代码来源:UsersController.java


示例8: addTab

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void addTab(final String tabTitle, final Widget tabView, final Listener<ComponentEvent> listener) {

	final TabItem tabItem = new TabItem(tabTitle);
	tabItem.addListener(Events.Select, listener);
	tabItem.add(tabView);
	tabItem.setScrollMode(Scroll.AUTO);

	tabPanel.add(tabItem);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:14,代码来源:AbstractModelsAdminView.java


示例9: fixTabViewHeight

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
private void fixTabViewHeight(final Widget tabView, final TabItem tabItem) {
  Timer timer = new Timer() {
    @Override
    public void run() {
      if (tabView.isVisible() && tabItem == tabPanel.getSelectedItem()) {
        tabView.setHeight(tabItem.getHeight() + "px");
      }
    }
  };
  timer.schedule(200);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:12,代码来源:ContactView.java


示例10: onBind

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void onBind() {
	valueChanges = new ArrayList<ValueEvent>();
	tabItemsMap = new HashMap<Integer, TabItem>();
	activePhaseRequiredElements = new RequiredValueStateList();
	currentPhaseRequiredElements = new RequiredValueStateList();
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:11,代码来源:PhasesPresenter.java


示例11: enableSuccessorsTabs

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
/**
 * Enables the successors tabs of the current displayed phase.
 */
private void enableSuccessorsTabs() {

	for (final PhaseModelDTO successor : getCurrentProject().getCurrentPhase().getPhaseModel().getSuccessors()) {
		final TabItem successorTabItem = tabItemsMap.get(successor.getId());
		if (successorTabItem != null) {
			successorTabItem.setEnabled(true);
		}
	}
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:13,代码来源:PhasesPresenter.java


示例12: SettingsTab

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public SettingsTab(){
	TabItem authTab = new TabItem("Auth Settings");
	authTab.setHideMode(HideMode.OFFSETS);
	authTab.add(new AuthPanel());
	add(authTab);
	
	TabItem settingsTab = new TabItem("Timesheet Settings");
	settingsTab.setHideMode(HideMode.OFFSETS);
	settingsTab.add(new TimesheetSettingsPanel());
	add(settingsTab);
	
	
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:14,代码来源:SettingsTab.java


示例13: ToolsTab

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public ToolsTab(){
	
	
	TabItem fixRateTab = new TabItem("Fix Rate's Tab");
	fixRateTab.setHideMode(HideMode.OFFSETS);
	fixRateTab.add(new ExternalRatePanel());
	add(fixRateTab);
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:9,代码来源:ToolsTab.java


示例14: doRightPanel

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
private TabPanel doRightPanel(){
	TabPanel folder = new TabPanel(); 
	
	TabItem assignmentTab = new TabItem("Assignment Detail"); 
	assignmentTab.setWidth(724);
	assignmentTab.setHeight(600);
	assignmentDetailPanel = new  AssignmentDetailPanel();
	assignmentTab.add(assignmentDetailPanel);
	folder.add(assignmentTab);
	
	TabItem usersTreePanelTab = new TabItem("Users Statistic");
	usersTreePanelTab.setHideMode(HideMode.OFFSETS);
	usersTreePanelTab.setWidth(724);
	usersTreePanelTab.setHeight(600);
	
	
	userDepartmentReportContentPanel = new UserDepartmentReportContentPanel();
	
	usersTreePanelTab.add(userDepartmentReportContentPanel);
	folder.add(usersTreePanelTab);
	
	
	TabItem usersAssignmentTab = new TabItem("Users Assignments"); 
	usersAssignmentTab.setHideMode(HideMode.OFFSETS);
	usersAssignmentTab.add(doUserAssignmentContentPanel());
	folder.add(usersAssignmentTab );
	
	TabItem reportTab = new TabItem("Department Report"); 
	reportTab.setHideMode(HideMode.OFFSETS);
	reportTab.setWidth(724);
	reportTab.setHeight(600);
	departmentReportContentPanel = new  DepartmentReportContentPanel();
	reportTab.add(departmentReportContentPanel);
	folder.add(reportTab);
	
	return folder;
}
 
开发者ID:treblereel,项目名称:Opensheet,代码行数:38,代码来源:DepartmentPanel.java


示例15: setupArticleContent

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
private void setupArticleContent(TabPanel tabs){
	TabItem content = new TabItem();
	content.setStyleAttribute("padding", "10");
	tabs.add(content);
	content.setText(Resources.constants.Article_tabgeneral());
	FormLayout fl = getFormLayout();
	fl.setHideLabels(true);
	content.setLayout(fl);
	HtmlEditor contentField = ArticleForm.getContent();
	contentField.setHeight(300);
	content.add(contentField, lfd());
}
 
开发者ID:jbosschina,项目名称:jcommerce,代码行数:13,代码来源:ArticlePanel.java


示例16: TabWizardBar

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public TabWizardBar(TabItem next) {
	this.nextTab = next;
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:4,代码来源:TabWizardBar.java


示例17: initUI

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
protected void initUI() {
	// Layout Fields.
	setLayout(new BorderLayout());  
	
	List<ColumnConfig> internalAttr = new ArrayList<ColumnConfig>();
	List<ColumnConfig> ciAttr = new ArrayList<ColumnConfig>();
	/*
	for (AttributeColumnConfig aConfig : gridConfig.getColumnConfig()) {
		ColumnConfig cfg = EditorFactory.getColumnConfig(aConfig, false);
		if (aConfig.isInternal()) {
			internalAttr.add(cfg);
		} else {
			ciAttr.add(cfg);
		}
	}
	*/
	
	LayoutContainer internalPanel = getForm(internalAttr, 2, LabelAlign.LEFT);
	LayoutContainer ciPanel = getForm(ciAttr, 3, LabelAlign.TOP);
	
	ContentPanel internalCp = new ContentPanel(); 

	internalCp.setLayout(new FitLayout());
	internalCp.setAutoWidth(true);
	internalCp.setAutoHeight(true);
	internalCp.setHeading("Internal Attributes");  
	internalCp.setCollapsible(true);
	internalCp.add(internalPanel);
	
	
	ContentPanel attrCp = new ContentPanel();
	
	ToolBar toolbar = new ToolBar();
	attrCp.setTopComponent(toolbar);
	toolbar.add(new FillToolItem());
	toolbar.add(new TextToolItem("Ok"));		
	toolbar.add(new TextToolItem("Cancel"));
	attrCp.setLayout(new FitLayout());
	attrCp.setScrollMode(Scroll.ALWAYS);
	attrCp.setLayoutOnChange(true);
	attrCp.setCollapsible(true);
	attrCp.add(ciPanel);
	attrCp.setHeading("Attributes");
	
	TabPanel infoTab = new TabPanel();  
	descriptionTab = new TabItem("Description");
	descriptionTab.setStyleName("property-panel-background");

	infoTab.add(descriptionTab);
	
	historyTab = new TabItem("History");
	historyTab.setStyleName("property-panel-background");
	infoTab.add(historyTab);
	
	
	BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);  
    centerData.setMargins(new Margins(0, 5, 0, 5));  
       
    /*   
    BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH);  
    northData.setSplit(false);  
    northData.setCollapsible(true);  
    northData.setMargins(new Margins(5));  
    */
    BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 0.3f);  
    southData.setSplit(true);  
    southData.setCollapsible(true);  
    southData.setMargins(new Margins(5));  
	
    LayoutContainer fieldCont = new LayoutContainer();
    fieldCont.setLayout(new RowLayout());
    fieldCont.add(internalCp, new RowData(1,-1));
    fieldCont.add(attrCp, new RowData(1,1));
    
    
    add(fieldCont, centerData);
	add(infoTab, southData);
	
	layout();
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:81,代码来源:CIValueForm.java


示例18: updateModel

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
protected void updateModel(CIModel model) {
	this.modelBase = model.copy();
	this.modelLocal = model;
	center.removeAll();
	center.setHeading("Template " + model.getAlias());
	
	TabPanel panel = new TabPanel();
	center.add(panel);
	
	{
		TabItem attr = new TabItem("Attributes");
		attr.setLayout(new RowLayout());

		attr.add(getToolBar(), new RowData(1,-1));

		CIIdentityForm idForm = new CIIdentityForm(model);
		idForm.setPermission(permission);
		attr.add(idForm, new RowData(1, -1));
		attributeGrid = new AttributeGrid(mdr, model, rootType, rootReferenceType);
		attributeGrid.setPermission(permission);
		attr.add(attributeGrid, new RowData(1, 1));

		ContentPanel defaultPanel = new ContentPanel();
		defaultPanel.setHeading("Default values for " + model.getAlias());
		defaultPanel.setLayout(new FitLayout());
		defaultValueGrid = new EditableSingleCIGrid(mdr, model);
		defaultValueGrid.setPermissions(permission);
		defaultPanel.setHeight(120);
		defaultPanel.add(defaultValueGrid);
		attr.add(defaultPanel, new RowData(1,-1));

		panel.add(attr);

	}
	{
		TabItem refs = new TabItem("References");
		refs.setLayout(new FitLayout());
		CITemplateReferenceTree tree = new CITemplateReferenceTree(mdr, modelBase);
		tree.setPermission(permission);
		refs.add(tree);
		panel.add(refs);
		
	}
	center.layout();
	layout();
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:47,代码来源:CIModelInternalBrowser.java


示例19: initUI

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
protected void initUI() {
	// Temple browser...
	// Template Reference browser.
	setLayout(new FitLayout());
	
	
	ContentPanel panel = new ContentPanel();
	panel.setHeaderVisible(false);
	panel.setLayout(new FitLayout());

	TabPanel tab = new TabPanel();
	panel.add(tab);
	tab.setTabPosition(TabPanel.TabPosition.BOTTOM);
	
	TabItem treeItem = new TabItem("Design");
	TabItem xmlItem = new TabItem("Source");
	tab.add(treeItem);
	tab.add(xmlItem);
	
	final QueryGraphTree tree = new QueryGraphTree();		
	treeItem.add(tree);	
	
	final TextArea area = new TextArea();
	ContentPanel sourcePanel = new ContentPanel();
	sourcePanel.setHeaderVisible(false);
	sourcePanel.setLayout(new FitLayout());
	sourcePanel.add(area);
	ToolBar bar = new ToolBar();
	bar.add(new TextToolItem("Update", new SelectionListener<ToolBarEvent>() {

		@Override
		public void componentSelected(ToolBarEvent ce) {
			String text = area.getText();
			GWT_GraphQuery query = GWT_XMLQueryGraphParser.parse(text);
			GWT_GraphTreeItem item = QueryGraphTreeBuilder.buildTree(query);
			tree.setGraphTreeItem(item);
		}
		
	}));
	sourcePanel.setTopComponent(bar);
	xmlItem.setLayout(new FitLayout());
	xmlItem.add(sourcePanel);
	
	add(panel);
	layout();
}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:47,代码来源:QueryEditorWidget.java


示例20: validateElements

import com.extjs.gxt.ui.client.widget.TabItem; //导入依赖的package包/类
public void validateElements() {
  for (TabItem item : getItems()) {
    ((IterableGroupItem) item).revalidateElements();
  }
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:6,代码来源:IterableGroupPanel.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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