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
}
'Part 3 > ¶ SAP' 카테고리의 다른 글
[WD4J]execute (0) | 2013.01.28 |
---|---|
[WD4J]ConfirmationWindow (0) | 2013.01.28 |
[ABAP]MODIFY (0) | 2013.01.16 |
[ABAP]Screen Refresh (0) | 2013.01.16 |
[ABAP]INTO CORRESPONDING FIELDS OF TABLE (0) | 2012.11.28 |