public AbstractValueWidget()
 {
   AbstractValueWidget abstractValueWidget = this;
   this.booleanDisplayer = BooleanBindable.NULL;
   this.numberDisplayer = NumberBindable.NULL;
   this.stringDisplayer = StringBindable.NULL;
 }
 protected internal virtual void setStringBinding(string key, StringBindable displayer, string defaultValue)
 {
   if (this.stringFields.containsKey((object) key))
   {
     string str = new StringBuilder().append("Cannot have multiple string fields for the same key: ").append(key).toString();
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new RuntimeException(str);
   }
   else
   {
     displayer.setBindableValue(defaultValue);
     this.stringFields.put((object) key, (object) displayer);
   }
 }
 public virtual void setStringBinding(StringBindable stringDisplayer)
 {
   this.stringDisplayer = stringDisplayer;
 }
Пример #4
0
 public BindableStringField(StringBindable bindable)
 {
   Widget.BindableStringField bindableStringField = this;
   this.bindable = bindable;
 }