@Override
    public String getDialogInitMethod(CmsObject cms, I_CmsWidgetDialog widgetDialog) {

        StringBuffer result = new StringBuffer(128);
        result.append("function initColorPicker() {\n");
        result.append("\tcolorPicker.title = \"");
        result.append(Messages.get().getBundle(widgetDialog.getLocale()).key(Messages.GUI_DIALOG_COLOR_TITLE_0));
        result.append("\";\n");
        result.append("\tcolorPicker.url=\"");
        result.append(CmsWorkplace.getSkinUri());
        result.append("components/js_colorpicker/index.html\";\n");
        result.append("}\n");
        return result.toString();
    }
@ Override public String getDialogInitMethod ( CmsObject cms , I_CmsWidgetDialog widgetDialog ) { StringBuffer result = new StringBuffer ( 128 ) ; result . append ( "function initColorPicker() {\n" ) ; result . append ( "\tcolorPicker.title = \"" ) ; result . append ( Messages . get ( ) . getBundle ( widgetDialog . getLocale ( ) ) . key ( Messages . GUI_DIALOG_COLOR_TITLE_0 ) ) ; result . append ( "\";\n" ) ; result . append ( "\tcolorPicker.url=\"" ) ; result . append ( CmsWorkplace . getSkinUri ( ) ) ; result . append ( "components/js_colorpicker/index.html\";\n" ) ; result . append ( "}\n" ) ; return result . toString ( ) ; }
@see org.opencms.widgets.I_CmsWidget#getDialogInitMethod(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)