@Override public void endTable() throws CreateTableException { if (elementColumn > 0) { incCurrentRow(LOGIC_ELEMENT_HEIGHT); } super.endTable(); }
@Override public void endTable() throws CreateTableException { if (elementColumn > 0) { incCurrentRow(LOGIC_ELEMENT_HEIGHT); } super.endTable(); }
/** * Get node type * * @return node type */ public String getNodeType() { return value.isComplex() ? COMPLEX : SIMPLE; }
@Override public void beginTable(int width, int height) throws CreateTableException { super.beginTable(width, height); elementColumn = 0; }
/** * Writes decision table header. <br /> * Requires the header signature, e.g. * <code><i>void hello1(int hour)</i></code><br/> without Decision table * header token <code>Rules</code> * * @param signature method signature for the table. */ public void writeHeader(String signature) { String headerText = IXlsTableNames.DECISION_TABLE2 + " " + signature; super.writeHeader(headerText, null); }
/** * Use an aggregated fields instead of a foreign key * * @see #useForeignKey() */ public void useAggregatedFields() { setAggregatedFields(getAvailableFields()); }
/** * Write a field values * * @param fieldValues a map containing values where a key is fully qualified * field name * @param style cell style (can be null) */ public void writeFieldValues(Map<String, String> fieldValues, ICellStyle cellStyle) { writeFieldValues(fields, fieldValues, cellStyle); incCurrentRow(); }
/** * Write a header of a data table * * @param typeName type name * @param variableName technical variable name */ public void writeHeader(String typeName, String variableName) { writeHeader(typeName, variableName, null); }
/** * {@inheritDoc} */ public boolean isComplex() { return !getType().isSimple() && !getType().isArray() && !predefinedChecker.isPredefined(getType()); }
/** * Writes cell. * * @param x cell x coordinate * @param y cell y coordinate * @param width cell width * @param height cell height * @param value cell value */ protected void writeCell(int x, int y, int width, int height, Object value) { writeCell(x, y, width, height, value, null); }
/** * {@inheritDoc} */ @Override public String getTypeName() { return getName(); }
/** * {@inheritDoc} */ @Override public String getTypeName() { return DataTablePredefinedTypeVariable.this.getTypeName(); } }
public void setForeignKeyTable(String table) { value.setForeignKeyTable(table); }
public void setForeignKeyColumn(String column) { value.setForeignKeyColumn(column); }
@Override public void beginTable(int width, int height) throws CreateTableException { super.beginTable(width, height); elementColumn = 0; }
/** * Writes decision table header. <br /> * Requires the header signature, e.g. * <code><i>void hello1(int hour)</i></code><br/> without Decision table * header token <code>Rules</code> * * @param signature method signature for the table. */ public void writeHeader(String signature, ICellStyle style) { String headerText = IXlsTableNames.SIMPLE_DECISION_TABLE + " " + signature; super.writeHeader(headerText, style); } }
/** * Get node type * * @return node type */ public String getNodeType() { return value.isComplex() ? COMPLEX : SIMPLE; }
/** * Writes cell. * * @param x cell x coordinate * @param y cell y coordinate * @param value cell value */ protected void writeCell(int x, int y, Object value) { writeCell(x, y, 1, 1, value, null); }
/** * Create instance of a node * * @param value description of a data table field * @param root if true, then this node is root */ public DataTableTreeNode(DataTableField value, boolean root) { this.value = value; this.root = root; editForeignKey = value.isComplex(); // set default value }
/** * Create instance of a node * * @param value description of a data table field * @param root if true, then this node is root */ public DataTableTreeNode(DataTableField value, boolean root) { this.value = value; this.root = root; editForeignKey = value.isComplex(); // set default value }