public final class TuttiUIUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TuttiUIUtil.ShowSpeciesDecoratorPopupListener |
protected static class |
TuttiUIUtil.SpeciesDecoratorListener<R extends Serializable,T extends AbstractTuttiTableModel<R>> |
| Modifier and Type | Field and Description |
|---|---|
static double |
EARTH_RADIUS |
static String |
SPECIES_DECORATOR |
static String |
SPECIES_DECORATOR_INDEX |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeDistanceInMeters(Float startLatitude,
Float startLongitude,
Float endLatitude,
Float endLongitude) |
static void |
doSelectCell(JTable table,
int rowIndex,
int columnIndex) |
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 float |
getRoundedLengthStep(float lengthStep,
boolean aroundUp) |
static <E> TuttiDecorator<E> |
getSpeciesColumnDecorator(org.jdesktop.swingx.table.TableColumnExt tableColumn) |
static String |
getWeightStringValue(Float weight) |
static <R extends Serializable,T extends AbstractTuttiTableModel<R>> |
installSpeciesColumnComparatorPopup(org.jdesktop.swingx.JXTable table,
org.jdesktop.swingx.table.TableColumnExt speciesColumn,
String... tips) |
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 void |
selectFirstCellOnFirstRowAndStopEditing(org.jdesktop.swingx.JXTable table) |
static void |
selectFirstCellOnLastRow(org.jdesktop.swingx.JXTable table) |
static void |
selectFirstCellOnRow(org.jdesktop.swingx.JXTable table,
int row,
boolean stopEdit) |
static void |
setProperty(Object bean,
String property,
Object value) |
static void |
tryToConnectToUpdateUrl(String urlAsString,
String badUrlFormatI18nKey,
String notReachI18nKey,
String notFoundI18nKey) |
public static final String SPECIES_DECORATOR
public static final String SPECIES_DECORATOR_INDEX
public static final double EARTH_RADIUS
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 tryToConnectToUpdateUrl(String urlAsString, String badUrlFormatI18nKey, String notReachI18nKey, String notFoundI18nKey)
public static float getRoundedLengthStep(float lengthStep,
boolean aroundUp)
public static <E> TuttiDecorator<E> getSpeciesColumnDecorator(org.jdesktop.swingx.table.TableColumnExt tableColumn)
public static <R extends Serializable,T extends AbstractTuttiTableModel<R>> void installSpeciesColumnComparatorPopup(org.jdesktop.swingx.JXTable table, org.jdesktop.swingx.table.TableColumnExt speciesColumn, String... tips)
public static void selectFirstCellOnFirstRowAndStopEditing(org.jdesktop.swingx.JXTable table)
public static void selectFirstCellOnLastRow(org.jdesktop.swingx.JXTable table)
public static void selectFirstCellOnRow(org.jdesktop.swingx.JXTable table,
int row,
boolean stopEdit)
public static void doSelectCell(JTable table, int rowIndex, int columnIndex)
Copyright © 2012–2013 Ifremer. All rights reserved.