Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Move logic from client side activity to server side activity
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Nov 21, 2012
1 parent e8d6d95 commit df98068
Show file tree
Hide file tree
Showing 11 changed files with 436 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ public void updateStatus(Activity activity)
else
{
this.activity.setText(activity.getName());
this.activity.setTitle(activity.getName());
if (activity.getProject() != null)
{
this.project.setText(activity.getProject().getName());
this.project.setTitle(activity.getProject().getName());
}
else
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package name.pehl.karaka.client.application;

import static java.util.logging.Level.SEVERE;
import name.pehl.karaka.client.resources.Resources;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.ViewImpl;
import name.pehl.karaka.client.resources.Resources;

import static java.util.logging.Level.SEVERE;

public class MessageView extends ViewImpl implements MessagePresenter.MyView
{
Expand Down Expand Up @@ -50,6 +50,7 @@ public void show(Message message)
autoHideTimer.cancel();
timeoutTimer.cancel();
messageHolder.setText(message.getText());
messageHolder.setTitle(message.getText());
if (!visible)
{
messageHolder.removeStyleName(resources.message().hide());
Expand Down

0 comments on commit df98068

Please sign in to comment.