Browse Source

style pane listener

master
zheng 7 years ago
parent
commit
cc55efc5c2
  1. 6
      src/com/fr/plugin/demo/DemoStylePane.java
  2. 2
      src/com/fr/plugin/demo/DemoUI.java

6
src/com/fr/plugin/demo/DemoStylePane.java

@ -1,5 +1,6 @@
package com.fr.plugin.demo;
import com.fr.design.gui.frpane.AttributeChangeListener;
import com.fr.extended.chart.AbstractExtendedStylePane;
import com.fr.extended.chart.ExtendedScrollPane;
@ -10,6 +11,11 @@ import java.util.List;
* Created by shine on 2018/3/25.
*/
public class DemoStylePane extends AbstractExtendedStylePane<DemoChart>{
public DemoStylePane(AttributeChangeListener listener) {
super(listener);
}
@Override
protected List<ExtendedScrollPane<DemoChart>> initPaneList() {
List<ExtendedScrollPane<DemoChart>> list = new ArrayList<ExtendedScrollPane<DemoChart>>();

2
src/com/fr/plugin/demo/DemoUI.java

@ -29,7 +29,7 @@ public class DemoUI extends AbstractExtendedChartUIProvider {
@Override
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener) {
return new AbstractChartAttrPane[]{
new DemoStylePane(),
new DemoStylePane(listener),
new ExtendedOtherPane()
};
}

Loading…
Cancel
Save