Search in sources :

Example 21 with InternalRibbonActionItem

use of com.qcadoo.view.internal.ribbon.model.InternalRibbonActionItem 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

InternalRibbonActionItem (com.qcadoo.view.internal.ribbon.model.InternalRibbonActionItem)21 RibbonActionItemImpl (com.qcadoo.view.internal.ribbon.model.RibbonActionItemImpl)18 InternalRibbonGroup (com.qcadoo.view.internal.ribbon.model.InternalRibbonGroup)4 RibbonGroupImpl (com.qcadoo.view.internal.ribbon.model.RibbonGroupImpl)4 RibbonActionItem (com.qcadoo.view.api.ribbon.RibbonActionItem)3 RibbonComboItem (com.qcadoo.view.api.ribbon.RibbonComboItem)2 RibbonComboBox (com.qcadoo.view.api.ribbon.RibbonComboBox)1 InternalRibbonComboItem (com.qcadoo.view.internal.ribbon.model.InternalRibbonComboItem)1 RibbonComboBoxImpl (com.qcadoo.view.internal.ribbon.model.RibbonComboBoxImpl)1 RibbonComboItemImpl (com.qcadoo.view.internal.ribbon.model.RibbonComboItemImpl)1 ViewDefinitionParserNodeException (com.qcadoo.view.internal.xml.ViewDefinitionParserNodeException)1 Node (org.w3c.dom.Node)1 NodeList (org.w3c.dom.NodeList)1