Example usage for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE

List of usage examples for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE.

Prototype

VerticalAlignmentConstant ALIGN_MIDDLE

To view the source code for com.google.gwt.user.client.ui HasVerticalAlignment ALIGN_MIDDLE.

Click Source Link

Document

Specifies that the widget's contents should be aligned in the middle.

Usage

From source file:org.ebayopensource.turmeric.monitoring.client.view.common.SelectBoxesWidget.java

License:Open Source License

/**
 * Instantiates a new select boxes widget.
 *
 * @param availableName the available name
 * @param isAvailableMulti the is available multi
 * @param selectedName the selected name
 * @param isSelectedMulti the is selected multi
 *///from   w ww.j  a v a  2 s.c o m
public SelectBoxesWidget(String availableName, boolean isAvailableMulti, String selectedName,
        boolean isSelectedMulti) {
    panel = new SimplePanel();
    availableLabel = new Label(availableName);
    selectedLabel = new Label(selectedName);

    availableBox = new ListBox(isAvailableMulti);
    selectedBox = new ListBox(isSelectedMulti);

    //arrows
    addButton = new Button(">>");
    delButton = new Button("<<");

    addButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            move(availableBox, selectedBox);
        }
    });

    delButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            move(selectedBox, availableBox);
        }
    });

    grid = new Grid(2, 3);
    grid.setWidget(0, 0, availableLabel);
    grid.setWidget(0, 2, selectedLabel);
    grid.setWidget(1, 0, availableBox);
    grid.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_CENTER);
    Grid arrowGrid = new Grid(2, 1);
    arrowGrid.setWidget(0, 0, addButton);
    arrowGrid.setWidget(1, 0, delButton);
    grid.setWidget(1, 1, arrowGrid);
    grid.getCellFormatter().setVerticalAlignment(1, 1, HasVerticalAlignment.ALIGN_MIDDLE);
    grid.getCellFormatter().setHorizontalAlignment(1, 1, HasHorizontalAlignment.ALIGN_CENTER);
    grid.setWidget(1, 2, selectedBox);
    grid.getCellFormatter().setHorizontalAlignment(1, 2, HasHorizontalAlignment.ALIGN_CENTER);
    panel.add(grid);
    initWidget(panel);
}

From source file:org.ebayopensource.turmeric.monitoring.client.view.ConsumerView.java

License:Open Source License

/**
 * Instantiates a new consumer view./*from w w w  .j av a  2 s  .c o m*/
 * 
 * @param dashboard
 *            the dashboard
 */
