Java HTML htmlButton(String value, String action, int width)

Here you can find the source of htmlButton(String value, String action, int width)

Description

Method htmlButton.

License

Open Source License

Parameter

Parameter Description
value String
action String
width int

Return

String

Declaration

public static String htmlButton(String value, String action, int width) 

Method Source Code

//package com.java2s;
/*//from www  .  j  a va 2s .com
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

public class Main {
    /**
     * Method htmlButton.
     * @param value String
     * @param action String
     * @param width int
     * @return String
     */
    public static String htmlButton(String value, String action, int width) {
        return htmlButton(value, action, width, 22);
    }

    /**
     * Method htmlButton.
     * @param value String
     * @param action String
     * @param width int
     * @param height int
     * @return String
     */
    public static String htmlButton(String value, String action, int width, int height) {
        return String.format(
                "<button value=\"%s\" action=\"%s\" back=\"L2UI_CT1.Button_DF_Small_Down\" width=%d height=%d fore=\"L2UI_CT1.Button_DF_Small\">",
                value, action, width, height);
    }
}

Related

  1. htmlBlock(String labelText)
  2. htmlBold(String content)
  3. HTMLcheck(String doc)
  4. htmlCode(char tok)
  5. htmlcodeToSpecialchars(String str)
  6. htmlcodeToSpecialchars(String str)