Part 3/¶ SAP
[WD4J]wdDoModifyView
CrlAYh
2013. 1. 28. 15:54
public void wdDoModifyView(com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
if(!firstTime)return;
IWDWindowViewElement window = (IWDWindowViewElement)view.getRootElement();
//확인버튼 *****************************************************************************
IWDAction confirmAction = wdThis.wdGetAPI().createAction("confirm", //액션 생성
IPrivateDetailandUpdataCompWinow.WD_EVENTHANDLER_CONFIRM , true);
IWDButton confirmBT = view.createElement(IWDButton.class, "comfim"); //버튼 생성
confirmBT.setOnAction(confirmAction); //액션 연결
confirmBT.setText("확인"); //텍스트 설정
IWDAttributeInfo attributeInfo = wdContext.nodeRivateComp().getNodeInfo().getAttribute(
IRivateCompElement.V__CON_BT
);
confirmBT.bindVisible(attributeInfo);
window.addButton(confirmBT); //윈도우에 추가
//확인버튼 end *************************************************************************
//닫기버튼 *****************************************************************************
IWDAction closeAction = wdThis.wdGetAPI().createAction("close", //액션 생성
IPrivateDetailandUpdataCompWinow.WD_EVENTHANDLER_CLOSE, true);
IWDButton closeBT = view.createElement(IWDButton.class, "Close"); //버튼 생성
closeBT.setOnAction(closeAction); //액션 연결
closeBT.setText("닫기"); //텍스트 설정
window.addButton(closeBT); //윈도우 추가
//닫기버튼 end *************************************************************************
//좌상단 x 버튼
window.setOnClose(closeAction);
window.setResizable(false);
//@@end
}