本文整理了Java中com.vaadin.ui.Label.getState()
方法的一些代码示例,展示了Label.getState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getState()
方法的具体详情如下:
包路径:com.vaadin.ui.Label
类名称:Label
方法名:getState
暂无
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Gets the content mode of the label.
*
* @return the content mode of the label
*
* @see ContentMode
* @since 8.0
*/
public ContentMode getContentMode() {
return getState(false).contentMode;
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Gets the text shown in the label.
*
* @return the text shown in the label, not null
*/
public String getValue() {
return getState(false).text;
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Sets the text to be shown in the label.
*
* @param value
* the text to show in the label, null is converted to an empty
* string
*/
public void setValue(String value) {
if (value == null) {
getState().text = "";
} else {
getState().text = value;
}
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Sets the content mode of the label.
*
* @param contentMode
* the content mode to set
*
* @see ContentMode
* @since 8.0
*/
public void setContentMode(ContentMode contentMode) {
if (contentMode == null) {
throw new IllegalArgumentException("Content mode can not be null");
}
getState().contentMode = contentMode;
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
protected CubaCapsLockIndicatorState getState(boolean markAsDirty) {
return (CubaCapsLockIndicatorState) super.getState(markAsDirty);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-widgets
@Override
protected CubaCapsLockIndicatorState getState() {
return (CubaCapsLockIndicatorState) super.getState();
}
内容来源于网络,如有侵权,请联系作者删除!