Package jmri.util
@DefaultAnnotation({})
package jmri.util
Contains various utilities classes that are
useful across the entire
JMRI library structure.
Please put new classes into appropriate
subpackage, i.e. for jmri.util.swing for Swing/AWT related utilities, etc.
The jmri.util.com package contains several sets of
imported code.
-
ClassDescriptionSwing action that defers class loading until invoked.This is an updated version with enhancements made by Daniel Migowski, Andre Bogus, and David KoelleUseful array methods.Used to intercept inputs and to display a busy cursor during reads and writes.Listen for all events that our components are likely to be interested in.A collection of utilities related to colors.Compare values.Common utility method for returning the System Connection Name from the System Name PrefixCommon utility methods for working with CVsCommon utility methods for working with Calendar and Date objects.Simple TransferHandler that overwrites the text in a JTextField component.Simple TransferHandler that imports and exports Strings into JTable cells.Allow the user to configure properties that needs to be setup very early when JMRI starts, for example before Swing starts up.Common utility methods for working with Files.The types of locations to use when falling back on default locations in
FileUtil.findURI(java.lang.String, jmri.util.FileUtil.Location, java.lang.String...).PropertyChangeEvents for properties that are Profile-specific use a Property to enclose both the Profile and the value of the property.Support theFileUtilstatic API while providingPropertyChangeSupportfor listening to changes in the paths.Print a Java system variable from the command line.Common utility methods for displaying JMRI help pages.Preferences for HelpUtilPreferences panel for HelpUtilMakes a workaround for standardPipedOutputStreamwait.Common utility methods for Internationalization (I18N) and Localization (L12N) in the defaultLocale.Provide anIterableinterface for an EnumerationThis class attempts to retrieve the screen insets for all operating systems.JFrame extended for common JMRI use.Represents the dimensions of an attached screen/displayDefault form of action to create an object that's from a child class of JmriJFrame.Entity Resolver to locate JMRI DTDs in the local space.Return a content-less DTDJTree subclass that supports a popup menu.Comparator for LocoAddress objects.Basic utilities for logging special messages.Useful math methods.A class that provides scrolling capabilities to a long menu dropdown or popup menu.A Visitor class for installing a MouseInputAdapter on a container and all of its subcomponents.Sends multi-part HTTP POST requests to a web serverNamedBeanComparator<B extends NamedBean>Comparator for JMRI NamedBeans via their System Names.NamedBeanExpectedState<T extends NamedBean>Retain a NamedBean and its expected state.Retain a NamedBean and its expected value (called a state in this class).Comparator for JMRI NamedBeanHandle of NamedBeans via their System Names.NamedBeanPreferNumericComparator<B extends NamedBean>Compare two NamedBeans using thePreferNumericComparatoragainstNamedBean.getSystemName()for each NamedBean.NamedBeanUserNameComparator<B extends NamedBean>Comparator for JMRI NamedBeans via their User Names.File filter to suppress zip file archives.An ArrayList that SpotBugs understands will never contain null elements.Propertiesimplementation that enumerates properties sorted by key.PhysicalLocation Represents a physical location on the layout in 3D space.Provides a Swing component to show and/or edit a PhysicalLocation This file is part of JMRI.Small service class to read characters from a pipe and post them to a JTextArea for display.Position a Window relative to a component in another window so as to not obscure a component in that window.Class used to provide a mapping between port numbers and 'friendly' names, aimed at users of Microsoft Windows.Perform an comparison usingAlphanumComparator, followed up with a standard String comparison ifAlphanumComparator.compare(String, String)returns 0.Gathers PropertyChangeEvents that might occur in overlapping threads and at overlapping times, presenting them as requested.A collection of utilities related to prompting for valuesCommon utility methods for working with Strings.Common utility methods for determining which type of operating system is in use.Utilities for handling JMRI's threading conventions.Interface for use in ThreadingUtil's lambda interfacesInterface for use in ThreadingUtil's lambda interfacesInterface for use in ThreadingUtil's lambda interfacesUnits for timer classes.Common utility methods for working with (@link java.util.Timer)Converts between java types, for example String to Double and double to boolean.Unzip a local file or URL to into a specified directoryA helper Panel for input-validating input boxes.Common utility class for handling the "spurious wakeup from wait()" problem documented inObject.wait(long).Creates a menu showing all open windows and allows to bring one in frontFilter for filenames ending in .xml.