本文整理了Java中com.google.gwt.user.client.ui.CheckBox.getElement()
方法的一些代码示例,展示了CheckBox.getElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.getElement()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.CheckBox
类名称:CheckBox
方法名:getElement
暂无
代码示例来源:origin: kaaproject/kaa
private void setCheckBoxStyle(CheckBox box) {
Element input = box.getElement().getFirstChildElement();
input.getStyle().setVerticalAlign(VerticalAlign.MIDDLE);
Element label = input.getNextSiblingElement();
label.getStyle().setVerticalAlign(VerticalAlign.MIDDLE);
label.getStyle().setPaddingLeft(5, Unit.PX);
label.getStyle().setFontSize(13, Unit.PX);
}
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new CtlSchemasViewImpl.
*/
public CtlSchemasViewImpl() {
super(true);
if (displayShowHigherLevelScopeCheckBox()) {
showHigherScopeCheckBox = new CheckBox(Utils.constants.displayHigherScopes());
showHigherScopeCheckBox.addStyleName(Utils.kaaAdminStyle.bAppContentTitle());
Element.as(showHigherScopeCheckBox.getElement().getChild(0))
.getStyle().setMarginRight(10, Unit.PX);
showHigherScopeCheckBox.setValue(defaultShowHigherLevelScopes());
appendToolbarWidget(showHigherScopeCheckBox);
}
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void setWordWrap(boolean wrap) {
getElement().getStyle().setWhiteSpace(wrap ? WhiteSpace.NORMAL : WhiteSpace.NOWRAP);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public boolean getWordWrap() {
return !WhiteSpace.NOWRAP.getCssName().equals(getElement().getStyle().getWhiteSpace());
}
代码示例来源:origin: com.google.gwt/gwt-servlet
protected CheckBox(Element elem) {
super(DOM.createSpan());
inputElem = InputElement.as(elem);
labelElem = Document.get().createLabelElement();
getElement().appendChild(inputElem);
getElement().appendChild(labelElem);
String uid = DOM.createUniqueId();
inputElem.setPropertyString("id", uid);
labelElem.setHtmlFor(uid);
directionalTextHelper = new DirectionalTextHelper(labelElem, true);
// Accessibility: setting tab index to be 0 by default, ensuring element
// appears in tab sequence. FocusWidget's setElement method already
// calls setTabIndex, which is overridden below. However, at the time
// that this call is made, inputElem has not been created. So, we have
// to call setTabIndex again, once inputElem has been created.
setTabIndex(0);
}
代码示例来源:origin: org.jboss.errai/errai-bus
showFurtherErrors.setValue(showErrors);
showFurtherErrors.setText("Show further errors");
showFurtherErrors.getElement().getStyle().setFontSize(10, Style.Unit.PT);
showFurtherErrors.getElement().getStyle().setColor("white");
代码示例来源:origin: com.google.gwt/gwt-servlet
getElement().replaceChild(newInputElem, inputElem);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void setWordWrap(boolean wrap) {
getElement().getStyle().setWhiteSpace(wrap ? WhiteSpace.NORMAL : WhiteSpace.NOWRAP);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void setWordWrap(boolean wrap) {
getElement().getStyle().setWhiteSpace(wrap ? WhiteSpace.NORMAL : WhiteSpace.NOWRAP);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public boolean getWordWrap() {
return !WhiteSpace.NOWRAP.getCssName().equals(getElement().getStyle().getWhiteSpace());
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public boolean getWordWrap() {
return !WhiteSpace.NOWRAP.getCssName().equals(getElement().getStyle().getWhiteSpace());
}
代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils
/**
* Simulates a click event.
*
* @param target
* The targeted widget.
*/
public static void click(CheckBox target) {
// delegate the click to the input element like in the real life (Web Browser)
click(target, target.getElement().getFirstChildElement());
}
代码示例来源:origin: gwt-test-utils/gwt-test-utils
/**
* Simulates a click event.
*
* @param target
* The targeted widget.
*/
public static void click(CheckBox target) {
// delegate the click to the input element like in the real life (Web Browser)
click(target, target.getElement().getFirstChildElement());
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
/**
* Inserts the selection checkbox in first column.
*/
private void insertSelectionCheckbox(final TableCellElement td) {
com.google.gwt.dom.client.Element container = td.getFirstChildElement();
container.insertFirst(selectionCheckBox.getElement());
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
protected Element getContentWidgetElement() {
// Actual check box input element is the first child of CheckBox element
Node input = asCheckBox().getElement().getChild(0);
return Element.as(input);
}
代码示例来源:origin: oVirt/ovirt-engine
protected Element getInternalLabelElement() {
Node label = asCheckBox().getElement().getChild(1);
return Element.as(label);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public void addToDom() {
div.appendChild(selectAll.getElement());
getChildren().add(selectAll);
adopt(selectAll);
}
代码示例来源:origin: oVirt/ovirt-engine
protected LabelElement getCheckboxWidgetLabel() {
return LabelElement.as(Element.as(asCheckBox().getElement().getChild(1)));
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
protected void updateLabelElementId(String elementId) {
if (useCheckBoxWidgetLabel) {
LabelElement.as(Element.as(asCheckBox().getElement().getChild(1))).setHtmlFor(elementId);
} else {
super.updateLabelElementId(elementId);
}
}
代码示例来源:origin: bedatadriven/activityinfo
private CheckBox createControl(EnumItem instance) {
CheckBox checkBox;
if (enumType.getCardinality() == Cardinality.SINGLE) {
checkBox = new org.activityinfo.ui.client.widget.RadioButton(groupName, label(instance.getLabel()));
} else {
checkBox = new org.activityinfo.ui.client.widget.CheckBox(label(instance.getLabel()));
}
checkBox.setFormValue(instance.getId().asString());
checkBox.getElement().setAttribute("data-id", instance.getId().asString());
controls.add(checkBox);
return checkBox;
}
内容来源于网络,如有侵权,请联系作者删除!