From df217f58814c3575b71a27bb8a9cdd5f64d75e3f Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Sun, 9 Jul 2017 18:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=BB=93=E6=9D=9F=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=BB=93=E6=9D=9Floading=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/alphafine/cell/model/AlphaCellModel.java | 7 +++++++ .../design/mainframe/alphafine/cell/model/MoreModel.java | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/cell/model/AlphaCellModel.java b/designer/src/com/fr/design/mainframe/alphafine/cell/model/AlphaCellModel.java index 1ba4e1a246..ee9a9f55c9 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/cell/model/AlphaCellModel.java +++ b/designer/src/com/fr/design/mainframe/alphafine/cell/model/AlphaCellModel.java @@ -109,4 +109,11 @@ public abstract class AlphaCellModel implements Comparable { } return this.getName().compareTo(cellModel.getName()); } + + /** + * 恢复正常状态 + */ + public void resetState() { + + } } diff --git a/designer/src/com/fr/design/mainframe/alphafine/cell/model/MoreModel.java b/designer/src/com/fr/design/mainframe/alphafine/cell/model/MoreModel.java index 5da7be4869..2b808a0f80 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/cell/model/MoreModel.java +++ b/designer/src/com/fr/design/mainframe/alphafine/cell/model/MoreModel.java @@ -16,11 +16,11 @@ public class MoreModel extends AlphaCellModel { super(name, content, CellType.MORE); this.needMore = needMore; this.contentType = type; + setLoading(true); } public MoreModel(String name) { - super(name, null, CellType.MORE); - this.needMore = false; + this(name, true); } public MoreModel(String name, boolean isLoading) { @@ -51,6 +51,11 @@ public class MoreModel extends AlphaCellModel { } + @Override + public void resetState() { + setLoading(false); + } + public boolean isLoading() { return isLoading; }