/** * Create a report about the results of a command. * * @param message the message object * @param messageType the type of message to be displayed * @see NotifyDescriptor#NotifyDescriptor */ public Message(Object message, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), DEFAULT_OPTION, messageType, new Object[] { OK_OPTION }, OK_OPTION ); } }
/** * Create a confirmation with default title. * * @param message the message object * @param optionType the type of options to display to the user * @param messageType the type of message to use * @see NotifyDescriptor#NotifyDescriptor */ public Confirmation(Object message, int optionType, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), optionType, messageType, (optionType == DEFAULT_OPTION) ? new Object[] { OK_OPTION } : null, OK_OPTION ); }
/** * Create a report about the results of a command. * * @param message the message object * @param messageType the type of message to be displayed * @see NotifyDescriptor#NotifyDescriptor */ public Message(Object message, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), DEFAULT_OPTION, messageType, new Object[] { OK_OPTION }, OK_OPTION ); } }
/** * Create a confirmation with default title. * * @param message the message object * @param optionType the type of options to display to the user * @param messageType the type of message to use * @see NotifyDescriptor#NotifyDescriptor */ public Confirmation(Object message, int optionType, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), optionType, messageType, optionType == DEFAULT_OPTION ? new Object[] { OK_OPTION } : null, OK_OPTION ); }
/** * Create a confirmation with default title. * * @param message the message object * @param optionType the type of options to display to the user * @param messageType the type of message to use * @see NotifyDescriptor#NotifyDescriptor */ public Confirmation(Object message, int optionType, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), optionType, messageType, optionType == DEFAULT_OPTION ? new Object[] { OK_OPTION } : null, OK_OPTION ); }
/** * Create a report about the results of a command. * * @param message the message object * @param messageType the type of message to be displayed * @see NotifyDescriptor#NotifyDescriptor */ public Message(Object message, int messageType) { super( message, NotifyDescriptor.getTitleForType(messageType), DEFAULT_OPTION, messageType, new Object[] { OK_OPTION }, OK_OPTION ); } }
/** * Create an informational report about the results of a command. * * @param shortMsg the short message object * @param detailsMsg the details message object * @see org.openide.NotifyDescriptor#NotifyDescriptor */ public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final boolean respectParent) { super(shortMsg, NotifyDescriptor.getTitleForType(NotifyDescriptor.INFORMATION_MESSAGE)); this.detailsMsg = detailsMsg; showDetailsButton.setDefaultCapable(false); setOptions(new Object[] { OK_OPTION }); setAdditionalOptions(new Object[] { showDetailsButton }); setLeaf(!respectParent); }
/** * Create a report about the results of a command. * * @param shortMsg the message object * @param detailsMsg the details message object * @param messageType the type of message to be displayed * @see org.openide.NotifyDescriptor#NotifyDescriptor */ public MessageWithDetails(final Object shortMsg, final Object detailsMsg, final int messageType, final boolean respectParent) { super(shortMsg, NotifyDescriptor.getTitleForType(messageType)); this.setMessageType(messageType); this.detailsMsg = detailsMsg; showDetailsButton.setDefaultCapable(false); setOptions(new Object[] { OK_OPTION }); setAdditionalOptions(new Object[] { showDetailsButton }); setLeaf(!respectParent); }