Tabnine Logo
DataSetLookupConstraints.getMinColumns
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinColumns
method
in
org.dashbuilder.dataset.DataSetLookupConstraints

Best Java code snippets using org.dashbuilder.dataset.DataSetLookupConstraints.getMinColumns (Showing top 6 results out of 315)

origin: kiegroup/appformer

void onColumnFunctionDeleted(@Observes GroupFunctionDeletedEvent event) {
  List<GroupFunction> functionList = getFirstGroupFunctions();
  boolean canDelete = functionList.size() > lookupConstraints.getMinColumns();
  GroupFunction removed = event.getGroupFunction();
  int index = getFirstGroupFunctionIdx(removed);
  if (canDelete && index >= 0) {
    functionList.remove(index);
    updateColumnControls();
    changeEvent.fire(new DataSetLookupChangedEvent(dataSetLookup));
  }
}
origin: org.dashbuilder/dashbuilder-displayer-client

void onColumnFunctionDeleted(@Observes GroupFunctionDeletedEvent event) {
  List<GroupFunction> functionList = getFirstGroupFunctions();
  boolean canDelete = functionList.size() > lookupConstraints.getMinColumns();
  GroupFunction removed = event.getGroupFunction();
  int index = getFirstGroupFunctionIdx(removed);
  if (canDelete && index >= 0) {
    functionList.remove(index);
    updateColumnControls();
    changeEvent.fire(new DataSetLookupChangedEvent(dataSetLookup));
  }
}
origin: org.dashbuilder/dashbuilder-displayer-client

boolean functionsRequired = lookupConstraints.isFunctionRequired();
boolean functionsEnabled = (groupColumnId != null || functionsRequired);
boolean canDelete = groupFunctions.size() > lookupConstraints.getMinColumns();
int n = lookupConstraints.getMaxColumns();
boolean canAdd = lookupConstraints.areExtraColumnsAllowed() && (n < 0 || groupFunctions.size() < n);
origin: kiegroup/appformer

boolean functionsRequired = lookupConstraints.isFunctionRequired();
boolean functionsEnabled = (groupColumnId != null || functionsRequired);
boolean canDelete = groupFunctions.size() > lookupConstraints.getMinColumns();
int n = lookupConstraints.getMaxColumns();
boolean canAdd = lookupConstraints.areExtraColumnsAllowed() && (n < 0 || groupFunctions.size() < n);
origin: org.dashbuilder/dashbuilder-dataset-api

@Test
public void testMultipleColumns() {
  DataSetLookup lookup = MULTIPLE_COLUMNS.newDataSetLookup(METADATA);
  assertEquals(lookup.getDataSetUUID(), "test");
  List<DataSetOp> opList = lookup.getOperationList();
  assertEquals(opList.size(), 1);
  List<DataSetGroup> groupList = lookup.getOperationList(DataSetGroup.class);
  assertEquals(groupList.size(), 1);
  DataSetGroup groupOp = groupList.get(0);
  assertNotNull(groupOp);
  ColumnGroup cg = groupOp.getColumnGroup();
  assertNull(cg);
  assertEquals(groupOp.getGroupFunctions().size(), MULTIPLE_COLUMNS.getMinColumns());
  for (int i = 0; i < MULTIPLE_COLUMNS.getMinColumns(); i++) {
    GroupFunction gf = groupOp.getGroupFunction(METADATA.getColumnId(i));
    assertNotNull(gf);
    assertEquals(gf.getSourceId(), METADATA.getColumnId(i));
    assertEquals(gf.getColumnId(), METADATA.getColumnId(i));
    assertNull(gf.getFunction());
  }
}
origin: org.kie.soup/kie-soup-dataset-api

@Test
public void testMultipleColumns() {
  DataSetLookup lookup = MULTIPLE_COLUMNS.newDataSetLookup(METADATA);
  assertEquals(lookup.getDataSetUUID(), "test");
  List<DataSetOp> opList = lookup.getOperationList();
  assertEquals(opList.size(), 1);
  List<DataSetGroup> groupList = lookup.getOperationList(DataSetGroup.class);
  assertEquals(groupList.size(), 1);
  DataSetGroup groupOp = groupList.get(0);
  assertNotNull(groupOp);
  ColumnGroup cg = groupOp.getColumnGroup();
  assertNull(cg);
  assertEquals(groupOp.getGroupFunctions().size(), MULTIPLE_COLUMNS.getMinColumns());
  for (int i = 0; i < MULTIPLE_COLUMNS.getMinColumns(); i++) {
    GroupFunction gf = groupOp.getGroupFunction(METADATA.getColumnId(i));
    assertNotNull(gf);
    assertEquals(gf.getSourceId(), METADATA.getColumnId(i));
    assertEquals(gf.getColumnId(), METADATA.getColumnId(i));
    assertNull(gf.getFunction());
  }
}
org.dashbuilder.datasetDataSetLookupConstraintsgetMinColumns

Popular methods of DataSetLookupConstraints

  • <init>
  • setGroupRequired
  • check
  • setColumnTypes
  • setColumnsTitle
  • setGroupsTitle
  • setMaxColumns
  • setMinColumns
  • newDataSetLookup
  • setGroupColumn
  • buildUniqueColumnId
  • setExtraColumnsAllowed
  • buildUniqueColumnId,
  • setExtraColumnsAllowed,
  • setExtraColumnsType,
  • setGroupAllowed,
  • getColumnTypes,
  • setFunctionRequired,
  • checkTypes,
  • createValidationError,
  • getGroupColumn

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • BoxLayout (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now