Browse Source

加载结束后,结束loading动画

master
XiaXiang 8 years ago
parent
commit
df217f5881
  1. 7
      designer/src/com/fr/design/mainframe/alphafine/cell/model/AlphaCellModel.java
  2. 9
      designer/src/com/fr/design/mainframe/alphafine/cell/model/MoreModel.java

7
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()); return this.getName().compareTo(cellModel.getName());
} }
/**
* 恢复正常状态
*/
public void resetState() {
}
} }

9
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); super(name, content, CellType.MORE);
this.needMore = needMore; this.needMore = needMore;
this.contentType = type; this.contentType = type;
setLoading(true);
} }
public MoreModel(String name) { public MoreModel(String name) {
super(name, null, CellType.MORE); this(name, true);
this.needMore = false;
} }
public MoreModel(String name, boolean isLoading) { public MoreModel(String name, boolean isLoading) {
@ -51,6 +51,11 @@ public class MoreModel extends AlphaCellModel {
} }
@Override
public void resetState() {
setLoading(false);
}
public boolean isLoading() { public boolean isLoading() {
return isLoading; return isLoading;
} }

Loading…
Cancel
Save