public ConsumerView(Dashboard dashboard) {
    // make the panel for the contents of the tab
    DockLayoutPanel contentPanel = new DockLayoutPanel(Unit.EM);
    initWidget(contentPanel);

    // heading
    Panel topPanel = new FlowPanel();
    topPanel.addStyleName("summary-heading-panel");
    Grid g = new Grid(1, 2);
    g.setHeight("100%");
    g.setWidth("100%");
    summaryHeading = new Label("&nbsp");
    summaryHeading.setWidth("50em");
    g.setWidget(0, 0, summaryHeading);
    g.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_MIDDLE);
    topPanel.add(g);

    // filters: dates, times and metrics
    filterWidget = new FilterWidget();
    filterWidget.setDateFormat("dd MMM yyyy");

    filterButton = new Button("Filter Criteria >>");
    filterButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            pickFilter();
        }
    });

    g.setWidget(0, 1, filterButton);
    g.getCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_MIDDLE);

    filterDialog = new DialogBox(true);
    filterDialog.setText("Select Filter Criteria");
    FlowPanel contents = new FlowPanel();
    filterDialog.setWidget(contents);
    contents.add(filterWidget);

    filterWidget.getApplyButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    filterWidget.getCancelButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    splitPanel = new SplitLayoutPanel();
    contentPanel.addNorth(topPanel, 2.5);
    contentPanel.add(splitPanel);

    // scrolling panel for right hand side
    ScrollPanel rhs = new ScrollPanel();
    rhs.setAlwaysShowScrollBars(true);
    rhs.addStyleName("summary-panel");

    FlowPanel panel = new FlowPanel();

    // Tables (which will be graphs in future releases) for when no Consumer
    // is selected:
    // Call Volume (isn't this just the same as Consumer Traffic from
    // service tab? CallCount for Service(/Operation)
    // by Consumer?)
    callVolumeTable = makeTable();
    callVolumePanel = makePanel(ConsoleUtil.constants.callVolume(), callVolumeTable);
    panel.add(callVolumePanel);
    hide(callVolumePanel);

    // Performance (analogous to Least Performance for Service tab, but
    // grouped by Consumer)
    performanceTable = makeTable();
    performancePanel = makePanel(ConsoleUtil.constants.performance(), performanceTable);
    panel.add(performancePanel);
    hide(performancePanel);

    // Errors (isn't this the same as Consumer Errors from service tab?
    // Errors for Service(/Operation) by Consumer?
    errorsTable = makeTable();
    errorsPanel = makePanel(ConsoleUtil.constants.errors(), errorsTable);
    panel.add(errorsPanel);
    hide(errorsPanel);

    // Tables for when a Consumer has been selected:
    // Top Volume (CallCount for Consumer by Service)
    topVolumeTable = makeTable();
    topVolumePanel = makePanel(ConsoleUtil.constants.topVolume(), topVolumeTable);
    panel.add(topVolumePanel);
    hide(topVolumePanel);

    // Least Performance (ResponseTime for Consumer by Service)
    leastPerformanceTable = makeTable();
    leastPerformancePanel = makePanel(ConsoleUtil.constants.leastPerformance(), leastPerformanceTable);
    panel.add(leastPerformancePanel);
    hide(leastPerformancePanel);

    // Top Errors (Errors for Consumer by Service(NOTE: 5 columns: service +
    // error is returned!)
    topServiceErrorsTable = makeTable();
    topServiceErrorsPanel = makePanel(ConsoleUtil.constants.topServiceErrors(), topServiceErrorsTable);
    panel.add(topServiceErrorsPanel);
    hide(topServiceErrorsPanel);

    // Consumer Errors (Errors for Consumer by ...?)
    topConsumerErrorsTable = makeTable();
    topConsumerErrorsPanel = makePanel(ConsoleUtil.constants.topConsumerErrors(), topConsumerErrorsTable);
    panel.add(topConsumerErrorsPanel);
    hide(topConsumerErrorsPanel);

    rhs.add(panel);

    serviceListWidget = new ServiceListWidget();

    splitPanel.addWest(serviceListWidget, 200);
    splitPanel.add(rhs);

    this.dashboard = dashboard;
    this.dashboard.addView(this, ConsoleUtil.constants.consumers());
}

From source file:org.ebayopensource.turmeric.monitoring.client.view.ErrorView.java

License:Open Source License

/**
 * Instantiates a new error view./* ww  w  .j  a v a  2s.c  o m*/
 * 
 * @param dashboard
 *            the dashboard
 */
