|
|
@ -11,11 +11,10 @@ import com.fr.quickeditor.CellQuickEditor; |
|
|
|
import com.fr.report.cell.Elem; |
|
|
|
import com.fr.report.cell.Elem; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class BasicChartQuickEditor extends CellQuickEditor { |
|
|
|
public class BasicChartQuickEditor extends CellQuickEditor { |
|
|
|
private JPanel content; |
|
|
|
private BaseChartPropertyPane editingPropertyPane; |
|
|
|
|
|
|
|
|
|
|
|
public BasicChartQuickEditor() { |
|
|
|
public BasicChartQuickEditor() { |
|
|
|
super(); |
|
|
|
super(); |
|
|
@ -23,9 +22,9 @@ public class BasicChartQuickEditor extends CellQuickEditor { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public JComponent createCenterBody() { |
|
|
|
public JComponent createCenterBody() { |
|
|
|
content = new JPanel(); |
|
|
|
editingPropertyPane = DesignModuleFactory.getChartPropertyPane(); |
|
|
|
content.setLayout(new BorderLayout()); |
|
|
|
editingPropertyPane.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
return content; |
|
|
|
return editingPropertyPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -40,16 +39,12 @@ public class BasicChartQuickEditor extends CellQuickEditor { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void refreshDetails() { |
|
|
|
protected void refreshDetails() { |
|
|
|
BaseChartPropertyPane editingPropertyPane; |
|
|
|
|
|
|
|
BaseChartCollection collection; |
|
|
|
BaseChartCollection collection; |
|
|
|
Selection selection = tc.getSelection(); |
|
|
|
Selection selection = tc.getSelection(); |
|
|
|
Elem element; |
|
|
|
Elem element; |
|
|
|
CellSelection cs = (CellSelection) selection; |
|
|
|
CellSelection cs = (CellSelection) selection; |
|
|
|
element = tc.getEditingElementCase().getCellElement(cs.getColumn(), cs.getRow()); |
|
|
|
element = tc.getEditingElementCase().getCellElement(cs.getColumn(), cs.getRow()); |
|
|
|
collection = (BaseChartCollection) element.getValue(); |
|
|
|
collection = (BaseChartCollection) element.getValue(); |
|
|
|
editingPropertyPane = DesignModuleFactory.getChartPropertyPane(); |
|
|
|
|
|
|
|
editingPropertyPane.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
|
|
|
|
content.add(editingPropertyPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
editingPropertyPane.populateChartPropertyPane(collection, tc); |
|
|
|
editingPropertyPane.populateChartPropertyPane(collection, tc); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|