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


Java VerticalLayoutContainer.addStyleName方法代码示例

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


在下文中一共展示了VerticalLayoutContainer.addStyleName方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GlobalChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public GlobalChartPanel(String title) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	Anchor officialAnchor = new Anchor(false);
	officialAnchor.addStyleName("officialAnchor");
	officialAnchor.setText("Official");
	officialAnchor.setHref("http://www.middlecoin.com");
	officialAnchor.setTarget("_blank");
	mainPanel.getHeader().addTool(officialAnchor);

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:GlobalChartPanel.java

示例2: AddressChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public AddressChartPanel(String title, boolean isTotal) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	if (!isTotal) {
		Anchor officialAnchor = new Anchor(false);
		officialAnchor.addStyleName("officialAnchor");
		officialAnchor.setText("Official");
		officialAnchor.setHref("http://www.middlecoin.com/reports/" + title + ".html");
		officialAnchor.setTarget("_blank");
		mainPanel.getHeader().addTool(officialAnchor);
	}

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:25,代码来源:AddressChartPanel.java

示例3: GlobalChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public GlobalChartPanel(String title) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	Anchor officialAnchor = new Anchor(false);
	officialAnchor.addStyleName("officialAnchor");
	officialAnchor.setText("Official");
	officialAnchor.setHref("http://coinshift.com/stats");
	officialAnchor.setTarget("_blank");
	mainPanel.getHeader().addTool(officialAnchor);

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:GlobalChartPanel.java

示例4: AddressChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public AddressChartPanel(String title, boolean isTotal) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	if (!isTotal) {
		Anchor officialAnchor = new Anchor(false);
		officialAnchor.addStyleName("officialAnchor");
		officialAnchor.setText("Official");
		officialAnchor.setHref("http://coinshift.com/account/" + title);
		officialAnchor.setTarget("_blank");
		mainPanel.getHeader().addTool(officialAnchor);
	}

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:25,代码来源:AddressChartPanel.java

示例5: GlobalChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public GlobalChartPanel(String title) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	Anchor officialAnchor = new Anchor(false);
	officialAnchor.addStyleName("officialAnchor");
	officialAnchor.setText("Official");
	officialAnchor.setHref("http://coinsolver.com/poolstats.php");
	officialAnchor.setTarget("_blank");
	mainPanel.getHeader().addTool(officialAnchor);

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:GlobalChartPanel.java

示例6: AddressChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public AddressChartPanel(String title, boolean isTotal) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	if (!isTotal) {
		Anchor officialAnchor = new Anchor(false);
		officialAnchor.addStyleName("officialAnchor");
		officialAnchor.setText("Official");
		officialAnchor.setHref("http://www.coinsolver.com/user-details.php?account=" + title);
		officialAnchor.setTarget("_blank");
		mainPanel.getHeader().addTool(officialAnchor);
	}

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:25,代码来源:AddressChartPanel.java

示例7: GlobalChartPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public GlobalChartPanel(String title) {
	mainPanel = new FramedPanel();
	mainPanel.setHeadingText(title);
	mainPanel.setCollapsible(true);

	Anchor officialAnchor = new Anchor(false);
	officialAnchor.addStyleName("officialAnchor");
	officialAnchor.setText("Official");
	officialAnchor.setHref("http://wafflepool.com");
	officialAnchor.setTarget("_blank");
	mainPanel.getHeader().addTool(officialAnchor);

	lastRefreshLabel = new RefreshLabel();
	mainPanel.getHeader().addTool(lastRefreshLabel);

	contentPanel = new VerticalLayoutContainer();
	contentPanel.addStyleName("whiteBackground");
	mainPanel.add(contentPanel);

	initBTCChart();
	initPowerChart();
}
 
开发者ID:Stratehm,项目名称:multipool-stats-backend,代码行数:23,代码来源:GlobalChartPanel.java

示例8: createPanel

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