public ErrorView(Dashboard dashboard) {
    // make the panel for the contents of the tab
    DockLayoutPanel contentPanel = new DockLayoutPanel(Unit.EM);

    // heading
    Panel topPanel = new FlowPanel();
    topPanel.addStyleName("summary-heading-panel");
    Grid g = new Grid(1, 2);
    summaryHeading = new Label(ConsoleUtil.constants.summary());
    summaryHeading.setWidth("50em");
    g.setWidget(0, 0, summaryHeading);
    g.setHeight("100%");
    g.setWidth("100%");
    g.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_MIDDLE);

    topPanel.add(g);

    // filters: dates, times and metrics
    filterWidget = new ErrorFilterWidget();
    filterWidget.setDateFormat(dateFormat);

    filterButton = new Button("Filter Criteria >>");
    filterButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            pickFilter();
        }
    });

    g.setWidget(0, 1, filterButton);
    g.getCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_MIDDLE);

    filterDialog = new DialogBox(true);
    filterDialog.setText(ConsoleUtil.constants.selectFilterCriteria());
    FlowPanel contents = new FlowPanel();
    filterDialog.setWidget(contents);
    contents.add(filterWidget);

    filterWidget.getApplyButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    filterWidget.getCancelButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    splitPanel = new SplitLayoutPanel();
    contentPanel.addNorth(topPanel, 2.5);
    contentPanel.add(splitPanel);

    // scrolling panel for right hand side
    ScrollPanel rhs = new ScrollPanel();
    rhs.setAlwaysShowScrollBars(true);
    rhs.addStyleName("summary-panel");

    // panel to contain each table/graph
    tablesPanel = new FlowPanel();

    topApplicationErrorsTable = makeTable();
    topApplicationErrorsPanel = makePanel(ConsoleUtil.constants.topApplicationErrors(),
            topApplicationErrorsTable);
    topRequestErrorsTable = makeTable();
    topRequestErrorsPanel = makePanel(ConsoleUtil.constants.topRequestErrors(), topRequestErrorsTable);
    topSystemErrorsTable = makeTable();
    topSystemErrorsPanel = makePanel(ConsoleUtil.constants.topSystemErrors(), topSystemErrorsTable);
    topCriticalsTable = makeTable();
    topCriticalsPanel = makePanel(ConsoleUtil.constants.topCriticals(), topCriticalsTable);
    topErrorsTable = makeTable();
    topErrorsPanel = makePanel(ConsoleUtil.constants.topErrors(), topErrorsTable);
    topWarningsTable = makeTable();
    topWarningsPanel = makePanel(ConsoleUtil.constants.topWarnings(), topWarningsTable);
    errorDetailTable = makeTable();
    errorDetailPanel = makePanel("", errorDetailTable);
    consumerErrorsTable = makeTable();
    consumerErrorsPanel = makePanel(ConsoleUtil.constants.consumerError(), consumerErrorsTable);
    topSeverityErrorsTable = makeTable();
    topSeverityErrorsPanel = makePanel(ConsoleUtil.constants.topSeverityErrors(), topSeverityErrorsTable);
    topCategoryErrorsTable = makeTable();
    topCategoryErrorsPanel = makePanel(ConsoleUtil.constants.topCategoryErrors(), topCategoryErrorsTable);
    tablesPanel.add(topApplicationErrorsPanel);
    tablesPanel.add(topRequestErrorsPanel);
    tablesPanel.add(topSystemErrorsPanel);
    tablesPanel.add(topCriticalsPanel);
    tablesPanel.add(topErrorsPanel);
    tablesPanel.add(topWarningsPanel);
    tablesPanel.add(topSeverityErrorsPanel);
    tablesPanel.add(topCategoryErrorsPanel);
    tablesPanel.add(errorDetailPanel);
    tablesPanel.add(consumerErrorsPanel);
    hide(topApplicationErrorsPanel);
    hide(topRequestErrorsPanel);
    hide(topSeverityErrorsPanel);
    hide(topCriticalsPanel);
    hide(topErrorsPanel);
    hide(topWarningsPanel);
    hide(topSeverityErrorsPanel);
    hide(topCategoryErrorsPanel);
    hide(consumerErrorsPanel);
    hide(errorDetailPanel);

    rhs.add(tablesPanel);

    serviceListWidget = new ServiceListWidget();

    splitPanel.addWest(serviceListWidget, 250);
    splitPanel.add(rhs);

    initWidget(contentPanel);

    this.dashboard = dashboard;
    this.dashboard.addView(this, ConsoleUtil.constants.errors());
}

From source file:org.ebayopensource.turmeric.monitoring.client.view.ServiceView.java

License:Open Source License

/**
 * Instantiates a new service view.// w ww  . j a v  a 2  s. c  om
 * 
 * @param dashboard
 *            the dashboard
 */
