use of kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoMethodsDVO in project Gargoyle by callakrsos.
the class DaoWizardViewController method setTbmSysDaoProperty.
/**
* 파라미터로 온 데이터 바인딩
*
* @작성자 : KYJ
* @작성일 : 2015. 11. 2.
* @param dvo
*/
public void setTbmSysDaoProperty(TbmSysDaoDVO tbmSysDaoDVO) {
// tbMethods.getItems().clear();
// this.tbmSysDaoDVOProperty.setValue(tbmSysDaoDVO);
txtPackageName.setText(tbmSysDaoDVO.getPackageName());
txtClassName.setText(tbmSysDaoDVO.getClassName());
txtDaoLocation.setText(ValueUtil.removeBaseDir(tbmSysDaoDVO.getLocation()));
txtAreaDaoDesc.setText(tbmSysDaoDVO.getClassDesc());
txtTableName.setText(tbmSysDaoDVO.getTableName());
TbmSysDaoDVO apply = fxDAOReadFunction.apply(tbmSysDaoDVO);
this.tbmSysDaoDVOProperty.set(apply);
List<TbpSysDaoMethodsDVO> tbpSysDaoMethodsDVOList = apply.getTbpSysDaoMethodsDVOList();
tbMethods.getItems().clear();
tbMethods.getItems().addAll(tbpSysDaoMethodsDVOList);
}
use of kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoMethodsDVO in project Gargoyle by callakrsos.
the class DaoWizardViewController method tbMethodContextMenu.
/**
* 메소드 그리드 메뉴 컨텍스트 추가.
*
* @작성자 : KYJ
* @작성일 : 2015. 10. 22.
*/
private void tbMethodContextMenu() {
/* ContextMenu addMenus = */
CommonsContextMenu.addMenus(tbMethods, Menus.useCudButtons());
tbMethods.addEventHandler(CommonContextMenuEvent.ACTION, event -> {
CommonContextMenuEvent _event = (CommonContextMenuEvent) event;
if (Menus.ADD == _event.getMode()) {
addDefDaoMethod("", true);
} else if (Menus.DELETE == _event.getMode()) {
TbpSysDaoMethodsDVO item = getSelectedMethodItem();
int selectedIndex = getSelectedMethodIndex();
tbmSysDaoDVOProperty.get().getTbpSysDaoMethodsDVOList().remove(item);
txtSql.setContent("");
tbParams.getItems().clear();
tbMethods.getItems().remove(selectedIndex);
}
});
}
Aggregations