Class NameTextObservableValue

  • All Implemented Interfaces:
    org.eclipse.core.databinding.observable.IObservable, org.eclipse.core.databinding.observable.value.IObservableValue

    public class NameTextObservableValue
    extends org.eclipse.core.databinding.observable.value.AbstractObservableValue
    Observable value for text property of Text SWT widget. Fires change event when user hits the Return key or widget loses the focus.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameTextObservableValue​(org.eclipse.swt.custom.StyledText text)
      Instantiates a new name text observable value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addListener​(Object arg0, org.eclipse.core.databinding.observable.IObservablesListener arg1)  
      protected Object clone()  
      void dispose()  
      protected String doGetValue()  
      protected void doSetValue​(Object value)  
      protected void fireEvent​(org.eclipse.core.databinding.observable.ObservableEvent arg0)  
      protected void firstListenerAdded()  
      org.eclipse.core.databinding.observable.Realm getRealm()  
      Object getValueType()  
      protected boolean hasListeners()  
      protected void lastListenerRemoved()  
      protected void removeListener​(Object arg0, org.eclipse.core.databinding.observable.IObservablesListener arg1)  
      • Methods inherited from class org.eclipse.core.databinding.observable.value.AbstractObservableValue

        addValueChangeListener, fireChange, fireValueChange, getValue, isStale, removeValueChangeListener, setValue
      • Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable

        addChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener
      • Methods inherited from interface org.eclipse.core.databinding.observable.IObservable

        addChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener
    • Constructor Detail

      • NameTextObservableValue

        public NameTextObservableValue​(org.eclipse.swt.custom.StyledText text)
        Instantiates a new name text observable value.
        Parameters:
        text - text to observe the text property of.
    • Method Detail

      • getValueType

        public Object getValueType()
      • doGetValue

        protected String doGetValue()
        Specified by:
        doGetValue in class org.eclipse.core.databinding.observable.value.AbstractObservableValue
      • doSetValue

        protected void doSetValue​(Object value)
        Overrides:
        doSetValue in class org.eclipse.core.databinding.observable.value.AbstractObservableValue
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.core.databinding.observable.IObservable
        Overrides:
        dispose in class org.eclipse.core.databinding.observable.AbstractObservable
      • addListener

        protected void addListener​(Object arg0,
                                   org.eclipse.core.databinding.observable.IObservablesListener arg1)
      • removeListener

        protected void removeListener​(Object arg0,
                                      org.eclipse.core.databinding.observable.IObservablesListener arg1)
      • hasListeners

        protected boolean hasListeners()
      • fireEvent

        protected void fireEvent​(org.eclipse.core.databinding.observable.ObservableEvent arg0)
      • firstListenerAdded

        protected void firstListenerAdded()
      • lastListenerRemoved

        protected void lastListenerRemoved()
      • getRealm

        public org.eclipse.core.databinding.observable.Realm getRealm()