public ServiceView(Dashboard dashboard) {
    customLogArea = new VerticalPanel();

    // make the panel
    DockLayoutPanel contentPanel = new DockLayoutPanel(Unit.EM);
    initWidget(contentPanel);

    // heading
    Panel topPanel = new FlowPanel();
    topPanel.addStyleName("summary-heading-panel");
    Grid g = new Grid(1, 2);
    g.setHeight("100%");
    g.setWidth("100%");
    summaryHeading = new Label(ConsoleUtil.constants.summary());
    summaryHeading.setWidth("50em");
    g.setWidget(0, 0, summaryHeading);
    g.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_MIDDLE);
    topPanel.add(g);

    // filters: dates, times and metrics
    filterWidget = new FilterWidget();
    filterWidget.setDateFormat("dd MMM yyyy");

    filterButton = new Button("Filter Criteria >>");
    filterButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            pickFilter();
        }
    });

    g.setWidget(0, 1, filterButton);
    g.getCellFormatter().setVerticalAlignment(0, 1, HasVerticalAlignment.ALIGN_MIDDLE);

    filterDialog = new DialogBox(true);
    filterDialog.setText("Select Filter Criteria");
    FlowPanel contents = new FlowPanel();
    filterDialog.setWidget(contents);
    contents.add(filterWidget);

    filterWidget.getApplyButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    filterWidget.getCancelButton().addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            filterDialog.hide(true);
        }
    });

    splitPanel = new SplitLayoutPanel();
    // scrolling panel for right hand side
    ScrollPanel rhs = new ScrollPanel();
    rhs.setAlwaysShowScrollBars(true);
    rhs.addStyleName("summary-panel");

    FlowPanel panel = new FlowPanel();

    configureTopVolume();
    panel.add(topVolumePanel);

    configureLeastPerformance();
    panel.add(leastPerformancePanel);

    configureTopErrors();
    panel.add(topErrorsPanel);

    configureConsumerTraffic();
    panel.add(consumerTrafficPanel);

    configureConsumerErrors();
    panel.add(consumerErrorsPanel);

    rhs.add(panel);

    serviceListWidget = new ServiceListWidget();
    splitPanel.addWest(serviceListWidget, 200);
    splitPanel.add(rhs);

    // this sucks - I want to make the size of the north element
    // just big enough to contain its contents, but I cannot
    // obtain the size of them until they are actually added to their
    // container, which is too late!
    contentPanel.addNorth(topPanel, 2.5);
    contentPanel.add(splitPanel);

    disable();
    hide(topVolumePanel);
    hide(leastPerformancePanel);
    hide(topErrorsPanel);
    hide(consumerTrafficPanel);
    hide(consumerErrorsPanel);

    this.dashboard = dashboard;
    this.dashboard.addView(this, ConsoleUtil.constants.services());
}

From source file:org.ebayopensource.turmeric.policy.adminui.client.view.common.SelectBoxesWidget.java

License:Open Source License

/**
 * Instantiates a new select boxes widget.
 * //  w ww  .j a  v a 2 s .c om
 * @param availableName
 *            the available name
 * @param isAvailableMulti
 *            the is available multi
 * @param selectedName
 *            the selected name
 * @param isSelectedMulti
 *            the is selected multi
 */
