Subversion Repositories SmartDukaan

Rev

Rev 2313 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2313 Rev 4397
Line 15... Line 15...
15
 */
15
 */
16
public class TopPanel extends Composite {
16
public class TopPanel extends Composite {
17
 
17
 
18
  interface Binder extends UiBinder<Widget, TopPanel> { }
18
  interface Binder extends UiBinder<Widget, TopPanel> { }
19
  private static final Binder binder = GWT.create(Binder.class);
19
  private static final Binder binder = GWT.create(Binder.class);
20
 
-
 
-
 
20
  @UiField Anchor alertsCountLink;
21
  @UiField Anchor signOutLink;
21
  @UiField Anchor signOutLink;
22
  @UiField Anchor aboutLink;
22
  @UiField Anchor aboutLink;
23
  @UiField HTML greetingLabel;
23
  @UiField HTML greetingLabel;
24
 
24
 
25
  public TopPanel() {
25
  public TopPanel() {
Line 39... Line 39...
39
  }
39
  }
40
  
40
  
41
  public void changeGreeting(String greeting){
41
  public void changeGreeting(String greeting){
42
	  greetingLabel.setText("Aloha! "+ greeting);
42
	  greetingLabel.setText("Aloha! "+ greeting);
43
  }
43
  }
-
 
44
 
-
 
45
  public void updateAlertsCount(long count){
-
 
46
	  alertsCountLink.setText("Alerts: " + count);
-
 
47
  }
-
 
48
  
-
 
49
  public Anchor getAlertsCountLink(){
-
 
50
	  return alertsCountLink;
-
 
51
  }
44
  
52
  
45
  public Anchor getSignOutLink(){
53
  public Anchor getSignOutLink(){
46
	  return signOutLink;
54
	  return signOutLink;
47
  }
55
  }
48
}
56
}
49
57