public void setPreviewVisible(boolean v) { Widget w = getDisplay(); if (w != null && v != w.isVisible()) { w.setVisible(v); if (v) onShow(); else onShow(); } }
private void ensureBlank() { if (currentEditors.isEmpty() || currentEditors.get(currentEditors.size() - 1).getValue().isPresent()) { addValueEditor(false); } for (int i = 0; i < tableField.getRowCount(); i++) { Widget deleteButton = tableField.getWidget(i, 1); if (i < tableField.getRowCount() - 1 && !deleteButton.isVisible()) { deleteButton.setVisible(true); } } }
@Override protected boolean isVisible(Widget item) { return item.isVisible(); }
public void isNotVisible(String objectLocalization) { Widget widget = getObject(Widget.class, objectLocalization); Assert.assertFalse( csvRunner.getAssertionErrorMessagePrefix() + "Visible " + objectLocalization, widget.isVisible()); }