public SelectBoxesWidget(String availableName, boolean isAvailableMulti, String selectedName,
        boolean isSelectedMulti) {
    configureAvailableTable();
    configureSelectedTable();

    panel = new SimplePanel();
    availableLabel = new Label(availableName);
    selectedLabel = new Label(selectedName);

    // arrows
    addButton = new Button(">>");
    delButton = new Button("<<");

    addButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            moveToSelected();
        }
    });

    delButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
            moveToAvailable();
        }
    });

    grid = new Grid(3, 3);
    grid.setWidget(0, 0, availableLabel);
    grid.setWidget(0, 2, selectedLabel);
    grid.setWidget(1, 0, availTable);
    grid.setWidget(2, 0, availPager);
    grid.setWidget(2, 2, selectedPager);
    grid.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_CENTER);

    Grid arrowGrid = new Grid(2, 1);
    arrowGrid.setWidget(0, 0, addButton);
    arrowGrid.setWidget(1, 0, delButton);
    arrowGrid.setWidth("80px");
    arrowGrid.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);
    arrowGrid.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_CENTER);
    grid.setWidget(1, 1, arrowGrid);
    grid.getCellFormatter().setVerticalAlignment(1, 1, HasVerticalAlignment.ALIGN_MIDDLE);
    grid.getCellFormatter().setHorizontalAlignment(1, 1, HasHorizontalAlignment.ALIGN_CENTER);

    grid.setWidget(1, 2, selectedTable);
    grid.getCellFormatter().setHorizontalAlignment(1, 2, HasHorizontalAlignment.ALIGN_CENTER);
    panel.add(grid);
    initWidget(panel);
}

From source file:org.eclipse.che.ide.imageviewer.ImageViewer.java

License:Open Source License

/** {@inheritDoc} */
@Override/*from   w  w  w.  j a  v a 2  s.com*/
public void go(AcceptsOneWidget container) {
    VerticalPanel panel = new VerticalPanel();
    panel.setSize("100%", "100%");
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    panel.add(getImage());
    editorView = new ScrollPanel(panel);
    editorView.getElement().getFirstChildElement().getStyle().setHeight(100, Unit.PCT);
    container.setWidget(editorView);
}

From source file:org.eclipse.che.ide.ui.status.StatusText.java

License:Open Source License

public StatusText(T widget, Predicate<T> showPredicate) {

    this.showPredicate = showPredicate;
    this.widget = widget;

    setText(DEFAULT_EMPTY_TEXT);//from  w w  w .j av  a  2s  .c o  m

    verticalPanel = new VerticalPanel();

    verticalPanel.setHeight("50px");
    verticalPanel.setWidth("100%");

    verticalPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    verticalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
}

From source file:org.ednovo.gooru.client.mvp.home.HeaderUc.java

License:Open Source License

/**
 * Class constructor , set logged in user , gooru classic view link
 *///from   ww  w.j  a v a2s . c om
