com.vaadin.ui.Layout.setHeight()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中com.vaadin.ui.Layout.setHeight()方法的一些代码示例,展示了Layout.setHeight()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Layout.setHeight()方法的具体详情如下:
包路径:com.vaadin.ui.Layout
类名称:Layout
方法名:setHeight

Layout.setHeight介绍

暂无

代码示例

代码示例来源:origin: com.vaadin/vaadin-server

private void resizeButtonClick(ClickEvent event) {
  boolean minimize = (Boolean) resize.getData();
  if (minimize) {
    historyContainer.setHeight("27px");
    history.setHeight("22px");
  } else {
    historyContainer.setHeight("90px");
    history.setHeight("85px");
  }
  resize.setData(!minimize);
}

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

@PostConstruct
  public void init() {
    main = new VerticalLayout();
    setContent(main);
    setModal(true);
//        main.setStyleName(Panel.STYLE_LIGHT);
    main.setWidth(getWindowWidth());
    main.setHeight(getWindowHeight());
    
    panel = new VerticalLayout();
//        main.setMargin(true);
    main.addComponent(panel);
    
    setCaption(m_messageSourceAccessor.getMessage("audit", "Audit"));
  }

代码示例来源:origin: com.vaadin/vaadin-compatibility-server

@Override
public void buttonClick(ClickEvent event) {
  // History resize was clicked
  if (event.getButton() == resize) {
    boolean state = (Boolean) resize.getData();
    // minimize
    if (state) {
      historyContainer.setHeight("27px");
      history.setHeight("22px");
      // maximize
    } else {
      historyContainer.setHeight("90px");
      history.setHeight("85px");
    }
    resize.setData(new Boolean(!state));
  } else if (event.getButton() == ok) {
    // Ok button was clicked
    history.setColor(getColor());
    fireColorChanged();
    close();
  } else if (event.getButton() == cancel) {
    // Cancel button was clicked
    close();
  }
}

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

@PostConstruct
  public void init() {
    main = new VerticalLayout();
    setContent(main);
    setModal(true);
//        main.setStyleName(Panel.STYLE_LIGHT);
    main.setWidth(getWindowWidth());
    main.setHeight(getWindowHeight());
    
    panel = new VerticalLayout();
//        main.setMargin(true);
    main.addComponent(panel);
    
    setCaption(m_messageSourceAccessor.getMessage("attachments", "Attachments"));
  }
  @SuppressWarnings("serial")

代码示例来源:origin: nz.co.senanque/madura-workflow-vaadin

@PostConstruct
public void init() {
  main = new VerticalLayout();
  setContent(main);
  setModal(true);
  main.setWidth(getWindowWidth());
  main.setHeight(getWindowHeight());
  
  panel = new VerticalLayout();
  main.addComponent(panel);
  
  setCaption(m_messageSourceAccessor.getMessage("attachment", "Attachment"));
  this.addCloseListener(new CloseListener(){
    private static final long serialVersionUID = 1L;
    @Override
    public void windowClose(CloseEvent e) {
      fireEvent(new AttachmentEvent(panel));
    }});
}
public void load(final long pid) {

相关文章