Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.FocusPanel


        scrollPanel = new ScrollPanel();
        scrollPanel.add( gridWidget );
        scrollPanel.addScrollHandler( getScrollHandler() );

        mainFocusPanel = new FocusPanel( mainPanel );
        initWidget( mainFocusPanel );
    }
View Full Code Here


        private Image icon = new Image();

        private VerticalSideBarSpacerWidget() {
            // Widget stuff
            FocusPanel fp = new FocusPanel();
            HorizontalPanel hp = new HorizontalPanel();
            hp.setHorizontalAlignment( HorizontalPanel.ALIGN_CENTER );
            hp.setVerticalAlignment( VerticalPanel.ALIGN_MIDDLE );
            setIconImage( grid.isMerged() );
            hp.add( icon );
            hp.setWidth( "100%" );
            hp.setHeight( "100%" );
            fp.add( hp );

            // DOM stuff (put Widget in HTML cell so we can fix the width)
            getBody().getParentElement().<TableElement> cast()
                    .setCellSpacing( 0 );
            getBody().getParentElement().<TableElement> cast()
                    .setCellPadding( 0 );
            Element tre = DOM.createTR();
            Element tce = DOM.createTD();
            tre.appendChild( tce );
            getBody().appendChild( tre );
            tce.addClassName( style.selectorSpacer() );
            add( fp,
                 tce );

            // Setup event handling
            fp.addClickHandler( new ClickHandler() {

                public void onClick(ClickEvent event) {
                    setIconImage( grid.toggleMerging() );
                }
View Full Code Here

    context.dragController.dragEnd();
  }

  private void initCapturingWidget() {
    capturingWidget = new FocusPanel();
    capturingWidget.setPixelSize(Window.getClientWidth(), Window.getClientHeight());
    capturingWidget.addMouseMoveHandler(this);
    capturingWidget.addMouseUpHandler(this);
    Style style = capturingWidget.getElement().getStyle();
    style.setProperty("filter", "alpha(opacity=0)");
View Full Code Here

        setSelectionState(SelectionState.TEXT_EDITING);
      }
    });

    FlowPanel textComponents = new FlowPanel();
    _textPanel = new FocusPanel();
    _textPanel.setStyleName(_resources.style().textPanel());

    textComponents.add(_content);
    textComponents.add(_textBox);
    _textPanel.setWidget(textComponents);
View Full Code Here

    logTextArea.addStyleName(LogClientBundle.INSTANCE.css().logTextArea());
    scrollPanel.addStyleName(LogClientBundle.INSTANCE.css().logScrollPanel());

    // scrollPanel.setAlwaysShowScrollBars(true);

    final FocusPanel headerPanel = makeHeader();

    Widget resizePanel = new Image(GWT.getModuleBaseURL() + "gwt-log-triangle-10x10.png");
    resizePanel.addStyleName(LogClientBundle.INSTANCE.css().logResizeSe());
    new MouseResizeHandler(resizePanel);
View Full Code Here

  /**
   * @deprecated
   */
  @Deprecated
  private FocusPanel makeHeader() {
    FocusPanel header;
    header = new FocusPanel();
    HorizontalPanel masterPanel = new HorizontalPanel();
    masterPanel.setWidth("100%");
    header.add(masterPanel);

    final Label titleLabel = new Label("gwt-log", false);
    titleLabel.setStylePrimaryName(LogClientBundle.INSTANCE.css().logTitle());

    HorizontalPanel buttonPanel = new HorizontalPanel();
View Full Code Here

    logTextArea.addStyleName(LogClientBundle.INSTANCE.css().logTextArea());
    scrollPanel.addStyleName(LogClientBundle.INSTANCE.css().logScrollPanel());

    // scrollPanel.setAlwaysShowScrollBars(true);

    final FocusPanel headerPanel = makeHeader();

    Widget resizePanel = new Image(GWT.getModuleBaseURL() + "gwt-log-triangle-10x10.png");
    resizePanel.addStyleName(LogClientBundle.INSTANCE.css().logResizeSe());
    new MouseResizeHandler(resizePanel);
View Full Code Here

  /**
   * @deprecated
   */
  @Deprecated
  private FocusPanel makeHeader() {
    FocusPanel header;
    header = new FocusPanel();
    HorizontalPanel masterPanel = new HorizontalPanel();
    masterPanel.setWidth("100%");
    header.add(masterPanel);

    final Label titleLabel = new Label("gwt-log", false);
    titleLabel.setStylePrimaryName(LogClientBundle.INSTANCE.css().logTitle());

    HorizontalPanel buttonPanel = new HorizontalPanel();
View Full Code Here

        usersWhoLikedPanelWrapper.setVisible(false);
        usersWhoLikedPanelWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().usersWhoLikedActivityWrapper());
        usersWhoLikedPanelWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().likeCountWidget());
        RootPanel.get().add(usersWhoLikedPanelWrapper);

        final FocusPanel innerLikeCountPanel = new FocusPanel();
        innerLikeCountPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().likeCount());
        innerLikeCountPanel.add(innerLikeCountLink);

        usersWhoLikedPanelWrapper.add(innerLikeCountPanel);

        usersWhoLikedPanelWrapper.add(usersWhoLikedPanel);
        usersWhoLikedPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().usersWhoLikedActivity());
View Full Code Here

     *            the renderer for this panel
     */
    public GroupStreamPanel(final GroupStreamDTO inGroup, final GroupStreamRenderer inRenderer)
    {
        renderer = inRenderer;
        FocusPanel container = new FocusPanel();
        container.addStyleName(StaticResourceBundle.INSTANCE.coreCss().filter());

        FlowPanel panel = new FlowPanel();

        labelContainer = new FlowPanel();
        labelContainer.addStyleName(StaticResourceBundle.INSTANCE.coreCss().filterLabel());
        label = new Label(inGroup.getName());
        labelContainer.add(label);

        group = inGroup;

        panel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamListItem());

        container.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                updateHistory();
            }
        });

        panel.add(labelContainer);
        InlineLabel seperator = new InlineLabel();
        seperator.addStyleName(StaticResourceBundle.INSTANCE.coreCss().filterSeperator());
        panel.add(seperator);

        seperator.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                updateHistory();
            }
        });

        moveHandle = new Label("move");
        moveHandle.addStyleName(StaticResourceBundle.INSTANCE.coreCss().moveHandle());
        panel.add(moveHandle);

        Session.getInstance().getEventBus().addObserver(SwitchedToActivityDetailViewEvent.class,
                new Observer<SwitchedToActivityDetailViewEvent>()
                {
                    public void update(final SwitchedToActivityDetailViewEvent arg1)
                    {
                        unActivate();
                    }
                });

        Session.getInstance().getEventBus().addObserver(StreamRequestEvent.class, new Observer<StreamRequestEvent>()
        {
            public void update(final StreamRequestEvent arg1)
            {
                if (switchHandled)
                {
                    unActivate();
                }

                switchHandled = true;
            }
        });

        container.add(panel);
        initWidget(container);

    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.FocusPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.