use of com.kyj.fx.voeditor.visual.events.CommonContextMenuEvent 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