public void exportTabStop(TabStop tabStop) throws IOException { if (tabStop != null) { xmlWriter.startElement(JRXmlConstants.ELEMENT_tabStop); xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_position, tabStop.getPosition()); xmlWriter.addAttribute(JRXmlConstants.ATTRIBUTE_alignment, tabStop.getAlignment()); xmlWriter.closeElement(true); } }
public void setTabStops(List<TabStop> tabStops) { DefaultTableModel dtm = (DefaultTableModel) jTableProperties.getModel(); dtm.setRowCount(0); for (TabStop tabStop : tabStops) { Vector row = new Vector(); row.addElement(tabStop.getPosition()); row.addElement(tabStop.getAlignment().getValueByte()); dtm.addRow(row); } }