public HeaderUc() {
    this.res = GooruCBundle.INSTANCE;
    res.css().ensureInjected();
    autokeySuggestOracle = new AppMultiWordSuggestOracle(true);
    setEditSearchTxtBox(new AppSuggestBox(autokeySuggestOracle) {

        @Override
        public HandlerRegistration addClickHandler(ClickHandler handler) {
            return null;
        }

        @Override
        public void keyAction(String text) {
            MixpanelUtil.Search_autocomplete_select();
            autokeySuggestOracle.clear();

            autoSuggestKeywordDo.setQuery(text);
            searchData = getEditSearchTxtBox().getText();
            autoSuggestKeywordDo.setType("resource");
            if (text != null && text.trim().length() > 0) {
                requestAutoSuggestKeyword(autoSuggestKeywordDo);
            } else {
                getEditSearchTxtBox().hideSuggestionList();
            }

        }

    });
    getEditSearchTxtBox().addSelectionHandler(this);
    getEditSearchTxtBox().setPopupStyleName("shelfEditSearchTextBox");
    initWidget(uiBinder.createAndBindUi(this));

    headerMainPanel.getElement().setAttribute("id", "headerMainPanel");

    logoutPanelVc = new LogoutPanelVc();

    saveSharePanel = new SaveSharePanel() {

        @Override
        @UiHandler("closeButton")
        public void closeButton(ClickEvent clickEvent) {
            isGooruGuidePanelOpen = false;
            Window.enableScrolling(true);
            hide();
        }
    };

    mainDotsPanel.setVisible(false);
    logoutPanelVc.setStyleName(GooruCBundle.INSTANCE.css().logoutPanel());
    editSearchInputFloPanel.setVisible(false);
    LoginLinkContainer.setVisible(false);
    loggedInfoLbl.setVisible(false);
    logoutDownArrowLbl.setVisible(false);

    /*
     * classCodeTxtBox.setText("");
     * classCodeTxtBox.getElement().setAttribute("maxlength", "10");
     * classCodeTxtBox.getElement().setId("txtClassCode");
     */

    StudyLbl.addClickHandler(new studyClickHandler());
    /*   getEditSearchTxtBox().addKeyUpHandler(new SearchKeyUpHandler());*/
    getEditSearchTxtBox().addKeyDownHandler(new SearchKeyDownHandler());
    editSearchInputFloPanel.setVisible(false);
    // gooruGuideImgLbl.setStyleName(GooruCBundle.INSTANCE.css().gooruGuideImg());
    this.switchToClassicView();
    headerSearchBarVerPanel.setCellVerticalAlignment(headerSearchBarFloPanel,
            HasVerticalAlignment.ALIGN_MIDDLE);

    noneMenu = new Label();

    discoverLink.getParent().getElement().setId("LinkheaderElement1");
    organizeLink.getParent().getElement().setId("LinkheaderElement2");
    teachLink.getParent().getElement().setId("LinkheaderElement3");
    studyLink.getParent().getElement().setId("LinkheaderElement4");
    loggedInfoLbl.getParent().getElement().setId("LinkheaderElement5");

    discoverLink.getParent().setStyleName(GooruCBundle.INSTANCE.css().menu());

    noneMenu = new Label();

    activateOnlyDiscover();

    discoverLinkContainer.addClickHandler(new OnClickDiscoverEventHandler());

    organizeLinkContainer.addClickHandler(new OnClickOrganizeEventHandler());

    teachLinkContainer.addClickHandler(new OnClickTeachEventHandler());

    studyLinkContainer.addClickHandler(new studyClickHandler());

    // gooruClassicViewLbl.setText(MessageProperties.GL0094);
    getEditSearchTxtBox().getElement().setId("txtEditSearch");
    editSearchBtn.getElement().setId("btnEditSearch");
    editSearchBtn.setText(GL0176);
    confirmEmailText.getElement().setAttribute("style", "float: left;");
    confirmEmailText.setText(GL1248);
    resendEmailAncr.getElement().setAttribute("style", "float: left;padding-left:5px;");
    resendEmailAncr.setText(GL1249 + GL_GRR_COMMA);
    thanksLbl.getElement().setAttribute("style", "padding-left:5px;");
    thanksLbl.setText(GL0498 + GL_SPL_EXCLAMATION);
    getEditSearchTxtBox().getElement().setAttribute("placeholder", GL0177);
    lblBeta.setText(GL0178);
    discoverLink.setText(GL0179);
    organizeLink.setText(GL0180);
    teachLink.setText(GL0181);
    studyLink.setText(GL0182);
    loggedInfoLbl.setText(GL0183);
    // classCodeTxtBox.setPlaceholder(MessageProperties.GL0184);
    StudyLbl.setText(GL0185);
    StudyLbl.getElement().setId("btnStudy");
    registerLinkLbl.setText(GL0186);
    loginLink.setText(GL0187);
    loginLink.getElement().setId("lblLogin");
    registerLinkLbl.getElement().setId("lblRegister");
    discoverLinkContainer.addMouseOverHandler(new DiscoverMouseOver());
    discoverLinkContainer.addMouseOutHandler(new DiscoverMouseOut());
    ClickHandler eve1 = new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            if (!isSettingIcon) {
                isOpenSettingDropDown = true;
            } else {
                isSettingIcon = false;
            }
            if (!isStudyNow && studyNowToolTip != null) {
                isClassCodePopupOpen = true;
                studyNowToolTip.hide();
                studyNowToolTip.getClassCodeTxtBox().setText("");
            } else {
                isStudyNow = false;
            }
            /*if(!isDiscover && discoverToolTip != null){
               isOpenDiscoverTooltp=true;
               discoverToolTip.hide();
            }else{
               isDiscover=false;
            }*/
        }
    };
    acctActivationPl.setVisible(false);
    resendEmailAncr.addClickHandler(new ResendEmailConfirmation());

    // goToClasicGooruPanel.setVisible(false);
    // goToClasicInnerPanel.getElement().setAttribute("id",
    // "goToClasicInnerPanel");
    // goToClasicGooruPanel.getElement().getStyle().setVisibility(Visibility.HIDDEN);
    if (!AppClientFactory.isAnonymous()) {
        if (AppClientFactory.getLoggedInUser().getConfirmStatus() == 0) {
            acctActivationPl.setVisible(true);
        }
    } else {
        acctActivationPl.setVisible(false);
    }

    ClickHandler dotsClick = new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            getEditSearchTxtBox().setText("");
        }
    };
    mainDotsPanel.addDomHandler(dotsClick, ClickEvent.getType());

    AppClientFactory.getEventBus().addHandler(SetHeaderEvent.TYPE, setHeader);
    AppClientFactory.getEventBus().addHandler(SetHeaderZIndexEvent.TYPE, setZindex);
    AppClientFactory.getEventBus().addHandler(ClearClasspageListEvent.TYPE, clearHandler);
    AppClientFactory.getEventBus().addHandler(OpenClasspageListEvent.TYPE, openClasspageListHandler);
    AppClientFactory.getEventBus().addHandler(ConfirmStatusPopupEvent.TYPE, confirmUser);

    AppClientFactory.getEventBus().addHandler(DeleteClasspageListEvent.TYPE, deleteHandler);

    RootPanel.get().addDomHandler(eve1, ClickEvent.getType());

    /*
     * if((AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(PlaceTokens
     * .SHELF))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase(
     * PlaceTokens
     * .STUDY)||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens
     * .TEACH)))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens
     * .SETTINGS))||(AppClientFactory.getCurrentPlaceToken().equalsIgnoreCase
     * (PlaceTokens.PROFILE_PAGE))){ editSearchTxtBox.setText(""); }
     */
    discoverLinkUrl = null;
}

