Search in sources :

Example 11 with TbpSysDaoMethodsDVO

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);
}
Also used : TbpSysDaoMethodsDVO(kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoMethodsDVO) TbmSysDaoDVO(kyj.Fx.dao.wizard.core.model.vo.TbmSysDaoDVO)

Example 12 with TbpSysDaoMethodsDVO

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);
        }
    });
}
Also used : TbpSysDaoMethodsDVO(kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoMethodsDVO) CommonContextMenuEvent(com.kyj.fx.voeditor.visual.events.CommonContextMenuEvent)

Aggregations

TbpSysDaoMethodsDVO (kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoMethodsDVO)12 TbmSysDaoDVO (kyj.Fx.dao.wizard.core.model.vo.TbmSysDaoDVO)4 TbpSysDaoFieldsDVO (kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoFieldsDVO)4 SQLException (java.sql.SQLException)3 FXML (javafx.fxml.FXML)3 TbpSysDaoColumnsDVO (kyj.Fx.dao.wizard.core.model.vo.TbpSysDaoColumnsDVO)3 ClassMeta (com.kyj.fx.voeditor.core.model.meta.ClassMeta)2 FieldMeta (com.kyj.fx.voeditor.core.model.meta.FieldMeta)2 IOException (java.io.IOException)2 BaseOpenClassResourceView (com.kyj.fx.voeditor.visual.component.popup.BaseOpenClassResourceView)1 JavaTextView (com.kyj.fx.voeditor.visual.component.popup.JavaTextView)1 MeerketAbstractVoOpenClassResourceView (com.kyj.fx.voeditor.visual.component.popup.MeerketAbstractVoOpenClassResourceView)1 CommonContextMenuEvent (com.kyj.fx.voeditor.visual.events.CommonContextMenuEvent)1 DaoWizardConverter (com.kyj.fx.voeditor.visual.util.DaoWizardConverter)1 ResultSet (java.sql.ResultSet)1 ArrayList (java.util.ArrayList)1 LinkedHashMap (java.util.LinkedHashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 Map (java.util.Map)1 ReadOnlyObjectWrapper (javafx.beans.property.ReadOnlyObjectWrapper)1