Search in sources :

Example 1 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.

the class NotificationPopup method createIconWidget.

/**
     * Create icon wrapper that contains an icon.
     *
     * @return {@link SimplePanel} as icon wrapper
     */
private SimplePanel createIconWidget() {
    SimplePanel iconWrapper = new SimplePanel();
    iconWrapper.setStyleName(resources.notificationCss().notificationPopupIconWrapper());
    iconWrapper.ensureDebugId(ICON_DBG_ID + notification.getId());
    return iconWrapper;
}
Also used : SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 2 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.

the class NotificationPopup method createTitleWidget.

/**
     * Create title widget that contains notification title.
     *
     * @return {@link SimplePanel} as title wrapper
     */
private SimplePanel createTitleWidget() {
    SimplePanel titleWrapper = new SimplePanel();
    Label titleLabel = new Label();
    titleWrapper.add(titleLabel);
    titleWrapper.setStyleName(resources.notificationCss().notificationPopupTitleWrapper());
    titleWrapper.ensureDebugId(TITLE_DBG_ID + notification.getId());
    return titleWrapper;
}
Also used : Label(com.google.gwt.user.client.ui.Label) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 3 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.

the class NotificationPopup method createCloseWidget.

/**
     * Create close icon widget that contains an close notification icon.
     *
     * @return {@link SimplePanel} as close icon wrapper
     */
private SimplePanel createCloseWidget() {
    SimplePanel closeWrapper = new SimplePanel();
    SVGImage closeImage = new SVGImage(resources.closeIcon());
    closeImage.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            delegate.onClose(notification);
        }
    });
    closeWrapper.add(closeImage);
    closeWrapper.setStyleName(resources.notificationCss().notificationPopupCloseButtonWrapper());
    closeWrapper.ensureDebugId(CLOSE_ICON_DBG_ID + notification.getId());
    return closeWrapper;
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) SVGImage(org.vectomatic.dom.svg.ui.SVGImage)

Example 4 with SimplePanel

use of com.google.gwt.user.client.ui.SimplePanel in project che by eclipse.

the class NotificationContainerItem method createContentWidget.

/**
     * Create message widget that contains notification message.
     *
     * @return {@link SimplePanel} as message wrapper
     */
private SimplePanel createContentWidget() {
    SimplePanel messageWrapper = new SimplePanel();
    Label messageLabel = new Label();
    messageWrapper.add(messageLabel);
    messageWrapper.setStyleName(resources.notificationCss().notificationMessageWrapper());
    messageWrapper.ensureDebugId(MESSAGE_WRAPPER_DBG_ID + notification.getId());
    return messageWrapper;
}
Also used : Label(com.google.gwt.user.client.ui.Label) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 5 with SimplePanel

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

the class ExtensionPanel method create.

private List<Context> create(List<String> panelNames) {
    List<Context> contexts = new ArrayList<>();
    for (Definition def : getOrderedDefs(panelNames)) {
        SimplePanel p = new SimplePanel();
        add(p);
        contexts.add(Context.create(def, p));
    }
    return contexts;
}
Also used : ArrayList(java.util.ArrayList) SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Aggregations

SimplePanel (com.google.gwt.user.client.ui.SimplePanel)60 Label (com.google.gwt.user.client.ui.Label)19 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)14 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)9 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)7 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)7 HTML (com.google.gwt.user.client.ui.HTML)7 Test (org.junit.Test)5 Element (com.google.gwt.dom.client.Element)4 Style (com.google.gwt.dom.client.Style)4 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)4 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)4 Button (com.google.gwt.user.client.ui.Button)4 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)4 ListHandler (com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler)3 Image (com.google.gwt.user.client.ui.Image)3 Widget (com.google.gwt.user.client.ui.Widget)3 HorizontalScrollWrapper (org.pentaho.mantle.client.ui.custom.HorizontalScrollWrapper)3 ListBoxTitle (org.pentaho.mantle.client.ui.custom.ListBoxTitle)3 Context (com.google.gwt.cell.client.Cell.Context)2