本文整理汇总了Java中com.vaadin.shared.AbstractComponentState类的典型用法代码示例。如果您正苦于以下问题:Java AbstractComponentState类的具体用法?Java AbstractComponentState怎么用?Java AbstractComponentState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractComponentState类属于com.vaadin.shared包,在下文中一共展示了AbstractComponentState类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: updateCaption
import com.vaadin.shared.AbstractComponentState; //导入依赖的package包/类
@Override
public void updateCaption(ComponentConnector childConnector) {
// CAUTION copied from GridLayoutConnector.updateCaption(ComponentConnector childConnector)
VGridLayout layout = getWidget();
VGridLayout.Cell cell = layout.widgetToCell.get(childConnector.getWidget());
AbstractComponentState state = childConnector.getState();
if (VCaption.isNeeded(state)
|| isContextHelpIconEnabled(state)) {
VLayoutSlot layoutSlot = cell.slot;
VCaption caption = layoutSlot.getCaption();
if (caption == null) {
// use our own caption widget
caption = new CubaCaptionWidget(childConnector, getConnection());
setDefaultCaptionParameters((CubaCaptionWidget)caption);
Widget widget = childConnector.getWidget();
layout.setCaption(widget, caption);
}
caption.updateCaption();
} else {
layout.setCaption(childConnector.getWidget(), null);
getLayoutManager().setNeedsLayout(this);
}
}
开发者ID:cuba-platform,项目名称:cuba,代码行数:27,代码来源:CubaGridLayoutConnector.java
示例2: updateStyleNames
import com.vaadin.shared.AbstractComponentState; //导入依赖的package包/类
/**
* Updates style names in suggestion popup to help theme building.
*
* @param componentState
* shared state of the combo box
*/
public void updateStyleNames(AbstractComponentState componentState) {
debug("VComboBoxMultiselect.SP: updateStyleNames()");
setStyleName(VComboBoxMultiselect.this.getStylePrimaryName() + "-suggestpopup");
this.menu.setStyleName(VComboBoxMultiselect.this.getStylePrimaryName() + "-suggestmenu");
this.status.setClassName(VComboBoxMultiselect.this.getStylePrimaryName() + "-status");
if (ComponentStateUtil.hasStyles(componentState)) {
for (String style : componentState.styles) {
if (!"".equals(style)) {
addStyleDependentName(style);
}
}
}
}
开发者ID:bonprix,项目名称:vaadin-combobox-multiselect,代码行数:20,代码来源:VComboBoxMultiselect.java
示例3: isCaptionNeeded
import com.vaadin.shared.AbstractComponentState; //导入依赖的package包/类
@Override
protected boolean isCaptionNeeded(ComponentConnector child) {
AbstractComponentState state = child.getState();
return super.isCaptionNeeded(child) || (state instanceof AbstractFieldState
&& ((AbstractFieldState) state).contextHelpText != null
&& !((AbstractFieldState) state).contextHelpText.isEmpty());
}
开发者ID:cuba-platform,项目名称:cuba,代码行数:8,代码来源:CubaCssActionsLayoutConnector.java
注:本文中的com.vaadin.shared.AbstractComponentState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论