public void truncate(String textMetricsPrefix, int widgetWidth) {

        for (Widget widget : m_panel) {
            if (!(widget instanceof I_CmsTruncable)) {
                continue;
            }
            int width = widgetWidth - 4; // just to be on the safe side
            if (widget instanceof CmsList<?>) {
                width -= 25; // 25px left margin
            }
            ((I_CmsTruncable)widget).truncate(textMetricsPrefix, width);
        }
    }
public void truncate ( String textMetricsPrefix , int widgetWidth ) { for ( Widget widget : m_panel ) { if ( ! ( widget instanceof I_CmsTruncable ) ) { continue ; } int width = widgetWidth - 4 ; if ( widget instanceof CmsList < ? > ) { width -= 25 ; } ( ( I_CmsTruncable ) widget ) . truncate ( textMetricsPrefix , width ) ; } }
@see org.opencms.gwt.client.ui.I_CmsTruncable#truncate(java.lang.String, int)