DisableOnFieldHandler listener = (DisableOnFieldHandler)field.getListener(DisableOnFieldHandler.class.getName()); if (listener != null) listener.fieldChanged(DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // I can do this because I know that this listener will not modify anything.
DisableOnFieldHandler listener = (DisableOnFieldHandler)field.getListener(DisableOnFieldHandler.class.getName()); if (listener != null) listener.fieldChanged(DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // I can do this because I know that this listener will not modify anything.
DisableOnFieldHandler listener = (DisableOnFieldHandler)field.getListener(DisableOnFieldHandler.class.getName()); if (listener != null) listener.fieldChanged(DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // I can do this because I know that this listener will not modify anything.
/** * 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) if (m_fldToDisable != null) if (this.getOwner().getRecord() != m_fldToDisable.getRecord()) m_fldToDisable.addListener(new FieldRemoveBOnCloseHandler(this)); // Make sure you remove this listener if m_fldToDisable is gone. if (owner != null) if (m_fldToDisable == null) m_fldToDisable = this.getOwner(); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); if (owner == null) m_fldToDisable.setEnabled(true); // Remove the behavior = reenable the field } /**
/** * 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) if (m_fldToDisable != null) if (this.getOwner().getRecord() != m_fldToDisable.getRecord()) m_fldToDisable.addListener(new FieldRemoveBOnCloseHandler(this)); // Make sure you remove this listener if m_fldToDisable is gone. if (owner != null) if (m_fldToDisable == null) m_fldToDisable = this.getOwner(); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); if (owner == null) m_fldToDisable.setEnabled(true); // Remove the behavior = reenable the field } /**
/** * 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) if (m_fldToDisable != null) if (this.getOwner().getRecord() != m_fldToDisable.getRecord()) m_fldToDisable.addListener(new FieldRemoveBOnCloseHandler(this)); // Make sure you remove this listener if m_fldToDisable is gone. if (owner != null) if (m_fldToDisable == null) m_fldToDisable = this.getOwner(); if (owner != null) this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE); if (owner == null) m_fldToDisable.setEnabled(true); // Remove the behavior = reenable the field } /**
return super.fieldChanged(bDisplayOption, iMoveMode);
return super.fieldChanged(bDisplayOption, iMoveMode);