Package org.rhq.coregui.client.util.message

Examples of org.rhq.coregui.client.util.message.Message


                    service.deleteGroupResourceConfigurationUpdate(groupId, updateIds, new AsyncCallback<Void>() {
                        @Override
                        public void onSuccess(Void result) {
                            refresh();
                            Message message = new Message(MSG.view_group_resConfig_table_deleteSuccessful(String
                                .valueOf(selection.length)), Message.Severity.Info, EnumSet
                                .of(Message.Option.Transient));
                            CoreGUI.getMessageCenter().notify(message);
                        }
View Full Code Here


        criteria.fetchTags(true);
        GWTServiceLookup.getResourceService().findResourceCompositesByCriteria(criteria,
            new AsyncCallback<PageList<ResourceComposite>>() {
                @Override
                public void onFailure(Throwable caught) {
                    Message message = new Message(MSG.view_inventory_resource_loadFailed(String.valueOf(resourceId)),
                        Message.Severity.Warning);
                    CoreGUI.goToView(InventoryView.VIEW_ID.getName(), message);
                }

                @Override
View Full Code Here

        return authorizedField;
    }

    private static void handleIllegalPermissionSelection(ChangedEvent event, String messageString) {
        event.getItem().setValue(true);
        Message message = new Message(messageString, Message.Severity.Warning, EnumSet.of(Message.Option.Transient));
        CoreGUI.getMessageCenter().notify(message);
    }
View Full Code Here

        if (redrawRequired) {
            redraw();
        }

        if (messageString != null) {
            Message message = new Message(messageString, EnumSet.of(Message.Option.Transient));
            CoreGUI.getMessageCenter().notify(message);
        }
    }
View Full Code Here

    public void executeFetch(final DSRequest request, final DSResponse response, final ResourceCriteria criteria) {
        getResourceService().findResourceCompositesByCriteria(criteria,
            new AsyncCallback<PageList<ResourceComposite>>() {
                public void onFailure(Throwable caught) {
                    if (caught.getMessage().contains("SearchExpressionException")) {
                        Message message = new Message("Invalid search expression.", Message.Severity.Error);
                        CoreGUI.getMessageCenter().notify(message);
                    } else {
                        CoreGUI.getErrorHandler().handleError(MSG.view_inventory_resources_loadFailed(), caught);
                    }
                    response.setStatus(RPCResponse.STATUS_FAILURE);
View Full Code Here

                                MSG.view_titleBar_common_updateTagsFailure(group.getName()), caught);
                        }

                        public void onSuccess(Void result) {
                            CoreGUI.getMessageCenter().notify(
                                new Message(MSG.view_titleBar_common_updateTagsSuccessful(group.getName()),
                                    Message.Severity.Info));
                            // update what is essentially our local cache
                            group.setTags(tags);
                        }
                    });
View Full Code Here

            if (favorite) {
                m = MSG.view_titleBar_common_addedFav(ResourceGroupTitleBar.this.group.getName());
            } else {
                m = MSG.view_titleBar_common_removedFav(ResourceGroupTitleBar.this.group.getName());
            }
            CoreGUI.getMessageCenter().notify(new Message(m, Message.Severity.Info));
            updateFavoriteButton();
        }
View Full Code Here

        }
        GWTServiceLookup.getEventService().deleteEventsForContext(context, eventIds, new AsyncCallback<Integer>() {
            @Override
            public void onSuccess(Integer result) {
                CoreGUI.getMessageCenter().notify(
                    new Message(MSG.view_inventory_eventHistory_deleteSuccessful(result.toString(),
                        context.toShortString()), Severity.Info));
                refresh();
            }

            @Override
View Full Code Here

    private void purgeButtonPressed() {
        GWTServiceLookup.getEventService().purgeEventsForContext(context, new AsyncCallback<Integer>() {
            @Override
            public void onSuccess(Integer result) {
                CoreGUI.getMessageCenter().notify(
                    new Message(MSG.view_inventory_eventHistory_purgeSuccessful(result.toString(),
                        context.toShortString()), Severity.Info));
                refresh();
            }

            @Override
View Full Code Here

                        final Set<Resource> fullSetOfChildResources = parentGroup.getExplicitResources();
                        int i = 0;
                        for (Iterator<Resource> resourceIterator = fullSetOfChildResources.iterator(); resourceIterator.hasNext(); ) {
                            Resource nextChildResource = resourceIterator.next();
                            if(i >= MAX_NUMBER_OF_LINES_IN_GRAPH){
                                CoreGUI.getMessageCenter().notify(new Message( MSG.chart_warning_max_composite_graphs_limit_exceeded()+" "+String.valueOf( MAX_NUMBER_OF_LINES_IN_GRAPH ), Message.Severity.Warning));
                                break;
                            }
                            childResources.add(nextChildResource);
                            i++;
                        }
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.util.message.Message

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.