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

x33g5p2x  于2022-01-30 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(107)

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

TextArea.getState介绍

暂无

代码示例

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

/**
 * Gets the number of rows in the text area.
 *
 * @return number of explicitly set rows.
 */
public int getRows() {
  return getState(false).rows;
}

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

/**
 * Sets the number of rows in the text area.
 *
 * @param rows
 *            the number of rows for this text area.
 */
public void setRows(int rows) {
  if (rows < 0) {
    rows = 0;
  }
  getState().rows = rows;
}

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

/**
 * Sets the text area's word-wrap mode on or off.
 *
 * @param wordWrap
 *            <code>true</code> to use word-wrap mode <code>false</code>
 *            otherwise.
 */
public void setWordWrap(boolean wordWrap) {
  getState().wordWrap = wordWrap;
}

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

/**
 * Tests if the text area is in word-wrap mode.
 *
 * @return <code>true</code> if the component is in word-wrap mode,
 *         <code>false</code> if not.
 */
public boolean isWordWrap() {
  return getState(false).wordWrap;
}

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

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

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

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

相关文章