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