IDEMPIERE-369 Master Detail layout improvements. Fixed bug in previous revision.
This commit is contained in:
parent
679b9ca1f9
commit
a1600043a9
|
@ -223,18 +223,6 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
}
|
||||
}
|
||||
|
||||
public Component removeDetails() {
|
||||
Component details = null;
|
||||
if (detailPane != null) {
|
||||
if (detailPane.getParent() != null) {
|
||||
details = detailPane;
|
||||
detailPane.detach();
|
||||
}
|
||||
detailPane = null;
|
||||
}
|
||||
return details;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param winPanel
|
||||
|
@ -1218,7 +1206,13 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
public void setDetailPaneMode(boolean detailPaneMode) {
|
||||
this.detailPaneMode = detailPaneMode;
|
||||
if (detailPaneMode) {
|
||||
detailPane = null;
|
||||
detailPane = null;
|
||||
if (formContainer instanceof Borderlayout) {
|
||||
Borderlayout borderLayout = (Borderlayout) formContainer;
|
||||
if (borderLayout.getSouth() != null) {
|
||||
borderLayout.getSouth().detach();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.setVflex("true");
|
||||
listPanel.setDetailPaneMode(detailPaneMode);
|
||||
|
|
|
@ -209,7 +209,6 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (linkPopup != null ) {
|
||||
System.out.println(linkPopup.getPage());
|
||||
if (linkPopup.getPage() != null && linkPopup.isVisible()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -155,7 +155,6 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace
|
|||
|
||||
setStyle(HEADER_GRID_STYLE);
|
||||
gridFooter.setStyle(HEADER_GRID_STYLE);
|
||||
setSpacing("2px");
|
||||
}
|
||||
|
||||
protected void createListbox() {
|
||||
|
@ -171,13 +170,6 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace
|
|||
this.detailPaneMode = detailPaneMode;
|
||||
pageSize = detailPaneMode ? DEFAULT_DETAIL_PAGE_SIZE : MSysConfig.getIntValue(MSysConfig.ZK_PAGING_SIZE, 20);
|
||||
updatePaging();
|
||||
if (detailPaneMode) {
|
||||
setStyle("");
|
||||
gridFooter.setStyle("");
|
||||
} else {
|
||||
setStyle(HEADER_GRID_STYLE);
|
||||
gridFooter.setStyle(HEADER_GRID_STYLE);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isDetailPaneMode() {
|
||||
|
@ -373,18 +365,6 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace
|
|||
this.getChildren().clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* toggle visibility
|
||||
* @param bool
|
||||
*/
|
||||
public void showGrid(boolean bool)
|
||||
{
|
||||
if (bool)
|
||||
this.setVisible(true);
|
||||
else
|
||||
this.setVisible(false);
|
||||
}
|
||||
|
||||
private void setupColumns()
|
||||
{
|
||||
if (init) return;
|
||||
|
|
Loading…
Reference in New Issue