本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.add方法的典型用法代码示例。如果您正苦于以下问题:Java VerticalLayoutContainer.add方法的具体用法?Java VerticalLayoutContainer.add怎么用?Java VerticalLayoutContainer.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer
的用法示例。
在下文中一共展示了VerticalLayoutContainer.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFilePanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private FormPanel getFilePanel() {
VerticalLayoutContainer layoutContainer = new VerticalLayoutContainer();
file = new FileUploadField();
file.setName(UIMessages.INSTANCE.gdidFileUploadFieldText());
file.setAllowBlank(false);
layoutContainer.add(new FieldLabel(file, UIMessages.INSTANCE.file()),
new VerticalLayoutData(-18, -1));
layoutContainer.add(new Label(UIMessages.INSTANCE.maxFileSizeText()),
new VerticalLayoutData(-18, -1));
uploadPanel = new FormPanel();
uploadPanel.setMethod(Method.POST);
uploadPanel.setEncoding(Encoding.MULTIPART);
uploadPanel.setAction("fileuploadzip.do");
uploadPanel.setWidget(layoutContainer);
return uploadPanel;
}
示例2: createFilePanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private FormPanel createFilePanel() {
final VerticalLayoutContainer layoutContainer = new VerticalLayoutContainer();
file = new FileUploadField();
file.setName(UIMessages.INSTANCE.gdidFileUploadFieldText());
file.setAllowBlank(false);
layoutContainer.add(new FieldLabel(file, UIMessages.INSTANCE.file()),
new VerticalLayoutData(-18, -1));
layoutContainer.add(new Label(UIMessages.INSTANCE.maxFileSizeText()),
new VerticalLayoutData(-18, -1));
uploadPanel = new FormPanel();
uploadPanel.setMethod(Method.POST);
uploadPanel.setEncoding(Encoding.MULTIPART);
uploadPanel.setAction("fileupload.do");
uploadPanel.setWidget(layoutContainer);
return uploadPanel;
}
示例3: createPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
VerticalLayoutContainer container = new VerticalLayoutContainer();
container.setScrollMode(ScrollMode.AUTO);
container.setSize("450px", "160px");
Label bboxLabel = new Label("Bbox (" + UIMessages.INSTANCE.lowerLeftXField() + ", " + UIMessages.INSTANCE.lowerLeftYField() +
", " + UIMessages.INSTANCE.upperRightXField() + ", " + UIMessages.INSTANCE.upperRightYField() + ")");
bboxLabel.getElement().getStyle().setFontWeight(FontWeight.BOLD);
container.add(bboxLabel);
bboxField = new TextField();
bboxField.setEmptyText(UIMessages.INSTANCE.bboxFieldCustomExtent());
bboxField.setWidth("450px");
container.add(bboxField);
return container;
}
示例4: createGridPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private HorizontalPanel createGridPanel() {
HorizontalPanel hPanel = new HorizontalPanel();
hPanel.setSize("510px", "320px");
vehicleStore = new ListStore<VehicleJSO>(vehicleProps.key());
vehiculeGrid = createGrid(vehicleStore, vehicleProps);
vehiculeGrid.getSelectionModel().addSelectionChangedHandler(
new SelectionChangedHandler<VehicleJSO>() {
@Override
public void onSelectionChanged(
SelectionChangedEvent<VehicleJSO> event) {
List<VehicleJSO> selected = event.getSelection();
vehicleToolBar.setVehicles(selected);
}
});
VerticalLayoutContainer gridContainer = new VerticalLayoutContainer();
gridContainer.setWidth(500);
gridContainer.setHeight(320);
gridContainer.add(vehiculeGrid, new VerticalLayoutData(1, 1));
hPanel.add(gridContainer);
hPanel.add(vehicleToolBar);
return hPanel;
}
示例5: ContentView
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public ContentView() {
tabs = new HashMap<>();
contentContaineer = new VerticalLayoutContainer();
contentContaineer.setBorders(false);
tabPanel = new TabPanel();
tabUebersicht = new TabItemConfig("Portal");
// Tab-Panel
tabPanel.setBorders(false);
tabPanel.setBodyBorder(false);
tabPanel.setTabScroll(true);
// Portal-Tab (immer vorhanden)
tabUebersicht.setClosable(false);
tabUebersicht.setEnabled(true);
tabPanel.add(createUebersicht(),
tabUebersicht);
contentContaineer.add(tabPanel,
new VerticalLayoutData(1,
1));
createAndAddGridPortlet();
bind();
initWidget(contentContaineer);
}
示例6: CardUserInfo
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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);
}
示例7: FileManagerViewImpl
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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);
}
示例8: getBaseFieldSet
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public FieldSet getBaseFieldSet() {
if(baseFieldSet==null){
baseFieldSet=new FieldSet();
baseFieldSet.setHeadingText("基本信息");
VerticalLayoutContainer p = new VerticalLayoutContainer();
baseId=new Label();
baseName=new Label();
baseOwner=new Label();
baseDesc=new Label();
baseFollers=new Label();
baseAdmins=new Label();
p.add(new FieldLabel(baseId, "id"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
p.add(new FieldLabel(baseName,"名称"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
p.add(new FieldLabel(baseOwner,"所有人"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
p.add(new FieldLabel(baseDesc,"描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
p.add(new FieldLabel(baseFollers,"关注人员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
p.add(new FieldLabel(baseAdmins,"管理员"),new VerticalLayoutContainer.VerticalLayoutData(1, -1));
baseFieldSet.add(p);
}
return baseFieldSet;
}
示例9: initBorderLayout
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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);
}
示例10: createPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel() {
final VerticalLayoutContainer panel = new VerticalLayoutContainer();
longitudTextField = new TextField();
longitudTextField.setTitle(UIMessages.INSTANCE.longitude());
longitudTextField.setAllowBlank(false);
longitudTextField.setWidth(FIELD_WIDTH);
final FieldLabel longitudLabel = new FieldLabel(longitudTextField,
UIMessages.INSTANCE.longitude());
panel.add(longitudLabel, new VerticalLayoutData(1, -1));
latitudTextField = new TextField();
latitudTextField.setTitle(UIMessages.INSTANCE.latitude());
latitudTextField.setWidth(FIELD_WIDTH);
latitudTextField.setAllowBlank(false);
final FieldLabel latitudLabel = new FieldLabel(latitudTextField,
UIMessages.INSTANCE.latitude());
panel.add(latitudLabel, new VerticalLayoutData(1, -1));
initializeFields();
epsgCombo = new ProjectionComboBox(FIELD_WIDTH);
epsgCombo.setValue("WGS84");
final FieldLabel epsgLabel = new FieldLabel(epsgCombo,
UIMessages.INSTANCE.lidProjectionLabel());
panel.add(epsgLabel, new VerticalLayoutData(1, -1));
return panel;
}
示例11: createContainerTab
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer createContainerTab(final String titleTab) {
final VerticalLayoutContainer container = new VerticalLayoutContainer();
container.add(layerTrees.get(titleTab).getToolbar(),
new VerticalLayoutData());
container.add(layerTrees.get(titleTab).getTree());
return container;
}
示例12: 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;
}
示例13: createPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private Widget createPanel(final Geoprocesses spatialOperation) {
panel = new VerticalLayoutContainer();
panel.add(new Label(UIMessages.INSTANCE.descAnalysisText()));
panel.add(new HTML("<HR>"));
panel.add(new HTML("<BR>"));
createGeoprocessAndDistanceField(spatialOperation);
createComboLayer(LAYER_COMBO_1, COMBO1_ID, VALIDATE_LAYER_1_BUTTON);
createComboLayer(LAYER_COMBO_2, COMBO2_ID, VALIDATE_LAYER_2_BUTTON);
panel.add(new HTML("<BR>"));
panel.add(new HTML("<HR>"));
panel.add(new Label(UIMessages.INSTANCE.sodInfoText()));
return panel;
}
示例14: getVerticalGroupButtons
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer getVerticalGroupButtons() {
VerticalLayoutContainer verticalLayoutContainer = new VerticalLayoutContainer();
verticalLayoutContainer.add(createMapTabPanel());
verticalLayoutContainer.add(createFirstTabPanel());
verticalLayoutContainer.add(createSecondTabPanel());
return verticalLayoutContainer;
}
示例15: getZoomToolTab
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
private VerticalLayoutContainer getZoomToolTab() {
VerticalLayoutContainer verticalLayoutContainer = new VerticalLayoutContainer();
verticalLayoutContainer.add(getZoomToolGroupTools());
verticalLayoutContainer.add(getZoomToolGroup2Tools());
return verticalLayoutContainer;
}