protected void setValues(Collection<V> values) { try { for (int i = 0; i < records.length; i++) { records[i].setVisible(false); viewPort.removeMember(records[i]); } } catch (Exception e) { } if (values.isEmpty()) { viewPort.addMember(records[0]); updateRecord(-1, records[0], null); records[0].show(); return; } int i = 0; for (V value : values) { try { viewPort.addMember(records[i]); updateRecord(i, records[i], value); records[i].show(); i++; } catch (Exception e) { SC.say(e.getMessage() + ":::;" + Integer.toString(i)); } } }
@Override public void attachToCanvas() { // remove all previous members, except crumbs for (int i = 1; i < canvas.getMembers().length; i++) { Canvas m = canvas.getMember(i); canvas.removeMember(m); } if (tabs.getTabs().length == 1) { Canvas c = tabs.getTabs()[0].getPane(); c.setHeight100(); canvas.addMember(c); // add the pane directly } else canvas.addMember(tabs); }