Here you can find the source of booleanToCheckBox(final boolean value)
Parameter | Description |
---|---|
value | A boolean value |
public static String booleanToCheckBox(final boolean value)
//package com.java2s; /*L// ww w.jav a2 s. c om * Copyright RTI International * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/webgenome/LICENSE.txt for details. */ public class Main { /** * Translate the given boolean value into a checkbox * string equivalent. * @param value A boolean value * @return Checkbox string equivalent */ public static String booleanToCheckBox(final boolean value) { String checkBoxVal = ""; if (value) { checkBoxVal = "on"; } return checkBoxVal; } }