From source file:org.ednovo.gooru.client.mvp.image.upload.ImageCropView.java

License:Open Source License

/**
 * Class constructor/* w  w w.j a  va  2 s .  c  o  m*/
 */
public ImageCropView() {
    super();
    initWidget(uiBinder.createAndBindUi(this));
    backPageLinkLbl.setText(GL1231);
    cropText.setHTML(GL1232);
    dragText.setHTML(GL1233);
    cropImageLoading.setLoadingText(GL1234);
    cropImageBtn.setText(GL1235);
    cancelButtonAnr.setText(GL0142);
    loadingTextLbl.setText(GL1236);
    cropImageLoadingVerPanel.setCellVerticalAlignment(cropImageLoading, HasVerticalAlignment.ALIGN_MIDDLE);
    buttonContainer.setVisible(true);
    loadingTextLbl.setVisible(false);
}

From source file:org.ednovo.gooru.client.uc.GlassPanelWithLoadingUc.java

License:Open Source License

/**
 * Class constructor/*  w w  w.ja  v a2  s .co  m*/
 */
public GlassPanelWithLoadingUc() {
    super();
    UcCBundle.INSTANCE.css().ensureInjected();
    loadingImagePanel = new VerticalPanel();
    imagePanel = new LoadingUc();
    loadingImagePanel.add(imagePanel);
    loadingImagePanel.setCellVerticalAlignment(imagePanel, HasVerticalAlignment.ALIGN_MIDDLE);
    this.add(loadingImagePanel);
    loadingImagePanel.setStyleName(UcCBundle.INSTANCE.css().imageLoadingPanel());
    this.addStyleName(UcCBundle.INSTANCE.css().glassPanelWithLoading());
    this.setVisible(false);
}