private final ChangeListener filterWatcher =
new FilterWatcher();
- private boolean isLocalXml = false;
-
private final Executor executor = Executors.newCachedThreadPool();
private volatile boolean isBusyNow;
return;
}
EventQueue.invokeLater(() -> {
- this.isLocalXml = true;
+ village.setLocalArchive(true);
selectedVillage(village);
});
}, "XML読み込み中", "XML読み込み完了");
*/
private void selectedVillage(Village village){
setFrameTitle(village.getVillageFullName());
- if(this.isLocalXml){
+ if(village.isLocalArchive()){
this.actionManager.exposeVillageLocal(true);
}else{
this.actionManager.exposeVillage(true);
else hasCurrentPeriod = true;
Controller.this.actionManager.exposePeriod(hasCurrentPeriod);
if(hasCurrentPeriod){
- if(Controller.this.isLocalXml){
+ Village village = getVillage();
+ if(village.isLocalArchive()){
Controller.this.actionManager.exposeVillageLocal(hasCurrentPeriod);
}else{
Controller.this.actionManager.exposeVillage(hasCurrentPeriod);
selectedLand(land);
}else if(selObj instanceof Village){
Village village = (Village) selObj;
- Controller.this.isLocalXml = false;
+ village.setLocalArchive(false);
selectedVillage(village);
}
private final Map<Avatar, BufferedImage> bodyMonoImageMap =
new HashMap<>();
+ private boolean isLocalArchive = false;
+
/**
* Villageを生成する。
}
/**
+ * この村がローカルなアーカイブに由来するものであるか判定する。
+ *
+ * @return ローカルなアーカイブによる村であればtrue
+ */
+ public boolean isLocalArchive(){
+ return this.isLocalArchive;
+ }
+
+ /**
+ * この村がローカルなアーカイブに由来するものであるか設定する。
+ *
+ * @param flag ローカルなアーカイブによる村であればtrue
+ */
+ public void setLocalArchive(boolean flag){
+ this.isLocalArchive = flag;
+ return;
+ }
+
+ /**
* {@inheritDoc}
*
* <p>村の文字列表現を返す。