Package com.taobao.zeus.web.platform.client.module.guide

Examples of com.taobao.zeus.web.platform.client.module.guide.GuideTip


          public void onFailure(Throwable caught) {
            TemplateResources templates=com.google.gwt.core.shared.GWT.create(TemplateResources.class);
            process(templates.notice().getText());
          }
          private void process(String content){
            GuideTip tip=new GuideTip(home.getShortcut());
            String[] lines=content.split("\n");
            for(String line:lines){
              if(line.startsWith("<!--width=")){
                tip.setWidth(Integer.valueOf(line.substring(10,line.indexOf("-->"))));
              }else if(line.startsWith("<!--height=")){
                tip.setHeight(Integer.valueOf(line.substring(11,line.indexOf("-->"))));
              }
            }
           
            tip.setClosable(true);
            tip.getToolTipConfig().setDismissDelay(0);
            tip.setBodyHtml(content);
            tip.setOffset(100, 0);
            tip.show();
          }
        });
       
      }
     
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.module.guide.GuideTip

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.