public void truncate(String textMetricsKey, int labelWidth) {

        if (labelWidth > 0) {
            getElement().getStyle().setWidth(labelWidth, Unit.PX);
        }
    }
public void truncate ( String textMetricsKey , int labelWidth ) { if ( labelWidth > 0 ) { getElement ( ) . getStyle ( ) . setWidth ( labelWidth , Unit . PX ) ; } }
@see org.opencms.gwt.client.ui.I_CmsTruncable#truncate(java.lang.String, int)