public class DialogUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL_BUTTON_TEXT |
static String |
HTML_TAB |
static String |
OK_BUTTON_TEXT |
| Constructor and Description |
|---|
DialogUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
confirmation(Component parent,
String message,
String title) |
static boolean |
confirmCanWrite(File file,
Container parent,
String title) |
static DefaultTableModel |
createNonEditableTableModel(Object[] columnNames) |
static JButton |
createStandardButton(String text,
boolean enabled) |
static JButton |
getButton(OntopAbstractAction action) |
static Function<String,String> |
getExtensionReplacer(String replacement) |
static JFileChooser |
getFileChooser(org.protege.editor.core.editorkit.EditorKit editorKit,
Function<String,String> filenameTransformer) |
static ImageIcon |
getImageIcon(String path)
Returns an ImageIcon, or null if the path was invalid.
|
static KeyStroke |
getKeyStrokeWithCtrlMask(int keyCode) |
static JMenuItem |
getMenuItem(Action action) |
static JMenuItem |
getMenuItem(String text,
Action action) |
static ImageIcon |
getOntopIcon() |
static Optional<OntopProtegeReasoner> |
getOntopProtegeReasoner(org.protege.editor.core.editorkit.EditorKit editorKit) |
static OntopAbstractAction |
getStandardCloseWindowAction(String text,
Window source) |
static String |
htmlEscape(String s) |
static String |
renderElapsedTime(long millis) |
static void |
setLocationRelativeToProtegeAndOpen(org.protege.editor.core.editorkit.EditorKit editorKit,
JDialog dialog) |
static void |
setUpAccelerator(JComponent component,
Action action) |
static void |
setUpAccelerator(JComponent component,
Action action,
KeyStroke keyStroke) |
static void |
setUpPopUpMenu(JComponent component,
JPopupMenu popupMenu) |
static void |
showCancelledActionDialog(Component parent,
String title) |
static void |
showErrorDialog(Component parent,
String title,
String message,
org.slf4j.Logger log,
ExecutionException e,
DataSource datasource) |
static void |
showInfoDialog(Component parent,
String message,
String title) |
static void |
showPrettyMessageDialog(Component parent,
Object message,
String title,
int type) |
static void |
showQuickErrorDialog(Component parent,
Exception e,
String message) |
static void |
showSeeLogErrorDialog(Component parent,
String message,
org.slf4j.Logger log,
Throwable e) |
static void |
showSeeLogErrorDialog(Component parent,
String title,
String message,
org.slf4j.Logger log,
Throwable e) |
public static final String CANCEL_BUTTON_TEXT
public static final String OK_BUTTON_TEXT
public static final String HTML_TAB
public static ImageIcon getImageIcon(String path)
public static ImageIcon getOntopIcon()
public static void setLocationRelativeToProtegeAndOpen(org.protege.editor.core.editorkit.EditorKit editorKit,
JDialog dialog)
public static OntopAbstractAction getStandardCloseWindowAction(String text, Window source)
public static JButton getButton(OntopAbstractAction action)
public static KeyStroke getKeyStrokeWithCtrlMask(int keyCode)
public static void setUpPopUpMenu(JComponent component, JPopupMenu popupMenu)
public static void setUpAccelerator(JComponent component, Action action)
public static void setUpAccelerator(JComponent component, Action action, KeyStroke keyStroke)
public static DefaultTableModel createNonEditableTableModel(Object[] columnNames)
public static String renderElapsedTime(long millis)
public static JFileChooser getFileChooser(org.protege.editor.core.editorkit.EditorKit editorKit, Function<String,String> filenameTransformer)
public static void showPrettyMessageDialog(Component parent, Object message, String title, int type)
public static Optional<OntopProtegeReasoner> getOntopProtegeReasoner(org.protege.editor.core.editorkit.EditorKit editorKit)
public static void showCancelledActionDialog(Component parent, String title)
public static void showErrorDialog(Component parent, String title, String message, org.slf4j.Logger log, ExecutionException e, DataSource datasource)
public static void showSeeLogErrorDialog(Component parent, String title, String message, org.slf4j.Logger log, Throwable e)
public static void showSeeLogErrorDialog(Component parent, String message, org.slf4j.Logger log, Throwable e)
public static void showQuickErrorDialog(Component parent, Exception e, String message)
Copyright © 2009–2021 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.