@Override public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { ignoreAction = true; Date valueAsDate = getValueAsDate(value); getEditor().setDateTime(valueAsDate); ignoreAction = false; return datePicker; }
/** * Displays a modal dialog with the provided information message text. * * @param title The dialog title. May be {@code null}. * @param message The information message text to be displayed. * @param preferencesKey If not {@code null}, a checkbox is displayed, and if checked the dialog will not be displayed again which lets users store the answer */ public static void showInformation(String title, String message, String preferencesKey) { showMessage(title != null ? title : Bundle.LBL_Information(), message, JOptionPane.INFORMATION_MESSAGE, preferencesKey); }
/** * Displays a modal dialog with the provided warning message text. * * @param title The dialog title. May be {@code null}. * @param message The warning message text to be displayed. * @param preferencesKey If not {@code null}, a checkbox is displayed, and if checked the dialog will not be displayed again which lets users store the answer */ public static void showWarning(String title, String message, String preferencesKey) { showMessage(title != null ? title : Bundle.LBL_Warning(), message, JOptionPane.WARNING_MESSAGE, preferencesKey); }
/** * Displays a modal dialog with the provided error message text. * * @param message The error message text to be displayed. */ public static void showError(String message) { showError(null, message); }
@Override public void run() { answer[0] = Dialogs.requestDecision(title, msg, true, null); if (answer[0] == Dialogs.Answer.YES) { newFile[0] = Dialogs.requestFileForOpen(title, false, null, null); } } });
public static Product[] createProducts() { return new Product[]{createProduct1(), createProduct2(), createProduct3(), createProduct4(), createProduct5(), createProduct6() }; }
/** * Displays a modal dialog with the provided warning message text. * * @param message The information message text to be displayed. */ public static void showWarning(String message) { showWarning(null, message, null); }
public void actionPerformed(final ActionEvent e) { final Dialogs.Answer status = Dialogs.requestDecision("Deleting selected files", "Are you sure you want to delete these products", true, null); if (status == Dialogs.Answer.YES) performFileAction(ProductFileHandler.TYPE.DELETE); } });
/** * Displays a modal dialog with the provided information message text. * * @param message The message text to be displayed. * @param preferencesKey If not {@code null}, a checkbox is displayed, and if checked the dialog will not be displayed again which lets users store the answer */ public static void showInformation(String message, String preferencesKey) { showInformation(Bundle.LBL_Information(), message, preferencesKey); }
/** * Displays a modal dialog with the provided information message text. * * @param message The message text to be displayed. */ public static void showInformation(String message) { showInformation(message, null); }
/** * Displays a modal dialog with the provided error message text. * * @param title The dialog title. May be {@code null}. * @param message The error message text to be displayed. */ public static void showError(String title, String message) { showMessage(title != null ? title : Bundle.LBL_Error(), message, JOptionPane.ERROR_MESSAGE, null); }
public void setTimeFormat(DateFormat timeFormat) { getEditor().setTimeFormat(timeFormat); }
public DateFormat getTimeFormat() { return getEditor().getTimeFormat(); }
@Override public void nodeChanged(ProductNodeEvent event) { handleEvent(event); }
private void notifyExpand(int index) { for (CollapseListener collapseListener : collapseListenerList) { collapseListener.expand(index); } }
private void notifyCollapse(int index) { for (CollapseListener collapseListener : collapseListenerList) { collapseListener.collapse(index); } }
public void setTimeFormat(DateFormat timeFormat) { this.timeFormat = timeFormat; updateTextFieldFormat(); }
@Override public void worked(int work) { internalWorked(work); }
@Override public JMenuItem getPopupPresenter() { return getMenuPresenter(); }
@Override public void nodeRemoved(ProductNodeEvent event) { handleEvent(event); }