/** * Constructor. * @param bSetTitleToThisString If true, set the title to the value of this listener's field. */ public ChangeTitleOnChangeHandler(boolean bSetTitleToThisString) { this(); this.init(null, bSetTitleToThisString); } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { Record recDefault = this.getOwner().getRecord(); BasePanel screen = recDefault.getScreen(); screen = screen.getRootScreen(); String strScreenTitle = Constants.BLANK; if (m_bSetTitleToThisString) strScreenTitle = this.getOwner().getString(); if (strScreenTitle.length() == 0) strScreenTitle = this.getTitle(screen); if (strScreenTitle.length() > 0) { Component pWnd = screen.getScreenFieldView().getControl(); JFrame pWndFrame = null; if (pWndFrame == null) pWndFrame = (JFrame)pWnd; if (pWndFrame != null) pWndFrame.setTitle(strScreenTitle); } return DBConstants.NORMAL_RETURN; } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { Record recDefault = this.getOwner().getRecord(); BasePanel screen = recDefault.getScreen(); screen = screen.getRootScreen(); String strScreenTitle = Constants.BLANK; if (m_bSetTitleToThisString) strScreenTitle = this.getOwner().getString(); if (strScreenTitle.length() == 0) strScreenTitle = this.getTitle(screen); if (strScreenTitle.length() > 0) { Component pWnd = screen.getScreenFieldView().getControl(); JFrame pWndFrame = null; if (pWndFrame == null) pWndFrame = (JFrame)pWnd; if (pWndFrame != null) pWndFrame.setTitle(strScreenTitle); } return DBConstants.NORMAL_RETURN; } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { Record recDefault = this.getOwner().getRecord(); ComponentParent screen = null; if (recDefault.getRecordOwner()instanceof ScreenParent) screen = (ComponentParent)recDefault.getRecordOwner(); screen = screen.getRootScreen(); String strScreenTitle = Constants.BLANK; if (m_bSetTitleToThisString) strScreenTitle = this.getOwner().getString(); if (strScreenTitle.length() == 0) strScreenTitle = this.getTitle(screen); if (strScreenTitle.length() > 0) { Object pWnd = screen.getControl(); JFrame pWndFrame = null; if (pWndFrame == null) pWndFrame = (JFrame)pWnd; if (pWndFrame != null) pWndFrame.setTitle(strScreenTitle); } return DBConstants.NORMAL_RETURN; } /**
/** * Constructor. * @param bSetTitleToThisString If true, set the title to the value of this listener's field. */ public ChangeTitleOnChangeHandler(boolean bSetTitleToThisString) { this(); this.init(null, bSetTitleToThisString); } /**
/** * Constructor. * @param bSetTitleToThisString If true, set the title to the value of this listener's field. */ public ChangeTitleOnChangeHandler(boolean bSetTitleToThisString) { this(); this.init(null, bSetTitleToThisString); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((ChangeTitleOnChangeHandler)listener).init(null, m_bSetTitleToThisString); return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((ChangeTitleOnChangeHandler)listener).init(null, m_bSetTitleToThisString); return super.syncClonedListener(field, listener, true); } /**
/** * Set this cloned listener to the same state at this listener. * @param field The field this new listener will be added to. * @param The new listener to sync to this. * @param Has the init method been called? * @return True if I called init. */ public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((ChangeTitleOnChangeHandler)listener).init(null, m_bSetTitleToThisString); return super.syncClonedListener(field, listener, true); } /**