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

x33g5p2x  于2022-01-26 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(154)

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

Panel.getState介绍

暂无

代码示例

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

/**
 * {@inheritDoc}
 */
@Override
public void setTabIndex(int tabIndex) {
  getState().tabIndex = tabIndex;
}

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

@Override
public int getScrollTop() {
  return getState(false).scrollTop;
}

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

/**
 * {@inheritDoc}
 */
@Override
public int getTabIndex() {
  return getState(false).tabIndex;
}

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

@Override
public int getScrollLeft() {
  return getState(false).scrollLeft;
}

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

@Override
protected WindowState getState() {
  return (WindowState) super.getState();
}

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

@Override
protected WindowState getState(boolean markAsDirty) {
  return (WindowState) super.getState(markAsDirty);
}

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

@Override
public void setScrollLeft(int scrollLeft) {
  if (scrollLeft < 0) {
    throw new IllegalArgumentException(
        "Scroll offset must be at least 0");
  }
  getState().scrollLeft = scrollLeft;
}

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

@Override
public void setScrollTop(int scrollTop) {
  if (scrollTop < 0) {
    throw new IllegalArgumentException(
        "Scroll offset must be at least 0");
  }
  getState().scrollTop = scrollTop;
}

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

/**
 * Creates a new empty panel which contains the given content.
 *
 * @param content
 *            the content for the panel.
 */
public Panel(Component content) {
  registerRpc(rpc);
  setContent(content);
  setWidth(100, Unit.PERCENTAGE);
  getState().tabIndex = -1;
}

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

if (newScrollX != null && newScrollX.intValue() != getScrollLeft()) {
  getState().scrollLeft = newScrollX.intValue();
  getState().scrollTop = newScrollY.intValue();

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
  protected DDPanelState getState(boolean markAsDirty) {
    return (DDPanelState) super.getState(markAsDirty);
  }
}

代码示例来源:origin: org.vaadin.addons/dragdroplayouts

@Override
  protected DDPanelState getState(boolean markAsDirty) {
    return (DDPanelState) super.getState(markAsDirty);
  }
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
protected CubaTokenListLabelState getState() {
  return (CubaTokenListLabelState) super.getState();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
protected CubaGroupBoxState getState(boolean markAsDirty) {
  return (CubaGroupBoxState) super.getState(markAsDirty);
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
protected DDPanelState getState() {
  return (DDPanelState) super.getState();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
protected CubaGroupBoxState getState() {
  return (CubaGroupBoxState) super.getState();
}

代码示例来源:origin: org.vaadin.addons/dragdroplayouts

@Override
protected DDPanelState getState() {
  return (DDPanelState) super.getState();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets

@Override
protected CubaTokenListLabelState getState(boolean markAsDirty) {
  return (CubaTokenListLabelState) super.getState(markAsDirty);
}

相关文章