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

Java Margins类代码示例

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

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



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

示例1: FileManagerViewImpl

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public FileManagerViewImpl(final PlatformContext context,
		FileManagerPresenter presenter) {
	this.fileManagerPresenter = presenter;
	this.context = context;
	container = uiBinder.createAndBindUi(this);
	myDoc.add(getMyTreeGrid());
	
	
	VerticalLayoutContainer commonContainer=new VerticalLayoutContainer();
	commonContainer.setScrollMode(ScrollMode.AUTOY);
	commonContainer.add(getCommonDocFilter(),
			new VerticalLayoutData(1, 30, new Margins(4, 20, 4, 4)));
	commonContainer.add(getCommonTreeGrid(), new VerticalLayoutData(1, 1));
	commonDoc.add(commonContainer);
	
	container.setActiveWidget(myDoc);
	
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:19,代码来源:FileManagerViewImpl.java


示例2: asWidget

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


示例3: CardUserInfo

import com.sencha.gxt.core.client.util.Margins; //导入依赖的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: addApp

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public void addApp(final Application app){
	apps.put(app, null);
	if(!shortcuts.contains(app.getShortcut())){
		app.getShortcut().addSelectHandler(new SelectHandler() {
			public void onSelect(SelectEvent event) {System.out.println("SelectHandler");
				if(screen.getActiveWidget()!=null && screen.getActiveWidget().equals(apps.get(app))){
					return;
				}
				getPlatformContext().getPlatformBus().fireEvent(new PlatformPlaceChangeEvent(app.getPlace(),true));
			}
		});
		shortcuts.add(app.getShortcut());
		
		shortcutBar.add(app.getShortcut(),new BoxLayoutData(new Margins(2,0,5,0)));
	}
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:17,代码来源:Platform.java


示例5: build

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
private void build() {
  container = new CssFloatLayoutContainer();
  FieldLabel fl01 = new FieldLabel(keyCurrentPresenterShowed,
                                   "Key der Daten:");
  fl01.setLabelWidth(192);
  container.add(fl01,
                new CssFloatData(1,
                                 new Margins(6,
                                             12,
                                             6,
                                             12)));
  FieldLabel fl02 = new FieldLabel(tsCreated,
                                   "Zeitpunkt des Erzeugens:");
  fl02.setLabelWidth(192);
  container.add(fl02,
                new CssFloatData(1,
                                 new Margins(6,
                                             12,
                                             6,
                                             12)));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:22,代码来源:MultiPresenterView.java


示例6: addApp

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public void addApp(final Application app){
	apps.put(app, null);
	if(!shortcuts.contains(app.getShortcut())){
		app.getShortcut().addSelectHandler(new SelectHandler() {
			public void onSelect(SelectEvent event) {
				if(screen.getActiveWidget()!=null && screen.getActiveWidget().equals(apps.get(app))){
					return;
				}
				getPlatformContext().getPlatformBus().fireEvent(new PlatformPlaceChangeEvent(app.getPlace(),true));
			}
		});
		shortcuts.add(app.getShortcut());
		
		shortcutBar.add(app.getShortcut(),new BoxLayoutData(new Margins(2,0,5,0)));
	}
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:17,代码来源:Platform.java


示例7: setTotalStats

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void setTotalStats(List<AddressStatsDTO> stats) {
	totalChart = new AddressChartPanel("Total of selected addresses", true);
	totalChart.setAddressStats(stats);

	int insertionIndex = 1;
	if (getGlobalContainer().getWidgetCount() > 1) {
		insertionIndex = 2;
	}

	totalChart.setDisplaySummary(isSummaryDisplayed());
	totalChart.setDisplayBTCChart(isBTCChartDisplayed());
	totalChart.setDisplayPowerChart(isPowerChartDisplayed());

	totalChart.addPaidoutClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			presenter.loadTotalPaidout();
		}
	});

	getGlobalContainer().insert(totalChart, insertionIndex, new VerticalLayoutData(1, -1, new Margins(5)));
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:MiddlecoinViewImpl.java


示例8: addAddressStats

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void addAddressStats(final String address, List<AddressStatsDTO> stats) {
	AddressChartPanel chart = new AddressChartPanel(address, false);
	chart.setAddressStats(stats);
	chart.setDisplaySummary(isSummaryDisplayed());
	chart.setDisplayBTCChart(isBTCChartDisplayed());
	chart.setDisplayPowerChart(isPowerChartDisplayed());
	chart.addPaidoutClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			List<String> addresses = new ArrayList<String>();
			addresses.add(address);
			presenter.loadPaidout(addresses);
		}
	});
	getAddressesContainer().add(chart, new VerticalLayoutData(1, -1, new Margins(5)));
	addressCharts.put(address, chart);
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:18,代码来源:MiddlecoinViewImpl.java


