* minor - copyright header
This commit is contained in:
parent
6f93dcb593
commit
719bfab49c
|
@ -1,3 +1,16 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 2007 Adempiere, Inc. 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 *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import java.beans.PropertyChangeEvent;
|
||||
|
@ -18,6 +31,11 @@ public class GridSynchronizer implements PropertyChangeListener, StateChangeList
|
|||
private GridController parent;
|
||||
private GridController child;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param parent
|
||||
* @param child
|
||||
*/
|
||||
public GridSynchronizer(GridController parent, GridController child) {
|
||||
this.parent = parent;
|
||||
this.child = child;
|
||||
|
@ -26,6 +44,9 @@ public class GridSynchronizer implements PropertyChangeListener, StateChangeList
|
|||
parent.getMTab().addStateChangeListener(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param evt
|
||||
*/
|
||||
public void propertyChange(PropertyChangeEvent evt) {
|
||||
if (evt.getPropertyName().equals(GridTab.PROPERTY)) {
|
||||
if (child.isCurrent()) {
|
||||
|
@ -37,6 +58,9 @@ public class GridSynchronizer implements PropertyChangeListener, StateChangeList
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param event
|
||||
*/
|
||||
public void stateChange(StateChangeEvent event) {
|
||||
if (child.isCurrent()) {
|
||||
child.getMTab().dataRefresh();
|
||||
|
|
Loading…
Reference in New Issue