2013年

8月

24日

【iDempiere/ZK Lab】Web-UIのツールバーの作成処理フロー

WEb-UIのツールバー
WEb-UIのツールバー

【ADWT】ADWindowToolbar

◆ADWindowToolbar (I/F)EventListener > FToolbar > ToolBar > XulElement > HtmlBasedComponent > AbstractComponent (I/F) Component, ComponentCtrl > Object

10:public ADWindowToolbar(int windowNo) ※コンストラクタ

↓10-10:setWindowNo(windowNo)

↓10-20:init() → 20

↑※呼び出し元に戻る

20:private void init()

↓20-10:LayoutUtils.addSclass("adwindow-toolbar", this);

↓20-20:btnIgnore = createButton("Ignore", "Ignore", "Ignore");

↓20-21:btnIgnore.setTooltiptext(btnIgnore.getTooltiptext()+ " Alt+Z");

↓20-22:btnHelp = createButton("Help", "Help","Help");

↓20-23:btnHelp.setTooltiptext(btnHelp.getTooltiptext()+ " Alt+H");

↓20-24:btnNew = createButton("New", "New", "New");

↓20-25:btnNew.setTooltiptext(btnNew.getTooltiptext()+ " Alt+N");

↓20-26:btnCopy = createButton("Copy", "Copy", "Copy");

↓20-27:btnCopy.setTooltiptext(btnCopy.getTooltiptext()+ " Alt+C");

↓20-28:btnDelete = createButton("Delete", "Delete", "Delete");

↓20-29:btnDelete.setTooltiptext(btnDelete.getTooltiptext()+ " Alt+D");

↓20-30:btnDeleteSelection = createButton("DeleteSelection", "DeleteSelection", "DeleteSelection");

↓20-31:btnSave = createButton("Save", "Save", "Save");

↓20-32:btnSave.setTooltiptext(btnSave.getTooltiptext()+ " Alt+S");

↓20-33:btnSaveAndCreate = createButton("SaveCreate", "SaveCreate", "SaveCreate");

↓20-34:btnSaveAndCreate.setTooltiptext(btnSaveAndCreate.getTooltiptext()+ " Alt+A");

↓20-35:btnRefresh = createButton("Refresh", "Refresh", "Refresh");

↓20-36:btnRefresh.setTooltiptext(btnRefresh.getTooltiptext()+ " Alt+E");

↓20-37:btnFind = createButton("Find", "Find", "Find");

↓20-38:btnFind.setTooltiptext(btnFind.getTooltiptext()+ " Alt+F");

↓20-39:btnAttachment = createButton("Attachment", "Attachment", "Attachment");

↓20-40:btnChat = createButton("Chat", "Chat", "Chat");

↓20-41:btnGridToggle = createButton("Toggle", "Multi", "Multi");

↓20-42:btnGridToggle.setTooltiptext(btnGridToggle.getTooltiptext()+ " Alt+T");

↓20-43:btnParentRecord = createButton("ParentRecord", "Parent", "Parent");

↓20-44:btnParentRecord.setTooltiptext(btnParentRecord.getTooltiptext()+ " Alt+Up");

↓20-45:btnDetailRecord = createButton("DetailRecord", "Detail", "Detail");

↓20-46:btnDetailRecord.setTooltiptext(btnDetailRecord.getTooltiptext()+ " Alt+Down");

↓20-47:btnReport = createButton("Report", "Report", "Report");

↓20-48:btnReport.setTooltiptext(btnReport.getTooltiptext()+ " Alt+R");

↓20-49:btnArchive = createButton("Archive", "Archive", "Archive");

↓20-50:btnPrint = createButton("Print", "Print", "Print");

↓20-51:btnPrint.setTooltiptext(btnPrint.getTooltiptext()+ " Alt+P");

↓20-52:btnLock = createButton("Lock", "Lock", "Lock"); // Elaine 2008/12/04

↓20-53:btnLock.setVisible(isPersonalLock);

↓20-54:btnZoomAcross = createButton("ZoomAcross", "ZoomAcross", "ZoomAcross");

↓20-55:btnActiveWorkflows = createButton("ActiveWorkflows", "WorkFlow", "WorkFlow");

↓20-56:btnRequests = createButton("Requests", "Request", "Request");

↓20-57:btnProductInfo = createButton("ProductInfo", "Product", "InfoProduct");

↓20-58:btnProductInfo.setVisible(isAllowProductInfo);

↓20-60:btnCustomize= createButton("Customize", "Customize", "Customize");

↓20-61:btnCustomize.setDisabled(false);

↓20-70:btnProcess= createButton("Process", "Process", "Process");

↓20-71:btnProcess.setTooltiptext(btnProcess.getTooltiptext()+ " Alt+O");

↓20-72:btnProcess.setDisabled(false);

↓20-80:btnHelp.setDisabled(false);

↓20-81:btnGridToggle.setDisabled(false);

↓20-82:btnZoomAcross.setDisabled(false);

↓20-90:btnActiveWorkflows.setDisabled(false); // Elaine 2008/07/17

↓20-91:btnRequests.setDisabled(false); // Elaine 2008/07/22

↓20-92:btnProductInfo.setDisabled(!isAllowProductInfo); // Elaine 2008/07/22

↓20-93:btnArchive.setDisabled(false); // Elaine 2008/07/28

↓20-94:btnLock.setDisabled(!isPersonalLock); // Elaine 2008/12/04

↓20-100:if (MRole.getDefault().isCanExport())

{

btnExport = createButton("Export", "Export", "Export");

}

↓20-110:btnFileImport = createButton("FileImport", "FileImport", "FileImport");

↓20-111:configureKeyMap();

↓20-112:setWidth("100%");

↑10-20に戻る