本文整理了Java中com.vaadin.ui.Panel.setSizeUndefined()
方法的一些代码示例,展示了Panel.setSizeUndefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setSizeUndefined()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:setSizeUndefined
暂无
代码示例来源:origin: org.opencms/opencms-core
/**
* Displays the resource infos panel.<p>
*
* @param resources the resources
*/
public void displayResourceInfo(List<CmsResource> resources) {
m_infoResources = Lists.newArrayList(resources);
if (m_infoComponent != null) {
m_mainPanel.removeComponent(m_infoComponent);
m_infoComponent = null;
}
if ((resources != null) && !resources.isEmpty()) {
if (resources.size() == 1) {
m_infoComponent = new CmsResourceInfo(resources.get(0));
m_mainPanel.addComponent(m_infoComponent, 0);
} else {
m_infoComponent = createResourceListPanel(
Messages.get().getBundle(A_CmsUI.get().getLocale()).key(Messages.GUI_RESOURCE_INFO_0),
resources);
m_mainPanel.addComponent(m_infoComponent, 0);
m_mainPanel.setExpandRatio(m_infoComponent, 1);
// reset expand ratio of the content panel
m_contentPanel.setSizeUndefined();
m_contentPanel.setWidth("100%");
m_mainPanel.setExpandRatio(m_contentPanel, 0);
}
}
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initAddSubTaskPanel(HorizontalLayout headerLayout) {
// The add button is placed in a panel, so we can catch 'enter' and 'escape' events
addSubTaskPanel = new Panel();
addSubTaskPanel.setContent(new VerticalLayout());
addSubTaskPanel.setSizeUndefined();
addSubTaskPanel.addStyleName(Reindeer.PANEL_LIGHT);
addSubTaskPanel.addStyleName("no-border");
headerLayout.addComponent(addSubTaskPanel);
initAddSubTaskPanelKeyboardActions();
initAddButton();
}
代码示例来源:origin: uk.q3c.krail/krail
@Override
public void doBuild(ViewChangeBusMessage event) {
super.doBuild(event);
centrePanel = new Panel();
centrePanel.addStyleName(ChameleonTheme.PANEL_BUBBLE);
centrePanel.setSizeUndefined();
VerticalLayout vl = new VerticalLayout();
centrePanel.setContent(vl);
vl.setSpacing(true);
vl.setSizeUndefined();
label = new Label();
usernameBox = new TextField();
passwordBox = new PasswordField();
Label demoInfoLabel = new Label("for this demo, enter any user name, and a password of 'password'");
Label demoInfoLabel2 = new Label("In a real application your Shiro Realm implementation defines how to authenticate");
submitButton = new Button();
submitButton.addClickListener(this);
statusMsgLabel = new Label("Please enter your username and password");
vl.addComponent(label);
vl.addComponent(demoInfoLabel);
vl.addComponent(demoInfoLabel2);
vl.addComponent(usernameBox);
vl.addComponent(passwordBox);
vl.addComponent(submitButton);
vl.addComponent(statusMsgLabel);
setMiddleCentre(centrePanel);
}
内容来源于网络,如有侵权,请联系作者删除!