public final class DialogModifier extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasInvalidNumber(Iterable<?> textFields)
Check all the numeric text fields in a dialog and return false if any of
them cannot be parsed into a number.
|
static void |
registerMacroValues(GenericDialog gd,
Component[] comps)
Go through all values in a GenericDialog's Components and call the
appropriate get method.
|
static void |
replaceUnitString(GenericDialog gd,
CharSequence oldUnits,
CharSequence newUnits)
Replace the unit string to the right of all numeric textboxes in a
GenericDialog
|
public static boolean hasInvalidNumber(Iterable<?> textFields)
textFields - e.g. result of GenericDialog.getNumericFields();public static void registerMacroValues(GenericDialog gd, Component[] comps)
gd - the dialog windowcomps - a list of components in the dialog.public static void replaceUnitString(GenericDialog gd, CharSequence oldUnits, CharSequence newUnits)
gd - the dialog windowoldUnits - original unit stringnewUnits - new unit stringCopyright © 2018–2022 BoneJ. All rights reserved.