本文整理了Java中com.vaadin.ui.Panel.<init>()
方法的一些代码示例,展示了Panel.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.<init>()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:<init>
[英]Creates a new empty panel.
[中]创建一个新的空面板。
代码示例来源:origin: uk.q3c.krail/krail
public Panel getViewDisplayPanel() {
if (viewDisplayPanel == null) {
viewDisplayPanel = new Panel();
}
return viewDisplayPanel;
}
代码示例来源:origin: OpenNMS/opennms
private void initContentPanel() {
contentPanel = new Panel();
contentPanel.setSizeFull();
}
代码示例来源:origin: eclipse/hawkbit
private Panel buildContent() {
final Panel content = new Panel();
content.setSizeFull();
content.setStyleName("view-content");
return content;
}
代码示例来源:origin: org.opencms/opencms-core
/**
* Adds a child category panel.<p>
*
* @param label the label
* @param child the child widget
*/
public void addChild(String label, CmsAppHierarchyPanel child) {
Panel panel = new Panel();
panel.setCaption(label);
panel.setContent(child);
addComponent(panel);
}
代码示例来源:origin: uk.q3c.krail/krail
@Override
public void doBuild(ViewChangeBusMessage busMessage) {
Panel p = new Panel("Logged out");
p.setSizeFull();
getLayout().addComponent(p);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
protected void init()
{
this.tabsheetPanel = new Panel();
this.tabsheetPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
this.tabsheetPanel.setSizeFull();
super.setSizeFull();
}
代码示例来源:origin: korpling/ANNIS
@Override
public Panel createComponent(VisualizerInput input,
VisualizationToggle visToggle) {
Panel p = new Panel();
p.setHeight(input.getMappings().getProperty("height", "-1") + "px");
p.setContent(new PDFPanel(input, "-1"));
return p;
}
}
代码示例来源:origin: OpenNMS/opennms
private Panel createPanel(Component content, String caption) {
Panel panel = new Panel();
panel.setSizeFull();
panel.setCaption(caption);
panel.setContent(content);
panel.addStyleName("novscroll");
return panel;
}
}
代码示例来源:origin: uk.q3c.krail/krail
/**
* {@inheritDoc}
*/
@Override
protected void doBuild(ViewChangeBusMessage busMessage) {
HorizontalLayout horizontalLayout = new HorizontalLayout(activeOptionSourcePanel, selectionPanel, selectedOptionSourcePanel);
activeOptionSourcePanel.displayInfo();
selectedOptionSourcePanel.displayInfo();
setRootComponent(new Panel(horizontalLayout));
}
}
代码示例来源:origin: net.sf.itcb.common/itcb-common-web-vaadin
@Override
protected ComponentContainer initLayout() {
customLayout = new CustomLayout("");
customLayout.setTemplateContents(templateContents);
defineLayoutContent();
//
contentContainer = new Panel();
customLayout.addComponent(contentContainer, location);
return customLayout;
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
private void initContentPanel() {
contentPanel = new Panel();
contentPanel.setContent(new VerticalLayout());
contentPanel.getContent().setSizeFull();
contentPanel.setSizeFull();
}
代码示例来源:origin: fi.vm.sade.organisaatio/organisaatio-ui-widgets
public OrganisaatioSearchPopup(OrganisaatioSearchTree orgSearch,List<String> oids) {
orgSearchTree = orgSearch;
orgSearchTree.init();
orgSearchTree.reloadWithOids(oids);
root = new Panel();
root.setWidth(popupWidth);
root.setHeight(popupHeight);
root.addComponent(orgSearchTree);
}
代码示例来源:origin: fi.vm.sade.organisaatio/organisaatio-ui-widgets
public OrganisaatioSearchPopup(OrganisaatioSearchTree orgSearch) {
orgSearchTree = orgSearch;
orgSearchTree.init();
orgSearchTree.reload();
root = new Panel();
root.setWidth(popupWidth);
root.setHeight(popupHeight);
root.addComponent(orgSearchTree);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void addHtmlContent(String html) {
Panel panel = new Panel();
panel.setWidth(800, UNITS_PIXELS);
panel.setHeight(300, UNITS_PIXELS);
content = new Label(html, Label.CONTENT_XHTML);
content.setHeight(100, UNITS_PERCENTAGE);
panel.addComponent(content);
addComponent(panel);
}
代码示例来源:origin: org.aperteworkflow/gui-commons
private void wrapWithModalWindow(Form form) {
Panel panel = new Panel();
panel.setWidth("800px");
panel.setScrollable(true);
panel.addComponent(form);
setDetailsWindow(modalWindow(getMessage("dict.item"), panel));
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
@Override
public com.vaadin.ui.Component getPopupComponent()
{
Panel popupPanel = new Panel();
popupPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
popupPanel.setHeight("300px");
popupPanel.setWidth("300px");
popupViewLayout.setImmediate(true);
popupPanel.setContent(popupViewLayout);
popupPanel.setImmediate(true);
return popupPanel;
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6
public AbstractSectionsPanel() {
selector = new SectionsSelector();
this.addComponent(selector);
content = new Panel();
this.addComponent(content);
content.setSizeFull();
setExpandRatio(content, 1.0f);
selector.eventHandler().register(this);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin
public AbstractSectionsPanel() {
selector = new SectionsSelector();
this.addComponent(selector);
content = new Panel();
this.addComponent(content);
content.setSizeFull();
setExpandRatio(content, 1.0f);
selector.eventHandler().register(this);
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
private Panel wrapToPanel(Component component) {
Panel panel = new Panel(component.getCaption());
panel.setSizeFull();
VerticalLayout layout = new VerticalLayout();
layout.setMargin(false);
layout.setSpacing(false);
layout.setSizeFull();
layout.addComponent(component);
panel.setContent(layout);
component.setCaption(null);
return panel;
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6
protected void addToCurrent(VaadinFormBuilder builder) {
if (!MString.isEmpty(getElement().getTitle())) {
panel = new Panel(getElement().getTitle());
panel.setContent(layout);
panel.setWidth("100%");
builder.addComposite((LayoutComposite)getElement(), panel);
} else
super.addToCurrent(builder);
}
内容来源于网络,如有侵权,请联系作者删除!