IDEMPIERE-369 Master Detail layout improvements. Refactoring and fixed saving of detail and header together.
This commit is contained in:
parent
d21fc00b60
commit
89b02ce27d
|
@ -1,5 +1,5 @@
|
|||
/******************************************************************************
|
||||
* Product: Posterita Ajax UI *
|
||||
f * Product: Posterita Ajax UI *
|
||||
* Copyright (C) 2007 Posterita Ltd. All Rights Reserved. *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
|
@ -169,7 +169,6 @@ DataStatusListener, IADTabpanel
|
|||
form.setHeight(null);
|
||||
form.setVflex(false);
|
||||
form.setSclass("grid-layout");
|
||||
form.addEventListener(Events.ON_FOCUS, this);
|
||||
|
||||
listPanel = new GridView();
|
||||
listPanel.getListbox().addEventListener(Events.ON_DOUBLE_CLICK, this);
|
||||
|
@ -788,8 +787,6 @@ DataStatusListener, IADTabpanel
|
|||
if (gridTab.getRecord_ID() > 0 && gridTab.isTreeTab() && treePanel != null) {
|
||||
setSelectedNode(gridTab.getRecord_ID());
|
||||
}
|
||||
} else {
|
||||
System.out.println(event.getName() + " " + event.getTarget());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ public class ADWindowContent extends AbstractADWindowContent
|
|||
contentArea = new Center();
|
||||
contentArea.setParent(layout);
|
||||
contentArea.setAutoscroll(true);
|
||||
adTab.createPart(contentArea);
|
||||
adTabbox.createPart(contentArea);
|
||||
|
||||
if (parent instanceof Tabpanel) {
|
||||
TabOnCloseHanlder handler = new TabOnCloseHanlder();
|
||||
|
@ -172,7 +172,7 @@ public class ADWindowContent extends AbstractADWindowContent
|
|||
@Override
|
||||
public boolean initPanel(int adWindowId, MQuery query) {
|
||||
boolean retValue = super.initPanel(adWindowId, query);
|
||||
if (adTab.getTabCount() == 1) {
|
||||
if (adTabbox.getTabCount() == 1) {
|
||||
if (west != null)
|
||||
west.setVisible(false);
|
||||
else if (east != null)
|
||||
|
@ -191,7 +191,7 @@ public class ADWindowContent extends AbstractADWindowContent
|
|||
KeyEvent keyEvent = (KeyEvent) event;
|
||||
//enter == 13
|
||||
if (keyEvent.getKeyCode() == 13 && this.getComponent().getParent().isVisible()) {
|
||||
IADTabpanel panel = adTab.getSelectedTabpanel();
|
||||
IADTabpanel panel = adTabbox.getSelectedTabpanel();
|
||||
if (panel != null) {
|
||||
if (panel.onEnterKey()) {
|
||||
keyEvent.stopPropagation();
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -40,7 +40,6 @@ import org.compiere.model.GridTab;
|
|||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.NamePair;
|
||||
import org.zkoss.xml.XMLs;
|
||||
import org.zkoss.zk.au.out.AuFocus;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.HtmlBasedComponent;
|
||||
|
|
Loading…
Reference in New Issue