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


Java VLayout.setTop方法代码示例

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


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

示例1: showPanel

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
protected void showPanel() {
	panel = new VLayout();
	panel.setParentCanvas(mapWidget);
	panel.setWidth(120);
	panel.setLeft(mapWidget.getWidth() - 130);
	panel.setTop(-80);
	panel.setStyleName(WidgetLayout.STYLE_MEASURE_DISTANCE_PANEL);
	panel.setAnimateTime(500);

	addLabelsToPanel();

	panel.animateMove(mapWidget.getWidth() - 130, 10);
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:14,代码来源:MeasureDistancePanel.java

示例2: SearchPanel

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
/**
 * The only constructor.
 * 
 * @param mapModel
 *            The map's model. It knows what layers we can search in.
 * @param parent
 *            The map's parent widget. We use this to attach the search layout to.
 */
public SearchPanel(final MapModel mapModel, final Canvas parent) {
	// Set some parameters:
	setTop(TOP_OFFSET);
	setLeft(parent.getWidth() - BTN_WIDTH - 8);
	setWidth(BTN_WIDTH);
	setHeight(BTN_WIDTH + BTN_WIDTH + 8);
	setStyleName("search_panel_buttons");

	// Create the button GUI:
	createButtonGui();

	// Create the 2 panels:
	panelLayout = new VLayout();
	panelLayout.setBackgroundColor("${symbol_pound}647386");
	panelLayout.setTop(TOP_OFFSET);
	panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
	panelLayout.setHeight(PANEL_HEIGHT);
	panelLayout.setWidth(PANEL_WIDTH);
	panelLayout.setStyleName("search_panel");
	panelLayout.setVisible(false);

	gridPanel = createGridPanel(mapModel);
	searchPanel = createSearchPanel(mapModel);
	panelLayout.addChild(searchPanel);
	panelLayout.addChild(gridPanel);

	parent.addChild(panelLayout);

	// Add a handler that makes sure this widget is placed at the correct location when the parent widget resizes:
	parent.addResizedHandler(new ResizedHandler() {

		public void onResized(ResizedEvent event) {
			setTop(TOP_OFFSET);
			setLeft(parent.getWidth() - BTN_WIDTH - 8);
			panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
		}
	});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:47,代码来源:SearchPanel.java

示例3: SearchPanel

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
/**
 * The only constructor.
 * 
 * @param mapModel
 *            The map's model. It knows what layers we can search in.
 * @param parent
 *            The map's parent widget. We use this to attach the search layout to.
 */
public SearchPanel(final MapModel mapModel, final Canvas parent) {
	// Set some parameters:
	setTop(TOP_OFFSET);
	setLeft(parent.getWidth() - BTN_WIDTH - 8);
	setWidth(BTN_WIDTH);
	setHeight(BTN_WIDTH + BTN_WIDTH + 8);
	setStyleName("search_panel_buttons");

	// Create the button GUI:
	createButtonGui();

	// Create the 2 panels:
	panelLayout = new VLayout();
	panelLayout.setBackgroundColor("#647386");
	panelLayout.setTop(TOP_OFFSET);
	panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
	panelLayout.setHeight(PANEL_HEIGHT);
	panelLayout.setWidth(PANEL_WIDTH);
	panelLayout.setStyleName("search_panel");
	panelLayout.setVisible(false);

	gridPanel = createGridPanel(mapModel);
	searchPanel = createSearchPanel(mapModel);
	panelLayout.addChild(searchPanel);
	panelLayout.addChild(gridPanel);

	parent.addChild(panelLayout);

	// Add a handler that makes sure this widget is placed at the correct location when the parent widget resizes:
	parent.addResizedHandler(new ResizedHandler() {

		public void onResized(ResizedEvent event) {
			setTop(TOP_OFFSET);
			setLeft(parent.getWidth() - BTN_WIDTH - 8);
			panelLayout.setLeft(parent.getWidth() - PANEL_WIDTH);
		}
	});
}
 
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:47,代码来源:SearchPanel.java

示例4: createExportMenu

import com.smartgwt.client.widgets.layout.VLayout; //导入方法依赖的package包/类
private void createExportMenu() {
    exportMenu = new VLayout();
    exportMenu.setLeft(exportButton.getAbsoluteLeft());
    exportMenu.setTop(30);
    exportMenu.setStyleName("n52_sensorweb_client_interactionmenu");
    exportMenu.setAutoHeight();
    exportMenu.setZIndex(1000000);
    exportMenu.addMember(createPDFLabel());
    exportMenu.addMember(createCSVLabel());
    exportMenu.setVisible(false);
}
 
开发者ID:52North,项目名称:SensorWebClient,代码行数:12,代码来源:Legend.java


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