import jp.sfjp.jindolf.data.Anchor;
import jp.sfjp.jindolf.data.DialogPref;
import jp.sfjp.jindolf.data.Land;
-import jp.sfjp.jindolf.data.LandsModel;
+import jp.sfjp.jindolf.data.LandsTreeModel;
import jp.sfjp.jindolf.data.Period;
import jp.sfjp.jindolf.data.RegexPattern;
import jp.sfjp.jindolf.data.Talk;
"このLook&Feel[{0}]を生成する事ができません。";
- private final LandsModel model;
+ private final LandsTreeModel model;
private final WindowManager windowManager;
private final ActionManager actionManager;
private final AppSetting appSetting;
* @param setting アプリ設定
*/
@SuppressWarnings("LeakingThisInConstructor")
- public Controller(LandsModel model,
+ public Controller(LandsTreeModel model,
WindowManager windowManager,
ActionManager actionManager,
AppSetting setting){
import jp.sfjp.jindolf.config.ConfigStore;
import jp.sfjp.jindolf.config.EnvInfo;
import jp.sfjp.jindolf.config.OptionInfo;
-import jp.sfjp.jindolf.data.LandsModel;
+import jp.sfjp.jindolf.data.LandsTreeModel;
import jp.sfjp.jindolf.log.LogUtils;
import jp.sfjp.jindolf.log.LoggingDispatcher;
import jp.sfjp.jindolf.util.GUIUtils;
* @return アプリケーションのトップフレーム
*/
private static JFrame buildMVC(AppSetting appSetting){
- LandsModel model = new LandsModel();
+ LandsTreeModel model = new LandsTreeModel();
WindowManager windowManager = new WindowManager();
ActionManager actionManager = new ActionManager();
* 国一覧と村一覧を管理。
* JTreeのモデルも兼用。
*/
-public class LandsModel implements TreeModel{ // ComboBoxModelも付けるか?
+public class LandsTreeModel implements TreeModel{ // ComboBoxModelも付けるか?
private static final String ROOT = "ROOT";
private static final int SECTION_INTERVAL = 100;
* コンストラクタ。
* この時点ではまだ国一覧が読み込まれない。
*/
- public LandsModel(){
+ public LandsTreeModel(){
super();
return;
}
import javax.swing.border.Border;
import jp.sfjp.jindolf.VerInfo;
import jp.sfjp.jindolf.data.Land;
-import jp.sfjp.jindolf.data.LandsModel;
+import jp.sfjp.jindolf.data.LandsTreeModel;
import jp.sfjp.jindolf.dxchg.TextPopup;
import jp.sfjp.jindolf.net.ServerAccess;
import jp.sfjp.jindolf.util.GUIUtils;
* @param model 国情報
* @throws NullPointerException 引数がnull
*/
- public void setModel(LandsModel model) throws NullPointerException{
+ public void setModel(LandsTreeModel model) throws NullPointerException{
if(model == null) throw new NullPointerException();
this.landUserIDMap.clear();
import javax.swing.tree.TreeSelectionModel;
import jp.sfjp.jindolf.ResourceManager;
import jp.sfjp.jindolf.data.Land;
-import jp.sfjp.jindolf.data.LandsModel;
+import jp.sfjp.jindolf.data.LandsTreeModel;
/**
* 国一覧Tree周辺コンポーネント群。
}
/**
- * 管理下のLandsModelを返す。
- * @return LandsModel
+ * 管理下のLandsTreeModelを返す。
+ * @return LandsTreeModel
*/
- private LandsModel getLandsModel(){
+ private LandsTreeModel getLandsModel(){
TreeModel model = this.treeView.getModel();
- if(model instanceof LandsModel){
- return (LandsModel) model;
+ if(model instanceof LandsTreeModel){
+ return (LandsTreeModel) model;
}
return null;
}
final TreePath lastPath = this.treeView.getSelectionPath();
- LandsModel model = getLandsModel();
+ LandsTreeModel model = getLandsModel();
if(model != null){
model.setAscending(this.ascending);
}