/** * Get the top level screen. * @return The top level screen. */ public BasePanel getRootScreen() { // The root window is the ChildScreen if (m_screenParent != null) return m_screenParent.getRootScreen(); else return null; // No parent } /**
/** * Get the top level screen. * @return The top level screen. */ public BasePanel getRootScreen() { // The root window is the ChildScreen if (m_screenParent != null) return m_screenParent.getRootScreen(); else return null; // No parent } /**
screen = screen.getRootScreen(); screen.free();
screen = screen.getRootScreen(); screen.free();
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; } /**