本文整理汇总了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);
}
示例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);
}
});
}
示例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);
}
});
}
示例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);
}