IDEMPIERE-3525 InfoWindow : Allow to show or hide the sub panel (detail) from code
This commit is contained in:
parent
331f1a78c6
commit
bc57cebf5e
|
@ -110,7 +110,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1672005382454423850L;
|
||||
private static final long serialVersionUID = 5041961608373943362L;
|
||||
|
||||
protected Grid parameterGrid;
|
||||
private Borderlayout layout;
|
||||
|
@ -2179,4 +2179,19 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
|||
|
||||
}
|
||||
|
||||
/** Allow to show or hide the sub panel (detail) programmatically */
|
||||
protected void setSouthVisible(boolean visible) {
|
||||
Component comp = layout.getCenter();
|
||||
for (Component c : comp.getChildren()) {
|
||||
if (c instanceof Borderlayout) {
|
||||
for (Component c1 : c.getChildren()) {
|
||||
if (c1 instanceof South) {
|
||||
c1.setVisible(visible);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue