@Override public boolean accept(ITableRow row) { Boolean active = m_activeCol.getValue(row); // active if (active != null) { Boolean b = m_filterValue.getBooleanValue(); if (b != null && b.booleanValue() != active.booleanValue()) { // active mismatch, check checked return super.accept(row); } } return true; }
public TriStateInput(ISqlStyle sqlStyle, TriState ts, ValueInputToken target) { if (ts == null || ts.isUndefined()) { m_delegate = new ArrayInput(sqlStyle, new int[]{0, 1}, target); } else { m_delegate = new SingleInput(ts.getBooleanValue(), Boolean.class, target); } }
private int getIndexForTriState(TriState state) { if (state.isUndefined()) { return 0; } else if (state.isFalse()) { return 1; } else { return 2; } }
@Override public void notifyPageDetailFormChanged(IForm form) { // Detail forms will be displayed inside a page (tree node) // Make sure these inner forms are not scrollable because the outline already is IGroupBox mainBox = form.getRootGroupBox(); if (mainBox.isScrollable().isTrue()) { mainBox.setScrollable(false); FormUtility.initRootBoxGridData(mainBox); } }
@Override public void setScrollable(TriState scrollable) { if (scrollable == null) { scrollable = TriState.UNDEFINED; } if (scrollable.equals(isScrollable())) { return; } propertySupport.setProperty(PROP_SCROLLABLE, scrollable); if (scrollable.isTrue()) { // force weightY to be > 0 GridData gd = getGridDataHints(); if (gd.weightY <= 0) { gd.weightY = 1; setGridDataHints(gd); } } }
rootBox.setMainBox(true); rootBox.updateKeyStrokes(); if (rootBox.isScrollable().isUndefined()) { rootBox.setScrollable(true);
@Override public void setScrollable(boolean scrollable) { setScrollable(TriState.parse(scrollable)); }
return new SqlBind(Types.INTEGER, ((TriState) o).getIntegerValue());
protected void makeGroupBoxScrollable(IGroupBox groupBox) { if (!groupBox.isScrollable().isTrue()) { groupBox.setScrollable(true); // GridDataHints have been modified by setScrollable. Update the actual gridData with those hints. markGridDataDirty(groupBox.getForm()); } }
@Override public boolean accept(ITreeNode node, int level) { Boolean nodeValue = m_box.isNodeActive(node); Boolean filterValue = m_filterValue.getBooleanValue(); if (nodeValue == null || filterValue == null || nodeValue.booleanValue() == filterValue.booleanValue()) { return true; } else { // active mismatch, test checked return super.accept(node, level); } }
@Override public void transformPageDetailForm(IForm form) { // Detail forms will be displayed inside a page (tree node) // Make sure these inner forms are not scrollable because the outline already is IGroupBox mainBox = form.getRootGroupBox(); if (mainBox.isScrollable().isTrue()) { mainBox.setScrollable(false); markGridDataDirty(mainBox.getForm()); } }
@Override protected Boolean modelValue() { return getModel().isScrollable().getBooleanValue(); } });
protected void makeGroupBoxScrollable(IGroupBox groupBox) { if (!groupBox.isScrollable().isTrue()) { groupBox.setScrollable(true); // GridDataHints have been modified by setScrollable. Update the actual gridData with those hints. if (groupBox.isMainBox()) { FormUtility.initRootBoxGridData(groupBox); } else { rebuildParentGrid(groupBox); } } }
Boolean active = call.getActive().getBooleanValue(); for (Object[] aData : data) { LookupRow<KEY_TYPE> row = new LookupRow<>(aData, maxColumnIndex, keyClass);