示例9: setCurrencyTicker

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void setCurrencyTicker(CurrencyTickerDTO ticker) {
	lastRefreshLabel.resetTimer();
	this.currentTicker = ticker;
	currencyFramedPanel.setWidget(createCurrencyPanel(ticker));
	currencyFramedPanel.forceLayout();

	mainContainer.insert(currencyFramedPanel, 0, new VerticalLayoutData(1, -1, new Margins(5)));

	setTotalStats(currentTotalStats);

	for (AddressStatsDTO stats : currentAddressStats.values()) {
		setAddressStats(stats);
	}

	updateBlockchainPanels();

	// Set the main container in the window only if not already done.
	if (window.getWidgetIndex(mainContainer) < 0) {
		window.setWidget(mainContainer);
		window.forceLayout();
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:24,代码来源:CurrencyViewImpl.java


示例10: clearStats

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void clearStats() {
	addressStatsFramedPanels.clear();
	addressStatsVerticalContainer.clear();
	addressBlockchainFramedPanels.clear();

	if (blockchainByAddress != null) {
		blockchainByAddress.clear();
	}

	currentAddressStats.clear();

	if (mainContainer != null) {
		mainContainer.clear();
		mainContainer.insert(currencyFramedPanel, 0, new VerticalLayoutData(1, -1, new Margins(5)));
		currentTotalStats = null;
	}
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:19,代码来源:CurrencyViewImpl.java


示例11: addAddressStats

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void addAddressStats(final String address, List<AddressStatsDTO> stats) {
	AddressChartPanel chart = new AddressChartPanel(address, false);
	chart.setAddressStats(stats);
	chart.setDisplaySummary(isSummaryDisplayed());
	chart.setDisplayBTCChart(isBTCChartDisplayed());
	chart.setDisplayPowerChart(isPowerChartDisplayed());
	chart.addPaidoutClickHandler(new ClickHandler() {
		public void onClick(ClickEvent event) {
			List<String> addresses = new ArrayList<String>();
			addresses.add(address);
			presenter.loadPaidout(addresses);
		}
	});
	getAddressesContainer().add(chart, new VerticalLayoutData(1, -1, new Margins(5)));
	Scheduler.get().scheduleDeferred(new ScheduledCommand() {
		public void execute() {
			forceResize();
		}
	});
	addressCharts.put(address, chart);
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:WaffleViewImpl.java


示例12: initBorderLayout

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


示例13: createPanel

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
private Widget createPanel() {
	final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
	vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	final GitHubRepositoryAttributeBeanProperties props = GWT
			.create(GitHubRepositoryAttributeBeanProperties.class);
	repositoryStore = new ListStore<GitHubRepositoryAttributeBean>(props.key());

	final ColumnConfig<GitHubRepositoryAttributeBean, Integer> idCol = new ColumnConfig<GitHubRepositoryAttributeBean, Integer>(
			props.attributeId(), 190, "Id");		
	final ColumnConfig<GitHubRepositoryAttributeBean, String> nameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeName(), 190, UIMessages.INSTANCE.gitHubColumNameRepo());
	final ColumnConfig<GitHubRepositoryAttributeBean, String> descriptionCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.description(), 200, UIMessages.INSTANCE.gitHubColumDescriptionRepo());
	
	final ColumnConfig<GitHubRepositoryAttributeBean, String> fullNameCol = new ColumnConfig<GitHubRepositoryAttributeBean, String>(
			props.attributeFullName(), 200, "Full Name");

	final List<ColumnConfig<GitHubRepositoryAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubRepositoryAttributeBean, ?>>();
	//columns.add(idCol);
	columns.add(nameCol);
	columns.add(descriptionCol);		
	//columns.add(fullNameCol);

	final ColumnModel<GitHubRepositoryAttributeBean> columModel = new ColumnModel<GitHubRepositoryAttributeBean>(
			columns);

	grid = new Grid<GitHubRepositoryAttributeBean>(
			repositoryStore, columModel);
	//grid.setSelectionModel(new CellSelectionModel<GitHubRepositoryAttributeBean>());
	grid.getColumnModel().getColumn(0).setHideable(false);
	grid.setAllowTextSelection(true);
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);		
	grid.setBorders(false);
	setGridDragable(grid);
	
	vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(5, 0, 0, 0)));		

	return vPanel;
}
 
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:41,代码来源:GitHubRepositoryListDialog.java


