use of com.ramussoft.report.editor.xml.components.XMLComponent in project ramus by Vitaliy-Yakovchuk.
the class AttributesEditorModel method setValueAt.
@Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
Attribute attribute = attributes.get(rowIndex);
boolean set = false;
for (XMLComponent component : components) {
List<Attribute> list = component.getXMLAttributes();
int i = list.indexOf(attribute);
if (i >= 0) {
component.setXMLAttribute(list.get(i), aValue);
set = true;
}
}
if (set)
editorView.save();
reportEditor.repaint();
}
use of com.ramussoft.report.editor.xml.components.XMLComponent in project ramus by Vitaliy-Yakovchuk.
the class AttributesEditorModel method setAttributes.
public void setAttributes(List<XMLComponent> components, XMLReportEditorView editorView) {
this.components = components;
this.reportEditor = editorView.getEditorView().getReportEditor();
this.editorView = editorView;
attributes = new ArrayList<Attribute>();
for (XMLComponent component : this.components) {
for (Attribute attribute : component.getXMLAttributes()) {
if (attributes.indexOf(attribute) < 0) {
attributes.add(attribute);
}
}
}
fireTableDataChanged();
}
use of com.ramussoft.report.editor.xml.components.XMLComponent in project ramus by Vitaliy-Yakovchuk.
the class XMLDiagram method storeToXML.
public void storeToXML(ReportSaveXMLReader reportSaveXMLReader) throws SAXException {
for (QBounds bounds : yBounds) {
XMLComponent component = (XMLComponent) getComponent(bounds);
component.storeToXML(reportSaveXMLReader);
}
}
Aggregations