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

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


  public String getModuleName() {
    return "com.google.gwt.user.User";
  }

  public void testFocusPanelTouchEventSinkByAddingHandler() {
    verifyTouchStartEventSinkOnAddHandler(new FocusPanel(), false);
    verifyTouchMoveEventSinkOnAddHandler(new FocusPanel(), false);
    verifyTouchEndEventSinkOnAddHandler(new FocusPanel(), false);
    verifyTouchCancelEventSinkOnAddHandler(new FocusPanel(), false);
  }
View Full Code Here


    }

    verifyDragAndDropEventSink(new WidgetCreator<FocusPanel>() {
      @Override
      public FocusPanel createWidget() {
        return new FocusPanel();
      }
    });
  }
View Full Code Here

  public void testDoubleClickBitFieldNotTriviallyZero() {
    assertNotSame(0, Event.ONDBLCLICK);
  }

  public void testFocusPanelDoubleClickEventSinkByAddingHandler() {
    verifyEventSinkOnAddHandler(new FocusPanel(), false);
  }
View Full Code Here

    return "com.google.gwt.user.User";
  }

  // https://code.google.com/p/google-web-toolkit/issues/detail?id=897
  public void testSetFocus_NotThrowingException() {
    FocusPanel focusPanel = new FocusPanel();
    RootPanel.get().add(focusPanel);
    focusPanel.getElement().getStyle().setDisplay(Display.NONE);
    focusPanel.setFocus(true);
  }
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

            center();
        }
    }

    private FocusPanel createKeyListeningFocusPanel(VerticalPanel verticalPanel) {
        FocusPanel focusPanel = new FocusPanel(verticalPanel);

        focusPanel.addKeyDownHandler(new KeyDownHandler() {
            public void onKeyDown(KeyDownEvent event) {
                if (event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) {
                    hide();
                }
            }
        });

        focusPanel.setStyleName("");
        focusPanel.setFocus(true);
        focusPanel.setWidth("100%");
        return focusPanel;
    }
View Full Code Here

public class PTFocusPanel extends PTPanel<FocusPanel> {

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        init(create, uiService, new FocusPanel());
    }
View Full Code Here

            center();
        }
    }

    private FocusPanel createKeyListeningFocusPanel(VerticalPanel verticalPanel) {
        FocusPanel focusPanel = new FocusPanel( verticalPanel );

        focusPanel.addKeyDownHandler( new KeyDownHandler() {
            public void onKeyDown(KeyDownEvent event) {
                if ( event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE ) {
                    hide();
                }
            }
        } );

        focusPanel.setStyleName( "" );
        focusPanel.setFocus( true );
        focusPanel.setWidth( "100%" );
        return focusPanel;
    }
View Full Code Here


        final ExtElement e = new ExtElement(hp.getElement());
        e.setOpacity(0.1f, false);

        FocusPanel actionPanel = new FocusPanel(hp);

        MouseListenerAdapter mouseListenerAdapter = new MouseListenerAdapter() {

            @Override
            public void onMouseEnter(Widget sender) {
                e.setOpacity(1, false);
            }

            @Override
            public void onMouseLeave(Widget sender) {
                e.setOpacity(0.1f, false);
            }
        };


        actionPanel.addMouseListener(mouseListenerAdapter);

        layout.setWidget(currentLayoutRow, 2, actionPanel);
        layout.getFlexCellFormatter().setHorizontalAlignment(currentLayoutRow, 2, HasHorizontalAlignment.ALIGN_CENTER);
        layout.getFlexCellFormatter().setVerticalAlignment(currentLayoutRow, 2, HasVerticalAlignment.ALIGN_MIDDLE);
    }
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.