本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer.setSize方法的典型用法代码示例。如果您正苦于以下问题:Java HorizontalLayoutContainer.setSize方法的具体用法?Java HorizontalLayoutContainer.setSize怎么用?Java HorizontalLayoutContainer.setSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer
的用法示例。
在下文中一共展示了HorizontalLayoutContainer.setSize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: showDialog
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private void showDialog(final HTML info) {
final Dialog simple = new Dialog();
simple.setHeadingText(UIMessages.INSTANCE.wmsInfo());
HorizontalLayoutContainer container = new HorizontalLayoutContainer();
container.setScrollMode(ScrollMode.AUTO);
container.setSize("280px", "180px");
container.add(replaceHref(info));
simple.setSize("300px", "200px");
simple.setResizable(true);
simple.setHideOnButtonClick(true);
simple.setPredefinedButtons(PredefinedButton.CLOSE);
simple.setBodyStyleName("pad-text");
simple.getBody().addClassName("pad-text");
simple.add(container);
simple.show();
}
示例2: getHelpPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer getHelpPanel(final HTML data) {
HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
panel.setSize("400px", "400px");
panel.add(data);
ScrollSupport scrollSupport = panel.getScrollSupport();
scrollSupport.setScrollMode(ScrollMode.AUTO);
return panel;
}
示例3: getPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer getPanel(final HTML data) {
HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
panel.setSize("400px", "400px");
panel.add(data);
ScrollSupport scrollSupport = panel.getScrollSupport();
scrollSupport.setScrollMode(ScrollMode.AUTO);
return panel;
}
示例4: createBottomPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createBottomPanel() {
HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
hPanel.setSize("510px", "200px");
PagingToolBar toolBar = new PagingToolBar(FEATURES_PER_PAGE);
toolBar.setBorders(false);
featureGrid = new PagingFeatureGrid(toolBar);
featureGrid.getSelectionModel().addSelectionChangedHandler(
new SelectionChangedHandler<VectorFeature>() {
@Override
public void onSelectionChanged(
SelectionChangedEvent<VectorFeature> event) {
setSelectedElement();
}
});
layerInfoToolBar.setAllTools();
VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
gridContainer.setWidth(500);
gridContainer.setHeight(200);
gridContainer.add(featureGrid, new VerticalLayoutData(1, 1));
gridContainer.add(toolBar, new VerticalLayoutData(1, -1));
hPanel.add(gridContainer);
hPanel.add(layerInfoToolBar);
return hPanel;
}
示例5: createBottomPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private HorizontalLayoutContainer createBottomPanel() {
HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
hPanel.setSize("510px", "220px");
PagingToolBar toolBar = new PagingToolBar(FEATURES_PER_PAGE);
toolBar.setBorders(false);
featureGrid = new PagingFeatureGrid(toolBar);
featureGrid.getSelectionModel().addSelectionChangedHandler(
new SelectionChangedHandler<VectorFeature>() {
@Override
public void onSelectionChanged(
SelectionChangedEvent<VectorFeature> event) {
setSelectedElements();
}
});
VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
gridContainer.setWidth(500);
gridContainer.setHeight(220);
gridContainer.add(featureGrid, new VerticalLayoutData(1, 1));
gridContainer.add(toolBar, new VerticalLayoutData(1, -1));
hPanel.add(gridContainer);
hPanel.add(layerSearchToolBar);
return hPanel;
}
示例6: createPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
HorizontalLayoutContainer container = new HorizontalLayoutContainer();
container.setScrollMode(ScrollMode.AUTO);
container.setSize("300px", "260px");
container.add(getTextPanel());
return container;
}