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


Java FlowLayoutContainer类代码示例

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

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

示例1: CardInfo

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardInfo(JobPresenter presenter){
	this.presenter=presenter;
	addButton(history);
	addButton(depGraph);
	addButton(deleteGroup);
	addButton(editGroup);
	addButton(execute);
	addButton(recover);
	addButton(onoff);
	addButton(deleteGroup);
	addButton(configAdmin);
	addButton(configImportantContact);
	addButton(toDoc);
	
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	centerContainer.add(getBaseFieldSet(),new MarginData(3));
	//centerContainer.add(getHiveProcesserFieldSet(),new MarginData(3));
	centerContainer.add(getConfigFieldSet(),new MarginData(3));
	centerContainer.add(getScriptFieldSet(),new MarginData(3));
	centerContainer.add(getResourceField(),new MarginData(3));
	centerContainer.add(getConfigParentField(),new MarginData(3));
	centerContainer.add(getResourceParentField(),new MarginData(3));
	centerContainer.setScrollMode(ScrollMode.AUTOY);
	setCenter(centerContainer);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:26,代码来源:CardInfo.java


示例2: CardInfo

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardInfo(final GroupPresenter presenter){
	this.presenter=presenter;
	addButton(overall);
	addButton(running);
	addButton(manual);
	addButton(addGroup);
	addButton(addJob);
	addButton(editGroup);
	addButton(deleteGroup);
	addButton(configAdmin);
	
	
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	centerContainer.add(getBaseFieldSet(),new MarginData(3));
	centerContainer.add(getConfigFieldSet(),new MarginData(3));
	centerContainer.add(getResourceField(),new MarginData(3));
	centerContainer.add(getConfigParentField(),new MarginData(3));
	centerContainer.add(getResourceParentField(),new MarginData(3));
	setCenter(centerContainer);
	
	
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:23,代码来源:CardInfo.java


示例3: CardUserInfo

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardUserInfo(UserPresenter presenter) {
	this.presenter = presenter;
	addButton(edituser);
	if (presenter.getZuser().getUid().equals(UserUtil.admin)) {
		addButton(checkuser);
	}
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	VerticalLayoutContainer p = new VerticalLayoutContainer();
	luid=new Label();
	lname=new Label();
	luserType=new Label();
	leffective=new Label();
	lemail=new Label("");
	phoneContent=new HTMLPanel("");
	descriptionContent=new HTMLPanel("");
	p.add(new FieldLabel(luid, "用户账号"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(lname,"用户姓名"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(luserType,"用户状态"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(leffective,"用户类型"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(lemail, "邮箱地址"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(phoneContent, "手机号码"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	p.add(new FieldLabel(descriptionContent, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
	
	centerContainer.add(p);
	setCenter(centerContainer);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:27,代码来源:CardUserInfo.java


示例4: CardInfo

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardInfo(JobPresenter presenter){
	this.presenter=presenter;
	addButton(history);
	addButton(depGraph);
	addButton(deleteGroup);
	addButton(editGroup);
	addButton(execute);
	addButton(recover);
	addButton(onoff);
	addButton(deleteGroup);
	addButton(configAdmin);
	addButton(toDoc);
	
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	centerContainer.add(getBaseFieldSet(),new MarginData(3));
	//centerContainer.add(getHiveProcesserFieldSet(),new MarginData(3));
	centerContainer.add(getConfigFieldSet(),new MarginData(3));
	centerContainer.add(getScriptFieldSet(),new MarginData(3));
	centerContainer.add(getResourceField(),new MarginData(3));
	centerContainer.add(getConfigParentField(),new MarginData(3));
	centerContainer.add(getResourceParentField(),new MarginData(3));
	centerContainer.setScrollMode(ScrollMode.AUTOY);
	setCenter(centerContainer);
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:25,代码来源:CardInfo.java


示例5: CardEditJob

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardEditJob(final JobPresenter presenter) {
	this.presenter = presenter;

	FlowLayoutContainer centerContainer = new FlowLayoutContainer();
	centerContainer.add(getBaseFieldSet(), new MarginData(3));
	// centerContainer.add(getHiveProcesserFieldSet(), new MarginData(3));
	centerContainer.add(getConfigFieldSet(), new MarginData(3));
	centerContainer.add(getScriptFieldSet(), new MarginData(3));
	centerContainer.add(getResourceField(), new MarginData(3));
	centerContainer.setScrollMode(ScrollMode.AUTO);
	setCenter(centerContainer);

	addButton(new TextButton("返回", new SelectHandler() {
		@Override
		public void onSelect(final SelectEvent event) {
			presenter.display(presenter.getJobModel());
		}
	}));
	/*
	 * zk.addBeforeSelectHandler(new BeforeSelectHandler() {
	 * 
	 * @Override public void onBeforeSelect(BeforeSelectEvent event) {
	 * event.setCancelled(true); zkWindow.show(); } }); addButton(zk);
	 */
	addButton(upload);
	addButton(save);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:28,代码来源:CardEditJob.java


示例6: CardDepGraph

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardDepGraph(JobPresenter p){
		this.presenter=p;
		
		addButton(new TextButton("返回",new SelectHandler() {
			public void onSelect(SelectEvent event) {
				presenter.display(presenter.getJobModel());
			}
		}));
		
		FlowLayoutContainer container=new FlowLayoutContainer();
		container.setScrollMode(ScrollMode.AUTOY);
		
//		FieldSet dependeeField=new FieldSet();
//		dependeeField.setHeight(400);
//		dependeeField.setHeadingText("任务依赖图");
		dependeeST=new SpaceTree("bottom");
		dependeeST.setBorders(true);
//		dependeeField.add(dependeeST);
		
//		FieldSet dependerField=new FieldSet();
//		dependerField.setHeight(400);
//		dependerField.setHeadingText("任务被依赖图");
		dependerST=new SpaceTree("top");
		dependerST.setBorders(true);
//		dependerField.add(dependerST);
		
//		container.add(dependeeField);
//		container.add(dependerField);
		
		container.add(new HTMLPanel("任务依赖图:"));
		container.add(dependeeST);
		container.add(new HTMLPanel("任务被依赖图:"));
		container.add(dependerST);
		
		setCenter(container);
	}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:37,代码来源:CardDepGraph.java


示例7: CardEditJob

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardEditJob(final JobPresenter presenter) {
	this.presenter = presenter;

	FlowLayoutContainer centerContainer = new FlowLayoutContainer();
	centerContainer.add(getBaseFieldSet(), new MarginData(3));
	//centerContainer.add(getHiveProcesserFieldSet(), new MarginData(3));
	centerContainer.add(getConfigFieldSet(), new MarginData(3));
	centerContainer.add(getScriptFieldSet(), new MarginData(3));
	centerContainer.add(getResourceField(), new MarginData(3));
	centerContainer.setScrollMode(ScrollMode.AUTO);
	setCenter(centerContainer);

	addButton(new TextButton("返回", new SelectHandler() {
		@Override
		public void onSelect(final SelectEvent event) {
			presenter.display(presenter.getJobModel());
		}
	}));
	/*zk.addBeforeSelectHandler(new BeforeSelectHandler() {
		@Override
		public void onBeforeSelect(BeforeSelectEvent event) {
			event.setCancelled(true);
			zkWindow.show();
		}
	});
	addButton(zk);*/
	addButton(upload);
	addButton(save);
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:30,代码来源:CardEditJob.java


示例8: CardEditGroup

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CardEditGroup(final GroupPresenter presenter){
	this.presenter=presenter;
	this.model=presenter.getGroupModel();
	name=new TextField();
	name.setAllowBlank(false);
	desc=new TextArea();
	
	FlowLayoutContainer centerContainer=new FlowLayoutContainer();
	centerContainer.setScrollMode(ScrollMode.AUTOY);
	
	FieldSet one=new FieldSet();
	one.setHeadingText("基本信息");
	VerticalLayoutContainer p1 = new VerticalLayoutContainer();
	p1.add(new FieldLabel(name, "名称"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
	p1.add(new FieldLabel(desc, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
	one.add(p1);
	
	centerContainer.add(one,new MarginData(5));
	
	final FieldSet two=new FieldSet();
	two.setHeadingText("配置项信息");
	configs=new TextArea();
	configs.setResizable(TextAreaInputCell.Resizable.BOTH);
	configs.addValidator(FormatUtil.propValidator);
	configs.setWidth(800);
	configs.setHeight(150);
	two.add(configs);
	
	centerContainer.add(two,new MarginData(5));
	
	final FieldSet three=new FieldSet();
	three.setHeadingText("资源信息");
	resources=new TextArea();
	resources.setResizable(Resizable.BOTH);
	resources.setWidth(800);
	resources.setHeight(150);
	resources.addValidator(FormatUtil.resourceValidator);
	three.add(resources);
	centerContainer.add(three,new MarginData(5));
	
	setCenter(centerContainer);
	
	addButton(new TextButton("返回", new SelectHandler() {
		public void onSelect(SelectEvent event) {
			presenter.display(presenter.getGroupModel());
		}
	}));
	addButton(upload);
	addButton(save);
	
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:52,代码来源:CardEditGroup.java


示例9: CurrencyViewImpl

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public CurrencyViewImpl(String title, CurrencyViewPresenter presenter) {
	this.presenter = presenter;
	this.currentAddressStats = new HashMap<String, AddressStatsDTO>();
	this.addressStatsFramedPanels = new HashMap<String, FramedPanel>();
	this.addressStatsVerticalContainer = new HashMap<String, VerticalLayoutContainer>();
	this.addressBlockchainFramedPanels = new HashMap<String, FramedPanel>();
	this.fireHideEvent = true;

	lastRefreshLabel = new RefreshLabel();

	window = new Window();
	window.setHeaderVisible(true);
	window.setHeadingText(title);
	window.setHeight(500);
	window.setWidth(450);
	window.setMaximizable(true);
	window.setCollapsible(true);
	window.setResizable(true);
	window.getHeader().addTool(lastRefreshLabel);

	saveExpanded = true;

	window.addMaximizeHandler(new MaximizeHandler() {
		public void onMaximize(MaximizeEvent event) {
			window.expand();
		}
	});

	mainContainer = new VerticalLayoutContainer();
	mainContainer.setScrollSupport(new DefaultScrollSupport(mainContainer.getElement()));
	mainContainer.setScrollMode(ScrollMode.AUTOY);
	mainContainer.addStyleName("whiteBackground");
	mainContainer.addStyleName("textCenter");

	currencyFramedPanel = new FramedPanel();
	currencyFramedPanel.setHeadingText("Exchange details");
	currencyFramedPanel.setCollapsible(true);

	Image loadingImage = new Image();
	loadingImage.setUrl(ClientResources.INSTANCE.loading().getSafeUri());
	loadingImage.setHeight("32px");
	loadingImage.setWidth("32px");
	FlowLayoutContainer simpleContainer = new FlowLayoutContainer();
	simpleContainer.addStyleName("textCenter");
	simpleContainer.add(loadingImage);
	window.setWidget(simpleContainer);

	window.show();
	window.center();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:51,代码来源:CurrencyViewImpl.java


示例10: createNewSection

import com.sencha.gxt.widget.core.client.container.FlowLayoutContainer; //导入依赖的package包/类
public void createNewSection() {
    currentSection = new FlowLayoutContainer();
    verticalLayoutContainer.add(currentSection, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:5,代码来源:ShowPanel.java



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