public final class TuttiUIUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
askQuestion(Component ui,
String message) |
static File |
chooseDirectory(Component parent,
String title,
String buttonLabel,
File incoming)
Choisir un répertoire via un sélecteur graphique de fichiers.
|
static File |
chooseFile(Component parent,
String title,
String buttonLabel,
File incoming,
String... filters)
Choisir un fichier via un sélecteur graphique de fichiers.
|
static int |
computeDistanceInMeters(Float startLatitude,
Float startLongitude,
Float endLatitude,
Float endLongitude) |
static Cruise |
getCruise(TuttiUIContext context) |
static String |
getDuration(Date startDate,
Date endDate) |
static Program |
getProgram(TuttiUIContext context) |
static Object |
getProperty(Object bean,
String property) |
static TuttiProtocol |
getProtocol(TuttiUIContext context) |
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 |
setCruise(TuttiUIContext context,
Cruise value) |
static void |
setProgram(TuttiUIContext context,
Program value) |
static void |
setProperty(Object bean,
String property,
Object value) |
static void |
setProtocol(TuttiUIContext context,
TuttiProtocol value) |
static void |
showErrorMessage(Component ui,
String message) |
static void |
showSuccessMessage(Component ui,
String message) |
static void |
updateBusyState(Component ui,
boolean busy) |
public static Program getProgram(TuttiUIContext context)
public static Cruise getCruise(TuttiUIContext context)
public static TuttiProtocol getProtocol(TuttiUIContext context)
public static void setProgram(TuttiUIContext context, Program value)
public static void setCruise(TuttiUIContext context, Cruise value)
public static void setProtocol(TuttiUIContext context, TuttiProtocol value)
public static File chooseFile(Component parent, String title, String buttonLabel, File incoming, String... filters)
parent - le component swing appelant le controletitle - le titre du dialogue de sélectionbuttonLabel - le label du boutton d'acceptationincoming - le fichier de base à utilierfilters - les filtres + descriptions sur le sélecteur de
fichierspublic static File chooseDirectory(Component parent, String title, String buttonLabel, File incoming)
parent - le component swing appelant le controletitle - le titre de la boite de dialogue de sléectionbuttonLabel - le label de l'action d'acceptationincoming - le fichier de base à utiliserpublic static void updateBusyState(Component ui, boolean busy)
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)
Copyright © 2012-2013 Ifremer. All Rights Reserved.