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

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


     * Constructor
     */
    public CalendarPopup()
    {
      iconImg.setStyleName("pf-calendar-icon-html");
        icon = new FocusPanel(iconImg);
        icon.addClickListener(this);
        calVisible = false;
      
        holder.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
      
View Full Code Here


    logTextArea.addStyleName(STYLE_LOG_TEXT_AREA);
    scrollPanel.addStyleName(STYLE_LOG_SCROLL_PANEL);

    //    scrollPanel.setAlwaysShowScrollBars(true);

    final FocusPanel headerPanel = makeHeader();

    Widget resizePanel;
    resizePanel = makeResizePanel();

    debugDockPanel.add(headerPanel, DockPanel.NORTH);
View Full Code Here

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

    final Label titleLabel = new Label("gwt-log", false);
    titleLabel.setStylePrimaryName("log-title");

    HorizontalPanel buttonPanel = new HorizontalPanel();
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);
    DOM.setStyleAttribute(capturingWidget.getElement(), "visibility", "hidden");
    DOM.setStyleAttribute(capturingWidget.getElement(), "margin", "0px");
View Full Code Here

   
    Cell(int row, int col, HTML valHtml) {
      this.actualRow = row;
      this.actualCol = col;
      this.valHtml = valHtml;
      focusPanel = new FocusPanel(valHtml);

      // this was added as a quick "fix" to limit the width of columns
      // specially useful in the case of the CF vocabulary:
      valHtml.setStylePrimaryName("cellTextBreakWord");
     
View Full Code Here

      else {
        contents.setSize("30px", "16px");
      }
      contents.setText(text);

      focusPanel = new FocusPanel(contents);
      focusPanel.setStylePrimaryName("TermTable-termField");
      focusPanel.setSize("100%", "100%");
     
     
      focusPanel.addFocusListener(new FocusListener() {
View Full Code Here

   *
   * @param direction the boundary cell's direction
   * @return the boundary cell
   */
  private Widget setupCell(Direction direction) {
    final FocusPanel widget = new FocusPanel();
    widget.setPixelSize(BORDER_THICKNESS, BORDER_THICKNESS);
    grid.setWidget(direction.getY(), direction.getX(), widget);
    grid.getCellFormatter().addStyleName(direction.getY(), direction.getX(),
        direction.getStyle());
    return widget;
  }
View Full Code Here

 
  /**
   * Cosntructs a new color picker panel.
   */
  public ColorPicker() {
  panel = new FocusPanel();
  swatchTable = new FlexTable();
  swatchTable.setPixelSize(21 * SWATCH_SIZE, 12 * SWATCH_SIZE);
  swatchTable.setBorderWidth(0);
  swatchTable.setCellPadding(0);
  swatchTable.setCellSpacing(0);
 
View Full Code Here

      }
      else {
        contents.setText(text);
      }

      focusPanel = new FocusPanel(contents);
      focusPanel.setStylePrimaryName("TermTable-termField");
      focusPanel.setSize("100%", "100%");
     
     
      focusPanel.addFocusListener(new FocusListener() {
View Full Code Here

    contentPane.setWidget(1, 0, body);
    contentPane.setWidget(2, 0, footer);
    root = new AbsolutePanel();
    root.setSize("100%", "100%");
    root.add(contentPane);
    FocusPanel wrap = new FocusPanel(root);
    controlKeyHandler = new IntRunnable() {
    @Override
    public void run(int i) {
        Event e = Event.getCurrentEvent();
        switch(i) {
        case 83: //CTRL+S
        if (e != null) e.preventDefault();
        CommandEvent.fire(new CurrentDocumentSaveCommand(false));
      break;
      case 79: //CTRL+O
        if (e != null) e.preventDefault();
        CommandEvent.fire(new SystemShowDialogCommand(DynamicFileListDialog.class));
      break;
      case 78: //CTRL+N
        if (e != null) e.preventDefault();
        CommandEvent.fire(new NewDocumentStartCommand());
      break;
      }
    }
    };
    wrap.addKeyDownHandler(new KeyDownHandler() {
    @Override
    public void onKeyDown(KeyDownEvent event) {
      if (event.isControlKeyDown()) {
      controlKeyHandler.run(event.getNativeKeyCode());
      } else {
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.