本文整理汇总了Java中com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData类的典型用法代码示例。如果您正苦于以下问题:Java VerticalLayoutData类的具体用法?Java VerticalLayoutData怎么用?Java VerticalLayoutData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VerticalLayoutData类属于com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer包,在下文中一共展示了VerticalLayoutData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFilePanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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.VerticalLayoutData; //导入依赖的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: createGridPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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;
}
示例4: FileManagerViewImpl
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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);
}
示例5: OwnerJobTrend
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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());
}
});
}
示例6: RunningJobTrend
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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());
}
});
}
示例7: ContentView
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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);
}
示例8: ContentView
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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));
createAndAddGridPersonPortlet();
bind();
initWidget(contentContaineer);
}
示例9: setTotalStats
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的package包/类
@Override
public void setTotalStats(List<AddressStatsDTO> stats) {
totalChart = new AddressChartPanel("Total of selected addresses", true);
totalChart.setAddressStats(stats);
int insertionIndex = 1;
if (getGlobalContainer().getWidgetCount() > 1) {
insertionIndex = 2;
}
totalChart.setDisplaySummary(isSummaryDisplayed());
totalChart.setDisplayBTCChart(isBTCChartDisplayed());
totalChart.setDisplayPowerChart(isPowerChartDisplayed());
totalChart.addPaidoutClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
presenter.loadTotalPaidout();
}
});
getGlobalContainer().insert(totalChart, insertionIndex, new VerticalLayoutData(1, -1, new Margins(5)));
}
示例10: addAddressStats
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的package包/类
@Override
public void addAddressStats(final String address, List<AddressStatsDTO> stats) {
AddressChartPanel chart = new AddressChartPanel(address, false);
chart.setAddressStats(stats);
chart.setDisplaySummary(isSummaryDisplayed());
chart.setDisplayBTCChart(isBTCChartDisplayed());
chart.setDisplayPowerChart(isPowerChartDisplayed());
chart.addPaidoutClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
List<String> addresses = new ArrayList<String>();
addresses.add(address);
presenter.loadPaidout(addresses);
}
});
getAddressesContainer().add(chart, new VerticalLayoutData(1, -1, new Margins(5)));
addressCharts.put(address, chart);
}
示例11: setCurrencyTicker
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的package包/类
@Override
public void setCurrencyTicker(CurrencyTickerDTO ticker) {
lastRefreshLabel.resetTimer();
this.currentTicker = ticker;
currencyFramedPanel.setWidget(createCurrencyPanel(ticker));
currencyFramedPanel.forceLayout();
mainContainer.insert(currencyFramedPanel, 0, new VerticalLayoutData(1, -1, new Margins(5)));
setTotalStats(currentTotalStats);
for (AddressStatsDTO stats : currentAddressStats.values()) {
setAddressStats(stats);
}
updateBlockchainPanels();
// Set the main container in the window only if not already done.
if (window.getWidgetIndex(mainContainer) < 0) {
window.setWidget(mainContainer);
window.forceLayout();
}
}
示例12: clearStats
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的package包/类
@Override
public void clearStats() {
addressStatsFramedPanels.clear();
addressStatsVerticalContainer.clear();
addressBlockchainFramedPanels.clear();
if (blockchainByAddress != null) {
blockchainByAddress.clear();
}
currentAddressStats.clear();
if (mainContainer != null) {
mainContainer.clear();
mainContainer.insert(currencyFramedPanel, 0, new VerticalLayoutData(1, -1, new Margins(5)));
currentTotalStats = null;
}
}
示例13: addAddressStats
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的package包/类
@Override
public void addAddressStats(final String address, List<AddressStatsDTO> stats) {
AddressChartPanel chart = new AddressChartPanel(address, false);
chart.setAddressStats(stats);
chart.setDisplaySummary(isSummaryDisplayed());
chart.setDisplayBTCChart(isBTCChartDisplayed());
chart.setDisplayPowerChart(isPowerChartDisplayed());
chart.addPaidoutClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
List<String> addresses = new ArrayList<String>();
addresses.add(address);
presenter.loadPaidout(addresses);
}
});
getAddressesContainer().add(chart, new VerticalLayoutData(1, -1, new Margins(5)));
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
public void execute() {
forceResize();
}
});
addressCharts.put(address, chart);
}
示例14: createPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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;
}
示例15: createBottomPanel
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; //导入依赖的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;
}