4142434445464748495051
} } public void testNoRows() { HGridBuilder b = new HGridBuilder(); b.meta().add("dis", "Title"); b.addCol("a").add("dis", "Alpha"); b.addCol("b"); HGrid g = b.toGrid(); // meta
252253254255256257258259260261262
throw new IllegalStateException("watch is closed"); // grid meta HGridBuilder b = new HGridBuilder(); if (w.id != null) b.meta().add("watchId", w.id); b.meta().add("watchDis", w.dis); // grid rows b.addCol("id"); for (int i = 0; i < ids.length; ++i)
253254255256257258259260261262263
// grid meta HGridBuilder b = new HGridBuilder(); if (w.id != null) b.meta().add("watchId", w.id); b.meta().add("watchDis", w.dis); // grid rows b.addCol("id"); for (int i = 0; i < ids.length; ++i) b.addRow(new HVal[] { ids[i] });
300301302303304305306307308309310
if (w.closed) throw new IllegalStateException("watch is closed"); // grid meta HGridBuilder b = new HGridBuilder(); b.meta().add("watchId", w.id); // grid rows b.addCol("id"); for (int i = 0; i < ids.length; ++i) b.addRow(new HVal[] { ids[i] });
320321322323324325326327328329330
if (w.closed) throw new IllegalStateException("watch is closed"); // grid meta HGridBuilder b = new HGridBuilder(); b.meta().add("watchId", w.id); if (refresh) b.meta().add("refresh"); b.addCol("empty"); // make request
322323324325326327328329330331332
// grid meta HGridBuilder b = new HGridBuilder(); b.meta().add("watchId", w.id); if (refresh) b.meta().add("refresh"); b.addCol("empty"); // make request HGrid req = b.toGrid(); try {
351352353354355356357358359360361
// optionally send close message to server if (send) { try { HGridBuilder b = new HGridBuilder(); b.meta().add("watchId", w.id).add("close"); b.addCol("id"); call("watchUnsub", b.toGrid()); } catch (Exception e) { // ignore
8283848586878889909192
public HGrid readGrid() { HGridBuilder b = new HGridBuilder(); // meta line readVer(); readMeta(b.meta()); consumeNewline(); // read cols int numCols = 0; while (true) {