From cc55efc5c2db72e95c8443f6c1893f67f3fb7345 Mon Sep 17 00:00:00 2001 From: zheng Date: Sun, 8 Apr 2018 11:05:38 +0800 Subject: [PATCH] style pane listener --- src/com/fr/plugin/demo/DemoStylePane.java | 6 ++++++ src/com/fr/plugin/demo/DemoUI.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/fr/plugin/demo/DemoStylePane.java b/src/com/fr/plugin/demo/DemoStylePane.java index e134a14..4ec241d 100644 --- a/src/com/fr/plugin/demo/DemoStylePane.java +++ b/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{ + + public DemoStylePane(AttributeChangeListener listener) { + super(listener); + } + @Override protected List> initPaneList() { List> list = new ArrayList>(); diff --git a/src/com/fr/plugin/demo/DemoUI.java b/src/com/fr/plugin/demo/DemoUI.java index 4d3d3c1..95a1571 100644 --- a/src/com/fr/plugin/demo/DemoUI.java +++ b/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() }; }