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;
}
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;
}
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;
}
Aggregations