/*
 public virtual float GetHeightForRow(TITokenField tokenField, UITableView tableView, NSIndexPath indexPath)
 {
     return tableView.RowHeight;
 }
 public virtual UITableViewCell CellForRepresentedObject(TITokenField tokenField, UITableView tableView, object representedObject)
 {
     return new UITableViewCell(UITableViewCellStyle.Default, "tokenFieldDefaultCell");
 }
 */
 public virtual string SearchResultSubtitleForRepresentedObject(TITokenField tokenField, object representedObject)
 {
     if (representedObject != null)
     {
         return representedObject.ToString();
     }
     return string.Empty;
 }
 public virtual string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject)
 {
     if (representedObject != null)
     {
         return representedObject.ToString();
     }
     return string.Empty;
 }
Ejemplo n.º 3
0
 public virtual string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject)
 {
     if (representedObject != null)
     {
         return(representedObject.ToString());
     }
     return(string.Empty);
 }
Ejemplo n.º 4
0
 /*
  * public virtual float GetHeightForRow(TITokenField tokenField, UITableView tableView, NSIndexPath indexPath)
  * {
  *  return tableView.RowHeight;
  * }
  * public virtual UITableViewCell CellForRepresentedObject(TITokenField tokenField, UITableView tableView, object representedObject)
  * {
  *  return new UITableViewCell(UITableViewCellStyle.Default, "tokenFieldDefaultCell");
  * }
  */
 public virtual string SearchResultSubtitleForRepresentedObject(TITokenField tokenField, object representedObject)
 {
     if (representedObject != null)
     {
         return(representedObject.ToString());
     }
     return(string.Empty);
 }
Ejemplo n.º 5
0
            public override string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject)
            {
                if (tokenField.Delegate != null && (tokenField.Delegate != this))
                {
                    return(tokenField.Delegate.DisplayStringForRepresentedObject(tokenField, representedObject));
                }

                return(representedObject.ToString());
            }
Ejemplo n.º 6
0
            public override string SearchResultSubtitleForRepresentedObject(TITokenField tokenField, object representedObject)
            {
                if (tokenField.Delegate != null && (tokenField.Delegate != this))
                {
                    return(tokenField.Delegate.SearchResultSubtitleForRepresentedObject(tokenField, representedObject));
                }

                return(null);
            }
Ejemplo n.º 7
0
 public virtual bool WillRemoveToken(TITokenField tokenField, TIToken token)
 {
     return(true);
 }
Ejemplo n.º 8
0
 public TITokenFieldInternalDelegate(TITokenField owner)
 {
     this.Owner = owner;
 }
 public override bool DisableScrolling(TITokenField tokenField)
 {
     if (this.Owner != null && this.Owner.CustomTableView != null)
     {
         return true;
     }
     if (tokenField.Delegate != null && (tokenField.Delegate != this))
     {
         return tokenField.Delegate.DisableScrolling(tokenField);
     }
     return false;
 }
            public override string SearchResultSubtitleForRepresentedObject(TITokenField tokenField, object representedObject)
            {
                if (tokenField.Delegate != null && (tokenField.Delegate != this))
                {
                    return tokenField.Delegate.SearchResultSubtitleForRepresentedObject(tokenField, representedObject);
                }

                return null;
            }
 public TITokenFieldInternalDelegate(TITokenField owner)
 {
     this.Owner = owner;
 }
 public virtual UITableView GetCustomTableView(TITokenField tokenField)
 {
     return null;
 }
 public virtual bool DisableScrolling(TITokenField tokenField)
 {
     return false;
 }
Ejemplo n.º 14
0
 public virtual void DidFinishSearch(TITokenField tokenField, IEnumerable matches)
 {
 }
Ejemplo n.º 15
0
 public virtual void DidRemoveToken(TITokenField tokenField, TIToken token)
 {
 }
 public virtual void DidAddToken(TITokenField tokenField, TIToken token)
 {
 }
            public override string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject)
            {
                if (tokenField.Delegate != null && (tokenField.Delegate != this))
                {
                    return tokenField.Delegate.DisplayStringForRepresentedObject(tokenField, representedObject);
                }

                return representedObject.ToString();
            }
 public virtual bool WillRemoveToken(TITokenField tokenField, TIToken token)
 {
     return true;
 }
 public override UITableView GetCustomTableView(TITokenField tokenField)
 {
     if (this.Owner != null && this.Owner.CustomTableView != null)
     {
         return this.Owner.CustomTableView;
     }
     if (tokenField.Delegate != null && (tokenField.Delegate != this))
     {
         return tokenField.Delegate.GetCustomTableView(tokenField);
     }
     return null;
 }
 public virtual void DidRemoveToken(TITokenField tokenField, TIToken token)
 {
 }
Ejemplo n.º 21
0
 public void RaiseDidFinishSearch(TITokenField tokenField, IEnumerable resultsArray)
 {
     this.DidFinishSearch.Raise(tokenField, resultsArray);
 }
 public virtual void DidFinishSearch(TITokenField tokenField, IEnumerable matches)
 {
 }
Ejemplo n.º 23
0
 public void RaiseDidFinishSearch(TITokenField tokenField, IEnumerable resultsArray)
 {
     this.DidFinishSearch.Raise(tokenField, resultsArray);
 }
Ejemplo n.º 24
0
 public virtual void DidAddToken(TITokenField tokenField, TIToken token)
 {
 }