Search in sources :

Example 21 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class BeanRelationTreeModelBuilderImpl method modifyFromRelationTreeModelPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void modifyFromRelationTreeModelPlugins() {
    final ITypedKey<Object> entitiyIdKey = IBeanRelationTreeModelPlugin.ENTITIY_ID_PROPERTY_KEY;
    final IPluginProperties properties = PluginProperties.create(entitiyIdKey, getEntityId());
    final List<IBeanRelationTreeModelPlugin<?>> plugins;
    plugins = PluginProvider.getPlugins(IBeanRelationTreeModelPlugin.ID, properties);
    for (final IBeanRelationTreeModelPlugin plugin : plugins) {
        plugin.modifySetup(properties, this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IBeanRelationTreeModelPlugin(org.jowidgets.cap.ui.api.plugin.IBeanRelationTreeModelPlugin)

Example 22 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class BeanTabFolderModelBuilderImpl method modifyFromBeanModelPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void modifyFromBeanModelPlugins() {
    final IPluginPropertiesBuilder propBuilder = PluginToolkit.pluginPropertiesBuilder();
    propBuilder.add(IBeanModelBuilderPlugin.ENTITIY_ID_PROPERTY_KEY, getEntityId());
    propBuilder.add(IBeanModelBuilderPlugin.BEAN_TYPE_PROPERTY_KEY, getBeanType());
    final IPluginProperties properties = propBuilder.build();
    for (final IBeanModelBuilderPlugin plugin : PluginProvider.getPlugins(IBeanModelBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IBeanModelBuilderPlugin(org.jowidgets.cap.ui.api.plugin.IBeanModelBuilderPlugin) IPluginPropertiesBuilder(org.jowidgets.plugin.api.IPluginPropertiesBuilder)

Example 23 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class BeanTableModelBuilderImpl method modifyFromBeanModelPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void modifyFromBeanModelPlugins() {
    final IPluginPropertiesBuilder propBuilder = PluginToolkit.pluginPropertiesBuilder();
    propBuilder.add(IBeanModelBuilderPlugin.ENTITIY_ID_PROPERTY_KEY, getEntityId());
    propBuilder.add(IBeanModelBuilderPlugin.BEAN_TYPE_PROPERTY_KEY, getBeanType());
    final IPluginProperties properties = propBuilder.build();
    for (final IBeanModelBuilderPlugin plugin : PluginProvider.getPlugins(IBeanModelBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IBeanModelBuilderPlugin(org.jowidgets.cap.ui.api.plugin.IBeanModelBuilderPlugin) IPluginPropertiesBuilder(org.jowidgets.plugin.api.IPluginPropertiesBuilder)

Example 24 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class BeanTableModelBuilderImpl method modifyFromBeanTableModelPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void modifyFromBeanTableModelPlugins() {
    final IPluginPropertiesBuilder propBuilder = PluginToolkit.pluginPropertiesBuilder();
    propBuilder.add(IBeanTableModelBuilderPlugin.ENTITIY_ID_PROPERTY_KEY, getEntityId());
    propBuilder.add(IBeanTableModelBuilderPlugin.BEAN_TYPE_PROPERTY_KEY, getBeanType());
    final IPluginProperties properties = propBuilder.build();
    for (final IBeanTableModelBuilderPlugin plugin : PluginProvider.getPlugins(IBeanTableModelBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IPluginPropertiesBuilder(org.jowidgets.plugin.api.IPluginPropertiesBuilder) IBeanTableModelBuilderPlugin(org.jowidgets.cap.ui.api.plugin.IBeanTableModelBuilderPlugin)

Example 25 with IPluginProperties

use of org.jowidgets.plugin.api.IPluginProperties in project jo-client-platform by jo-source.

the class BeanRelationNodeModelBuilder method modifyFromBeanModelPlugins.

@SuppressWarnings({ "rawtypes", "unchecked" })
private void modifyFromBeanModelPlugins() {
    final IPluginPropertiesBuilder propBuilder = PluginToolkit.pluginPropertiesBuilder();
    propBuilder.add(IBeanModelBuilderPlugin.ENTITIY_ID_PROPERTY_KEY, getEntityId());
    propBuilder.add(IBeanModelBuilderPlugin.BEAN_TYPE_PROPERTY_KEY, getBeanType());
    final IPluginProperties properties = propBuilder.build();
    for (final IBeanModelBuilderPlugin plugin : PluginProvider.getPlugins(IBeanModelBuilderPlugin.ID, properties)) {
        plugin.modify(this);
    }
}
Also used : IPluginProperties(org.jowidgets.plugin.api.IPluginProperties) IBeanModelBuilderPlugin(org.jowidgets.cap.ui.api.plugin.IBeanModelBuilderPlugin) IPluginPropertiesBuilder(org.jowidgets.plugin.api.IPluginPropertiesBuilder)

Aggregations

IPluginProperties (org.jowidgets.plugin.api.IPluginProperties)34 IPluginPropertiesBuilder (org.jowidgets.plugin.api.IPluginPropertiesBuilder)21 IAction (org.jowidgets.api.command.IAction)6 IServiceActionDecoratorPlugin (org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin)6 IAttributePlugin (org.jowidgets.cap.ui.api.plugin.IAttributePlugin)5 IBeanModelBuilderPlugin (org.jowidgets.cap.ui.api.plugin.IBeanModelBuilderPlugin)5 LinkedList (java.util.LinkedList)3 IBeanDtoConversionProviderPlugin (org.jowidgets.cap.service.api.plugin.IBeanDtoConversionProviderPlugin)3 IAttribute (org.jowidgets.cap.ui.api.attribute.IAttribute)3 List (java.util.List)2 IContainer (org.jowidgets.api.widgets.IContainer)2 IBeanProxyLabelRenderer (org.jowidgets.cap.ui.api.bean.IBeanProxyLabelRenderer)2 IBeanProxyLabelRendererPlugin (org.jowidgets.cap.ui.api.plugin.IBeanProxyLabelRendererPlugin)2 IMenuModel (org.jowidgets.api.model.item.IMenuModel)1 IExecutorService (org.jowidgets.cap.common.api.service.IExecutorService)1 ICreatorServiceBuilderPlugin (org.jowidgets.cap.service.api.plugin.ICreatorServiceBuilderPlugin)1 IUpdaterServiceBuilderPlugin (org.jowidgets.cap.service.api.plugin.IUpdaterServiceBuilderPlugin)1 IBeanMessage (org.jowidgets.cap.ui.api.bean.IBeanMessage)1 IBeanFormPlugin (org.jowidgets.cap.ui.api.plugin.IBeanFormPlugin)1 IBeanProxyPlugin (org.jowidgets.cap.ui.api.plugin.IBeanProxyPlugin)1