本文整理汇总了Java中com.sencha.gxt.widget.core.client.form.FieldLabel类的典型用法代码示例。如果您正苦于以下问题:Java FieldLabel类的具体用法?Java FieldLabel怎么用?Java FieldLabel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FieldLabel类属于com.sencha.gxt.widget.core.client.form包,在下文中一共展示了FieldLabel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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);
}
示例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
}
示例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;
}
示例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);
}
示例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());
}
});
}
示例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());
}
});
}
示例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)));
}
示例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;
}
示例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;
}
示例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;
}
示例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));
}
}
示例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);
}
示例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);
}