/** * Resurvey the child control(s) and resize frame. * @param strTitle The title of the new screen. */ public void resizeToContent(String strTitle) { this.getScreenFieldView().resizeToContent(strTitle); } /**
/** * Resurvey the child control(s) and resize frame. * @param strTitle The title of the new screen. */ public void resizeToContent(String strTitle) { this.getScreenFieldView().resizeToContent(strTitle); } /**
/** * Set the default button for this basepanel. * @param The button to default to on return. */ public void setDefaultButton(SBaseButton button) { this.getScreenFieldView().setDefaultButton(button.getScreenFieldView()); } /**
/** * Set the default button for this basepanel. * @param The button to default to on return. */ public void setDefaultButton(SBaseButton button) { this.getScreenFieldView().setDefaultButton(button == null ? null : button.getScreenFieldView()); } /**
/** * Get the Forms param to be passed on submit. * @return The hidden "forms" param to be passed on submit (input/diplay/both/bothifdata). */ public String getDefaultFormsParam() { if (this.getScreenField().getParentScreen() != null) return ((ZScreenField)this.getScreenField().getParentScreen().getScreenFieldView()).getDefaultFormsParam(); else return null; } /**
/** * Get the Forms param to be passed on submit. * @return The hidden "forms" param to be passed on submit (input/diplay/both/bothifdata). */ public String getDefaultFormsParam() { if (this.getScreenField().getParentScreen() != null) return ((ZScreenField)this.getScreenField().getParentScreen().getScreenFieldView()).getDefaultFormsParam(); else return null; } /**
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; } /**
this.getScreenFieldView().addScreenLayout(); // Set up the screen layout this.setupSFields(); // Add the sub-views (usually overidden by the screen in use) this.addToolbars();
this.getScreenFieldView().addScreenLayout(); // Set up the screen layout this.setupSFields(); // Add the sub-views (usually overidden by the screen in use) this.addToolbars();
/** * Process the "Help" toolbar command. * @param bUseSameWindow Use the same window? * @retrun true if successful. */ public boolean onHelp(int iOptions) { String strPrevAction = this.getScreenURL(); if ((strPrevAction == null) || (strPrevAction.length() == 0)) return false; // Can't handle help if I'm not the target screen. // Note: The following is a hack to make the demo screen stop displaying after the first help is pressed if (this.getProperty("displayInitialHelp") != null) if ((this.getProperty("helplanguage") != null) && (this.getProperty("helplanguage").length() > 0)) if (this.getTask() != null) if (this.getTask().getApplication() != null) this.getTask().getApplication().setProperty("helplanguage", this.getTask().getApplication().getLanguage(true)); strPrevAction = Utility.fixDisplayURL(strPrevAction, true, true, true, this); BaseAppletReference applet = null; if (this.getAppletScreen() != null) if (this.getAppletScreen().getScreenFieldView() != null) applet = (BaseAppletReference)this.getAppletScreen().getScreenFieldView().getControl(); if (applet != null) iOptions = applet.getHelpPageOptions(iOptions); if ((MenuConstants.HELP_WEB_OPTION & iOptions) == MenuConstants.HELP_WEB_OPTION) return this.getScreenFieldView().showDocument(strPrevAction, iOptions & 1); // Not standalone else return this.getAppletScreen().showHelpScreen(strPrevAction, iOptions); } /**
/** * Process the "Help" toolbar command. * @param bUseSameWindow Use the same window? * @retrun true if successful. */ public boolean onHelp(int iOptions) { String strPrevAction = this.getScreenURL(); if ((strPrevAction == null) || (strPrevAction.length() == 0)) return false; // Can't handle help if I'm not the target screen. // Note: The following is a hack to make the demo screen stop displaying after the first help is pressed if (this.getProperty("displayInitialHelp") != null) if ((this.getProperty("helplanguage") != null) && (this.getProperty("helplanguage").length() > 0)) if (this.getTask() != null) if (this.getTask().getApplication() != null) this.getTask().getApplication().setProperty("helplanguage", this.getTask().getApplication().getLanguage(true)); strPrevAction = Utility.fixDisplayURL(strPrevAction, true, true, true, this); BaseApplet applet = null; if (this.getAppletScreen() != null) if (this.getAppletScreen().getScreenFieldView() != null) applet = (BaseApplet)this.getAppletScreen().getScreenFieldView().getControl(); if (applet != null) iOptions = applet.getHelpPageOptions(iOptions); if ((MenuConstants.HELP_WEB_OPTION & iOptions) == MenuConstants.HELP_WEB_OPTION) return this.getScreenFieldView().showDocument(strPrevAction, iOptions & 1); // Not standalone else return this.getAppletScreen().showHelpScreen(strPrevAction, iOptions); } /**
this.getScreenFieldView().addScreenLayout(); // Set up the screen layout this.getScreenFieldView().addScreenLayout(); // Set up the screen layout
this.getScreenFieldView().addScreenLayout(); // Set up the screen layout this.getScreenFieldView().addScreenLayout(); // Set up the screen layout