public int getIndex() { for (int i = 0; i < _typeArray.length; i++) { AggregateFunctionType type = _typeArray[i]; if (this.equals(type)) return i; } return -1; }
public int getIndex() { for (int i = 0; i < _typeArray.length; i++) { AggregateFunctionType type = _typeArray[i]; if (this.equals(type)) return i; } return -1; }
public boolean equals(Object obj) { try { GroupFunction other = (GroupFunction) obj; if (sourceId != null && !sourceId.equals(other.sourceId)) return false; if (columnId != null && !columnId.equals(other.columnId)) return false; if (function != null && !function.equals(other.function)) return false; return true; } catch (ClassCastException e) { return false; } }
public boolean equals(Object obj) { try { GroupFunction other = (GroupFunction) obj; if (sourceId != null && !sourceId.equals(other.sourceId)) return false; if (columnId != null && !columnId.equals(other.columnId)) return false; if (function != null && !function.equals(other.function)) return false; return true; } catch (ClassCastException e) { return false; } }
protected void initFunctionListBox() { view.clearFunctionSelector(); view.setVoidFunctionEnabled(!isColumnNumeric()); AggregateFunctionType selected = groupFunction.getFunction(); List<AggregateFunctionType> supportedFunctions = getSupportedFunctionTypes(); for (int i=0; i<supportedFunctions.size(); i++) { AggregateFunctionType functionType = supportedFunctions.get(i); view.addFunctionItem(functionType); if (selected != null && functionType.equals(selected)) { view.setSelectedFunctionIndex(i); } } }
protected void initFunctionListBox() { view.clearFunctionSelector(); view.setVoidFunctionEnabled(!isColumnNumeric()); AggregateFunctionType selected = groupFunction.getFunction(); List<AggregateFunctionType> supportedFunctions = getSupportedFunctionTypes(); for (int i=0; i<supportedFunctions.size(); i++) { AggregateFunctionType functionType = supportedFunctions.get(i); view.addFunctionItem(functionType); if (selected != null && functionType.equals(selected)) { view.setSelectedFunctionIndex(i); } } }