本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer类的典型用法代码示例。如果您正苦于以下问题:Java HorizontalLayoutContainer类的具体用法?Java HorizontalLayoutContainer怎么用?Java HorizontalLayoutContainer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HorizontalLayoutContainer类属于com.sencha.gxt.widget.core.client.container包,在下文中一共展示了HorizontalLayoutContainer类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: OwnerJobTrend
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
public OwnerJobTrend(){
date=new DateField();
date.setEditable(false);
date.setAllowBlank(false);
date.setValue(new Date());
HorizontalLayoutContainer form=new HorizontalLayoutContainer();
form.add(new FieldLabel(date,"日期"),new HorizontalLayoutData());
form.add(submit,new HorizontalLayoutData());
container.add(form,new VerticalLayoutData(1,30));
container.addAttachHandler(new Handler() {
public void onAttachOrDetach(AttachEvent event) {
submit.fireEvent(new SelectEvent());
}
});
}
示例3: RunningJobTrend
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
public RunningJobTrend(){
start=new DateField();
start.setEditable(false);
start.setValue(new Date(new Date().getTime()-7*24*60*60*1000L));
end=new DateField();
end.setEditable(false);
end.setValue(new Date());
HorizontalLayoutContainer form=new HorizontalLayoutContainer();
form.add(new FieldLabel(start, "起始日期"),new HorizontalLayoutData(0.3,1));
form.add(new FieldLabel(end,"截止日期"),new HorizontalLayoutData(0.3, 1));
form.add(submit,new HorizontalLayoutData(-1,-1));
container.add(form,new VerticalLayoutData(1, 30));
container.addAttachHandler(new Handler() {
public void onAttachOrDetach(AttachEvent event) {
submit.fireEvent(new SelectEvent());
}
});
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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;
}
示例8: 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;
}
示例9: createTopPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
private HorizontalLayoutContainer createTopPanel() {
String fieldWidth = "225px";
VerticalPanel infoPanel = new VerticalPanel();
infoPanel.setSpacing(5);
projectNameField = new TextField();
projectNameField.setEnabled(true);
projectNameField.setWidth(fieldWidth);
infoPanel.add(new Label(UIMessages.INSTANCE.projectFileName()));
infoPanel.add(projectNameField);
projectTitleField = new TextField();
projectTitleField.setEnabled(true);
projectTitleField.setWidth("280px");
infoPanel.add(new Label(UIMessages.INSTANCE.projectTitle()));
infoPanel.add(projectTitleField);
projectVersionField = new TextField();
projectVersionField.setValue(PROJECT_VERSION);
projectVersionField.setEnabled(false);
projectVersionField.setWidth("125px");
infoPanel.add(new Label(UIMessages.INSTANCE.projectVersion()));
infoPanel.add(projectVersionField);
vectorLayerCountField = new TextField();
vectorLayerCountField.setEnabled(false);
vectorLayerCountField.setWidth("125px");
infoPanel.add(new Label(UIMessages.INSTANCE.projectTotalVectorLayer()));
infoPanel.add(vectorLayerCountField);
projectDescriptionField = new TextArea();
projectDescriptionField.setEnabled(true);
projectDescriptionField.setWidth("280px");
infoPanel.add(new Label(UIMessages.INSTANCE.projectDescription()));
infoPanel.add(projectDescriptionField);
HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
hPanel.add(infoPanel);
return hPanel;
}
示例10: createTopPanel
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
private HorizontalLayoutContainer createTopPanel() {
HorizontalLayoutContainer hPanel = new HorizontalLayoutContainer();
VerticalPanel infoPanel = new VerticalPanel();
infoPanel.setSpacing(5);
layerNameField = new TextField();
layerNameField.setEnabled(false);
layerNameField.setWidth(FIELD_WIDTH);
infoPanel.add(new Label(UIMessages.INSTANCE.asdLayerNameLabel()));
infoPanel.add(layerNameField);
infoPanel.add(createAttrPanel());
infoPanel.add(createSearchButtonPanel());
hPanel.add(infoPanel);
return hPanel;
}
示例11: createLayout
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
private HorizontalLayoutContainer createLayout() {
HorizontalLayoutContainer mainContainer = new HorizontalLayoutContainer();
String fieldWidth = "225px";
// ----- Left Panel ----
VerticalPanel layerDataContainer = new VerticalPanel();
layerDataContainer.setWidth("250px");
layerDataContainer.setSpacing(5);
layerName = new TextField();
layerName.setWidth(fieldWidth);
layerName.setAllowBlank(false);
layerDataContainer.add(new Label(UIMessages.INSTANCE
.gdidLayerNameLabel()));
layerDataContainer.add(layerName);
projectionName = new ProjectionComboBox(fieldWidth);
projectionName.setEmptyText(UIMessages.INSTANCE
.asdAttributeComboEmptyText());
layerDataContainer.add(new Label(UIMessages.INSTANCE
.gdidProjectionLabel()));
layerDataContainer.add(projectionName);
Label padding = new Label("");
padding.setHeight("75px");
layerDataContainer.add(padding);
vectorFormatCombo = new VectorFormatComboBox("120px",
VectorFormat.getSupportedImportFormat());
dataFormatField = new FieldLabel(vectorFormatCombo,
UIMessages.INSTANCE.gdidDataFormatLabel());
layerDataContainer.add(dataFormatField);
dataFormatField.setVisible(false);
// ----- Right Panel ----
mainContainer.add(layerDataContainer);
mainContainer.add(createTabPanel());
return mainContainer;
}
示例12: getBaseFieldSet
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
public FieldSet getBaseFieldSet() {
if(baseFieldSet==null){
baseFieldSet=new FieldSet();
baseFieldSet.setHeadingText("基本信息");
baseFieldSet.setHeight(260);
HorizontalLayoutContainer layoutContainer=new HorizontalLayoutContainer();
baseFieldSet.add(layoutContainer);
VerticalLayoutContainer leftContainer = new VerticalLayoutContainer();
leftContainer.setWidth(400);
VerticalLayoutContainer rightContainer=new VerticalLayoutContainer();
rightContainer.setWidth(300);
layoutContainer.add(leftContainer,new HorizontalLayoutData(-1,1));
layoutContainer.add(rightContainer,new HorizontalLayoutData(-1,1));
baseId=new FieldLabel(getLabel(),"id");
baseName=new FieldLabel(getLabel(),"名称");
baseOwner=new FieldLabel(getLabel(),"所有人");
baseDesc=new FieldLabel(new Label("",true),"描述");
baseJobType=new FieldLabel(getLabel(),"任务类型");
baseScheduleType=new FieldLabel(new Label(),"调度类型");
baseCron=new FieldLabel(getLabel(),"定时表达式");
baseAuto=new FieldLabel(getLabel(),"自动调度");
timezone=new FieldLabel(getLabel(),"任务时区");
offRaw=new FieldLabel(getLabel(),"启动延时");
jobCycle=new FieldLabel(getLabel(),"任务周期");
baseDepJobs=new FieldLabel(getLabel(),"依赖任务");
baseDepCycle=new FieldLabel(getLabel(),"依赖周期");
baseFollers=new FieldLabel(getLabel(),"关注人员");
baseAdmins=new FieldLabel(getLabel(),"管理员");
// host=new FieldLabel(getLabel(),"Host");
hostGroupId=new FieldLabel(getLabel(),"host组id");
hostGroupName=new FieldLabel(getLabel(),"host组名");
rollTime = new FieldLabel(getLabel(),"失败重试次数");
rollInterval = new FieldLabel(getLabel(),"重试时间间隔");
jobPriority = new FieldLabel(getLabel(),"任务优先级");
maxTime = new FieldLabel(getLabel(), "预计时长");
importantContacts = new FieldLabel(getLabel(), "重要联系人");
leftContainer.add(baseId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseOwner,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseDesc,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(importantContacts,new VerticalLayoutContainer.VerticalLayoutData(1,-1));
leftContainer.add(baseFollers,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseAdmins,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(hostGroupId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(hostGroupName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseJobType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseScheduleType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseCron,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseAuto,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseDepJobs,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseDepCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(timezone,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(offRaw,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(jobCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(jobPriority,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(rollTime,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(rollInterval,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(maxTime, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
//leftContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
}
return baseFieldSet;
}
示例13: createView
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
private void createView() {
container = new FramedPanel();
container.setHeight("400px");
container.setHeaderVisible(true);
container.setHeadingText("User Role");
VerticalLayoutContainer vlc01 = new VerticalLayoutContainer();
container.add(vlc01);
HorizontalLayoutContainer hlc01 = new HorizontalLayoutContainer();
vlc01.add(hlc01,
new VerticalLayoutContainer.VerticalLayoutData(1,
180));
hlc01.add(gridRolesChoices,
new HorizontalLayoutContainer.HorizontalLayoutData(1,
1,
new Margins(0,
0,
6,
0)));
hlc01.add(addButton,
new HorizontalLayoutContainer.HorizontalLayoutData(-1,
-1,
new Margins(141,
3,
6,
12)));
HorizontalLayoutContainer hlc02 = new HorizontalLayoutContainer();
vlc01.add(hlc02,
new VerticalLayoutContainer.VerticalLayoutData(1,
180));
hlc02.add(gridSelectedRoles,
new HorizontalLayoutContainer.HorizontalLayoutData(1,
1,
new Margins(0,
0,
0,
0)));
hlc02.add(removeButton,
new HorizontalLayoutContainer.HorizontalLayoutData(-1,
-1,
new Margins(143,
3,
3,
12)));
}
示例14: getBaseFieldSet
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer; //导入依赖的package包/类
public FieldSet getBaseFieldSet() {
if(baseFieldSet==null){
baseFieldSet=new FieldSet();
baseFieldSet.setHeadingText("基本信息");
baseFieldSet.setHeight(220);
HorizontalLayoutContainer layoutContainer=new HorizontalLayoutContainer();
baseFieldSet.add(layoutContainer);
VerticalLayoutContainer leftContainer = new VerticalLayoutContainer();
leftContainer.setWidth(300);
VerticalLayoutContainer rightContainer=new VerticalLayoutContainer();
rightContainer.setWidth(300);
layoutContainer.add(leftContainer,new HorizontalLayoutData(-1,1));
layoutContainer.add(rightContainer,new HorizontalLayoutData(-1,1));
baseId=new FieldLabel(getLabel(),"id");
baseName=new FieldLabel(getLabel(),"名称");
baseOwner=new FieldLabel(getLabel(),"所有人");
baseDesc=new FieldLabel(new Label("",true),"描述");
baseJobType=new FieldLabel(getLabel(),"任务类型");
baseScheduleType=new FieldLabel(new Label(),"调度类型");
baseCron=new FieldLabel(getLabel(),"定时表达式");
baseAuto=new FieldLabel(getLabel(),"自动调度");
timezone=new FieldLabel(getLabel(),"任务时区");
offRaw=new FieldLabel(getLabel(),"启动延时");
jobCycle=new FieldLabel(getLabel(),"任务周期");
baseDepJobs=new FieldLabel(getLabel(),"依赖任务");
baseDepCycle=new FieldLabel(getLabel(),"依赖周期");
baseFollers=new FieldLabel(getLabel(),"关注人员");
baseAdmins=new FieldLabel(getLabel(),"管理员");
host=new FieldLabel(getLabel(),"Host");
leftContainer.add(baseId,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseName,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseOwner,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseDesc,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseJobType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseScheduleType,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseCron,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseAuto,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseDepJobs,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(baseDepCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(timezone,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(offRaw,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(jobCycle,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
rightContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseFollers,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
leftContainer.add(baseAdmins,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
//leftContainer.add(host,new VerticalLayoutContainer.VerticalLayoutData(1, -1));
}
return baseFieldSet;
}