/** * User pressed a header button; change the key value to match (and reorder). */ public void clickColumn(int iIndex) { this.getOwner().setValue(iIndex - m_gridScreen.getNavCount()); // Set the grid value (will call this listener if change) } /**
/** * User pressed a header button; change the key value to match (and reorder). */ public void clickColumn(int iIndex) { this.getOwner().setValue(iIndex - m_gridScreen.getNavCount()); // Set the grid value (will call this listener if change) } /**
/** * User pressed a header button; change the key value to match (and reorder). */ public void clickColumn(int iIndex) { this.getOwner().setValue(iIndex - m_gridScreen.getNavCount()); // Set the grid value (will call this listener if change) } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { this.setupGridOrder(); // Set the initial grid order if (m_gridScreen != null) { m_gridScreen.setConverter(this.getOwner()); // The grid screen will automatically change this field to match the key order. this.getOwner().addComponent(m_gridScreen); } } } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { this.setupGridOrder(); // Set the initial grid order if (m_gridScreen != null) { m_gridScreen.setConverter(this.getOwner()); // The grid screen will automatically change this field to match the key order. this.getOwner().addComponent(m_gridScreen); } } } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) { this.setupGridOrder(); // Set the initial grid order if (m_gridScreen != null) { m_gridScreen.setConverter(this.getOwner()); // The grid screen will automatically change this field to match the key order. this.getOwner().addComponent(m_gridScreen); } } } /**
/** * Default call; gridTable=mainRecord, index=next. * @param iKeyArea The key area to set to the next key. */ public void setGridTable(int iKeyArea) { String keyAreaName = null; if (iKeyArea != -1) keyAreaName = this.getOwner().getRecord().getKeyArea(iKeyArea).getKeyName(); this.setGridTable(keyAreaName, null, -1); } /**
int iKeyOrder = (int)((NumberField)this.getOwner()).getValue(); if (iKeyOrder == 0) return DBConstants.KEY_NOT_FOUND;
int iKeyOrder = (int)((NumberField)this.getOwner()).getValue(); if (iKeyOrder == 0) return DBConstants.KEY_NOT_FOUND;
int iKeyOrder = (int)((NumberField)this.getOwner()).getValue(); if (iKeyOrder == 0) return DBConstants.KEY_NOT_FOUND;