Package name.pehl.karaka.client.application

Examples of name.pehl.karaka.client.application.Message


    @Override
    public void onStartStop()
    {
        if (currentActivity == null)
        {
            ShowMessageEvent.fire(this, new Message(WARNING, "No activity selected", true));
        }
        else
        {
            ActivityActionEvent.fire(this, START_STOP, currentActivity);
        }
View Full Code Here


                Activity savedActivity = result.getSaved();
                info(activity, activityToSave + " successfully saved as " + savedActivity);
                activities.update(savedActivity);
                ActivityChangedEvent.fire(ActivityController.this, CHANGED, savedActivity, activities);
                ShowMessageEvent.fire(ActivityController.this,
                        new Message(INFO, "Activity \"" + savedActivity.getName() + "\" saved", true));
                checkAndrefreshProjectsAndTags(activityToSave);
            }
        });
    }
View Full Code Here

                        Activity copiedActivity = result.getCopy();
                        info(activity, activityToCopy + " successfully copied as " + copiedActivity);
                        activities.update(copiedActivity);
                        ActivityChangedEvent.fire(ActivityController.this, NEW, copiedActivity, activities);
                        ShowMessageEvent.fire(ActivityController.this,
                                new Message(INFO, "Activity \"" + copiedActivity.getName() + "\" added", true));
                    }
                });
    }
View Full Code Here

                                    activityToResumeOrStart + " successfully " + (resumed ? "resumed" : "started") + ". Modified activities: " + modifiedActivities);
                            activities.update(modifiedActivities.toArray(new Activity[]{}));
                            ActivityChangedEvent
                                    .fire(ActivityController.this, resumed ? RESUMED : STARTED, runningActivity,
                                            activities);
                            ShowMessageEvent.fire(ActivityController.this, new Message(INFO, "Activity \""
                                    + runningActivity.getName() + "\" " + (resumed ? "resumed" : "started"), true));
                            checkAndrefreshProjectsAndTags(activityToResumeOrStart);
                            startTicking();
                        }
                    });
View Full Code Here

                    info(activity,
                            activityToStop + " successfully stopped as " + stoppedActivity);
                    activities.update(stoppedActivity);
                    ActivityChangedEvent.fire(ActivityController.this, STOPPED, stoppedActivity, activities);
                    ShowMessageEvent.fire(ActivityController.this,
                            new Message(INFO, "Activity \"" + stoppedActivity.getName() + "\" stopped", true));
                }
            });
        }
    }
View Full Code Here

                    {
                        info(activity, activityToDelete + " successfully deleted");
                        activities.remove(activityToDelete);
                        ActivityChangedEvent.fire(ActivityController.this, DELETE, activityToDelete, activities);
                        ShowMessageEvent.fire(ActivityController.this,
                                new Message(INFO, "Activity \"" + activityToDelete.getName() + "\" deleted", true));
                    }
                });
    }
View Full Code Here

    protected void showError(final Throwable caught)
    {
        String message = caught.getMessage();
        error(dispatch, message);
        eventBus.fireEvent(new ShowMessageEvent(new Message(SEVERE, message, true)));
    }
View Full Code Here

    @Override
    public void prepareFromRequest(final PlaceRequest placeRequest)
    {
        super.prepareFromRequest(placeRequest);
        final ActivitiesRequest activitiesRequest = new ActivitiesRequest(placeRequest);
        ShowMessageEvent.fire(this, new Message(INFO, "Loading activities...", false));
        scheduler.scheduleDeferred(new GetActivitiesCommand(activitiesRequest));
    }
View Full Code Here

                    getEventBus())
            {
                @Override
                public void onSuccess(final GetActivitiesResult result)
                {
                    ShowMessageEvent.fire(DashboardPresenter.this, new Message(INFO, "Activities successfully loaded.", true));
                    ActivitiesLoadedEvent.fire(DashboardPresenter.this, result.getActivities());
                }


                @Override
                public void onNotFound(final RestException caught)
                {
                    String errorMessage = "No activities found";
                    ShowMessageEvent.fire(DashboardPresenter.this, new Message(WARNING, errorMessage, true));
                    warn(activity, errorMessage);

                    String links = caught.getMethod().getResponse().getHeader("Link");
                    LinkHeader linkHeader = new LinkHeader(LinksParser.valueOf(links));
                    ActivitiesNotFoundEvent.fire(DashboardPresenter.this, linkHeader);
View Full Code Here

        {
            activity = selectedActivity;
        }
        else
        {
            ShowMessageEvent.fire(this, new Message(SEVERE, "Please specify a name for the activity", true));
            return;
        }

        // 2. Project
        Project project = null;
View Full Code Here

TOP

Related Classes of name.pehl.karaka.client.application.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.