/*
 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;
 }
Example #3
0
 public virtual string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject)
 {
     if (representedObject != null)
     {
         return(representedObject.ToString());
     }
     return(string.Empty);
 }
Example #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);
 }
Example #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());
            }
Example #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);
            }
Example #7
0
 public virtual bool WillRemoveToken(TITokenField tokenField, TIToken token)
 {
     return(true);
 }
Example #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;
 }
Example #14
0
 public virtual void DidFinishSearch(TITokenField tokenField, IEnumerable matches)
 {
 }
Example #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)
 {
 }
 public void RaiseDidFinishSearch(TITokenField tokenField, IEnumerable resultsArray)
 {
     this.DidFinishSearch.Raise(tokenField, resultsArray);
 }
 public virtual void DidFinishSearch(TITokenField tokenField, IEnumerable matches)
 {
 }
 public void RaiseDidFinishSearch(TITokenField tokenField, IEnumerable resultsArray)
 {
     this.DidFinishSearch.Raise(tokenField, resultsArray);
 }
Example #24
0
 public virtual void DidAddToken(TITokenField tokenField, TIToken token)
 {
 }