public abstract UITableViewCell CellForRowAtIndexPath (CouchbaseTableSource source, NSIndexPath indexPath);
 public abstract void WillUpdateFromQuery (CouchbaseTableSource source, LiveQuery query);
 public override void DeleteFailed(CouchbaseTableSource source)
 {
     return;
 }
        public override void WillUseCell (CouchbaseTableSource source, UITableViewCell cell, QueryRow row)
        {
          if (backgroundColor == null) {
            var image = UIImage.FromBundle ("item_background");
            backgroundColor = UIColor.FromPatternImage (image);
          }
          
          cell.BackgroundColor = backgroundColor;
          cell.SelectionStyle = UITableViewCellSelectionStyle.Gray;

          cell.TextLabel.Font = UIFont.FromName ("Helvetica", 18f);
          cell.TextLabel.BackgroundColor = UIColor.Clear;

            var props = (IDictionary<string, object>)row.Value;
            var isChecked = (bool)props[RootViewController.CheckboxPropertyName];
//          props.TryGetValue (RootViewController.CheckboxPropertyName, out isChecked);
          cell.TextLabel.TextColor = (bool)isChecked ? UIColor.Gray : UIColor.Black;
          cell.ImageView.Image = UIImage.FromBundle ((bool)isChecked 
                ? "list_area___checkbox___checked" 
                : "list_area___checkbox___unchecked");
        }
Example #5
0
 public abstract void WillUpdateFromQuery(CouchbaseTableSource source, LiveQuery query);
 public override bool DeleteRow(CouchbaseTableSource source, QueryRow row)
 {
     return false;
 }
 public override UITableViewCell CellForRowAtIndexPath(CouchbaseTableSource source, NSIndexPath indexPath)
 {
     return null;
 }
 public abstract bool DeleteRow (CouchbaseTableSource source, QueryRow row);
Example #9
0
 public abstract void DeleteFailed(CouchbaseTableSource source);
 public CouchtableDelegate (RootViewController controller, CouchbaseTableSource source)
 {
   parent = controller;
   dataSource = source;
 }
Example #11
0
 public abstract bool DeleteRow(CouchbaseTableSource source, QueryRow row);
Example #12
0
 public abstract void WillUseCell(CouchbaseTableSource source, UITableViewCell cell, QueryRow row);
Example #13
0
 public abstract void UpdateFromQuery(CouchbaseTableSource source, LiveQuery query, QueryRow [] previousRows);
 public abstract void UpdateFromQuery (CouchbaseTableSource source, LiveQuery query, QueryRow [] previousRows);
 public override void WillUpdateFromQuery(CouchbaseTableSource source, LiveQuery query)
 {
     return;
 }
 public abstract void WillUseCell (CouchbaseTableSource source, UITableViewCell cell, QueryRow row);
 public override void UpdateFromQuery(CouchbaseTableSource source, LiveQuery query, QueryRow[] previousRows)
 {
     return;
 }
 public abstract void DeleteFailed (CouchbaseTableSource source);
Example #19
0
 public abstract UITableViewCell CellForRowAtIndexPath(CouchbaseTableSource source, NSIndexPath indexPath);