public final class TuttiUIUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
EARTH_RADIUS |
| Modifier and Type | Method and Description |
|---|---|
static File |
chooseDirectory(Component parent,
String title,
String buttonLabel)
Choisir un répertoire via un sélecteur graphique de fichiers.
|
static File |
chooseFile(Component parent,
String title,
String buttonLabel,
String... filters)
Choisir un fichier via un sélecteur graphique de fichiers.
|
static void |
closeBean(org.jdesktop.beans.AbstractBean bean) |
static void |
closeUI(jaxx.runtime.JAXXObject ui) |
static int |
computeDistanceInMeters(Float startLatitude,
Float startLongitude,
Float endLatitude,
Float endLongitude) |
static DecimalFormat |
getDecimalFormat(int minDecimal,
int maxDecimal) |
static DecimalFormatSymbols |
getDecimalFormatSymbols() |
static Desktop |
getDesktopForBrowse() |
static Desktop |
getDesktopForMail() |
static String |
getDistanceInMilles(Float distance) |
static Object |
getProperty(Object bean,
String property) |
static String |
getWeightStringValue(Float weight) |
static void |
mail(String subject,
String body) |
static org.jdesktop.swingx.decorator.Highlighter |
newBackgroundColorHighlighter(org.jdesktop.swingx.decorator.HighlightPredicate predicate,
Color color) |
static org.jdesktop.swingx.decorator.Highlighter |
newForegroundColorHighlighter(org.jdesktop.swingx.decorator.HighlightPredicate predicate,
Color color) |
static void |
openLink(URI uri) |
static void |
openLink(URL url) |
static File |
saveFile(String filename,
Component parent,
String title,
String buttonLabel,
String... filters)
Sauver un fichier via un sélecteur graphique de fichiers.
|
static void |
setProperty(Object bean,
String property,
Object value) |
static void |
showSuccessMessage(Component ui,
String title,
String message) |
static void |
tryToConnectToUpdateUrl(String url,
String i18nKey) |
public static final double EARTH_RADIUS
public static File chooseFile(Component parent, String title, String buttonLabel, String... filters)
parent - le component swing appelant le controletitle - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationfilters - les filtres + descriptions sur le sélecteur de
fichierspublic static File saveFile(String filename, Component parent, String title, String buttonLabel, String... filters)
parent - le component swing appelant le controletitle - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationfilters - les filtres + descriptions sur le sélecteur de
fichierspublic static File chooseDirectory(Component parent, String title, String buttonLabel)
parent - le component swing appelant le controletitle - le titre de la boite de dialogue de sléectionbuttonLabel - le label de l'action d'acceptationpublic static void showSuccessMessage(Component ui, String title, String message)
public static org.jdesktop.swingx.decorator.Highlighter newBackgroundColorHighlighter(org.jdesktop.swingx.decorator.HighlightPredicate predicate,
Color color)
public static org.jdesktop.swingx.decorator.Highlighter newForegroundColorHighlighter(org.jdesktop.swingx.decorator.HighlightPredicate predicate,
Color color)
public static int computeDistanceInMeters(Float startLatitude, Float startLongitude, Float endLatitude, Float endLongitude)
public static DecimalFormatSymbols getDecimalFormatSymbols()
public static DecimalFormat getDecimalFormat(int minDecimal, int maxDecimal)
public static void openLink(URL url)
public static Desktop getDesktopForBrowse()
public static void openLink(URI uri)
public static Desktop getDesktopForMail()
public static void closeBean(org.jdesktop.beans.AbstractBean bean)
public static void closeUI(jaxx.runtime.JAXXObject ui)
Copyright © 2012–2013 Ifremer. All rights reserved.