/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param dir * the text's direction. Note that {@code DEFAULT} means * direction should be inherited from the widget's parent * element. */ public CheckBox(SafeHtml label, Direction dir) { this(); setHTML(label, dir); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param dir * the text's direction. Note that {@code DEFAULT} means * direction should be inherited from the widget's parent * element. */ public CheckBox(SafeHtml label, Direction dir) { this(); setHTML(label, dir); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param asHTML * <code>true</code> to treat the specified label as html */ public CheckBox(String label, boolean asHTML) { this(); if (asHTML) { setHTML(label); } else { setText(label); } }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param asHTML * <code>true</code> to treat the specified label as html */ public CheckBox(String label, boolean asHTML) { this(); if (asHTML) { setHTML(label); } else { setText(label); } }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param directionEstimator * A DirectionEstimator object used for automatic direction * adjustment. For convenience, * {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used. */ public CheckBox(SafeHtml label, DirectionEstimator directionEstimator) { this(); setDirectionEstimator(directionEstimator); setHTML(label.asString()); }
/** * Creates a check box with the specified text label. * * @param label * the check box's label * @param directionEstimator * A DirectionEstimator object used for automatic direction * adjustment. For convenience, * {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used. */ public CheckBox(SafeHtml label, DirectionEstimator directionEstimator) { this(); setDirectionEstimator(directionEstimator); setHTML(label.asString()); }