Search in sources :

Example 16 with RibbonGroupImpl

use of com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl in project qcadoo by qcadoo.

the class RibbonTemplates method createFormSaveCopyAndRemoveActionsTemplate.

private InternalRibbonGroup createFormSaveCopyAndRemoveActionsTemplate(final ViewDefinition viewDefinition, final SecurityRole role) {
    InternalRibbonGroup ribbonGroup = new RibbonGroupImpl(ACTIONS, role);
    ribbonGroup.addItem(createFormSaveAction(viewDefinition));
    ribbonGroup.addItem(createFormSaveAndBackAction(viewDefinition));
    ribbonGroup.addItem(createFormSaveAndNewAction(viewDefinition));
    ribbonGroup.addItem(createFormCopyAction(viewDefinition));
    ribbonGroup.addItem(createFormCancelAction(viewDefinition));
    ribbonGroup.addItem(createFormDeleteAction(viewDefinition));
    return ribbonGroup;
}
Also used : RibbonGroupImpl(com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl) InternalRibbonGroup(com.qcadoo.view.internal.ribbon.model.InternalRibbonGroup)

Example 17 with RibbonGroupImpl

use of com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl in project qcadoo by qcadoo.

the class RibbonTemplates method createFormCopyAndSaveNewActionsTemplate.

private InternalRibbonGroup createFormCopyAndSaveNewActionsTemplate(final ViewDefinition viewDefinition, final SecurityRole role) {
    InternalRibbonGroup ribbonGroup = new RibbonGroupImpl(ACTIONS, role);
    ribbonGroup.addItem(createFormSaveAndNewAction(viewDefinition));
    ribbonGroup.addItem(createFormCopyAction(viewDefinition));
    return ribbonGroup;
}
Also used : RibbonGroupImpl(com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl) InternalRibbonGroup(com.qcadoo.view.internal.ribbon.model.InternalRibbonGroup)

Example 18 with RibbonGroupImpl

use of com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl in project qcadoo by qcadoo.

the class TemplateRibbonGroupsPackTest method getInternalRibbonGroup.

private InternalRibbonGroup getInternalRibbonGroup(final String name, final String extensionPluginIdentifier, final List<RibbonActionItem> items) {
    InternalRibbonGroup ribbonGroup = new RibbonGroupImpl(name);
    ribbonGroup.setExtensionPluginIdentifier(extensionPluginIdentifier);
    if (items != null) {
        for (RibbonActionItem item : items) {
            ribbonGroup.addItem((InternalRibbonActionItem) item);
        }
    }
    return ribbonGroup;
}
Also used : RibbonGroupImpl(com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl) InternalRibbonGroup(com.qcadoo.view.internal.ribbon.model.InternalRibbonGroup) RibbonActionItem(com.qcadoo.view.api.ribbon.RibbonActionItem) InternalRibbonActionItem(com.qcadoo.view.internal.ribbon.model.InternalRibbonActionItem)

Aggregations

InternalRibbonGroup (com.qcadoo.view.internal.ribbon.model.InternalRibbonGroup)18 RibbonGroupImpl (com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl)18 InternalRibbonActionItem (com.qcadoo.view.internal.ribbon.model.InternalRibbonActionItem)4 RibbonActionItemImpl (com.qcadoo.view.internal.ribbon.model.RibbonActionItemImpl)2 SecurityRole (com.qcadoo.security.api.SecurityRole)1 RibbonActionItem (com.qcadoo.view.api.ribbon.RibbonActionItem)1 ViewDefinitionParserNodeException (com.qcadoo.view.internal.xml.ViewDefinitionParserNodeException)1 Node (org.w3c.dom.Node)1 NodeList (org.w3c.dom.NodeList)1