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

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


    private SimplePanel focusablePanel;
    private boolean enabled = true;

    ClickDelegatePanel(Widget child) {

      focusablePanel = new FocusPanel();
      focusablePanel.setWidget(child);
      SimplePanel wrapperWidget = createTabTextWrapper();
      if (wrapperWidget == null) {
        initWidget(focusablePanel);
      } else {
View Full Code Here


    context.dragController.dragEnd();
  }

  private void initCapturingWidget() {
    capturingWidget = new FocusPanel();
    capturingWidget.addMouseMoveHandler(this);
    capturingWidget.addMouseUpHandler(this);
    capturingWidget.addTouchMoveHandler(this);
    capturingWidget.addTouchEndHandler(this);
    capturingWidget.addTouchCancelHandler(this);
View Full Code Here

  @Override
  protected void onBind() {
    super.onBind();
    getView().showOptions(false);
    final FocusPanel fp = getView().getListContainer();
    fp.addMouseOverHandler(new MouseOverHandler() {
      @Override
      public void onMouseOver(MouseOverEvent event) {
        getView().showOptions(true);
      }
    });
    fp.addMouseOutHandler(new MouseOutHandler() {
      @Override
      public void onMouseOut(MouseOutEvent event) {
        getView().showOptions(false);
      }
    });
View Full Code Here

  @Override
  protected void onBind() {
    super.onBind();
   
    final FocusPanel fp = getView().getRwListEntry();
   
    // change CSS style on mouse over
    fp.addMouseOverHandler(new MouseOverHandler() {
      @Override
      public void onMouseOver(MouseOverEvent event) {
        getView().setHoverableVisibility(true);
        fp.setStyleName("rwListEntry-hover");
      }
    });
    fp.addMouseOutHandler(new MouseOutHandler() {
      @Override
      public void onMouseOut(MouseOutEvent event) {
        getView().setHoverableVisibility(false);
        fp.setStyleName("rwListEntry");
      }
    });
  }
View Full Code Here

    final HTMLPanel hoverPanel = getView().getRwHoverableListEntry();
    hoverPanel.setVisible(false);
    hoverPanel.add(element.getHoverable());
   
   
    final FocusPanel fp = getView().getRwListEntry();

    // Switch hover panel on mouse over
    fp.addMouseOverHandler(new MouseOverHandler() {
      @Override
      public void onMouseOver(MouseOverEvent event) {
        hoverPanel.setVisible(true);
        fp.setStyleName("rwListEntry-hover");
      }
    });
   
    fp.addMouseOutHandler(new MouseOutHandler() {
      @Override
      public void onMouseOut(MouseOutEvent event) {
        hoverPanel.setVisible(false);
        fp.setStyleName("rwListEntry");
      }
    });
  }
View Full Code Here

    context.dragController.dragEnd();
  }

  private void initCapturingWidget() {
    capturingWidget = new FocusPanel();
    capturingWidget.addMouseMoveHandler(this);
    capturingWidget.addMouseUpHandler(this);
    capturingWidget.addTouchMoveHandler(this);
    capturingWidget.addTouchEndHandler(this);
    capturingWidget.addTouchCancelHandler(this);
View Full Code Here

  public WSGrid(boolean scrollable, boolean editable) {
    innerPanel = new VerticalPanel();
    innerPanel.setSpacing(0);

    focusPanel = new FocusPanel(innerPanel);
    initWidget(focusPanel);

    titleBar = new WSAbstractGrid(false, GridType.TITLEBAR);
    innerPanel.add(titleBar);
    innerPanel.setCellVerticalAlignment(titleBar, HasVerticalAlignment.ALIGN_BOTTOM);
View Full Code Here

    context.dragController.dragEnd();
  }

  private void initCapturingWidget() {
    capturingWidget = new FocusPanel();
    capturingWidget.setPixelSize(0, 0);
    RootPanel.get().add(capturingWidget, 0, 0);
    capturingWidget.addMouseListener(this);
    capturingWidget.getElement().getStyle().setProperty("visibility", "hidden");
    capturingWidget.getElement().getStyle().setProperty("margin", "0px");
View Full Code Here

        content.setWidth("100%");
        verticalPanel.add(content);
        verticalPanel.setWidth("100%");

        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%");
        add(focusPanel);

        super.show();

        if (!fixedLocation) {
View Full Code Here

    context.dragController.dragEnd();
  }

  private void initCapturingWidget() {
    capturingWidget = new FocusPanel();
    capturingWidget.addMouseMoveHandler(this);
    capturingWidget.addMouseUpHandler(this);
    capturingWidget.addTouchMoveHandler(this);
    capturingWidget.addTouchEndHandler(this);
    capturingWidget.addTouchCancelHandler(this);
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.