Package com.tll.client.ui

Examples of com.tll.client.ui.ImageContainer


  public Option(String text, Image img) {
    super();
    setStyleName(OptionStyles.getOptions().option());
    this.text = text;
    if(img != null) {
      getElement().appendChild((new ImageContainer(img)).getElement());
    }
    final Element txt = DOM.createSpan();
    txt.setInnerText(text);
    getElement().appendChild(txt);
  }
View Full Code Here


  public Option(String text, Image img) {
    super();
    setStyleName(Styles.OPTION);
    this.text = text;
    if(img != null) {
      getElement().appendChild((new ImageContainer(img)).getElement());
    }
    final Element txt = DOM.createSpan();
    txt.setInnerText(text);
    getElement().appendChild(txt);
  }
View Full Code Here

      mlp = (HorizontalPanel) o;
      if(show && mlp.getWidgetCount() == 1) {
        // no image so create it
        final MsgLevel level = MsgLevel.values()[mlp.getElement().getPropertyInt(ELEM_PROP_MSG_LEVEL)];
        // NOTE: since this is a clipped image, the width/height should be known
        mlp.insert(new ImageContainer(MsgStyles.getMsgLevelImage(level)), 0);
      }
      if(mlp.getWidgetCount() == 2) {
        mlp.getWidget(0).setVisible(show);
      }
    }
View Full Code Here

    initWidget(container);

    final ImageResource img = MsgStyles.getMsgLevelImage(mlevel);
    // NOTE: since this is a clipped image, the width/height should be known
    final FlowPanel fp = new FlowPanel();
    fp.add(new ImageContainer(img));
    String title;
    switch(mlevel) {
      case ERROR:
        title = "Errors";
        break;
View Full Code Here

      mlp = (HorizontalPanel) o;
      if(show && mlp.getWidgetCount() == 1) {
        // no image so create it
        final MsgLevel level = MsgLevel.values()[mlp.getElement().getPropertyInt(ELEM_PROP_MSG_LEVEL)];
        // NOTE: since this is a clipped image, the width/height should be known
        mlp.insert(new ImageContainer(Util.getMsgLevelImage(level)), 0);
      }
      if(mlp.getWidgetCount() == 2) {
        mlp.getWidget(0).setVisible(show);
      }
    }
View Full Code Here

    initWidget(container);

    final Image img = Util.getMsgLevelImage(mlevel);
    // NOTE: since this is a clipped image, the width/height should be known
    final FlowPanel fp = new FlowPanel();
    fp.add(new ImageContainer(img));
    String title;
    switch(mlevel) {
      case ERROR:
        title = "Errors";
        break;
View Full Code Here

TOP

Related Classes of com.tll.client.ui.ImageContainer

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.