/** Set validity of OK button. * @see #isValid * @param newValid validity status of OK button */ public final void setValid(boolean newValid) { boolean oldValid = valid; valid = newValid; firePropertyChange( PROP_VALID, oldValid ? Boolean.TRUE : Boolean.FALSE, newValid ? Boolean.TRUE : Boolean.FALSE ); }
/** * Set the title string for this report description. * * @param newTitle the title of this description * * @see #getTitle */ public void setTitle(String newTitle) { Object oldTitle = title; title = newTitle; firePropertyChange(PROP_TITLE, oldTitle, newTitle); }
void setErrorMessage (String msg) { if (notificationLineSupport == null) { throw new IllegalStateException ("NotificationLineSupport wasn't created yet."); } infoMsg = null; warnMsg = null; errMsg = msg; firePropertyChange (PROP_ERROR_NOTIFICATION, null, msg); }
/** * Define an explicit description of the set of user-selectable options. * The usual value for the options parameter is an array of * <code>String</code>s. But the parameter type is an array of <code>Object</code>s. Its * interpretation depends on its type: * <dl compact> * <dt>{@link Component}<dd>The component is added to the button row directly. * <dt>{@link javax.swing.Icon}<dd>A {@link javax.swing.JButton} is created with this icon as its label. * <dt>anything else<dd>The <code>Object</code> is {@link Object#toString converted} to a string and the result is used to * label a <code>JButton</code>. * </dl> * * @param newOptions an array of user-selectable options * * @see #getOptions */ public void setOptions(Object[] newOptions) { Object[] oldOptions = options; options = newOptions; firePropertyChange(PROP_OPTIONS, oldOptions, newOptions); }
/** * Define an explicit description of the set of additional user-selectable options. * Additional options are supposed to be used for help button, etc. * <P> * The usual value for the options parameter is an array of * <code>String</code>s. But the parameter type is an array of <code>Object</code>s. Its * interpretation depends on its type: * <dl compact> * <dt>{@link Component}<dd>The component is added to the button row directly. * <dt>{@link javax.swing.Icon}<dd>A {@link javax.swing.JButton} is created with this icon as its label. * <dt>anything else<dd>The <code>Object</code> is {@link Object#toString converted} to a string and the result is used to * label a <code>JButton</code>. * </dl> * * @param newOptions an array of user-selectable options * * @see #getOptions */ public void setAdditionalOptions(Object[] newOptions) { Object[] oldOptions = adOptions; adOptions = newOptions; firePropertyChange(PROP_OPTIONS, oldOptions, newOptions); }
void setInformationMessage (String msg) { if (notificationLineSupport == null) { throw new IllegalStateException ("NotificationLineSupport wasn't created yet."); } infoMsg = msg; warnMsg = null; errMsg = null; firePropertyChange (PROP_INFO_NOTIFICATION, null, msg); }
void setWarningMessage (String msg) { if (notificationLineSupport == null) { throw new IllegalStateException ("NotificationLineSupport wasn't created yet."); } infoMsg = null; warnMsg = msg; errMsg = null; firePropertyChange (PROP_WARNING_NOTIFICATION, null, msg); }
void clearMessages () { if (notificationLineSupport == null) { throw new IllegalStateException ("NotificationLineSupport wasn't created yet."); } infoMsg = null; warnMsg = null; errMsg = null; firePropertyChange (PROP_INFO_NOTIFICATION, null, null); }
/** * Set the value the user has chosen and fires appropriate property change. * You probably do not want to call this yourself, of course. * * @param newValue the chosen value * * @see #getValue */ public void setValue(Object newValue) { Object oldValue = value; setValueWithoutPCH(newValue); firePropertyChange(PROP_VALUE, oldValue, newValue); }
firePropertyChange(PROP_OPTION_TYPE, new Integer(oldType), new Integer(optionType));
firePropertyChange(PROP_MESSAGE_TYPE, new Integer(oldType), new Integer(messageType));
firePropertyChange(PROP_MESSAGE, oldMessage, newMessage);
/** Set validity of OK button. * @see #isValid * @param newValid validity status of OK button */ public final void setValid(boolean newValid) { boolean oldValid = valid; valid = newValid; firePropertyChange(PROP_VALID, oldValid ? Boolean.TRUE : Boolean.FALSE, newValid ? Boolean.TRUE : Boolean.FALSE); }
/** * Set the title string for this report description. * * @param newTitle the title of this description * * @see #getTitle */ public void setTitle(String newTitle) { Object oldTitle = title; title = newTitle; firePropertyChange(PROP_TITLE, oldTitle, newTitle); }
/** Set validity of OK button. * @see #isValid * @param newValid validity status of OK button */ public final void setValid(boolean newValid) { boolean oldValid = valid; valid = newValid; firePropertyChange(PROP_VALID, oldValid ? Boolean.TRUE : Boolean.FALSE, newValid ? Boolean.TRUE : Boolean.FALSE); }
/** * Set the title string for this report description. * * @param newTitle the title of this description * * @see #getTitle */ public void setTitle(String newTitle) { Object oldTitle = title; title = newTitle; firePropertyChange(PROP_TITLE, oldTitle, newTitle); }
/** * Define an explicit description of the set of user-selectable options. * The usual value for the options parameter is an array of * <code>String</code>s. But the parameter type is an array of <code>Object</code>s. Its * interpretation depends on its type: * <dl compact> * <dt>{@link Component}<dd>The component is added to the button row directly. * <dt>{@link javax.swing.Icon}<dd>A {@link javax.swing.JButton} is created with this icon as its label. * <dt>anything else<dd>The <code>Object</code> is {@link Object#toString converted} to a string and the result is used to * label a <code>JButton</code>. * </dl> * * @param newOptions an array of user-selectable options * * @see #getOptions */ public void setOptions(Object[] newOptions) { Object[] oldOptions = options; options = newOptions; firePropertyChange(PROP_OPTIONS, oldOptions, newOptions); }
/** * Define an explicit description of the set of user-selectable options. * The usual value for the options parameter is an array of * <code>String</code>s. But the parameter type is an array of <code>Object</code>s. Its * interpretation depends on its type: * <dl compact> * <dt>{@link Component}<dd>The component is added to the button row directly. * <dt>{@link javax.swing.Icon}<dd>A {@link javax.swing.JButton} is created with this icon as its label. * <dt>anything else<dd>The <code>Object</code> is {@link Object#toString converted} to a string and the result is used to * label a <code>JButton</code>. * </dl> * * @param newOptions an array of user-selectable options * * @see #getOptions */ public void setOptions(Object[] newOptions) { Object[] oldOptions = options; options = newOptions; firePropertyChange(PROP_OPTIONS, oldOptions, newOptions); }
/** * Set the value the user has chosen and fires appropriate property change. * You probably do not want to call this yourself, of course. * * @param newValue the chosen value * * @see #getValue */ public void setValue(Object newValue) { Object oldValue = value; setValueWithoutPCH (newValue); firePropertyChange(PROP_VALUE, oldValue, newValue); }
/** * Set the value the user has chosen and fires appropriate property change. * You probably do not want to call this yourself, of course. * * @param newValue the chosen value * * @see #getValue */ public void setValue(Object newValue) { Object oldValue = value; setValueWithoutPCH (newValue); firePropertyChange(PROP_VALUE, oldValue, newValue); }