use of com.kyj.fx.voeditor.visual.momory.ResourceLoader in project Gargoyle by callakrsos.
the class DatabaseConfigView method btnSaveOnMouseClick.
@FXML
public void btnSaveOnMouseClick(MouseEvent event) {
try {
ResourceLoader instance = ResourceLoader.getInstance();
Map<String, Object> bufMap = new HashMap<>();
tbDatabase.getItems().forEach(item -> {
Object key = item.get("key");
Object value = item.get("value");
if (key == null)
return;
bufMap.put(key.toString(), value.toString());
});
instance.putAll(bufMap);
initDatabaseConfig();
DialogUtil.showMessageDialog("Save Complete...");
} catch (Exception e) {
DialogUtil.showExceptionDailog(e);
}
}
use of com.kyj.fx.voeditor.visual.momory.ResourceLoader in project Gargoyle by callakrsos.
the class DatabaseConfigView method loadResource.
/**
* 화면에 리소스를 읽어들인다.
*
* @return
*
* @작성자 : KYJ
* @작성일 : 2015. 11. 4.
*/
public ObservableList<Map<String, Object>> loadResource() {
ResourceLoader instance = ResourceLoader.getInstance();
Set<Entry<Object, Object>> entry = instance.getEntry();
return load(entry);
}
Aggregations