Package org.apache.directory.ldapstudio.valueeditors

Examples of org.apache.directory.ldapstudio.valueeditors.IValueEditor


            switch ( index )
            {
                case EntryEditorWidgetTableMetadata.KEY_COLUMN_INDEX:
                    return value.getAttribute().getDescription();
                case EntryEditorWidgetTableMetadata.VALUE_COLUMN_INDEX:
                    IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( value );
                    String dv = vp.getDisplayValue( value );
                    return dv;
                default:
                    return "";
            }
        }
View Full Code Here



    private String getDisplayValue( AttributeHierarchy ah )
    {

        IValueEditor vp = this.valueEditorManager.getCurrentValueEditor( ah );
        if ( vp == null )
        {
            return "";
        }

        String value = vp.getDisplayValue( ah );
        if ( value.length() > 50 )
        {
            value = value.substring( 0, 47 ) + "...";
        }
        return value;
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.valueeditors.IValueEditor

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.