当前位置: 首页>>代码示例>>Java>>正文


Java TabItem类代码示例

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


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


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