本文整理了Java中com.vaadin.ui.UI.getState()
方法的一些代码示例,展示了UI.getState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UI.getState()
方法的具体详情如下:
包路径:com.vaadin.ui.UI
类名称:UI
方法名:getState
暂无
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Get the label that is added to the container element, where tooltip,
* notification and dialogs are added to.
*
* @return the label of the container
*/
public String getOverlayContainerLabel() {
return getState(false).overlayContainerLabel;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public int getDialogGracePeriod() {
return ui
.getState(false).reconnectDialogConfiguration.dialogGracePeriod;
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Gets the theme currently in use by this UI.
*
* @return the theme name
*/
public String getTheme() {
return getState(false).theme;
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Returns the interval with which the UI polls the server.
*
* @return The interval (in ms) with which the UI polls the server or -1 if
* polling is disabled
*/
public int getPollInterval() {
return getState(false).pollInterval;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setDialogText(String dialogText) {
ui.getState().reconnectDialogConfiguration.dialogText = dialogText;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public String getDialogTextGaveUp() {
return ui.getState(false).reconnectDialogConfiguration.dialogTextGaveUp;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public int getReconnectAttempts() {
return ui
.getState(false).reconnectDialogConfiguration.reconnectAttempts;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public int getReconnectInterval() {
return ui
.getState(false).reconnectDialogConfiguration.reconnectInterval;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setDialogTextGaveUp(String dialogTextGaveUp) {
ui.getState().reconnectDialogConfiguration.dialogTextGaveUp = dialogTextGaveUp;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public boolean isDialogModal() {
return ui.getState(false).reconnectDialogConfiguration.dialogModal;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setDialogGracePeriod(int dialogGracePeriod) {
ui.getState().reconnectDialogConfiguration.dialogGracePeriod = dialogGracePeriod;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setReconnectAttempts(int reconnectAttempts) {
ui.getState().reconnectDialogConfiguration.reconnectAttempts = reconnectAttempts;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setReconnectInterval(int reconnectInterval) {
ui.getState().reconnectDialogConfiguration.reconnectInterval = reconnectInterval;
}
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Returns whether HTML5 DnD extensions {@link DragSourceExtension} and
* {@link DropTargetExtension} and alike should be enabled for mobile
* devices.
* <p>
* By default, it is disabled.
*
* @return {@code true} if enabled, {@code false} if not
* @since 8.1
* @see #setMobileHtml5DndEnabled(boolean)
*/
public boolean isMobileHtml5DndEnabled() {
return getState(false).enableMobileHTML5DnD;
}
代码示例来源:origin: com.vaadin/vaadin-server
private LoadingIndicatorConfigurationState getState() {
return ui.getState().loadingIndicatorConfiguration;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public String getDialogText() {
return ui.getState(false).reconnectDialogConfiguration.dialogText;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void setDialogModal(boolean dialogModal) {
ui.getState().reconnectDialogConfiguration.dialogModal = dialogModal;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public int getTabIndex() {
return getState(false).tabIndex;
}
代码示例来源:origin: com.vaadin/vaadin-server
private NotificationTypeConfiguration getTypeConf(Type type) {
return ui.getState().notificationConfigurations.get(type.getStyle());
}
}
代码示例来源:origin: com.vaadin/vaadin-server
private NotificationTypeConfiguration getConfigurationBean(Type type) {
NotificationTypeConfiguration styleSetup = getTypeConf(type);
if (styleSetup == null) {
styleSetup = new NotificationTypeConfiguration();
ui.getState().notificationConfigurations.put(type.getStyle(),
styleSetup);
}
return styleSetup;
}
内容来源于网络,如有侵权,请联系作者删除!