private void generateSetMethodCallsMethod(final ActionCallMethod action, final FieldNature[] fieldValues) { buf.append(indentation); if (isDSLEnhanced) { buf.append(">"); } buf.append(action.getVariable()); buf.append("."); buf.append(action.getMethodName()); buf.append("( "); boolean isFirst = true; for (int i = 0; i < fieldValues.length; i++) { ActionFieldFunction valueFunction = (ActionFieldFunction) fieldValues[i]; if (isFirst == true) { isFirst = false; } else { buf.append(", "); } if (valueFunction.isFormula()) { buf.append(valueFunction.getValue()); } else if (valueFunction.getNature() == FieldNatureType.TYPE_VARIABLE) { buf.append(valueFunction.getValue()); } else { buildDefaultFieldValue(valueFunction, buf); } } buf.append(" );\n"); } }
private void refresh() { root.clear(); if (enums != null && (enums.getFixedList() != null || enums.getQueryExpression() != null)) { root.add(new EnumDropDown(methodParameter.getValue(), new DropDownValueChanged() { public void valueChanged(String newText, String newValue) { setMethodParameterValue(newValue); } }, enums, modeller.getPath())); } else { if (methodParameter.getNature() == FieldNatureType.TYPE_UNDEFINED && methodParameter.getValue() == null) { // we have a blank slate.. // have to give them a choice root.add(choice()); } else { if (methodParameter.getNature() == FieldNatureType.TYPE_VARIABLE) { root.add(boundVariable()); } else if (methodParameter.getNature() == FieldNatureType.TYPE_FORMULA) { root.add(boundFormulaTextBox()); } else { root.add(boundLiteralTextBox()); } } } }
private void refresh() { root.clear(); if (enums != null && (enums.getFixedList() != null || enums.getQueryExpression() != null)) { root.add(new EnumDropDown(methodParameter.getValue(), new DropDownValueChanged() { public void valueChanged(String newText, String newValue) { setMethodParameterValue(newValue); } }, enums, modeller.getPath())); } else { if (methodParameter.getNature() == FieldNatureType.TYPE_UNDEFINED && methodParameter.getValue() == null) { // we have a blank slate.. // have to give them a choice root.add(choice()); } else { if (methodParameter.getNature() == FieldNatureType.TYPE_VARIABLE) { root.add(boundVariable()); } else if (methodParameter.getNature() == FieldNatureType.TYPE_FORMULA) { root.add(boundFormulaTextBox()); } else { root.add(boundLiteralTextBox()); } } } }
private ActionFieldFunction cloneActionFieldFunction(ActionFieldFunction aff) { ActionFieldFunction clone = new ActionFieldFunction(); clone.setField(aff.getField()); clone.setNature(aff.getNature()); clone.setType(aff.getType()); clone.setValue(aff.getValue()); clone.setMethod(aff.getMethod()); return clone; }
private ActionFieldFunction cloneActionFieldFunction(ActionFieldFunction aff) { ActionFieldFunction clone = new ActionFieldFunction(); clone.setField(aff.getField()); clone.setNature(aff.getNature()); clone.setType(aff.getType()); clone.setValue(aff.getValue()); clone.setMethod(aff.getMethod()); return clone; }