/* 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; }
public virtual string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject) { if (representedObject != null) { return(representedObject.ToString()); } return(string.Empty); }
/* * 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 override string DisplayStringForRepresentedObject(TITokenField tokenField, object representedObject) { if (tokenField.Delegate != null && (tokenField.Delegate != this)) { return(tokenField.Delegate.DisplayStringForRepresentedObject(tokenField, representedObject)); } return(representedObject.ToString()); }
public override string SearchResultSubtitleForRepresentedObject(TITokenField tokenField, object representedObject) { if (tokenField.Delegate != null && (tokenField.Delegate != this)) { return(tokenField.Delegate.SearchResultSubtitleForRepresentedObject(tokenField, representedObject)); } return(null); }
public virtual bool WillRemoveToken(TITokenField tokenField, TIToken token) { return(true); }
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 virtual UITableView GetCustomTableView(TITokenField tokenField) { return null; }
public virtual bool DisableScrolling(TITokenField tokenField) { return false; }
public virtual void DidFinishSearch(TITokenField tokenField, IEnumerable matches) { }
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 void RaiseDidFinishSearch(TITokenField tokenField, IEnumerable resultsArray) { this.DidFinishSearch.Raise(tokenField, resultsArray); }