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

Java MarginData类代码示例

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

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



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

示例1: DefaultPanel

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
public DefaultPanel(final String id){
		setModal(true);
		setSize("800", "800");
//		setBorders(hidden);
//		setBodyStyle("border:none");
		setHeadingText("datax配置工具");
		
		FramedPanel fp=new FramedPanel();
		fp.setHeaderVisible(false);
		fp.setButtonAlign(BoxLayoutPack.CENTER);
		
		Date d = new Date();
		Frame frame = new Frame("lingoes.html?="+d.getTime());
		frame.setStylePrimaryName("lingoes");
		frame.getElement().getStyle().setProperty("border", "none");
		fp.add(frame);
		
		add(fp,new MarginData(5));
	}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:20,代码来源:DefaultPanel.java


示例2: CardInfo

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例3: CardInfo

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例4: asWidget

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
@Override
public Widget asWidget() {
	if(widget==null){
		final BorderLayoutContainer border = new BorderLayoutContainer();
		BorderLayoutData west = new BorderLayoutData();
		west.setMargins(new Margins(3));
		west.setSplit(true);
		west.setSize(300);
		west.setCollapsible(true);
		west.setCollapseMini(true);
		ContentPanel sc=new ContentPanel();
		sc.setHeaderVisible(false);
		SimpleContainer sc2=new SimpleContainer();
		border.setWestWidget(sc, west);
		border.setCenterWidget(sc2, new MarginData(3));
		presenter.getJobManagerPresenter().go(sc);
		presenter.getJobDisplayPresenter().go(sc2);
		widget=border;
	}
	return widget;
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:22,代码来源:ScheduleViewImpl.java


示例5: createApplicationShell

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
private void createApplicationShell() {
  BorderLayoutContainer.BorderLayoutData layoutDataHeader = new BorderLayoutContainer.BorderLayoutData(64);
  shell.setNorthWidget(headerArea,
                       layoutDataHeader);

  BorderLayoutContainer.BorderLayoutData ldWestWidget = new BorderLayoutContainer.BorderLayoutData(192);
  ldWestWidget.setCollapsible(false);
  ldWestWidget.setCollapseHeaderVisible(false);
  ldWestWidget.setSplit(false);
  ldWestWidget.setCollapseMini(false);
  toolbarArea.setHeading("Toolbar");
  toolbarArea.setBodyStyle("background-color: white; border-right: solid 1px " +
                           themeDetails.borderLayout()
                                       .collapsePanelBorder()
                                       .color() +
                           ";");
  shell.setWestWidget(toolbarArea,
                      ldWestWidget);

  shell.add(content,
            new MarginData(4));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:23,代码来源:ShellView.java


示例6: createApplicationShell

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
private void createApplicationShell() {
  BorderLayoutContainer.BorderLayoutData layoutDataHeader = new BorderLayoutContainer.BorderLayoutData(64);
  shell.setNorthWidget(headerArea,
                       layoutDataHeader);

  BorderLayoutContainer.BorderLayoutData ldWestWidget = new BorderLayoutContainer.BorderLayoutData(192);
  ldWestWidget.setCollapsible(false);
  ldWestWidget.setCollapseHeaderVisible(false);
  ldWestWidget.setSplit(false);
  ldWestWidget.setCollapseMini(false);
  toolbarArea.setHeading("Toolbar");
  toolbarArea.setBodyStyle("background-color: white; border-right: solid 1px " +
                           themeDetails.borderLayout()
                                       .collapsePanelBorder()
                                       .color() +
                           ";");
  shell.setWestWidget(toolbarArea,
                      ldWestWidget);
  shell.add(content,
            new MarginData(4));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:22,代码来源:ShellView.java


示例7: CardInfo

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例8: initBorderLayout

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
private void initBorderLayout() {
    BorderLayoutData westBorderLayoutData = new BorderLayoutContainer.BorderLayoutData() {
        {
            setSize(250);
            setMargins(new Margins(5, 0, 5, 5));
            setCollapseMini(true);
            setCollapsible(true);
        }
    };

    mainLayoutPanel.setWestWidget(navigatorPanel, westBorderLayoutData);
    BorderLayoutData eastBorderLayoutData = new BorderLayoutContainer.BorderLayoutData() {
        {
            setSize(250);
            setMargins(new Margins(5, 5, 5, 0));
        }
    };
    mainLayoutPanel.setEastWidget(propertiesPanel, eastBorderLayoutData);
    mainLayoutPanel.setCenterWidget(previewPanel, new MarginData(5));
    
    verticalLayoutContainer = new VerticalLayoutContainer();
    verticalLayoutContainer.add(paletePanel, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    verticalLayoutContainer.add(mainLayoutPanel, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    mainContentPanel.add(verticalLayoutContainer);
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:26,代码来源:MainPanel.java


示例9: CardEditJob

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例10: CardEditJob

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例11: initTree

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
private void initTree() {
    this.navigationStore = new TreeStore<NavigationComponent>(NavigationComponent.createModelKeyProvider());
    this.navigationTree = new NavigationTree(navigationStore, NavigationComponent.createValueProvider());
    add(navigationTree, new MarginData(5));
    createRootNavigationElement();
    navigationTree.expandAll();
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:8,代码来源:NavigatorPanel.java


示例12: RootElementComponent

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
public RootElementComponent() {
    this.adder = new ContainerAdder<ContentPanel>() {

        public void add(ContentPanel parent, Widget child, Object layoutData) {
            parent.add(child, new MarginData(5));
        }
    };
}
 
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:9,代码来源:RootElementComponent.java


示例13: setCenter

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
public void setCenter(Widget widget){
	container.setCenterWidget(widget,new MarginData(3));
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:4,代码来源:CenterTemplate.java


示例14: CardEditGroup

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的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


示例15: asWidget

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
@Override
	public Widget asWidget() {
		if (widget == null) {
			final BorderLayoutContainer rootContainer = new BorderLayoutContainer();
			BorderLayoutData westLayout = new BorderLayoutData();
			westLayout.setMargins(new Margins(3));
			westLayout.setSplit(true);
			westLayout.setSize(200);
			westLayout.setCollapsible(true);
			westLayout.setCollapseMini(true);
			final ContentPanel fileManagerPanel = new ContentPanel();
			fileManagerPanel.setHeaderVisible(false);
			fileManagerPanel.setCollapsible(true);
			fileManagerPanel.setHeadingText("文件管理");
			// TODO 动画效果
			fileManagerPanel.setAnimCollapse(true);
			fileManagerPanel.setAnimationDuration(1000);
			final BorderLayoutContainer centerContainer = new BorderLayoutContainer();
			SimpleContainer wordContainer = new SimpleContainer();
			final ContentPanel tabContainer = new ContentPanel() {
//				@Override
//				protected void onAfterFirstAttach() {
//					super.onAfterFirstAttach();
//					centerContainer.hide(LayoutRegion.EAST);
//				}
			};
			tabContainer.setHeaderVisible(false);
			BorderLayoutData tabLayout = new BorderLayoutData();
			tabLayout.setSplit(true);
			tabLayout.setSize(300);
			tabLayout.setCollapsible(true);
			tabLayout.setCollapseMini(true);
			tabLayout.setMinSize(100);
			tabLayout.setMargins(new Margins(3, 3, 3, 5));
			centerContainer.setEastWidget(tabContainer, tabLayout);
			centerContainer.setCenterWidget(wordContainer, new MarginData(3));
			rootContainer.setWestWidget(fileManagerPanel, westLayout);
			rootContainer.setCenterWidget(centerContainer, new MarginData(3));
			presenter.getFileManagerPresenter().go(fileManagerPanel);
			presenter.getWordPresenter().go(wordContainer);
			presenter.getTableManagerPresenter().go(tabContainer);
			widget = rootContainer;

//			presenter
//					.getPlatformContext()
//					.getPlatformBus()
//					.addHandler(WordActiveEvent.TYPE,
//							new WordActiveEvent.WordActiveHandler() {
//								public void onActive(WordActiveEvent event) {
//									if (event.getWord() instanceof HiveWord) {
//										centerContainer.show(LayoutRegion.EAST);
//									} else {
//										centerContainer.hide(LayoutRegion.EAST);
//									}
//								}
//							});
		}
		return widget;
	}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:60,代码来源:DocumentViewImpl.java


示例16: onModuleLoad

import com.sencha.gxt.widget.core.client.container.MarginData; //导入依赖的package包/类
@Override
public void onModuleLoad() {

	Viewport viewport = new Viewport();
	viewport.addStyleName("x-viewport");

	BorderLayoutContainer borderLayoutContainer = new BorderLayoutContainer();
       borderLayoutContainer.setBorders(true);
       
       VerticalLayoutContainer north = new VerticalLayoutContainer();
       north.add(new HTML("<div class=\"olms-title\">Open License Management Server</div>"));
       
       BorderLayoutContainer.BorderLayoutData northData = new BorderLayoutContainer.BorderLayoutData(150);
       northData.setCollapsible(false);
       northData.setSplit(false);
       northData.setCollapseMini(false);
       northData.setMargins(new Margins(0, 5, 0, 5));
       northData.setSize(50);
       
       ContentPanel west = new ContentPanel();
       west.add(new HTML("This is west panel"));
       
       BorderLayoutContainer.BorderLayoutData westData = new BorderLayoutContainer.BorderLayoutData(250);
       westData.setCollapsible(true);
       westData.setSplit(true);
       westData.setCollapseMini(true);
       westData.setMargins(new Margins(0, 5, 0, 5));

	CenterLayoutContainer centerLayoutContainer = new CenterLayoutContainer();
	TextButton textButton = new TextButton("Click Me!");
	textButton.addSelectHandler(new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			Window basicWindow = new Window();
			basicWindow.setHeadingHtml("GXT CookBook | Recipe One");
			basicWindow.setClosable(true);
			basicWindow.setSize("250px", "50px");
			// prepare content to show
			VerticalLayoutContainer textPanel = new VerticalLayoutContainer();
			textPanel.addStyleName("text-panel");
			//setStyleAttribute("padding", "15px");
			textPanel.add(new HTML("<div>This is our first recipe from GXT Cookbook, how are we doing so far ...</div>"));
			// place content on the window
			// and display it.
			basicWindow.add(textPanel);
			basicWindow.show();		
		}
	});
	centerLayoutContainer.add(textButton);

       MarginData centerData = new MarginData();

       borderLayoutContainer.setNorthWidget(north, northData);
       borderLayoutContainer.setWestWidget(west, westData);
    borderLayoutContainer.setCenterWidget(centerLayoutContainer, centerData);

	viewport.add(borderLayoutContainer);
	RootPanel.get().add(viewport);		
}
 
开发者ID:izaynutdinov,项目名称:open-license-management-server,代码行数:60,代码来源:Main.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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