blob: 8b8c9ab8083474a0abc6ca12b1650ccf1c4efc2b [file] [log] [blame]
/****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The ASF licenses this file *
* to you under the Apache License, Version 2.0 (the *
* "License"); you may not use this file except in compliance *
* with the License. You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, *
* software distributed under the License is distributed on an *
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
* KIND, either express or implied. See the License for the *
* specific language governing permissions and limitations *
* under the License. *
****************************************************************/
package org.apache.hupa.client.ui;
<<<<<<< HEAD
<<<<<<< HEAD
import org.apache.hupa.client.activity.TopBarActivity;
import com.google.gwt.core.client.GWT;
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> fill the empty compose view with the old message when the composing type are reply, replyAll, forward and preparing for about & deleting operation
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.SimplePanel;
public class TopBarView extends Composite implements TopBarActivity.Displayable {
@UiField Anchor about;
@UiField Anchor logout;
@UiField HTMLPanel userLabel;
@UiField SimplePanel loading;
<<<<<<< HEAD
<<<<<<< HEAD
@UiField HTML loadingRegion;
=======
>>>>>>> add loading and notification bar(finishing the folder list click event), related to the issue#18
=======
@UiField HTML loadingRegion;
>>>>>>> fixed issue#61; add loading to mark, unmark.
@UiField Style style;
interface Style extends CssResource {
String hideLoading();
}
<<<<<<< HEAD
=======
=======
import org.apache.hupa.client.activity.TopBarActivity;
>>>>>>> integrate all of the views to their corresponding activities and mappers
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
<<<<<<< HEAD
public class TopBarView extends Composite {
>>>>>>> make login page as one part of the overall layout & splite layout to little one
=======
public class TopBarView extends Composite implements TopBarActivity.Displayable{
>>>>>>> integrate all of the views to their corresponding activities and mappers
=======
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.HTMLPanel;
public class TopBarView extends Composite implements TopBarActivity.Displayable {
@UiField Anchor logout;
@UiField HTMLPanel userLabel;
>>>>>>> add logout support
=======
>>>>>>> add loading and notification bar(finishing the folder list click event), related to the issue#18
public TopBarView() {
initWidget(binder.createAndBindUi(this));
}
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> fill the empty compose view with the old message when the composing type are reply, replyAll, forward and preparing for about & deleting operation
@UiHandler("about")
void handleAboutClick(ClickEvent e){
Window.alert("// TODO show about model view");
}
<<<<<<< HEAD
@Override
public void showLoading(String message){
loadingRegion.setHTML(message);
loading.removeStyleName(style.hideLoading());
}
@Override
public void hideLoading(){
loadingRegion.setHTML("");
loading.addStyleName(style.hideLoading());
}
@Override
public HasClickHandlers getLogoutClick() {
return logout;
}
@Override
public HTMLPanel getUserLabel() {
return userLabel;
}
@Override
public void showUserName(String userName){
userLabel.clear();
userLabel.add(new HTML(userName));
}
=======
>>>>>>> make login page as one part of the overall layout & splite layout to little one
=======
>>>>>>> fill the empty compose view with the old message when the composing type are reply, replyAll, forward and preparing for about & deleting operation
@Override
public void showLoading(String message){
loadingRegion.setHTML(message);
loading.removeStyleName(style.hideLoading());
}
@Override
public void hideLoading(){
loadingRegion.setHTML("");
loading.addStyleName(style.hideLoading());
}
@Override
public HasClickHandlers getLogoutClick() {
return logout;
}
@Override
public HTMLPanel getUserLabel() {
return userLabel;
}
@Override
public void showUserName(String userName){
userLabel.clear();
userLabel.add(new HTML(userName));
}
interface TopBarUiBinder extends UiBinder<DockLayoutPanel, TopBarView> {
}
private static TopBarUiBinder binder = GWT.create(TopBarUiBinder.class);
}