本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.setWidth方法的典型用法代码示例。如果您正苦于以下问题:Java VerticalLayoutContainer.setWidth方法的具体用法?Java VerticalLayoutContainer.setWidth怎么用?Java VerticalLayoutContainer.setWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer
的用法示例。
在下文中一共展示了VerticalLayoutContainer.setWidth方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例2: createBottomPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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;
}
示例3: createBottomPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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;
}
示例4: getBaseFieldSet
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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;
}
示例5: HostGroupWindow
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public HostGroupWindow() {
setHeadingText("host分组信息");
setModal(true);
setHeight(600);
setWidth(500);
container = new VerticalLayoutContainer();
container.setHeight(300);
container.setWidth(300);
add(container);
ColumnConfig<HostGroupModel, String> idColumn = new ColumnConfig<HostGroupModel, String>(
props.id(), 30, "id");
ColumnConfig<HostGroupModel, String> nameColumn = new ColumnConfig<HostGroupModel, String>(
props.name(), 30, "组名");
ColumnConfig<HostGroupModel, String> descriptionColumn = new ColumnConfig<HostGroupModel, String>(
props.description(), 60, "描述");
ColumnModel<HostGroupModel> cm = new ColumnModel(Arrays.asList(
idColumn, nameColumn, descriptionColumn));
store = new ListStore<HostGroupModel>(
new ModelKeyProvider<HostGroupModel>() {
@Override
public String getKey(HostGroupModel item) {
return String.valueOf(item.getId());
}
});
RpcProxy<PagingLoadConfig, PagingLoadResult<HostGroupModel>> proxy = new RpcProxy<PagingLoadConfig, PagingLoadResult<HostGroupModel>>() {
@Override
public void load(
PagingLoadConfig loadConfig,
final AsyncCallback<PagingLoadResult<HostGroupModel>> callback) {
RPCS.getJobService().getHostGroup(loadConfig, callback);
}
};
loader = new PagingLoader<PagingLoadConfig, PagingLoadResult<HostGroupModel>>(
proxy);
loader.setLimit(20);
loader.addLoadHandler(new LoadResultListStoreBinding<PagingLoadConfig, HostGroupModel, PagingLoadResult<HostGroupModel>>(
store));
grid = new Grid<HostGroupModel>(store, cm);
grid.setLoader(loader);
grid.setLoadMask(true);
grid.getView().setForceFit(true);
toolBar = new PagingToolBar(20);
toolBar.bind(loader);
container.add(grid,new VerticalLayoutData(1, 1));
container.add(toolBar,new VerticalLayoutData(1, 30));
addButton(new TextButton("确定", new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
if (handler != null) {
handler.onSelect(event);
}
}
}));
refresh();
}
示例6: CardEditUser
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的package包/类
public CardEditUser(final UserPresenter presenter,final ZUser user) {
setHeadingText("编辑用户信息");
setModal(true);
setHeight(560);
setWidth(420);
add(getLayoutContainer());
VerticalLayoutContainer p = new VerticalLayoutContainer();
p.setWidth(400);
luid=new Label();
name_text=new TextField();
name_text.setWidth(150);
name_text.addValidator(new EmptyValidator<String>());
name_text.setAutoValidate(true);
luserType=new Label();
leffective=new Label();
lemail = new TextField();
lemail.setWidth(350);
lemail.addValidator(new EmptyValidator<String>());
lemail.setAutoValidate(true);
phone_text = new TextArea();
phone_text.setWidth(350);
phone_text.setHeight(148);
phone_text.addValidator(new EmptyValidator<String>());
phone_text.setAutoValidate(true);
description_text = new TextArea();
description_text.setWidth(350);
description_text.setHeight(148);
description_text.addValidator(new EmptyValidator<String>());
description_text.setAutoValidate(true);
p.add(new FieldLabel(luid, "用户账号"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
p.add(new FieldLabel(name_text,"用户姓名"),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(phone_text,"手机号码"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
p.add(new FieldLabel(description_text,"描述"),new VerticalLayoutContainer.VerticalLayoutData(1, -1,new Margins(10)));
getLayoutContainer().add(p);
addButton(new TextButton("保存",new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
user.setDescription(description_text.getValue());
user.setEmail(lemail.getValue());
user.setName(name_text.getValue());
user.setPhone(phone_text.getValue());
RPCS.getUserService().updateUser(user, callback);
CardEditUser.this.hide();
}
}));
refresh(user);
}
示例7: getBaseFieldSet
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; //导入方法依赖的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;
}