public class ImmoToolUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImmoToolUtils.BooleanRenderer |
static class |
ImmoToolUtils.CurrencyRenderer |
static class |
ImmoToolUtils.DateRenderer |
static class |
ImmoToolUtils.FileSizeRenderer |
static class |
ImmoToolUtils.FirstLineRenderer |
static class |
ImmoToolUtils.GenderRenderer |
static class |
ImmoToolUtils.GeoAreaRenderer |
static class |
ImmoToolUtils.GeoRenderer |
static class |
ImmoToolUtils.GroupRenderer |
static class |
ImmoToolUtils.LanguagePackRenderer |
static class |
ImmoToolUtils.LocaleRenderer |
static class |
ImmoToolUtils.NumberRenderer |
static class |
ImmoToolUtils.PluginDescriptorRenderer |
static class |
ImmoToolUtils.ProjectBackupModeRenderer |
static class |
ImmoToolUtils.RemoteDbDriverRenderer |
static class |
ImmoToolUtils.UserRenderer |
Modifier and Type | Field and Description |
---|---|
static Color |
BG_COLOR_1 |
static Color |
BG_COLOR_2 |
static Color |
TABLE_HIGHLIGHT_COLOR |
static eu.medsea.mimeutil.MimeType |
UNKNOWN_MIME_TYPE |
Modifier and Type | Method and Description |
---|---|
static AbstractTab |
addTab(AbstractTab tab,
JTabbedPane tabbedPane) |
static JPanel |
buildButtonBar(Action... actions) |
static JPanel |
buildButtonBar(JComponent... components) |
static JPanel |
buildButtonBarFixed(Action... actions) |
static JPanel |
buildButtonBarFixed(JButton... buttons) |
static JPanel |
buildTitleBar(org.jdesktop.swingx.JXTitledSeparator title,
Action... actions) |
static JPanel |
buildTitleBar(org.jdesktop.swingx.JXTitledSeparator title,
JComponent... buttons) |
static boolean |
canRead(File file) |
static boolean |
canWrite(File file) |
static List<String> |
compareMaps(Map<String,String> a,
Map<String,String> b) |
static void |
configureDialog(JDialog dlg) |
static void |
configureDialog(JDialog dlg,
org.jdesktop.swingx.JXPanel bgPanel) |
static void |
configureFrame(JFrame frame,
String title,
org.jdesktop.swingx.JXPanel bgPanel) |
static void |
configureTable(org.jdesktop.swingx.JXTable table) |
static void |
configureWarningComponent(JComponent component) |
static BufferedImage |
convertToRgb(BufferedImage srcImage)
Deprecated.
|
static BufferedImage |
convertToRgb(BufferedImage srcImage,
boolean flushSrcImage)
Deprecated.
|
static BufferedImage |
convertToRgb(BufferedImage srcImage,
Color bgColor)
Deprecated.
|
static BufferedImage |
convertToRgb(BufferedImage srcImage,
Color bgColor,
boolean flushSrcImage)
Deprecated.
|
static net.java.balloontip.styles.BalloonTipStyle |
createBalloonTipStyle() |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(com.jgoodies.forms.layout.FormLayout layout) |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(com.jgoodies.forms.layout.FormLayout layout,
JPanel container) |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(String colSpecs) |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(String colSpecs,
JPanel container) |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(String colSpecs,
String rowSpecs) |
static com.jgoodies.forms.builder.DefaultFormBuilder |
createFormBuilder(String colSpecs,
String rowSpecs,
JPanel container) |
static org.jdesktop.swingx.JXTitledSeparator |
createHead1Separator(String title) |
static org.jdesktop.swingx.JXTitledSeparator |
createHead2Separator(String title) |
static org.apache.http.client.HttpClient |
createHttpClient()
Deprecated.
|
static org.apache.http.client.HttpClient |
createHttpClient(boolean threadSafe)
Deprecated.
|
static org.apache.http.client.HttpClient |
createHttpClient(String login,
String password)
Deprecated.
|
static org.apache.http.client.HttpClient |
createHttpClient(String login,
String password,
boolean threadSafe)
Deprecated.
|
static org.apache.http.client.HttpClient |
createHttpClient(String login,
String password,
int timeout)
Deprecated.
|
static org.apache.http.client.HttpClient |
createHttpClient(String login,
String password,
int timeout,
boolean threadSafe)
Deprecated.
|
static org.jdesktop.swingx.JXTitledSeparator |
createMenuSeparator(String title) |
static org.jdesktop.swingx.JXTitledSeparator |
createMenuSeparator(String title,
int marginTop) |
static ModificationHandler |
createModificationHandler() |
static DefaultTableModel |
createTableModel(String[] cols,
Class[] types) |
static DefaultTableModel |
createTableModel(String[] cols,
Class[] types,
boolean[] canEdit) |
static ValidationHandler |
createValidationHandler() |
static BufferedImage |
cropImageToRatio(BufferedImage image,
int ratioWidth,
int ratioHeight)
Deprecated.
|
static void |
dispose(AbstractButton c) |
static void |
dispose(AbstractListModel c) |
static void |
dispose(AbstractTableModel c) |
static void |
dispose(Component c) |
static void |
dispose(Container c) |
static void |
dispose(DefaultComboBoxModel c) |
static void |
dispose(DefaultListModel c) |
static void |
dispose(DefaultTableModel c) |
static void |
dispose(JCheckBox c) |
static void |
dispose(JComboBox c) |
static void |
dispose(JComponent c) |
static void |
dispose(JEditorPane c) |
static void |
dispose(JList c) |
static void |
dispose(JMenu c) |
static void |
dispose(JMenuItem c) |
static void |
dispose(JPanel c) |
static void |
dispose(JPopupMenu c) |
static void |
dispose(JRadioButton c) |
static void |
dispose(JSpinner c) |
static void |
dispose(JTabbedPane c) |
static void |
dispose(JTable c) |
static void |
dispose(JTextComponent c) |
static void |
dispose(JTextField c) |
static void |
dispose(JTree c) |
static void |
dispose(org.jdesktop.swingx.JXDatePicker c) |
static void |
dispose(org.jdesktop.swingx.JXList c) |
static void |
dispose(org.jdesktop.swingx.JXTable c) |
static void |
dispose(org.jdesktop.swingx.JXTree c) |
static void |
dispose(org.jdesktop.swingx.JXTreeTable c) |
static void |
dispose(org.fife.ui.rtextarea.RTextArea c) |
static void |
dispose(Window c) |
static void |
disposeRecursively(Component c) |
static void |
executeTask(ImmoToolTask task) |
static BufferedImage |
flipImageHorizontal(BufferedImage image)
Deprecated.
|
static BufferedImage |
flipImageHorizontal(BufferedImage image,
int type)
Deprecated.
|
static BufferedImage |
flipImageVertical(BufferedImage image)
Deprecated.
|
static BufferedImage |
flipImageVertical(BufferedImage image,
int type)
Deprecated.
|
static Window |
getActiveWindow() |
static org.jdesktop.swingx.painter.Painter |
getBackgroundGradientLeftPainter(Color bg) |
static org.jdesktop.swingx.painter.Painter |
getBackgroundGradientTopPainter() |
static org.jdesktop.swingx.painter.Painter |
getBackgroundStripesPainter() |
static Object |
getComponentValue(JComponent c) |
static String |
getCountryCodeForLanguage(String languageCode) |
static String |
getCountryCodeFromText(String country) |
static List<String> |
getCountryCodes()
Liefert die ID's der verfügbaren Länder
|
static double[] |
getCountryCoordinates(String countryCode) |
static ImageIcon |
getCountryFlagIcon(Locale locale) |
static ImageIcon |
getCountryFlagIcon(String countryCode) |
static BufferedImage |
getCountryFlagImage(Locale locale) |
static BufferedImage |
getCountryFlagImage(String countryCode) |
static String |
getCountryName(String countryCode) |
static List<String> |
getCurrencyCodes() |
static String |
getCurrencySymbol(String code) |
static org.apache.commons.csv.CSVFormat |
getDefaultCsvFormat() |
static org.apache.commons.csv.CSVFormat |
getDefaultCsvFormat(String[] headline) |
static Currency |
getDefaultCurrency() |
static org.jdesktop.swingx.painter.AbstractPainter |
getDialogBackgroundPainter() |
static ImageIcon |
getFileIcon(javax.mail.internet.ContentType contentType,
int size) |
static ImageIcon |
getFileIcon(javax.mail.internet.ContentType contentType,
String fileName,
int size) |
static ImageIcon |
getFileIcon(String fileName,
int size) |
static String |
getFirstLine(String value) |
static Color |
getHexColor(String s)
Erzeugt ein Color-Objekt aus einem RGB-Hex-String.
|
static String |
getHtmlBody(String html) |
static String |
getHumanReadableByteCount(long size) |
static String |
getHumanReadableByteCount(long size,
NumberFormat numberFormat) |
static org.xnap.commons.i18n.I18n |
getI18n(Class clazz) |
static org.xnap.commons.i18n.I18n |
getI18n(Class clazz,
Locale locale) |
static String |
getI18nString(Class clazz,
String key) |
static String |
getI18nString(Class clazz,
String key,
Locale locale) |
static String |
getI18nString(org.xnap.commons.i18n.I18n i18n,
String key) |
static eu.medsea.mimeutil.MimeType |
getMimeType(File file) |
static eu.medsea.mimeutil.MimeType |
getMimeType(InputStream in) |
static Dimension |
getPreferredSize(String html,
boolean width,
int prefSize) |
static String |
getPropertiesAsXml(Properties props,
boolean stripDocType) |
static Boolean |
getPropertyAsBoolean(String key,
Boolean defaultValue,
Properties props) |
static Color |
getPropertyAsColor(String key,
Color defaultValue,
Properties props) |
static Date |
getPropertyAsDate(String key,
Date defaultValue,
Properties props) |
static Float |
getPropertyAsFloat(String key,
Float defaultValue,
Properties props) |
static Integer |
getPropertyAsInteger(String key,
Integer defaultValue,
Properties props) |
static Long |
getPropertyAsLong(String key,
Long defaultValue,
Properties props) |
static ResourceBundle |
getResourceBundle(Class containerClass,
Locale locale) |
static ImageIcon |
getResourceIcon(String resourcePath,
int size,
String name) |
static ImageIcon |
getResourceIcon(String resourcePath,
int size,
String name,
ClassLoader loader) |
static BufferedImage |
getResourceImage(String resourcePath,
int size,
String name) |
static BufferedImage |
getResourceImage(String resourcePath,
int size,
String name,
ClassLoader loader) |
static URL |
getResourceImageURL(String resourcePath,
int size,
String name) |
static URL |
getResourceImageURL(String resourcePath,
int size,
String name,
ClassLoader loader) |
static String |
getResourcePath(Class containerClass) |
static String |
getResourcePath(Class containerClass,
Locale locale) |
static String |
getUrlDecodedPath(String path) |
static String |
getUrlDecodedPath(String path,
String separator) |
static String |
getUrlEncodedPath(String path) |
static String |
getUrlEncodedPath(String path,
String separator) |
static boolean |
hasAlpha(BufferedImage srcImage)
Deprecated.
|
static int |
hashCode(Object obj) |
static boolean |
isValidHostname(String hostname)
Check, if a hostname is valid.
|
static boolean |
isValidMailAddress(String mail)
Check, if a mail address is valid.
|
static byte[] |
loadFileContent(File file)
Deprecated.
|
static void |
loadFileIntoZipStream(File f,
ZipOutputStream output) |
static void |
loadFileIntoZipStream(File f,
ZipOutputStream output,
String baseDir) |
static void |
moveBetweenLists(JList srcList,
JList destList) |
static void |
moveBetweenLists(Object value,
JList srcList,
JList destList) |
static void |
openPDF(File pdf)
PDF-Datei in externer Anwendung öffnen.
|
static void |
openPDF(String pdfPath)
PDF-Datei in externer Anwendung öffnen.
|
static void |
openURL(String url)
URL im Web-Browser öffnen.
|
static void |
openURL(URL url)
URL im Web-Browser öffnen.
|
static void |
print(Printable printable) |
static String |
readFile(File f) |
static String |
readFile(File f,
String encoding) |
static BufferedImage |
rotateImageToLeft(BufferedImage image)
Deprecated.
|
static BufferedImage |
rotateImageToLeft(BufferedImage image,
int type)
Deprecated.
|
static BufferedImage |
rotateImageToRight(BufferedImage image)
Deprecated.
|
static BufferedImage |
rotateImageToRight(BufferedImage image,
int type)
Deprecated.
|
static BufferedImage |
scaleImageAndKeepRatio(BufferedImage image,
int maxWidth,
int maxHeight)
Deprecated.
|
static BufferedImage |
scaleImageAndKeepRatio(BufferedImage image,
int maxWidth,
int maxHeight,
int imageType)
Deprecated.
|
static BufferedImage |
scaleImageToResolution(BufferedImage image,
int screenWidth,
int screenHeight,
int resolution)
Deprecated.
|
static BufferedImage |
scaleImageToResolution(BufferedImage image,
int screenWidth,
int screenHeight,
int resolution,
int type)
Deprecated.
|
static void |
setMacOsXFullScreenMode(Window window,
boolean enabled)
Enabling Full Screen Mode for Java Applications Running on Mac OS X Lion.
|
static String |
showInputDialog(String msg)
Darstellung eines Dialog-Fensters mit einem Eingabefeld.
|
static String |
showInputDialog(String msg,
Component c)
Darstellung eines Dialog-Fensters mit einem Eingabefeld.
|
static String |
showInputDialog(String msg,
String defaultValue)
Darstellung eines Dialog-Fensters mit einem Eingabefeld.
|
static String |
showInputDialog(String msg,
String defaultValue,
Component c) |
static void |
showMessageDialog(String msg,
String title,
int type)
Meldungsdialog anzeigen.
|
static void |
showMessageDialog(String msg,
String title,
int type,
Component parent)
Meldungsdialog anzeigen.
|
static void |
showMessageErrorDialog(String msg)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
Collection<String> errors)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
Collection<String> errors,
Component c)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
Component parent) |
static void |
showMessageErrorDialog(String msg,
Map<String,Collection<String>> errors)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
Map<String,Collection<String>> errors,
Component c)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
String title)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
String title,
Component c)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageErrorDialog(String msg,
Throwable t) |
static void |
showMessageErrorDialog(String msg,
Throwable t,
Window w) |
static void |
showMessageInfoDialog(String msg)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageInfoDialog(String msg,
Component c) |
static void |
showMessageInfoDialog(String msg,
String title)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageInfoDialog(String msg,
String title,
Component c) |
static void |
showMessageWarningDialog(String msg)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageWarningDialog(String msg,
Component c)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageWarningDialog(String msg,
String title)
Dialog mit Fehlermeldung anzeigen.
|
static void |
showMessageWarningDialog(String msg,
String title,
Component c)
Dialog mit Fehlermeldung anzeigen.
|
static boolean |
showQuestionDialog(String msg)
Darstellung eines Dialog-Fensters mit einer Frage.
|
static boolean |
showQuestionDialog(String msg,
Component c) |
static boolean |
showQuestionDialog(String msg,
String title,
Component c) |
static Boolean |
showQuestionWithCancelDialog(String msg)
Darstellung eines Dialog-Fensters mit einer Frage.
|
static Boolean |
showQuestionWithCancelDialog(String msg,
Component c)
Darstellung eines Dialog-Fensters mit einer Frage.
|
static String[] |
splitLines(String txt) |
static String |
stripTags(String txt) |
static org.w3c.tidy.Tidy |
tidy() |
static String |
tidy(String input) |
static String |
tidy(org.w3c.tidy.Tidy tidy,
String input) |
static BufferedImage |
toBufferedImage(Image img) |
static Image |
toGray(Image image) |
static ImageIcon |
toGray(ImageIcon icon) |
static javax.mail.internet.InternetAddress |
toIdnInternetAddress(javax.mail.internet.InternetAddress address) |
static String |
toIdnMailAddress(String address) |
static URL |
toIdnUrl(String url) |
static URL |
toIdnUrl(URL url) |
static String |
toPattern(String value)
Regulären Ausdruch aus einem String erzeugen.
|
static String |
toString(Object obj) |
static String |
toString(Object obj,
String nullStr) |
static void |
unzip(File zipFile,
File destinationDirectory) |
static String |
wrapAndIndentString(String original,
String indent,
int width)
Indent and wrap multi-line strings.
|
static List<String> |
wrapStringToArray(String original,
int width,
BreakIterator breakIterator,
boolean removeNewLines)
Wrap multi-line strings (and get the individual lines).
|
static String |
writeException(Throwable ex) |
static void |
writeFileToStream(File file,
OutputStream out) |
static String |
writeHexColor(Color color) |
static void |
writeStreamToFile(InputStream in,
File file) |
static void |
writeURLToStream(URL url,
OutputStream out) |
public static final Color BG_COLOR_1
public static final Color BG_COLOR_2
public static final Color TABLE_HIGHLIGHT_COLOR
public static final eu.medsea.mimeutil.MimeType UNKNOWN_MIME_TYPE
public static AbstractTab addTab(AbstractTab tab, JTabbedPane tabbedPane)
public static JPanel buildButtonBar(JComponent... components)
public static JPanel buildTitleBar(org.jdesktop.swingx.JXTitledSeparator title, Action... actions)
public static JPanel buildTitleBar(org.jdesktop.swingx.JXTitledSeparator title, JComponent... buttons)
public static boolean canRead(File file)
public static boolean canWrite(File file)
public static void configureDialog(JDialog dlg)
public static void configureDialog(JDialog dlg, org.jdesktop.swingx.JXPanel bgPanel)
public static void configureFrame(JFrame frame, String title, org.jdesktop.swingx.JXPanel bgPanel)
public static void configureTable(org.jdesktop.swingx.JXTable table)
public static void configureWarningComponent(JComponent component)
@Deprecated public static BufferedImage convertToRgb(BufferedImage srcImage)
@Deprecated public static BufferedImage convertToRgb(BufferedImage srcImage, Color bgColor)
@Deprecated public static BufferedImage convertToRgb(BufferedImage srcImage, boolean flushSrcImage)
@Deprecated public static BufferedImage convertToRgb(BufferedImage srcImage, Color bgColor, boolean flushSrcImage)
public static net.java.balloontip.styles.BalloonTipStyle createBalloonTipStyle()
public static org.jdesktop.swingx.JXTitledSeparator createHead1Separator(String title)
public static org.jdesktop.swingx.JXTitledSeparator createHead2Separator(String title)
@Deprecated public static org.apache.http.client.HttpClient createHttpClient()
@Deprecated public static org.apache.http.client.HttpClient createHttpClient(boolean threadSafe)
@Deprecated public static org.apache.http.client.HttpClient createHttpClient(String login, String password)
@Deprecated public static org.apache.http.client.HttpClient createHttpClient(String login, String password, boolean threadSafe)
@Deprecated public static org.apache.http.client.HttpClient createHttpClient(String login, String password, int timeout)
@Deprecated public static org.apache.http.client.HttpClient createHttpClient(String login, String password, int timeout, boolean threadSafe)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(String colSpecs)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(String colSpecs, String rowSpecs)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(com.jgoodies.forms.layout.FormLayout layout)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(String colSpecs, JPanel container)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(String colSpecs, String rowSpecs, JPanel container)
public static com.jgoodies.forms.builder.DefaultFormBuilder createFormBuilder(com.jgoodies.forms.layout.FormLayout layout, JPanel container)
public static org.jdesktop.swingx.JXTitledSeparator createMenuSeparator(String title)
public static org.jdesktop.swingx.JXTitledSeparator createMenuSeparator(String title, int marginTop)
public static ModificationHandler createModificationHandler()
public static DefaultTableModel createTableModel(String[] cols, Class[] types)
public static DefaultTableModel createTableModel(String[] cols, Class[] types, boolean[] canEdit)
public static ValidationHandler createValidationHandler()
@Deprecated public static BufferedImage cropImageToRatio(BufferedImage image, int ratioWidth, int ratioHeight)
public static void dispose(Component c)
public static void dispose(Container c)
public static void dispose(Window c)
public static void dispose(JComponent c)
public static void dispose(JPanel c)
public static void dispose(JTabbedPane c)
public static void dispose(JMenuItem c)
public static void dispose(JMenu c)
public static void dispose(JPopupMenu c)
public static void dispose(AbstractButton c)
public static void dispose(JCheckBox c)
public static void dispose(JRadioButton c)
public static void dispose(JComboBox c)
public static void dispose(org.jdesktop.swingx.JXDatePicker c)
public static void dispose(JSpinner c)
public static void dispose(JTextComponent c)
public static void dispose(JTextField c)
public static void dispose(JEditorPane c)
public static void dispose(org.fife.ui.rtextarea.RTextArea c)
public static void dispose(JList c)
public static void dispose(org.jdesktop.swingx.JXList c)
public static void dispose(JTree c)
public static void dispose(org.jdesktop.swingx.JXTree c)
public static void dispose(JTable c)
public static void dispose(org.jdesktop.swingx.JXTable c)
public static void dispose(org.jdesktop.swingx.JXTreeTable c)
public static void dispose(AbstractTableModel c)
public static void dispose(DefaultTableModel c)
public static void dispose(AbstractListModel c)
public static void dispose(DefaultListModel c)
public static void dispose(DefaultComboBoxModel c)
public static void disposeRecursively(Component c)
public static void executeTask(ImmoToolTask task)
@Deprecated public static BufferedImage flipImageHorizontal(BufferedImage image)
@Deprecated public static BufferedImage flipImageHorizontal(BufferedImage image, int type)
@Deprecated public static BufferedImage flipImageVertical(BufferedImage image)
@Deprecated public static BufferedImage flipImageVertical(BufferedImage image, int type)
public static Window getActiveWindow()
public static org.jdesktop.swingx.painter.Painter getBackgroundStripesPainter()
public static org.jdesktop.swingx.painter.Painter getBackgroundGradientLeftPainter(Color bg)
public static org.jdesktop.swingx.painter.Painter getBackgroundGradientTopPainter()
public static Object getComponentValue(JComponent c)
public static List<String> getCountryCodes()
public static BufferedImage getCountryFlagImage(Locale locale)
public static BufferedImage getCountryFlagImage(String countryCode)
public static double[] getCountryCoordinates(String countryCode)
public static org.jdesktop.swingx.painter.AbstractPainter getDialogBackgroundPainter()
public static org.apache.commons.csv.CSVFormat getDefaultCsvFormat()
public static org.apache.commons.csv.CSVFormat getDefaultCsvFormat(String[] headline)
public static Currency getDefaultCurrency()
public static ImageIcon getFileIcon(javax.mail.internet.ContentType contentType, int size)
public static ImageIcon getFileIcon(javax.mail.internet.ContentType contentType, String fileName, int size)
public static Color getHexColor(String s)
s
- RGB-Hex-Stringpublic static String getHumanReadableByteCount(long size)
public static String getHumanReadableByteCount(long size, NumberFormat numberFormat)
public static org.xnap.commons.i18n.I18n getI18n(Class clazz)
public static eu.medsea.mimeutil.MimeType getMimeType(File file)
public static eu.medsea.mimeutil.MimeType getMimeType(InputStream in)
public static String getPropertiesAsXml(Properties props, boolean stripDocType) throws IOException
IOException
public static Boolean getPropertyAsBoolean(String key, Boolean defaultValue, Properties props)
public static Color getPropertyAsColor(String key, Color defaultValue, Properties props)
public static Date getPropertyAsDate(String key, Date defaultValue, Properties props)
public static Float getPropertyAsFloat(String key, Float defaultValue, Properties props)
public static Integer getPropertyAsInteger(String key, Integer defaultValue, Properties props)
public static Long getPropertyAsLong(String key, Long defaultValue, Properties props)
public static ResourceBundle getResourceBundle(Class containerClass, Locale locale)
public static ImageIcon getResourceIcon(String resourcePath, int size, String name, ClassLoader loader)
public static BufferedImage getResourceImage(String resourcePath, int size, String name)
public static BufferedImage getResourceImage(String resourcePath, int size, String name, ClassLoader loader)
public static URL getResourceImageURL(String resourcePath, int size, String name)
public static URL getResourceImageURL(String resourcePath, int size, String name, ClassLoader loader)
@Deprecated public static boolean hasAlpha(BufferedImage srcImage)
public static int hashCode(Object obj)
public static boolean isValidHostname(String hostname)
hostname
- The hostname to check.public static boolean isValidMailAddress(String mail)
mail
- The mail address to check.@Deprecated public static byte[] loadFileContent(File file) throws IOException
IOException
public static void loadFileIntoZipStream(File f, ZipOutputStream output) throws IOException
IOException
public static void loadFileIntoZipStream(File f, ZipOutputStream output, String baseDir) throws IOException
IOException
public static void openPDF(String pdfPath)
pdfPath
- zu öffnende PDFpublic static void openPDF(File pdf)
pdf
- zu öffnende PDFpublic static void openURL(String url)
url
- zu öffnende URLpublic static void openURL(URL url)
url
- zu öffnende URLpublic static void print(Printable printable) throws PrinterException
PrinterException
public static String readFile(File f) throws IOException
IOException
public static String readFile(File f, String encoding) throws IOException
IOException
@Deprecated public static BufferedImage rotateImageToLeft(BufferedImage image)
@Deprecated public static BufferedImage rotateImageToLeft(BufferedImage image, int type)
@Deprecated public static BufferedImage rotateImageToRight(BufferedImage image)
@Deprecated public static BufferedImage rotateImageToRight(BufferedImage image, int type)
@Deprecated public static BufferedImage scaleImageAndKeepRatio(BufferedImage image, int maxWidth, int maxHeight)
@Deprecated public static BufferedImage scaleImageAndKeepRatio(BufferedImage image, int maxWidth, int maxHeight, int imageType)
@Deprecated public static BufferedImage scaleImageToResolution(BufferedImage image, int screenWidth, int screenHeight, int resolution)
@Deprecated public static BufferedImage scaleImageToResolution(BufferedImage image, int screenWidth, int screenHeight, int resolution, int type)
public static void setMacOsXFullScreenMode(Window window, boolean enabled)
window
- the applications root windowenabled
- true to enable full screen mode; false to disablehttp://saipullabhotla.blogspot.de/2012/05/enabling-full-screen-mode-for-java.html
,
http://developer.apple.com/library/mac/releasenotes/Java/JavaLionUpdate1SnowLeopardUpdate6RN/JavaLionUpdate1SnowLeopardUpdate6RN.pdf
public static String showInputDialog(String msg)
msg
- dargestellter Textpublic static String showInputDialog(String msg, Component c)
msg
- dargestellter Textc
- public static String showInputDialog(String msg, String defaultValue)
msg
- dargestellter TextdefaultValue
- Standard-Wert im Eingabefeldpublic static void showMessageDialog(String msg, String title, int type)
title
- Mitteilungstitelmsg
- Mitteilungstexttype
- Mitteilungsartpublic static void showMessageDialog(String msg, String title, int type, Component parent)
title
- Mitteilungstitelmsg
- Mitteilungstexttype
- Mitteilungsartparent
- Parent-Komponentepublic static void showMessageErrorDialog(String msg)
msg
- Mitteilungstextpublic static void showMessageErrorDialog(String msg, Collection<String> errors)
msg
- Mitteilungstexterrors
- Fehler-Listepublic static void showMessageErrorDialog(String msg, Collection<String> errors, Component c)
msg
- Mitteilungstexterrors
- Fehler-Listec
- public static void showMessageErrorDialog(String msg, Map<String,Collection<String>> errors)
msg
- Mitteilungstexterrors
- Fehler-Listepublic static void showMessageErrorDialog(String msg, Map<String,Collection<String>> errors, Component c)
msg
- Mitteilungstexterrors
- Fehler-Listec
- public static void showMessageErrorDialog(String msg, String title)
title
- Mitteilungstitelmsg
- Mitteilungstextpublic static void showMessageErrorDialog(String msg, String title, Component c)
title
- Mitteilungstitelmsg
- Mitteilungstextc
- public static void showMessageInfoDialog(String msg)
msg
- Mitteilungstextpublic static void showMessageInfoDialog(String msg, String title)
title
- Mitteilungstitelmsg
- Mitteilungstextpublic static void showMessageInfoDialog(String msg, String title, Component c)
public static void showMessageWarningDialog(String msg)
msg
- Mitteilungstextpublic static void showMessageWarningDialog(String msg, Component c)
msg
- Mitteilungstextc
- public static void showMessageWarningDialog(String msg, String title)
title
- Mitteilungstitelmsg
- Mitteilungstextpublic static void showMessageWarningDialog(String msg, String title, Component c)
title
- Mitteilungstitelmsg
- Mitteilungstextc
- public static boolean showQuestionDialog(String msg)
msg
- Text der Fragepublic static Boolean showQuestionWithCancelDialog(String msg)
msg
- Text der Fragepublic static Boolean showQuestionWithCancelDialog(String msg, Component c)
msg
- Text der Fragec
- aufrufende Komponentepublic static org.w3c.tidy.Tidy tidy()
public static BufferedImage toBufferedImage(Image img)
public static javax.mail.internet.InternetAddress toIdnInternetAddress(javax.mail.internet.InternetAddress address)
public static String toPattern(String value)
value
- Der umzuwandelnde Textpublic static void unzip(File zipFile, File destinationDirectory) throws IOException
IOException
public static String wrapAndIndentString(String original, String indent, int width)
original
- the original string to wrapindent
- indentationwidth
- the maximum width of linespublic static List<String> wrapStringToArray(String original, int width, BreakIterator breakIterator, boolean removeNewLines)
original
- the original string to wrapwidth
- the maximum width of linesbreakIterator
- breaks original to chars, words, sentences, depending on what instance you provide.removeNewLines
- if true
, any newlines in the original string are ignoredpublic static void writeFileToStream(File file, OutputStream out) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void writeURLToStream(URL url, OutputStream out) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static void writeStreamToFile(InputStream in, File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2015 OpenEstate. All rights reserved.