示例14: CenterTemplate

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public CenterTemplate(){
	buttonArea.setVBoxLayoutAlign(VBoxLayoutAlign.STRETCH);
	
	BorderLayoutData east=new BorderLayoutData(100);
	east.setMargins(new Margins(5));
	container.setEastWidget(buttonArea, east);
	add(container);
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:9,代码来源:CenterTemplate.java


示例15: TableManagerViewImpl

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public TableManagerViewImpl(PlatformContext context,
		TableManagerPresenter presenter) {
	this.tableManagerPresenter = presenter;
	this.context = context;
	dbNameText = new TextField();
	dbNameText.setWidth(280);
	dbNameText.setEmptyText("数据库名称");
	container = uiBinder.createAndBindUi(this);

	commonTableContainer.add(getCommonGrid(), new VerticalLayoutData(1, 1));
	commonTableContainer.add(getToolbar(), new VerticalLayoutData(1, 30));
	commonTableContainer.add(getTableInfoPanel(), new VerticalLayoutData(1,
			220, new Margins(1)));
}
 
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:15,代码来源:TableManagerViewImpl.java


示例16: createView

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
private void createView() {
  container = new FramedPanel();
  container.setHeaderVisible(true);
  container.setHeadingText("Users");

  toolBar = new ToolBar();
  deleteButton = new TextButton("   Delete User");
  deleteButton.setIcon(ImageResources.IMAGES.iconDelete());
  deleteButton.setEnabled(false);
  newButton = new TextButton("   New User");
  newButton.setIcon(ImageResources.IMAGES.iconNew());
  toolBar.add(newButton);
  toolBar.add(deleteButton);
  container.addTool(toolBar);


  VerticalLayoutContainer contentContainer = new VerticalLayoutContainer();
  container.add(contentContainer);
  contentContainer.add(toolBar,
                       new VerticalLayoutContainer.VerticalLayoutData(1,
                                                                      -1,
                                                                      new Margins(0)));
  contentContainer.add(grid,
                       new VerticalLayoutContainer.VerticalLayoutData(1,
                                                                      1,
                                                                      new Margins(0)));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:28,代码来源:UserListView.java


示例17: createView

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
private void createView() {
  container = new FramedPanel();
  container.setHeaderVisible(true);
  container.setHeadingText("Users - (v1.5.0 - 22.03.2015)");

  toolBar = new ToolBar();
  deleteButton = new TextButton("   Delete User");
  deleteButton.setIcon(ImageResources.IMAGES.iconDelete());
  deleteButton.setEnabled(false);
  newButton = new TextButton("   New User");
  newButton.setIcon(ImageResources.IMAGES.iconNew());
  toolBar.add(newButton);
  toolBar.add(deleteButton);
  container.addTool(toolBar);


  VerticalLayoutContainer contentContainer = new VerticalLayoutContainer();
  container.add(contentContainer);
  contentContainer.add(toolBar,
                       new VerticalLayoutContainer.VerticalLayoutData(1,
                                                                      -1,
                                                                      new Margins(0)));
  contentContainer.add(grid,
                       new VerticalLayoutContainer.VerticalLayoutData(1,
                                                                      1,
                                                                      new Margins(0)));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:28,代码来源:UserListView.java


示例18: createWidget

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
private void createWidget() {
  container = new CssFloatLayoutContainer();
  addButton = new TextButton(ToolbarConstants.CONSTANTS.buttonLabel());
  container.add(addButton,
                new CssFloatData(1,
                                 new Margins(12,
                                             0,
                                             0,
                                             24)));
}
 
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:11,代码来源:ToolbarView.java


示例19: TableManagerViewImpl

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
public TableManagerViewImpl(PlatformContext context,
		TableManagerPresenter presenter) {
	this.tableManagerPresenter = presenter;
	this.context = context;

	container = uiBinder.createAndBindUi(this);

	commonTableContainer.add(getCommonGrid(), new VerticalLayoutData(1, 1));
	commonTableContainer.add(getToolbar(), new VerticalLayoutData(1, 30));
	commonTableContainer.add(getTableInfoPanel(), new VerticalLayoutData(1,
			220, new Margins(1)));
}
 
开发者ID:zogwei,项目名称:zeus3,代码行数:13,代码来源:TableManagerViewImpl.java


示例20: setGlobalStats

import com.sencha.gxt.core.client.util.Margins; //导入依赖的package包/类
@Override
public void setGlobalStats(List<GlobalStatsDTO> stats, GlobalAggregatedStats aggreagatedSats) {
	globalChart = new GlobalChartPanel("Middlecoin");
	globalChart.setGlobalStats(stats, aggreagatedSats);
	globalChart.setDisplaySummary(isSummaryDisplayed());
	globalChart.setDisplayBTCChart(isBTCChartDisplayed());
	globalChart.setDisplayPowerChart(isPowerChartDisplayed());
	getGlobalContainer().insert(globalChart, 1, new VerticalLayoutData(1, -1, new Margins(5)));
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:10,代码来源:MiddlecoinViewImpl.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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