/** * Enable/Disable the associated control(s). * @param state If false, disable all this field's screen fields. */ public void setEnabled(boolean bEnable) { if (m_vScreenField != null) { for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;) { ((ScreenField)e.nextElement()).setEnabled(bEnable); } } } /**
/** * Enable/Disable the associated control(s). * @param state If false, disable all this field's screen fields. */ public void setEnabled(boolean bEnable) { if (m_vScreenField != null) { for (Enumeration<Object> e = m_vScreenField.elements() ; e.hasMoreElements() ;) { ((ScreenField)e.nextElement()).setEnabled(bEnable); } } } /**
/** * Enable or disable all fields. * @param bEditing If true, enable this field. */ public void setEnabled(boolean bEditing) { super.setEnabled(bEditing); for (int iFieldSeq = 0; iFieldSeq < this.getSFieldCount(); iFieldSeq++) { ScreenField sField = this.getSField(iFieldSeq); if (!(sField instanceof ToolScreen)) sField.setEnabled(bEditing); } } /**
/** * Enable or disable all fields. * @param bEditing If true, enable this field. */ public void setEnabled(boolean bEditing) { super.setEnabled(bEditing); for (int iFieldSeq = 0; iFieldSeq < this.getSFieldCount(); iFieldSeq++) { ScreenField sField = this.getSField(iFieldSeq); if (!(sField instanceof ToolScreen)) sField.setEnabled(bEditing); } } /**
/** * ProcessServletCommand Method. */ public boolean processServletCommand() throws DBException { boolean bDefaultParamsFound = super.processServletCommand(); String strError = this.getTask().getStatusText(DBConstants.INFORMATION); if (bDefaultParamsFound) if ((strError == null) || (strError.length() == 0)) { String strStatus = HtmlConstants.SERVLET_LINK + "?menu="; strStatus = "<a href=" + strStatus + ">Click here to return to the main menu</a>."; this.getTask().setStatusText(strStatus, DBConstants.INFORMATION); this.getScreenField().setEnabled(false); // Display screen! } return bDefaultParamsFound; } /**
/** * Enable or disable all fields. * @param bEditing True to enable all the fields (for input). */ public void setEnabled(boolean bEditing) { super.setEnabled(bEditing); if (!bEditing) { // Turn the nav buttons back on! for (int iFieldSeq = 0; iFieldSeq < this.getNavCount(); iFieldSeq++) { ScreenField sField = this.getSField(iFieldSeq); if (!(sField instanceof ToolScreen)) sField.setEnabled(true); } this.getScreenFieldView().setEnabled(true); // Sorry, but the JTable needs to be enabled always } } }
/** * Enable or disable all fields. * @param bEditing True to enable all the fields (for input). */ public void setEnabled(boolean bEditing) { super.setEnabled(bEditing); if (!bEditing) { // Turn the nav buttons back on! for (int iFieldSeq = 0; iFieldSeq < this.getNavCount(); iFieldSeq++) { ScreenField sField = this.getSField(iFieldSeq); if (!(sField instanceof ToolScreen)) sField.setEnabled(true); } if (this.getScreenFieldView().getControl() != null) this.getScreenFieldView().getControl().setEnabled(true); // Sorry, but the JTable needs to be enabled always } } }
m_fldTarget.setEnabled(bEnableFlag); else if (m_sField != null) m_sField.setEnabled(bEnableFlag); else
m_fldTarget.setEnabled(bEnableFlag); else if (m_sField != null) m_sField.setEnabled(bEnableFlag); else
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); // By default, all fields are disabled (enable the target fields). for (int iFieldSeq = 0; iFieldSeq < this.getSFieldCount(); iFieldSeq++) { ScreenField sField = this.getSField(iFieldSeq); if (!(sField instanceof ToolScreen)) sField.setEnabled(false); } // 2. The first thing to do is to see if this is a message reply or just a screen display BaseMessage message = this.getMessage(); if (message != null) { this.moveMessageParamsToScreen(message); if (this.isReplyMessage(message)) { // If this is a reply message, you may want to display this screen differently. } } } /**
ScreenField sfDesc = (ScreenField)conv.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); sfDesc.setEnabled(false);
ScreenField sfDesc = (ScreenField)conv.setupDefaultView(itsLocation, targetScreen, iDisplayFieldDesc); sfDesc.setEnabled(false);
sfDesc.setEnabled(false);