示例9: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
	final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();
	vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
	final FeatureAttributeBeanProperties props = GWT
			.create(FeatureAttributeBeanProperties.class);
	featureAttributes = new ListStore<FeatureAttributeBean>(props.key());

	final ColumnConfig<FeatureAttributeBean, String> nameCol = new ColumnConfig<FeatureAttributeBean, String>(
			props.attributeName(), 190, UIMessages.INSTANCE.fidNameCol());
	final ColumnConfig<FeatureAttributeBean, String> valueCol = new ColumnConfig<FeatureAttributeBean, String>(
			props.attributeValue(), 200, UIMessages.INSTANCE.fidValueCol());

	valueCol.setCell(new FeatureGridCellRenderer());

	final List<ColumnConfig<FeatureAttributeBean, ?>> columns = new ArrayList<ColumnConfig<FeatureAttributeBean, ?>>();
	columns.add(nameCol);
	columns.add(valueCol);

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

	final Grid<FeatureAttributeBean> grid = new Grid<FeatureAttributeBean>(
			featureAttributes, columModel);
	grid.setSelectionModel(new CellSelectionModel<FeatureAttributeBean>());
	grid.getColumnModel().getColumn(0).setHideable(false);
	grid.setAllowTextSelection(true);
	grid.getView().setStripeRows(true);
	grid.getView().setColumnLines(true);
	grid.setBorders(false);
	setGridDragable(grid);

	// Definicion del Grid Editable
	final GridEditing<FeatureAttributeBean> gridEditing = new GridInlineEditing<FeatureAttributeBean>(grid);
	gridEditing.addEditor(valueCol, new TextField());

	featureInfoToolBar.initialize(gridEditing, featureAttributes);

	vPanel.add(featureInfoToolBar, new VerticalLayoutData(1, -1,
			new Margins(5, 0, 0, 0)));
	vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(5, 0, 0, 0)));

	final ToolButton tButton = new ToolButton(ToolButton.QUESTION);
	setHelpToolTip(tButton);
	addHelpSelectHandler(tButton);

	getHeader().addTool(tButton);

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

示例10: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
		userNameField = new TextField();
		userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
		userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
		userNameField.setWidth(FIELD_WIDTH);

		repositoryField = new TextField();
		repositoryField.setTitle("Repositorio");
		repositoryField.setEmptyText("Introduce repositorio");
		repositoryField.setWidth(FIELD_WIDTH);

		pathField = new TextField();
		pathField.setTitle(UIMessages.INSTANCE.gitHubPathNameField());
		pathField.setEmptyText(UIMessages.INSTANCE.gitHubPathNameField());
		pathField.setWidth(FIELD_WIDTH);

		TextButton repositoryButton = new TextButton("...");		
		TextButton pathButton = new TextButton("...");
		TextButton loadFilesButton = new TextButton(UIMessages.INSTANCE.loadFiles());
		
		final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();

		vPanel.add(userNameField);
		
		final HorizontalPanel repositoryPanel = new HorizontalPanel();
		repositoryPanel.add(repositoryField);
		repositoryPanel.add(repositoryButton);
		vPanel.add(repositoryPanel);

		final HorizontalPanel pathPanel = new HorizontalPanel();

		pathPanel.add(pathField);
		pathPanel.add(pathButton);		
		vPanel.add(pathPanel);		
		vPanel.add(loadFilesButton);
		
		repositoryButton.addSelectHandler(getRepository());
		pathButton.addSelectHandler(getPath());
		loadFilesButton.addSelectHandler(requestGetFiles());

		vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
		final GitHubFileListAttributeBeanProperties props = GWT
				.create(GitHubFileListAttributeBeanProperties.class);

		repositoryStore = new ListStore<GitHubFileListAttributeBean>(
				props.key());

		final ColumnConfig<GitHubFileListAttributeBean, String> nameCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
				props.attributeName(), 400,
				UIMessages.INSTANCE.gitHubColumNameRepo());

//		final ColumnConfig<GitHubFileListAttributeBean, String> typeCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
//				props.attributeType(), 200, "Type");

		final List<ColumnConfig<GitHubFileListAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubFileListAttributeBean, ?>>();

		columns.add(nameCol);
		//columns.add(typeCol);

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

		grid = new Grid<GitHubFileListAttributeBean>(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);
		GridSelectionModel<GitHubFileListAttributeBean> sm = new GridSelectionModel<GitHubFileListAttributeBean>();
		sm.setSelectionMode(SelectionMode.SINGLE);
		grid.setSelectionModel(sm);
		setGridDragable(grid);

		vPanel.add(grid, new VerticalLayoutData(1, 1, new Margins(30, 0, 0, 0)));

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

示例11: createPanel

import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {

		final VerticalLayoutContainer vPanel = new VerticalLayoutContainer();

		vPanel.addStyleName(ThemeStyles.get().style().borderBottom());
		final GitHubFileListAttributeBeanProperties props = GWT
				.create(GitHubFileListAttributeBeanProperties.class);

		repositoryStore = new ListStore<GitHubFileListAttributeBean>(
				props.key());

		final ColumnConfig<GitHubFileListAttributeBean, String> nameCol = new ColumnConfig<GitHubFileListAttributeBean, String>(
				props.attributeName(), 400,
				UIMessages.INSTANCE.gitHubColumNameRepo());

		// final ColumnConfig<GitHubFileListAttributeBean, String> typeCol = new
		// ColumnConfig<GitHubFileListAttributeBean, String>(
		// props.attributeType(), 200, "Type");

		final List<ColumnConfig<GitHubFileListAttributeBean, ?>> columns = new ArrayList<ColumnConfig<GitHubFileListAttributeBean, ?>>();

		columns.add(nameCol);
		// columns.add(typeCol);

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

		grid = new Grid<GitHubFileListAttributeBean>(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(30, 0, 0, 0)));

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

示例12: CurrencyViewImpl

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


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