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


Java TabItemConfig类代码示例

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


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

示例1: createTabPanel

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
private PlainTabPanel createTabPanel() {
	tabPanel = new PlainTabPanel();
	
	tabPanel.setPixelSize(380, 270);//ancho antes 330
	tabPanel.getElement().setId("tabPanel");
	tabPanel.add(getEmptyPanel(), UIMessages.INSTANCE.empty());
	tabPanel.add(getURLPanel(), UIMessages.INSTANCE.url());
	tabPanel.add(getTextPanel(), UIMessages.INSTANCE.text());
	tabPanel.add(getFilePanel(), UIMessages.INSTANCE.file());
	tabPanel.add(wfsImportTab, UIMessages.INSTANCE.wfs());
			
	TabItemConfig gitHubItenConfig = new TabItemConfig(UIMessages.INSTANCE.gitHubResponseTitle());
	gitHubItenConfig.setIcon(ImageProvider.INSTANCE.github24());
	
	tabPanel.add(gitHubImportTab, gitHubItenConfig);
	

	tabPanel.addSelectionHandler(getTabPanelSelectionHandler());
	return tabPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:GeoDataImportDialog.java

示例2: TableInfoPanel

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public TableInfoPanel(TableManagerPresenter c) {
	this.presenter = c;
	this.context = presenter.getPlatformContext();
	setBodyBorder(false);
	add(getTableInfoTab(), new TabItemConfig("基本信息"));
	add(getColumnInfoTab(), new TabItemConfig("字段信息"));
	add(getPtTab(), new TabItemConfig("分区信息"));

	addSelectionHandler(new SelectionHandler<Widget>() {

		@Override
		public void onSelection(SelectionEvent<Widget> event) {
			if (getConfig(event.getSelectedItem()).getText().equals("分区信息")) {
				if (isPartitionLoaded() == false) {
					getPtTab().load(table);
					setPartitionLoaded(true);
				}
			}
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:22,代码来源:TableInfoPanel.java

示例3: TextWord

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public TextWord(PlatformContext context, WordPresenter presenter,
		FileModel fmodel) {
	super(context, presenter);
	this.model = fmodel;

	if (fmodel.isAdmin() || context.getUser().isSuper()) {
		add(getEditTab(), new TabItemConfig("编辑", false));
	} else {
		add(getViewTab(), new TabItemConfig("查看", false));
	}
	addBeforeSelectionHandler(new BeforeSelectionHandler<Widget>() {
		public void onBeforeSelection(BeforeSelectionEvent<Widget> event) {
			if (event.getItem() == getViewTab()) {
				if (editTab.getNewContent() != null) {
					getViewTab().refresh(editTab.getNewContent());
				} else if (model.getContent() != null) {
					getViewTab().refresh(model.getContent());
				}
			} else if (event.getItem() == getEditTab()) {
				getEditTab().getCodeMirror().refresh();
			}
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:25,代码来源:TextWord.java

示例4: ContentView

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public ContentView() {
  tabs = new HashMap<>();
  contentContaineer = new VerticalLayoutContainer();
  contentContaineer.setBorders(false);
  tabPanel = new TabPanel();
  tabUebersicht = new TabItemConfig("Portal");
  // Tab-Panel
  tabPanel.setBorders(false);
  tabPanel.setBodyBorder(false);
  tabPanel.setTabScroll(true);
  // Portal-Tab (immer vorhanden)
  tabUebersicht.setClosable(false);
  tabUebersicht.setEnabled(true);
  tabPanel.add(createUebersicht(),
               tabUebersicht);
  contentContaineer.add(tabPanel,
                        new VerticalLayoutData(1,
                                               1));
  createAndAddGridPortlet();
  bind();
  initWidget(contentContaineer);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:23,代码来源:ContentView.java

示例5: addItem

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
@Override
public void addItem(String id,
                    String name,
                    Widget container,
                    boolean isDirty) {
  // Portal-Tab (immer vorhanden)
  TabItemConfig tab = new TabItemConfig();
  tab.setClosable(true);
  tab.setEnabled(true);
  String tabName = name;
  if (isDirty) {
    tabName += "*";
  }
  tab.setText(tabName);
  // Container an das TabPanel setzen
  tabPanel.add(container,
               tab);
  // Tab in Liste sichern!
  TabItemValue tabValue = new TabItemValue(id,
                                           isDirty,
                                           tab,
                                           container);
  tabs.put(id,
           tabValue);
  store.add(tabValue);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:27,代码来源:ContentView.java

示例6: ContentView

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public ContentView() {
  tabs = new HashMap<>();
  contentContaineer = new VerticalLayoutContainer();
  contentContaineer.setBorders(false);
  tabPanel = new TabPanel();
  tabUebersicht = new TabItemConfig("Portal");
  // Tab-Panel
  tabPanel.setBorders(false);
  tabPanel.setBodyBorder(false);
  tabPanel.setTabScroll(true);
  // Portal-Tab (immer vorhanden)
  tabUebersicht.setClosable(false);
  tabUebersicht.setEnabled(true);
  tabPanel.add(createUebersicht(),
               tabUebersicht);
  contentContaineer.add(tabPanel,
                        new VerticalLayoutData(1,
                                               1));
  createAndAddGridPersonPortlet();
  bind();
  initWidget(contentContaineer);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:23,代码来源:ContentView.java

示例7: addItem

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
@Override
public void addItem(String id,
                    String name,
                    Widget container,
                    boolean isDirty) {
  // Portal-Tab (immer vorhanden)
  TabItemConfig tab = new TabItemConfig();
  tab.setClosable(true);
  tab.setEnabled(true);
  String tabName = name;
  if (isDirty) {
    tabName += "*";
  }
  tab.setText(tabName);
  // Container an das TabPanel setzen
  tabPanel.add(container,
               tab);
  // Tab in Liste sichern!
  TabItemValue tabValue = new TabItemValue(id,
                                           isDirty,
                                           tab,
                                           container);
  tabs.put(id,
           tabValue);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:26,代码来源:ContentView.java

示例8: Init

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
private void Init() {
	setHeight(600);
	setWidth(500);
	setModal(true);
	tabPanel = new TabPanel();
	tabPanel.addSelectionHandler(new SelectionHandler<Widget>() {
        @Override
        public void onSelection(SelectionEvent<Widget> event) {
        	Widget selectedItem = event.getSelectedItem();
        	if (selectedItem instanceof JobTreePanel) {
				JobTreePanel panel = (JobTreePanel)selectedItem;
				if (panel==copyPanel && !panel.isHasData()) {
					copyPanel.loadDataOfOtherDependentJob(jobId);
				}
			}
        }
      });
	checkablePanel = new JobTreePanel();
	checkablePanel.setHeadingText("选择依赖任务(可以多选)");
	copyPanel = new JobTreePanel();
	copyPanel.setHeadingText("复制所选依赖任务的依赖到本任务");
	copyPanel.getTree().setCheckable(false);
	copyPanel.getTree().getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
	tabPanel.add(checkablePanel,new TabItemConfig("选择依赖任务",false));
	tabPanel.add(copyPanel,new TabItemConfig("复制依赖到本任务",false));
	add(tabPanel);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:28,代码来源:DependencyConfigWindow.java

示例9: ShellWord

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public ShellWord(PlatformContext context,WordPresenter presenter,FileModel fmodel) {
	super(context ,presenter);
	this.model=fmodel;
	
	if(fmodel.isAdmin() || context.getUser().isSuper()){
		add(getEditTab(), new TabItemConfig("编辑", false));
		add(getHistoryTab(),new TabItemConfig("调试历史", false));
		setActiveWidget(editTab);
	}else{
		add(getViewTab(), new TabItemConfig("查看", false));
	}
	addBeforeSelectionHandler(new BeforeSelectionHandler<Widget>() {
				public void onBeforeSelection(
						BeforeSelectionEvent<Widget> event) {
					if (event.getItem() == getViewTab()) {
						if(editTab.getNewContent()!=null){
							getViewTab().refresh(editTab.getNewContent());
						}else if (model.getContent() != null) {
							getViewTab().refresh(model.getContent());
						}
					}else if(event.getItem()==getEditTab()){
						getEditTab().getCodeMirror().refresh();
					}else if(event.getItem() == getHistoryTab()){
						getHistoryTab().refresh();
					}
				}
			});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:29,代码来源:ShellWord.java

示例10: HiveWord

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public HiveWord(PlatformContext context, WordPresenter presenter,
		FileModel fmodel) {
	super(context, presenter);
	this.model = fmodel;

	if (fmodel.isAdmin() || context.getUser().isSuper()) {
		add(getEditTab(), new TabItemConfig("编辑", false));
		add(getHistoryTab(), new TabItemConfig("调试历史", false));
		setActiveWidget(editTab);
	} else {
		add(getViewTab(), new TabItemConfig("查看", false));
	}
	addBeforeSelectionHandler(new BeforeSelectionHandler<Widget>() {
		@Override
		public void onBeforeSelection(BeforeSelectionEvent<Widget> event) {
			if (event.getItem() == getViewTab()) {
				if (editTab.getNewContent() != null) {
					getViewTab().refresh(editTab.getNewContent());
				} else if (model.getContent() != null) {
					getViewTab().refresh(model.getContent());
				}
			} else if (event.getItem() == getEditTab()) {
				getEditTab().getCodeMirror().refresh();
			} else if (event.getItem() == getHistoryTab()) {
				getHistoryTab().refresh();
			}
		}
	});
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:30,代码来源:HiveWord.java

示例11: updateFileName

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
@Override
public void updateFileName(FileModel model) {
	if (contain(model.getId())) {
		Word word = wordMap.get(model.getId());
		TabItemConfig config = tabPanel.getConfig(word);
		config.setText(getDocViewName(model));
		tabPanel.update(word, config);
	}
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:10,代码来源:WordViewImpl.java

示例12: onStartDebug

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public void onStartDebug(final String debugId){
	TabItemConfig config = new TabItemConfig("ID:"+debugId, true);;
	final LogTextPanel logTextPanel = new LogTextPanel(debugId, config, this);
	add(logTextPanel, config);
	this.setActiveWidget(logTextPanel);
	logTextPanel.getTimer().run();
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:8,代码来源:LogTabPanel.java

示例13: TabItemValue

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
private TabItemValue(String id,
                     boolean isDirty,
                     TabItemConfig item,
                     Widget widget) {
  setDirty(isDirty);
  setId(id);
  setItem(item);
  setCloseConfirmed(false);
  setOpen(true);
  setWidget(widget);
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:12,代码来源:ContentView.java

示例14: showPoolTab

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
@Override
public boolean showPoolTab(String poolName) {
	boolean isFound = false;
	for (int i = 0; i < tabPanel.getWidgetCount(); i++) {
		if (tabPanel.getWidget(i) != null) {
			TabItemConfig config = tabPanel.getConfig(tabPanel.getWidget(i));
			if (config != null && config.getText().equals(poolName)) {
				tabPanel.setActiveWidget(tabPanel.getWidget(i));
				isFound = true;
			}
		}
	}
	return isFound;
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:15,代码来源:MainViewImpl.java

示例15: AbstractEditorTab

import com.sencha.gxt.widget.core.client.TabItemConfig; //导入依赖的package包/类
public AbstractEditorTab(EditorWidgetsMapper editorWidgetsMapper, String tabName) {
    this.editorWidgetsMapper = editorWidgetsMapper;
    this.tabItemConfig = new TabItemConfig(tabName);

    this.propertiesPanelLayout = new CardLayoutContainer();
    this.variableNameTextField = new TextField();

    layout = new VerticalLayoutContainer();
    layout.add(new FieldLabel(variableNameTextField, "Variable name"), new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(5, 5, 0, 5)));
    layout.add(propertiesPanelLayout, new VerticalLayoutContainer.VerticalLayoutData(1, 1, new Margins(5)));
    initWidget(layout);
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:13,代码来源:AbstractEditorTab.java


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