Show
Ignore:
Timestamp:
2008-07-03 00:03:15 (6 months ago)
Author:
mosipov
Message:

JavaDoc issues

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/FCKeditor.java

    r2146 r2151  
    3030 
    3131/** 
    32  * FCKeditor class.<br /> 
    33  * It creates the html code for the FCKeditor based on the following things: 
     32 * Java represantation of the FCKeditor. This class creates the html code for 
     33 * the FCKeditor based on the following things: 
    3434 * <ul> 
    3535 * <li>browser capabilities</li> 
     
    107107         * Set the unique name of the editor 
    108108         *  
    109          * @param value 
     109         * @param instanceName 
    110110         *            name 
    111111         */ 
    112         public void setInstanceName(final String value) { 
    113                 instanceName = value; 
     112        public void setInstanceName(final String instanceName) { 
     113                this.instanceName = instanceName; 
    114114        } 
    115115 
     
    129129         * path from the context (e.g. /fckeditor). 
    130130         *  
    131          * @param value 
     131         * @param basePath 
    132132         *            path 
    133133         */ 
    134         public void setBasePath(final String value) { 
    135                 basePath = value; 
     134        public void setBasePath(final String basePath) { 
     135                this.basePath = basePath; 
    136136        } 
    137137 
     
    139139         * Set the name of the toolbar to display 
    140140         *  
    141          * @param value 
     141         * @param toolbarSet 
    142142         *            toolbar name 
    143143         */ 
    144         public void setToolbarSet(final String value) { 
    145                 toolbarSet = value; 
     144        public void setToolbarSet(final String toolbarSet) { 
     145                this.toolbarSet = toolbarSet; 
    146146        } 
    147147 
     
    149149         * Set the width of the textarea 
    150150         *  
    151          * @param value 
     151         * @param width 
    152152         *            width 
    153153         */ 
    154         public void setWidth(final String value) { 
    155                 width = value; 
     154        public void setWidth(final String width) { 
     155                this.width = width; 
    156156        } 
    157157 
     
    159159         * Set the height of the textarea 
    160160         *  
    161          * @param value 
     161         * @param height 
    162162         *            height 
    163163         */ 
    164         public void setHeight(final String value) { 
    165                 height = value; 
     164        public void setHeight(final String height) { 
     165                this.height = height; 
    166166        } 
    167167 
     
    176176                return config; 
    177177        } 
    178  
    179         /** 
    180          * Set the advanced configuration set. 
    181          *  
    182          * @param value 
     178        /** 
     179         * Set the advanced configuation set. 
     180         *  
     181         * @param config 
    183182         *            configuration collection 
    184183         */ 
    185         public void setConfig(FCKeditorConfig value) { 
    186                 config = value; 
     184        public void setConfig(FCKeditorConfig config) { 
     185                this.config = config; 
    187186        } 
    188187 
    189188        /** 
    190189         * Escape base XML entities as specified <a 
    191          * href="http://en.wikipedia.org/wiki/Xml#Entity_references">here</a> 
    192          *  
    193          * @param txt 
     190         * href="http://en.wikipedia.org/wiki/Xml#Entity_references">here</a>. 
     191         *  
     192         * @param str 
    194193         *            Text to escape. 
    195194         * @return Escaped text. 
    196195         */ 
    197         private String escapeXml(String txt) { 
    198                 if (Utils.isEmpty(txt)) 
    199                         return txt; 
    200                 txt = txt.replaceAll("&", "&#38;"); 
    201                 txt = txt.replaceAll("<", "&#60;"); 
    202                 txt = txt.replaceAll(">", "&#62;"); 
    203                 txt = txt.replaceAll("\"", "&#34;"); 
    204                 txt = txt.replaceAll("'", "&#39;"); 
    205                 return txt; 
    206         } 
    207  
    208         /* 
    209          * (non-Javadoc) 
    210          * @see #createHtml() 
    211          */ 
    212         public String create() { 
    213                 return createHtml(); 
     196        private String escapeXml(String str) { 
     197                if (Utils.isEmpty(str)) 
     198                        return str; 
     199                 
     200                /* 
     201                 * TODO Strings are inefficent. It should be done like in Commons Lang 
     202                 * 2.4 StringUtils#replaceEach(String, String[], String[]) 
     203                 */ 
     204                str = str.replaceAll("&", "&#38;"); 
     205                str = str.replaceAll("<", "&#60;"); 
     206                str = str.replaceAll(">", "&#62;"); 
     207                str = str.replaceAll("\"", "&#34;"); 
     208                str = str.replaceAll("'", "&#39;"); 
     209                return str; 
    214210        } 
    215211         
    216212        /* 
    217213         * (non-Javadoc) 
     214         *  
     215         * @see #createHtml() 
     216         */ 
     217        /** 
     218         * This method simply wraps to {@link #createHtml()}. 
    218219         * @see #createHtml() 
    219220         */