code: public int getWidth(String text) {
  
          m_elem.setInnerText(text);
          return CmsDomUtil.getCurrentStyleInt(m_elem, CmsDomUtil.Style.width);
      }
docs: Returns the measured width of the specified text.<p>
  
  @param text the text to measure
  @return the width in pixels