本文整理汇总了Java中com.vaadin.shared.communication.SharedState类的典型用法代码示例。如果您正苦于以下问题:Java SharedState类的具体用法?Java SharedState怎么用?Java SharedState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SharedState类属于com.vaadin.shared.communication包,在下文中一共展示了SharedState类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isContextHelpIconEnabled
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
protected boolean isContextHelpIconEnabled(SharedState state) {
return hasContextHelpIconListeners(state)
|| (state instanceof AbstractFieldState)
&& ((AbstractFieldState) state).contextHelpText != null
&& !((AbstractFieldState) state).contextHelpText.isEmpty();
}
示例2: hasContextHelpIconListeners
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
protected boolean hasContextHelpIconListeners(SharedState state) {
return state.registeredEventListeners != null
&& state.registeredEventListeners.contains(AbstractFieldState.CONTEXT_HELP_ICON_CLICK_EVENT);
}
示例3: getStateType
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
@Override
public Class<? extends SharedState> getStateType() {
return StackPanelState.class;
}
示例4: getStateType
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
@Override
public Class<? extends SharedState> getStateType() {
return ListBuilderState.class;
}
示例5: createState
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
@Override
protected SharedState createState() {
ToolWindowStripeState state = new ToolWindowStripeState();
state.myConstraint = myConstraint;
return state;
}
示例6: createState
import com.vaadin.shared.communication.SharedState; //导入依赖的package包/类
@Override
protected SharedState createState() {
return new HighlightLabelState();
}