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

Examples of com.google.gwt.user.client.ui.Image$State


    headerWrapper = createWrapper("headerWrapper");
    headerSpacer = createSpacer(headerWrapper);
    dataWrapper = createWrapper("dataWrapper");

    // Create image to fill width
    fillWidthImage = new Image() {
      @Override
      public void onBrowserEvent(Event event) {
        super.onBrowserEvent(event);
        if (DOM.eventGetType(event) == Event.ONCLICK) {
          fillWidth();
View Full Code Here


    admin.addItem("The Grand High Supreme Master Pubba");
    return navBar;
  }

  private ToggleButton createToggleButton() {
    Image show = new Image("unpinned.gif");
    Image hide = new Image("pinned.gif");
    ToggleButton toggler = new ToggleButton(hide, show);
    return toggler;
  }
View Full Code Here

    return header;
  }

  private Widget makeResizePanel() {
    final Image handle = new Image(GWT.getModuleBaseURL() + "gwt-log-triangle-10x10.png");
    handle.addStyleName("log-resize-se");
    handle.addMouseListener(new MouseListenerAdapter() {
      private boolean dragging = false;
      private int dragStartX;
      private int dragStartY;

      public void onMouseDown(Widget sender, int x, int y) {
        dragging = true;
        DOM.setCapture(handle.getElement());
        dragStartX = x;
        dragStartY = y;
        DOM.eventPreventDefault(DOM.eventGetCurrentEvent());
      }

      public void onMouseMove(Widget sender, int x, int y) {
        if (dragging) {
          scrollPanel.incrementPixelSize(x - dragStartX, y - dragStartY);
          scrollPanel.setScrollPosition(Integer.MAX_VALUE);
        }
      }

      public void onMouseUp(Widget sender, int x, int y) {
        dragging = false;
        DOM.releaseCapture(handle.getElement());
      }
    });
    return handle;
  }
View Full Code Here

        if(name == null){
            throw new RuntimeException("Image '"+name+"' not mapped.");
        }
       
        Image image = null;


        if(name.equals("checked")){
            image = ConstHolder.images.checked().createImage();   
        }else if(name.equals("unchecked")){
View Full Code Here

    // Create the page count label
    numPagesLabel = new HTML();

    // Create the loading image
    loadingImage = new Image("scrollTableLoading.gif");
    loadingImage.setVisible(false);

    // Create the error label
    errorLabel = new HTML();
    errorLabel.setStylePrimaryName("errorMessage");
View Full Code Here

    @Inject
    private PespectiveContextMenusPresenter contextMenu;

    @PostConstruct
    public void init() {
        logo = new Image( StandaloneResources.INSTANCE.images().logo() );
        initWidget( uiBinder.createAndBindUi( this ) );
        contextMenuArea.add( contextMenu.getView() );
    }
View Full Code Here

  private void _gottenRelationInfos(List<RelationInfo> relInfos) {
    layout.clear();
    for ( final RelationInfo relInfo : relInfos ) {
      String imgUri = GWT.getModuleBaseURL()+ "images/" +relInfo.getIconUri();
      Orr.log("Loading relation image: " +imgUri+ " for URI=" +relInfo.getUri());
      Image img = new Image(imgUri);
      PushButton button = new PushButton(img,
          new ClickListener() {
            public void onClick(Widget sender) {
              mapRelListener.clicked(relInfo);           
            }
View Full Code Here

    return flexTable.getWidget(row, col);
  }
 
 
  Image _createMenu(final int row, final int col) {
    Image img = Orr.images.tridown().createImage();
    img.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        _cellClicked(row, col);
      }
    });
    img.setVisible(!readOnly);
   
    imgs.add(img);
   
    return img;
  }
View Full Code Here

//         
//          hp.setCellWidth(html, "80%");
//          hp.setCellWidth(filler, "20%");
//        }
//        else {
          Image img = _createMenu(row, col);
         
          hp.add(img);
          hp.add(html);
          hp.add(filler);
         
          hp.setCellWidth(img, "30%");
          hp.setCellWidth(html, "50%");
          hp.setCellWidth(filler, "20%");
         
          hp.setCellHorizontalAlignment(img, ALIGN_LEFT);
//        }
      }
      else { //if ( ! readOnly ) {
        Image img = _createMenu(row, col);
        hp.add(img);
      }
     
    }
    else if ( row == CONTROL_ROW && col == CONTROL_COL ) {
      HorizontalPanel hp = new HorizontalPanel();
      hp.setVerticalAlignment(ALIGN_MIDDLE);
      Image img = _createMenu(row, col);
      hp.add(img);
      if ( termsTLabel != null ) {
        hp.add(termsTLabel);
      }
      _setWidget(row, col, hp)
View Full Code Here

    Widget center;
    Mapping mapping;
   
    if ( relInfo != null ) {
      String imgUri = GWT.getModuleBaseURL()+ "images/" +relInfo.getIconUri();
      Image img = new Image(imgUri);
      // NOTE: firefox does not put the newlines in the tooltip (perhaps firefox takes this as html?),
      // so, I'm replacing each "\n" with " \n", so at least I see a space:
      img.setTitle(relInfo.getDescription().replaceAll("\n", " \n"));
      center = img;
      mapping = new Mapping(leftKey, relInfo.getUri(), rightKey);
    }
    else {
      center = new HTML("?");
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Image$State

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.