Android Open Source - jadab Text Watcher Property






From Project

Back to project page jadab.

License

The source code is released under:

Apache License

If you think the Android project jadab listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.binding.android.propertyprovider.listener;
// w  w  w .j a  v  a  2s  .  c  o m
import com.github.binding.Property;

import android.text.Editable;
import android.text.TextWatcher;

public class TextWatcherProperty implements TextWatcher {
    public Property<String> property = new Property<String>(null);
    
    @Override
    public void afterTextChanged(Editable editable) {
        property.set(editable.toString());
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count,
            int after) {
        // Empty definition.
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int count,
            int after) {
        // Empty definition. AfterTextChanged() is less restrictive.
    }

}




Java Source Code List

com.github.binding.AbstractBinding.java
com.github.binding.BindingBuilder.java
com.github.binding.PropertyExtractor.java
com.github.binding.Property.java
com.github.binding.android.AndroidPrefix.java
com.github.binding.android.BindingActivity.java
com.github.binding.android.BindingFactory.java
com.github.binding.android.BindingName.java
com.github.binding.android.Constants.java
com.github.binding.android.propertyprovider.AbstractPropertyProvider.java
com.github.binding.android.propertyprovider.PropertyProviderFactory.java
com.github.binding.android.propertyprovider.PropertyProviderStack.java
com.github.binding.android.propertyprovider.PropertyProvider.java
com.github.binding.android.propertyprovider.TextViewPropertyProvider.java
com.github.binding.android.propertyprovider.ViewPropertyProvider.java
com.github.binding.android.propertyprovider.listener.OnClickListenerProperty.java
com.github.binding.android.propertyprovider.listener.TextWatcherProperty.java
com.github.event.PropertyChangeListener.java
com.github.jadab.example.CalculatorActivity.java
com.github.jadab.example.logic.DbaCalculatorLogic.java
com.github.util.ObjectUtil.java