本文整理汇总了Java中org.gwtbootstrap3.client.ui.CheckBox.addClickHandler方法的典型用法代码示例。如果您正苦于以下问题:Java CheckBox.addClickHandler方法的具体用法?Java CheckBox.addClickHandler怎么用?Java CheckBox.addClickHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.gwtbootstrap3.client.ui.CheckBox
的用法示例。
在下文中一共展示了CheckBox.addClickHandler方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDomElement
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
@Override
public CheckBoxDOMElement createDomElement(final GridLayer gridLayer,
final GridWidget gridWidget,
final GridBodyCellRenderContext context) {
final CheckBox widget = createWidget();
final CheckBoxDOMElement e = new CheckBoxDOMElement(widget,
gridLayer,
gridWidget);
widget.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
e.flush(widget.getValue());
gridLayer.batch();
}
});
return e;
}
示例2: checkBoxEditor
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
private Widget checkBoxEditor(final RuleAttribute at,
final boolean isReadOnly) {
final CheckBox box = new CheckBox();
box.setEnabled(!isReadOnly);
if (at.getValue() == null || at.getValue().isEmpty()) {
box.setValue(false);
at.setValue(FALSE_VALUE);
} else {
box.setValue((at.getValue().equals(TRUE_VALUE)));
}
box.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
at.setValue((box.getValue()) ? TRUE_VALUE : FALSE_VALUE);
}
});
return box;
}
示例3: ensureDomEventHandlers
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
@Override
public void ensureDomEventHandlers(final CheckBox checkBox) {
checkBox.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
ValueChangeEvent.fire(checkBox, checkBox.getValue());
}
});
}
示例4: addUseRowNumberCheckBox
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
public CheckBox addUseRowNumberCheckBox(AttributeCol52 attributeColumn,
boolean isEditable,
ClickHandler clickHandler) {
final CheckBox chkUseRowNumber = new CheckBox(GuidedDecisionTableConstants.INSTANCE.UseRowNumber());
chkUseRowNumber.setValue(attributeColumn.isUseRowNumber());
chkUseRowNumber.setEnabled(isEditable);
chkUseRowNumber.addClickHandler(clickHandler);
add(chkUseRowNumber);
return chkUseRowNumber;
}
示例5: addReverseOrderCheckBox
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
public CheckBox addReverseOrderCheckBox(AttributeCol52 attributeColumn,
boolean isEditable,
ClickHandler clickHandler) {
final CheckBox chkReverseOrder = new CheckBox(GuidedDecisionTableConstants.INSTANCE.ReverseOrder());
chkReverseOrder.setValue(attributeColumn.isReverseOrder());
chkReverseOrder.setEnabled(attributeColumn.isUseRowNumber() && isEditable);
chkReverseOrder.addClickHandler(clickHandler);
add(chkReverseOrder);
return chkReverseOrder;
}
示例6: addHideColumnCheckBox
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
public CheckBox addHideColumnCheckBox(AttributeCol52 attributeColumn,
ClickHandler clickHandler) {
final CheckBox chkHideColumn = new CheckBox(new StringBuilder(GuidedDecisionTableConstants.INSTANCE.HideThisColumn())
.append(GuidedDecisionTableConstants.COLON)
.toString());
chkHideColumn.setValue(attributeColumn.isHideColumn());
chkHideColumn.addClickHandler(clickHandler);
add(chkHideColumn);
return chkHideColumn;
}
示例7: EnumValuePairOptionEditorViewImpl
import org.gwtbootstrap3.client.ui.CheckBox; //导入方法依赖的package包/类
public EnumValuePairOptionEditorViewImpl() {
checkBox = new CheckBox( );
checkBox.addClickHandler( new ClickHandler() {
@Override
public void onClick( ClickEvent event ) {
presenter.onValueChange();
}
} );
}