本文整理汇总了Java中com.sencha.gxt.widget.core.client.form.FieldLabel类的典型用法代码示例。如果您正苦于以下问题:Java FieldLabel类的具体用法?Java FieldLabel怎么用?Java FieldLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FieldLabel类属于com.sencha.gxt.widget.core.client.form包,在下文中一共展示了FieldLabel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getFilePanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:OpenProjectDialog.java
示例2: createFilePanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:21,代码来源:JoinDataDialog.java
示例3: initializeStatusPanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
private void initializeStatusPanel() {
String comboWidth = "125px";
statusPanel = new VerticalPanel();
StyleInjector.inject(".statusPanelStyle { " + "background: #E0ECF8;"
+ "border-radius: 5px 10px;" + "opacity: 0.8}");
statusPanel.setStyleName("statusPanelStyle");
statusPanel.setSpacing(5);
statusPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
initializeLayerCombo(comboWidth);
initializeEpsgCombo(comboWidth);
initializeStatusGrid();
statusPanel.add(new FieldLabel(layerCombo, UIMessages.INSTANCE
.sbSelectLayerLabel()));
statusPanel.add(new FieldLabel(epsgCombo, UIMessages.INSTANCE
.sbEpsgLabel()));
statusPanel.add(statusGrid);
statusPanel.setVisible(false);
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:23,代码来源:StatusPanelWidget.java
示例4: ChooseConfigWindow
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
public ChooseConfigWindow() {
setHeadingText("选择JOB版本");
setSize("350", "100");
setModal(true);
combo=new ComboBox<Map<String, String>>(store,new LabelProvider<Map<String, String>>() {
public String getLabel(Map<String, String> item) {
return item.get("name");
}
});
combo.setForceSelection(true);
combo.setTriggerAction(TriggerAction.QUERY);
combo.setStore(store);
add(new FieldLabel(combo, "选择JOB版本"));
addButton(submit);
// TODO Auto-generated constructor stub
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:18,代码来源:ChooseConfigWindow.java
示例5: getBaseFieldSet
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:25,代码来源:CardInfo.java
示例6: CardUserInfo
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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);
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:27,代码来源:CardUserInfo.java
示例7: OwnerJobTrend
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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());
}
});
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:18,代码来源:OwnerJobTrend.java
示例8: RunningJobTrend
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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());
}
});
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:21,代码来源:RunningJobTrend.java
示例9: build
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
private void build() {
container = new CssFloatLayoutContainer();
FieldLabel fl01 = new FieldLabel(keyCurrentPresenterShowed,
"Key der Daten:");
fl01.setLabelWidth(192);
container.add(fl01,
new CssFloatData(1,
new Margins(6,
12,
6,
12)));
FieldLabel fl02 = new FieldLabel(tsCreated,
"Zeitpunkt des Erzeugens:");
fl02.setLabelWidth(192);
container.add(fl02,
new CssFloatData(1,
new Margins(6,
12,
6,
12)));
}
开发者ID:mvp4g,项目名称:mvp4g-examples,代码行数:22,代码来源:MultiPresenterView.java
示例10: createPanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:32,代码来源:CoordinateGeolocationDialog.java
示例11: createPanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
private Widget createPanel() {
VerticalLayoutContainer panel = new VerticalLayoutContainer();
initLayerCombo1();
FieldLabel layer1Label = new FieldLabel(layerCombo1,
UIMessages.INSTANCE.layerLabelText(""));
panel.add(layer1Label, new VerticalLayoutData(1, -1));
return panel;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:12,代码来源:CopyElementDialog.java
示例12: getFilePanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
private FormPanel getFilePanel() {
VerticalLayoutContainer layoutContainer = new VerticalLayoutContainer();
file = new FileUploadField();
file.addChangeHandler(new ChangeHandler() {
@Override
public void onChange(ChangeEvent event) {
setAutoFormat(file.getValue());
String name = file.getValue().substring(0, file.getValue().lastIndexOf("."));
name = name.substring(file.getValue().lastIndexOf("\\") +1);
layerName.setText(name);
}
});
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;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:32,代码来源:GeoDataImportDialog.java
示例13: EditorPanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
public EditorPanel(ClassEditor<?> editor) {
this.editor = editor;
setScrollMode(ScrollSupport.ScrollMode.AUTO);
for (Map.Entry<String, Field<?>> entry : editor.getFieldsEditors().entrySet()) {
add(new FieldLabel(entry.getValue(), entry.getKey()), new VerticalLayoutData(1, -1));
}
}
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:8,代码来源:EditorPanel.java
示例14: AbstractEditorTab
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
public AbstractEditorTab(EditorWidgetsMapper editorWidgetsMapper, String tabName) {
this.editorWidgetsMapper = editorWidgetsMapper;
this.tabItemConfig = new TabItemConfig(tabName);
this.propertiesPanelLayout = new CardLayoutContainer();
this.variableNameTextField = new TextField();
layout = new VerticalLayoutContainer();
layout.add(new FieldLabel(variableNameTextField, "Variable name"), new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(5, 5, 0, 5)));
layout.add(propertiesPanelLayout, new VerticalLayoutContainer.VerticalLayoutData(1, 1, new Margins(5)));
initWidget(layout);
}
开发者ID:kospiotr,项目名称:gwt-layout-designer,代码行数:13,代码来源:AbstractEditorTab.java
示例15: initializePanel
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
@Override
protected void initializePanel() {
String fieldWidth = "125px";
fillColor = new TextField();
fillColor.setWidth(fieldWidth);
addFocusHandler(fillColor);
fillOpacity = new Slider();
fillOpacity.setWidth(fieldWidth);
fillOpacity.setValue(0);
fillOpacity.setIncrement(1);
lineColor = new TextField();
lineColor.setWidth(fieldWidth);
addFocusHandler(lineColor);
lineThick = new Slider();
lineThick.setWidth(fieldWidth);
lineThick.setValue(0);
lineThick.setMaxValue(20);
lineThick.setIncrement(1);
colorPicker = new ColorPicker();
colorPicker.addSelectedColorChangedListener(this);
HorizontalPanel mainPanel = new HorizontalPanel();
mainPanel.setSpacing(10);
VerticalLayoutContainer vlc = new VerticalLayoutContainer();
vlc.add(new FieldLabel(fillColor, UIMessages.INSTANCE.vlswFillcolor()),
new VerticalLayoutData(-18, -1));
vlc.add(new FieldLabel(fillOpacity, UIMessages.INSTANCE
.vlswFillopacity()), new VerticalLayoutData(-18, -1));
vlc.add(new FieldLabel(lineColor, UIMessages.INSTANCE.vlswStrokeColor()),
new VerticalLayoutData(-18, -1));
vlc.add(new FieldLabel(lineThick, UIMessages.INSTANCE.vlswStrokeWidth()),
new VerticalLayoutData(-18, -1));
mainPanel.add(vlc);
mainPanel.add(colorPicker);
panel.add(mainPanel);
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:45,代码来源:ColorStyleTab.java
示例16: createLayout
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:geowe,项目名称:sig-seguimiento-vehiculos,代码行数:43,代码来源:GeoDataImportDialog.java
示例17: getBaseFieldSet
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的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;
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:71,代码来源:CardInfo.java
示例18: init
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
private void init(CronExpress model){
minute = new TextField();
minute.setWidth(150);
minute.setHeight(36);
hour = new TextField();
hour.setWidth(150);
hour.setHeight(36);
day = new TextField();
day.setWidth(150);
day.setHeight(36);
month = new TextField();
month.setWidth(150);
month.setHeight(36);
week = new TextField();
week.setWidth(150);
week.setHeight(36);
if (model.isFull()) {
minute.setValue(model.getMinute());
hour.setValue(model.getHour());
day.setValue(model.getDay());
month.setValue(model.getMonth());
week.setValue(model.getWeek());
}
minuteWrapper = new FieldLabel(minute, "分");
minuteWrapper.setLabelWidth(30);
hourWrapper = new FieldLabel(hour,"时");
hourWrapper.setLabelWidth(30);
dayWrapper = new FieldLabel(day,"天");
dayWrapper.setLabelWidth(30);
monthWrapper = new FieldLabel(month,"月");
monthWrapper.setLabelWidth(30);
weekWrapper = new FieldLabel(week, "周");
weekWrapper.setLabelWidth(30);
getLayoutContainer().add(minuteWrapper);
getLayoutContainer().add(hourWrapper);
getLayoutContainer().add(dayWrapper);
getLayoutContainer().add(monthWrapper);
getLayoutContainer().add(weekWrapper);
addButton(new TextButton("确认",new SelectHandler() {
@Override
public void onSelect(SelectEvent event) {
if (handler != null) {
handler.onSelect(event);
}
CardEditCron.this.hide();
}
}));
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:57,代码来源:CardEditCron.java
示例19: CardEditGroup
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
public CardEditGroup(final GroupPresenter presenter){
this.presenter=presenter;
this.model=presenter.getGroupModel();
name=new TextField();
name.setAllowBlank(false);
desc=new TextArea();
FlowLayoutContainer centerContainer=new FlowLayoutContainer();
centerContainer.setScrollMode(ScrollMode.AUTOY);
FieldSet one=new FieldSet();
one.setHeadingText("基本信息");
VerticalLayoutContainer p1 = new VerticalLayoutContainer();
p1.add(new FieldLabel(name, "名称"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
p1.add(new FieldLabel(desc, "描述"),new VerticalLayoutContainer.VerticalLayoutData(1, 1));
one.add(p1);
centerContainer.add(one,new MarginData(5));
final FieldSet two=new FieldSet();
two.setHeadingText("配置项信息");
configs=new TextArea();
configs.setResizable(TextAreaInputCell.Resizable.BOTH);
configs.addValidator(FormatUtil.propValidator);
configs.setWidth(800);
configs.setHeight(150);
two.add(configs);
centerContainer.add(two,new MarginData(5));
final FieldSet three=new FieldSet();
three.setHeadingText("资源信息");
resources=new TextArea();
resources.setResizable(Resizable.BOTH);
resources.setWidth(800);
resources.setHeight(150);
resources.addValidator(FormatUtil.resourceValidator);
three.add(resources);
centerContainer.add(three,new MarginData(5));
setCenter(centerContainer);
addButton(new TextButton("返回", new SelectHandler() {
public void onSelect(SelectEvent event) {
presenter.display(presenter.getGroupModel());
}
}));
addButton(upload);
addButton(save);
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:52,代码来源:CardEditGroup.java
示例20: NewJobWindow
import com.sencha.gxt.widget.core.client.form.FieldLabel; //导入依赖的package包/类
public NewJobWindow(PlatformBus bus,GroupModel groupModel){
this.bus=bus;
this.groupModel=groupModel;
setModal(true);
setHeight(150);
setWidth(350);
setHeadingText(groupModel.getName()+" 下新建任务");
formPanel=new FormPanel();
VerticalLayoutContainer p=new VerticalLayoutContainer();
formPanel.add(p);
name=new TextField();
name.setAllowBlank(false);
p.add(new FieldLabel(name, "任务名称"),new VerticalLayoutData(1,-1));
ListStore<Map<String, String>> jobTypeStore=new ListStore<Map<String, String>>(new ModelKeyProvider<Map<String, String>>() {
public String getKey(Map<String, String> item) {
return item.get("name");
}
});
Map<String, String> javamain=new HashMap<String, String>();
javamain.put("name", JobModel.MapReduce);
jobTypeStore.add(javamain);
Map<String, String> shell=new HashMap<String, String>();
shell.put("name", JobModel.SHELL);
jobTypeStore.add(shell);
Map<String, String> hive=new HashMap<String, String>();
hive.put("name", JobModel.HIVE);
jobTypeStore.add(hive);
jobType=new ComboBox<Map<String, String>>(jobTypeStore,new LabelProvider<Map<String, String>>() {
public String getLabel(Map<String, String> item) {
return item.get("name");
}
});
jobType.setAllowBlank(false);
jobType.setTypeAhead(true);
jobType.setTriggerAction(TriggerAction.ALL);
jobType.setEditable(false);
jobType.setStore(jobTypeStore);
p.add(new FieldLabel(jobType, "任务类型"),new VerticalLayoutData(1, -1));
add(formPanel);
addButton(save);
}
开发者ID:ctripcorp,项目名称:dataworks-zeus,代码行数:50,代码来源:NewJobWindow.java
注:本文中的com.sencha.gxt.widget.core.client.form.FieldLabel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论