Search in sources :

Example 1 with CustomGroupItem

use of org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem in project kie-wb-common by kiegroup.

the class ServerNavigationView method addTemplate.

@Override
public void addTemplate(final String id, final String name) {
    final CustomGroupItem template = new CustomGroupItem(name, IconType.FOLDER_O, new Command() {

        @Override
        public void execute() {
            presenter.select(id);
        }
    });
    idItem.put(id, template);
    serverTemplates.add(template);
}
Also used : Command(org.uberfire.mvp.Command) CustomGroupItem(org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem)

Example 2 with CustomGroupItem

use of org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem in project kie-wb-common by kiegroup.

the class ServerTemplateView method addServerInstance.

@Override
public void addServerInstance(final String serverTemplateId, final String serverInstanceId, final String serverName, final Command onSelect) {
    if (!serverTemplateId.equals(this.templateId)) {
        return;
    }
    final CustomGroupItem groupItem = new CustomGroupItem(serverName, IconType.SERVER, onSelect);
    serverInstanceItems.put(serverInstanceId, groupItem);
    remoteServersListGroup.add(groupItem);
}
Also used : CustomGroupItem(org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem)

Example 3 with CustomGroupItem

use of org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem in project kie-wb-common by kiegroup.

the class ServerTemplateView method addContainer.

@Override
public void addContainer(final String serverTemplateId, final String containerSpecId, final String containerName, final Command onSelect) {
    if (!serverTemplateId.equals(this.templateId)) {
        return;
    }
    final CustomGroupItem groupItem = new CustomGroupItem(containerSpecId, IconType.FOLDER_O, onSelect);
    containerItems.put(containerSpecId, groupItem);
    containersListGroup.add(groupItem);
}
Also used : CustomGroupItem(org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem)

Aggregations

CustomGroupItem (org.kie.workbench.common.screens.server.management.client.widget.CustomGroupItem)3 Command (org.uberfire.mvp.Command)1