本文整理了Java中com.google.gwt.user.client.ui.CheckBox.setDirectionEstimator()
方法的一些代码示例,展示了CheckBox.setDirectionEstimator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setDirectionEstimator()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:setDirectionEstimator
[英]Note: DirectionEstimator should be set before the label has any content; it's highly recommended to set it using a constructor. Reason: if the label already has non-empty content, this will update its direction according to the new estimator's result. This may cause flicker, and thus should be avoided.
[中]注:在标签有任何内容之前,应设置DirectionEstimator;强烈建议使用构造函数进行设置。原因:如果标签已经有非空内容,这将根据新估计器的结果更新其方向。这可能会导致闪烁,因此应避免。
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Creates a label with the specified text and a default direction estimator.
*
* @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(String label, DirectionEstimator directionEstimator) {
this();
setDirectionEstimator(directionEstimator);
setText(label);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* 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());
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* Creates a label with the specified text and a default direction estimator.
*
* @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(String label, DirectionEstimator directionEstimator) {
this();
setDirectionEstimator(directionEstimator);
setText(label);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Creates a label with the specified text and a default direction estimator.
*
* @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(String label, DirectionEstimator directionEstimator) {
this();
setDirectionEstimator(directionEstimator);
setText(label);
}
代码示例来源:origin: net.wetheinter/gwt-user
/**
* 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());
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* 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());
}
内容来源于网络,如有侵权,请联系作者删除!