本文整理了Java中org.jboss.errai.common.client.dom.TextInput
类的一些代码示例,展示了TextInput
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextInput
类的具体详情如下:
包路径:org.jboss.errai.common.client.dom.TextInput
类名称:TextInput
暂无
代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-forms-editor-client
@Override
public String getFieldBinding() {
return binding.getValue();
}
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget
@Override
public void setText(final String value) {
linkTextBox.setValue(value);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@Override
public void setPlaceHolder(final String placeHolder) {
repositoryUrlInput.setAttribute("placeholder",
placeHolder);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Override
public void show(final String name) {
nameField.setValue(name);
nameField.setTextContent(name);
setVisible();
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-case-mgmt-client
public boolean validateForm() {
clearErrorMessages();
final boolean newCommentEmpty = isNullOrEmpty(updateCommentText.getValue());
if (newCommentEmpty) {
updateCommentText.focus();
updateCommentTextHelp.setTextContent(translationService.format(CASE_COMMENT_CANT_BE_EMPTY));
updateCommentTextGroup.setValidationState(ValidationState.ERROR);
return false;
}
return true;
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
private void createAndAddTag(boolean setTagInputFocus) {
if (tagInput.getValue() != null && !tagInput.getValue().isEmpty()) {
TagItemView tag = tagItemViewInstance.get();
tag.setName(tagInput.getValue());
Node tagNode = tag.asWidget().getElement();
tag.addClickHandler(c -> {
tagList.removeChild(tagNode);
presenter.removeTag(tag.getName());
});
tagList.appendChild(tagNode);
presenter.addTag(tagInput.getValue());
tagInput.setValue("");
if (setTagInputFocus) {
tagInput.focus();
}
}
}
代码示例来源:origin: org.jbpm/jbpm-wb-human-tasks-client
protected void initDateTimePicker() {
this.dateRangePicker = dateRangePickerProvider.get();
dateRangePicker.getElement().setReadOnly(true);
dateRangePicker.getElement().setAttribute("placeholder",
Constants.INSTANCE.Due_On());
dateRangePicker.getElement().getClassList().add("form-control");
setupDateTimePicker();
dateRangePickerInput.add(ElementWrapperWidget.getWidget(dateRangePicker.getElement()));
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-case-mgmt-client
public void setEditMode(boolean editMode) {
this.editMode = editMode;
updateActions(editMode);
if (editMode) {
addCSSClass(commentShowGroup, "hidden");
removeCSSClass(commentUpdate, "hidden");
updateCommentText.setValue(getValue().getText());
updateCommentText.focus();
} else {
addCSSClass(commentUpdate, "hidden");
removeCSSClass(commentShowGroup, "hidden");
}
}
代码示例来源:origin: kiegroup/jbpm-wb
final Consumer<ActiveFilterItem<DateRange>> callback) {
final DateRangePicker dateRangePicker = dateRangePickerProvider.get();
dateRangePicker.getElement().setReadOnly(true);
dateRangePicker.getElement().setAttribute("placeholder",
placeholder);
addCSSClass(dateRangePicker.getElement(),
代码示例来源:origin: org.guvnor/guvnor-ala-openshift-ui-client
private void enable(boolean enabled) {
this.providerName.setDisabled(!enabled);
this.masterURL.setDisabled(!enabled);
this.username.setDisabled(!enabled);
this.password.setDisabled(!enabled);
}
}
代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client
@Override
public void setErrorState() {
users.focus();
userNameGroup.setValidationState(ValidationState.ERROR);
groupNameGroup.setValidationState(ValidationState.ERROR);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client
@Override
public void setReadonly(boolean readonly) {
paramInput.setReadOnly(readonly);
}
代码示例来源:origin: org.jbpm/jbpm-console-ng-case-mgmt-client
private boolean validateForm() {
clearErrorMessages();
final boolean newCommentEmpty = isNullOrEmpty(newCommentTextArea.getValue());
if (newCommentEmpty) {
newCommentTextArea.focus();
newCommentTextAreaHelp.setTextContent(translationService.format(CASE_COMMENT_CANT_BE_EMPTY));
newCommentTextAreaGroup.setValidationState(ValidationState.ERROR);
return false;
}
return true;
}
代码示例来源:origin: kiegroup/jbpm-wb
protected void initDateTimePicker() {
this.dateRangePicker = dateRangePickerProvider.get();
dateRangePicker.getElement().setReadOnly(true);
dateRangePicker.getElement().setAttribute("placeholder",
Constants.INSTANCE.Due_On());
dateRangePicker.getElement().getClassList().add("form-control");
setupDateTimePicker();
dateRangePickerInput.add(ElementWrapperWidget.getWidget(dateRangePicker.getElement()));
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Test
public void testShow() {
tested.show(NAME);
verify(nameField,
times(1)).setValue(eq(NAME));
verify(nameField,
times(1)).setTextContent(eq(NAME));
verify(showCommand, times(1)).execute();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client
@Override
public void setReadOnly(final boolean readOnly) {
durationTimer.setDisabled(readOnly);
timeDuration.setDisabled(readOnly);
multipleTimer.setDisabled(readOnly);
timeCycleLanguage.setDisabled(readOnly);
timeCycle.setDisabled(readOnly);
dateTimer.setDisabled(readOnly);
timeDate.setDisabled(readOnly);
pickerButton.setDisabled(readOnly);
}
代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client
@Override
public void showCaseOwnerError(String message) {
ownerNameInput.focus();
ownerNameHelp.setTextContent(message);
ownerNameGroup.setValidationState(ValidationState.ERROR);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client
@Override
public String getTimeCycle() {
return timeCycle.getValue();
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@Override
public void initialise() {
repositoryUrlInput.setValue("");
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-examples-screen-client
@EventHandler("tagInput")
private void onTagInputEnterPressed(KeyUpEvent event) {
int keyCode = event.getNativeKeyCode();
if (keyCode == KeyCodes.KEY_ENTER) {
createAndAddTag(true);
} else {
presenter.addPartialTag(tagInput.getValue());
tagInput.focus();
}
}
内容来源于网络,如有侵权,请联系作者删除!