Search in sources :

Example 31 with SimplePanel

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

the class NotificationContainerItem 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().notificationTitleWrapper());
    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 32 with SimplePanel

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

the class NotificationPopup 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().notificationPopupMessageWrapper());
    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 33 with SimplePanel

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

the class PopupMenu method initPopupMenu.

/**
     * Initialize popup menu.
     *
     * @param actionGroup action group
     * @param presentationFactory presentation factory
     * @param lockLayer lock layer, uses as root for attaching this popup menu
     * @param actionSelectedHandler handler for action selected event
     * @param keyBindingAgent agent for key binding
     * @param itemIdPrefix id prefix of the item
     */
private void initPopupMenu(ActionGroup actionGroup, PresentationFactory presentationFactory, MenuLockLayer lockLayer, ActionSelectedHandler actionSelectedHandler, KeyBindingAgent keyBindingAgent, String itemIdPrefix) {
    this.presentationFactory = presentationFactory;
    this.keyBindingAgent = keyBindingAgent;
    this.itemIdPrefix = itemIdPrefix;
    this.lockLayer = lockLayer;
    this.actionSelectedHandler = actionSelectedHandler;
    List<Utils.VisibleActionGroup> visibleActionGroupList = Utils.renderActionGroup(actionGroup, presentationFactory, actionManager, managerProvider.get());
    list = new ArrayList<>();
    for (Utils.VisibleActionGroup groupActions : visibleActionGroupList) {
        list.addAll(groupActions.getActionList());
    }
    popupMenuPanel = new SimplePanel();
    disableTextSelection(popupMenuPanel.getElement(), true);
    initWidget(popupMenuPanel);
    popupMenuPanel.addDomHandler(new MouseOutHandler() {

        @Override
        public void onMouseOut(MouseOutEvent event) {
            closeSubPopupTimer.cancel();
            PopupMenu.this.setStyleNormal(hoveredTR);
            hoveredTR = null;
            if (subPopupAnchor != null) {
                setStyleHovered(subPopupAnchor);
            }
        }
    }, MouseOutEvent.getType());
    popupMenuPanel.setStyleName(POPUP_RESOURCES.popup().popupMenuMain());
    hasCheckedItems = hasCheckedItems();
}
Also used : MouseOutHandler(com.google.gwt.event.dom.client.MouseOutHandler) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) MouseOutEvent(com.google.gwt.event.dom.client.MouseOutEvent)

Example 34 with SimplePanel

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

the class EditorPropertiesViewImpl method getEditorSectionsContainer.

@Override
public AcceptsOneWidget getEditorSectionsContainer() {
    SimplePanel container = new SimplePanel();
    sectionsPanel.add(container);
    return container;
}
Also used : SimplePanel(com.google.gwt.user.client.ui.SimplePanel)

Example 35 with SimplePanel

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

the class GwtApplication method getPreloaderCallback.

public PreloaderCallback getPreloaderCallback() {
    final Panel preloaderPanel = new VerticalPanel();
    preloaderPanel.setStyleName("gdx-preloader");
    final Image logo = new Image(GWT.getModuleBaseURL() + "logo.png");
    logo.setStyleName("logo");
    preloaderPanel.add(logo);
    final Panel meterPanel = new SimplePanel();
    meterPanel.setStyleName("gdx-meter");
    meterPanel.addStyleName("red");
    final InlineHTML meter = new InlineHTML();
    final Style meterStyle = meter.getElement().getStyle();
    meterStyle.setWidth(0, Unit.PCT);
    meterPanel.add(meter);
    preloaderPanel.add(meterPanel);
    getRootPanel().add(preloaderPanel);
    return new PreloaderCallback() {

        @Override
        public void error(String file) {
            System.out.println("error: " + file);
        }

        @Override
        public void update(PreloaderState state) {
            meterStyle.setWidth(100f * state.getProgress(), Unit.PCT);
        }
    };
}
Also used : PreloaderCallback(com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderCallback) VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) Panel(com.google.gwt.user.client.ui.Panel) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) RootPanel(com.google.gwt.user.client.ui.RootPanel) PreloaderState(com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderState) VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) InlineHTML(com.google.gwt.user.client.ui.InlineHTML) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) Style(com.google.gwt.dom.client.Style) Image(com.google.gwt.user.client.ui.Image)

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