本文整理了Java中com.vaadin.v7.ui.TextField.addValueChangeListener()
方法的一些代码示例,展示了TextField.addValueChangeListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextField.addValueChangeListener()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.TextField
类名称:TextField
方法名:addValueChangeListener
暂无
代码示例来源:origin: OpenNMS/opennms
@Override
public void addValueChangeListener(final ValueChangeListener listener) {
this.textField.addValueChangeListener(listener);
}
代码示例来源:origin: tepi/FilteringTable
private void addValueChangeListeners() {
for (AbstractField<?> af : customFields.keySet()) {
af.addValueChangeListener(listener);
}
for (TextField tf : texts.keySet()) {
tf.addValueChangeListener(listener);
}
for (ComboBox cb : enums.keySet()) {
cb.addValueChangeListener(listener);
}
for (ComboBox cb : booleans.keySet()) {
cb.addValueChangeListener(listener);
}
for (DateFilterPopup dfp : dates.keySet()) {
dfp.addValueChangeListener(listener);
}
for (NumberFilterPopup nfp : numbers.keySet()) {
nfp.addValueChangeListener(listener);
}
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
private ColorPickerPreview() {
setStyleName("v-colorpicker-preview");
field = new TextField();
field.setImmediate(true);
field.setSizeFull();
field.setStyleName("v-colorpicker-preview-textfield");
field.setData(this);
field.addValueChangeListener(this);
addComponent(field);
}
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
@Override
public void setColor(Color color) {
this.color = color;
// Unregister listener
field.removeValueChangeListener(this);
String colorCSS = color.getCSS();
field.setValue(colorCSS);
if (field.isValid()) {
oldValue = colorCSS;
} else {
field.setValue(oldValue);
}
// Re-register listener
field.addValueChangeListener(this);
// Set the text color
field.removeStyleName(STYLE_DARK_COLOR);
field.removeStyleName(STYLE_LIGHT_COLOR);
if (this.color.getRed() + this.color.getGreen()
+ this.color.getBlue() < 3 * 128) {
field.addStyleName(STYLE_DARK_COLOR);
} else {
field.addStyleName(STYLE_LIGHT_COLOR);
}
markAsDirty();
}
代码示例来源:origin: OpenNMS/opennms
m_timeFrameValue.addValueChangeListener(new Property.ValueChangeListener() {
@Override
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
代码示例来源:origin: OpenNMS/opennms
priorityField.addValueChangeListener(new Property.ValueChangeListener() {
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
if (priorityField.isValid()) {
boostPriorityField.addValueChangeListener(new Property.ValueChangeListener() {
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
if (boostPriorityField.isValid()) {
durationField.addValueChangeListener(new Property.ValueChangeListener() {
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
if (durationField.isValid()) {
boostDurationField.addValueChangeListener(new Property.ValueChangeListener() {
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
if (boostDurationField.isValid()) {
m_titleField.setDescription("Title for this dashlet instance");
m_titleField.addValueChangeListener(new Property.ValueChangeListener() {
public void valueChange(Property.ValueChangeEvent valueChangeEvent) {
m_dashletSpec.setTitle((String) valueChangeEvent.getProperty().getValue());
代码示例来源:origin: OpenNMS/opennms
editableField.setImmediate(true);
editableField.addValidator(nameValidator);
editableField.addValueChangeListener(new Property.ValueChangeListener() {
@Override
public void valueChange(Property.ValueChangeEvent event) {
代码示例来源:origin: tepi/FilteringTable
currentPageTextField.setStyleName(ValoTheme.TEXTFIELD_SMALL);
currentPageTextField.setImmediate(true);
currentPageTextField.addValueChangeListener(e -> {
if (currentPageTextField.isValid() && currentPageTextField.getValue() != null) {
int page = Integer.valueOf(String.valueOf(currentPageTextField.getValue()));
内容来源于网络,如有侵权,请联系作者删除!