Search in sources :

Example 36 with HorizontalPanel

use of com.google.gwt.user.client.ui.HorizontalPanel in project gerrit by GerritCodeReview.

the class MenuScreen method onInitUI.

@Override
protected void onInitUI() {
    super.onInitUI();
    HorizontalPanel hp = new HorizontalPanel();
    hp.add(menu);
    hp.add(body);
    super.add(hp);
}
Also used : HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel)

Example 37 with HorizontalPanel

use of com.google.gwt.user.client.ui.HorizontalPanel in project gerrit by GerritCodeReview.

the class ProjectListPopup method createWidgets.

private void createWidgets(final String popupText, final String currentPageLink) {
    filterPanel = new HorizontalPanel();
    filterPanel.setStyleName(Gerrit.RESOURCES.css().projectFilterPanel());
    final Label filterLabel = new Label(com.google.gerrit.client.admin.AdminConstants.I.projectFilter());
    filterLabel.setStyleName(Gerrit.RESOURCES.css().projectFilterLabel());
    filterPanel.add(filterLabel);
    filterTxt = new NpTextBox();
    filterTxt.addKeyUpHandler(new KeyUpHandler() {

        @Override
        public void onKeyUp(KeyUpEvent event) {
            Query q = new Query(filterTxt.getValue());
            if (!match.equals(q.qMatch)) {
                if (query == null) {
                    q.run();
                }
                query = q;
            }
        }
    });
    filterPanel.add(filterTxt);
    projectsTab = new HighlightingProjectsTable() {

        @Override
        protected void movePointerTo(final int row, final boolean scroll) {
            super.movePointerTo(row, scroll);
            onMovePointerTo(getRowItem(row).name());
        }

        @Override
        protected void onOpenRow(final int row) {
            super.onOpenRow(row);
            openRow(getRowItem(row).name());
        }
    };
    projectsTab.setSavePointerId(currentPageLink);
    closeTop = createCloseButton();
    closeBottom = createCloseButton();
    popup = new DialogBox();
    popup.setModal(false);
    popup.setText(popupText);
}
Also used : KeyUpEvent(com.google.gwt.event.dom.client.KeyUpEvent) HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Label(com.google.gwt.user.client.ui.Label) KeyUpHandler(com.google.gwt.event.dom.client.KeyUpHandler) NpTextBox(com.google.gwtexpui.globalkey.client.NpTextBox) DialogBox(com.google.gwt.user.client.ui.DialogBox)

Aggregations

HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)37 Label (com.google.gwt.user.client.ui.Label)19 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)9 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)9 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)9 Image (com.google.gwt.user.client.ui.Image)7 NpTextBox (com.google.gwtexpui.globalkey.client.NpTextBox)7 TextBox (com.google.gwt.user.client.ui.TextBox)6 KeyUpEvent (com.google.gwt.event.dom.client.KeyUpEvent)5 KeyUpHandler (com.google.gwt.event.dom.client.KeyUpHandler)5 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)4 Grid (com.google.gwt.user.client.ui.Grid)4 InlineLabel (com.google.gwt.user.client.ui.InlineLabel)4 KeyPressEvent (com.google.gwt.event.dom.client.KeyPressEvent)3 Anchor (com.google.gwt.user.client.ui.Anchor)3 CheckBox (com.google.gwt.user.client.ui.CheckBox)3 ImageResource2x (org.rstudio.core.client.resources.ImageResource2x)3 GerritUiExtensionPoint (com.google.gerrit.client.GerritUiExtensionPoint)2 RestApi (com.google.gerrit.client.rpc.RestApi)2 HintTextBox (com.google.gerrit.client.ui.HintTextBox)2