当前位置: 首页>>代码示例>>Java>>正文


Java Component.ActionsHolder方法代码示例

本文整理汇总了Java中com.haulmont.cuba.gui.components.Component.ActionsHolder方法的典型用法代码示例。如果您正苦于以下问题:Java Component.ActionsHolder方法的具体用法?Java Component.ActionsHolder怎么用?Java Component.ActionsHolder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.haulmont.cuba.gui.components.Component的用法示例。


在下文中一共展示了Component.ActionsHolder方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DeclarativeAction

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
public DeclarativeAction(String id, String caption, String description, String icon, String enable, String visible,
                         String methodName, @Nullable String shortcut, Component.ActionsHolder holder) {
    super(id, shortcut);
    this.caption = caption;
    this.description = description;
    this.icon = icon;

    setEnabled(enable == null || Boolean.parseBoolean(enable));
    setVisible(visible == null || Boolean.parseBoolean(visible));

    this.methodName = methodName;
    checkActionsHolder(holder);
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:14,代码来源:DeclarativeAction.java

示例2: checkActionsHolder

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
protected void checkActionsHolder(Component.ActionsHolder holder) {
    if (holder instanceof Frame) {
        frame = (Frame) holder;
    } else if (holder instanceof Component.BelongToFrame) {
        frame = ((Component.BelongToFrame) holder).getFrame();
    } else {
        throw new IllegalStateException(String.format("Component %s can't contain DeclarativeAction", holder));
    }
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:10,代码来源:DeclarativeAction.java

示例3: loadDeclarativeAction

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
@Override
protected Action loadDeclarativeAction(Component.ActionsHolder actionsHolder, Element element) {
    String id = element.attributeValue("id");
    if (StringUtils.isEmpty(id)) {
        throw new GuiDevelopmentException("No action id provided", context.getFullFrameId(),
                "ActionsHolder ID", actionsHolder.getId());
    }

    if (StringUtils.isBlank(element.attributeValue("invoke"))) {
        // Try to create a standard list action
        for (ListActionType type : ListActionType.values()) {
            if (type.getId().equals(id)) {
                Action instance = type.createAction((ListComponent) actionsHolder);

                loadStandardActionProperties(instance, element);

                loadActionOpenType(instance, element);

                loadActionConstraint(instance, element);

                loadShortcut(instance, element);

                return instance;
            }
        }
    }

    return super.loadDeclarativeAction(actionsHolder, element);
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:30,代码来源:ActionsHolderLoader.java

示例4: CollectionDsActionsNotifier

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
public CollectionDsActionsNotifier(Component.ActionsHolder actionsHolder) {
    this.actionsHolder = actionsHolder;
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:4,代码来源:CollectionDsActionsNotifier.java

示例5: DeclarativeTrackingAction

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
public DeclarativeTrackingAction(String id, String caption, String description, String icon, String enable, String visible,
                                 String methodName, @Nullable String shortcut, Component.ActionsHolder holder) {
    super(id, caption, description, icon, enable, visible, methodName, shortcut, holder);
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:5,代码来源:DeclarativeTrackingAction.java

示例6: loadDeclarativeAction

import com.haulmont.cuba.gui.components.Component; //导入方法依赖的package包/类
@Override
protected Action loadDeclarativeAction(Component.ActionsHolder actionsHolder, Element element) {
    return loadPickerDeclarativeAction(actionsHolder, element);
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:5,代码来源:SearchPickerFieldLoader.java


注:本文中的com.haulmont.cuba.gui.components.Component.ActionsHolder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。