StocksMonitor 1.7.0
A B C D E F G H I L M N O P Q R S T U V Z 

A

AboutAction - Class in hirondelle.stocks.help
Display a modal dialog, centered on the main window, which contains general information about both this application and the system on which it's running.
AboutAction(JFrame) - Constructor for class AboutAction
Constructor.
actionPerformed(ActionEvent) - Method in class ExportAction
Allow the user to choose a destination file, then write the content of all saved Portfolio objects to this file as XML.
actionPerformed(ActionEvent) - Method in class ImportAction
Allow the user to select a single file, and attempt to use its contents to replace all currently stored Portfolio objects.
actionPerformed(ActionEvent) - Method in class FileCloseAction
 
actionPerformed(ActionEvent) - Method in class FileDeleteAction
 
actionPerformed(ActionEvent) - Method in class FileExitAction
 
actionPerformed(ActionEvent) - Method in class FileNewAction
Present dialog for the input of a name for the new Portfolio.
actionPerformed(ActionEvent) - Method in class FileOpenAction
 
actionPerformed(ActionEvent) - Method in class FileSaveAction
 
actionPerformed(ActionEvent) - Method in class FileSaveAsAction
Allow user to input a new name for the current portfolio.
actionPerformed(ActionEvent) - Method in class AboutAction
 
actionPerformed(ActionEvent) - Method in class HelpAction
 
actionPerformed(ActionEvent) - Method in class EditPortfolioAction
Display a modal dialog, centered on the main window, to allow the user to edit their portfolio of stocks.
actionPerformed(ActionEvent) - Method in class EditUserPreferencesAction
Display the user preferences dialog.
actionPerformed(ActionEvent) - Method in class FetchQuotesAction
Fetch quotes from the web for the CurrentPortfolio.
addSimpleDisplayField(Container, String, Object, GridBagConstraints, boolean) - Static method in class UiUtil
Create a pair of JLabel components, as is typically needed for display of a name-value pair.
addSimpleDisplayFields(Container, Map<String, String>) - Static method in class UiUtil
Present a number of read-only items to the user as a vertical listing of JLabel name-value pairs.
addSimpleEntryField(Container, String, String, int, GridBagConstraints, String) - Static method in class UiUtil
Create a pair of components, a JLabel and an associated JTextField, as is typically used for user input.
addStock() - Method in class StockEditor
Return the Stock representing a new item which the user has input, or null if the user cancels the dialog.
addVerticalGridGlue(JPanel, int) - Static method in class UiUtil
Adds "glue" (an empty component with desired resizing behavior) to the bottom row of a GridBagLayout of components.
alignAllX(Container, UiUtil.AlignX) - Static method in class UiUtil
Imposes a uniform horizontal alignment on all items in a container.
alignAllY(Container, UiUtil.AlignY) - Static method in class UiUtil
Imposes a uniform vertical alignment on all items in a container.
APP_NAME - Static variable in class Consts
 
APP_VERSION - Static variable in class Consts
 
AQUA - Static variable in class Theme
Much like Theme.DEFAULT, but uses some blue-green colors.
areEqual(boolean, boolean) - Static method in class EqualsUtil
 
areEqual(char, char) - Static method in class EqualsUtil
 
areEqual(long, long) - Static method in class EqualsUtil
 
areEqual(float, float) - Static method in class EqualsUtil
 
areEqual(double, double) - Static method in class EqualsUtil
 
areEqual(Object, Object) - Static method in class EqualsUtil
Possibly-null object field.
Args - Class in hirondelle.stocks.util
Utility methods for common argument validations.
Args() - Constructor for class Args
 
asLines(String, Class<?>) - Static method in class FileUtil
Return a whole text file as an unmodifiable list of lines.
asString(String, Class<?>) - Static method in class FileUtil
Return a whole text file as a single String.
attachToRootLogger() - Static method in class OptionPaneExceptionHandler
Add a OptionPaneExceptionHandler to the root Logger.
AUTHOR - Static variable in class Consts
 

B

beep() - Static method in class UiUtil
Make the sytem emit a beep.

C

centerAndShow(Window) - Static method in class UiUtil
pack, center, and show a window on the screen.
centerOnParentAndShow(Window) - Static method in class UiUtil
A window is packed, centered with respect to a parent, and then shown.
changeStock(Stock) - Method in class StockEditor
Return the possibly-edited version of aOldStock, representing the desired changes, or null if the user cancels the dialog.
checkForContent(String) - Static method in class Args
Throw an IllegalArgumentException if aText does not satisfy Util.textHasContent(java.lang.String).
checkForEmpty(Collection<Object>) - Static method in class Args
Throw an IllegalArgumentException only if aCollection.isEmpty returns true.
checkForNull(Object) - Static method in class Args
If aObject is null, throw a NullPointerException.
checkForRange(int, int, int) - Static method in class Args
Throw an IllegalArgumentException if Util.isInRange(int, int, int) returns false.
clear() - Method in class CurrentPortfolio
Revert to an untitled Portfolio which does not need a save.
close() - Method in class OptionPaneExceptionHandler
No-operation.
ColorTip - Class in hirondelle.stocks.quotes
Calls user's attention to an aspect of the GUI (much like a ToolTip) by changing the background color of a component (typically a JLabel) for a few seconds; the component will always revert to its original background color after a short time has passed.
ColorTip(int, int, JComponent, Color) - Constructor for class ColorTip
Constructor.
COMMA - Static variable in class Consts
 
compareTo(Exchange) - Method in class Exchange
 
compareTo(Stock) - Method in class Stock
 
Consts - Class in hirondelle.stocks.util
Collected constants of very general utility.
CurrentPortfolio - Class in hirondelle.stocks.portfolio
The central abstraction of this package, representing the current selection of stocks of interest to the end user (a Portfolio).
CurrentPortfolio(Portfolio, CurrentPortfolio.NeedsSave) - Constructor for class CurrentPortfolio
Constructor.
CurrentPortfolio.NeedsSave - Enum in hirondelle.stocks.portfolio
Enumeration for the two states of aNeedsSave passed to the constructor.

D

DataAccessException - Exception in hirondelle.stocks.util
Hides low-level exceptions in a higher-level abstraction, to hide details regarding the data storage mechanism.
DataAccessException() - Constructor for exception DataAccessException
 
DataAccessException(String) - Constructor for exception DataAccessException
 
DataAccessException(String, Throwable) - Constructor for exception DataAccessException
 
DataAccessException(Throwable) - Constructor for exception DataAccessException
 
DEFAULT - Static variable in class Theme
A theme identical to the default Java look-and-feel, but whose name is "Default" instead of the cryptic "Steel", and which provides a toString method (required if Theme objects passed to a combo box).
delete(Portfolio) - Method in class PortfolioDAO
Remove a stored Portfolio, and leave all others intact.
deleteAll() - Method in class PortfolioDAO
Remove all Portfolios, and start from scratch (for development purposes only).
dispose() - Method in class StandardEditor
Close the editor dialog.
DOUBLE_QUOTE - Static variable in class Consts
 

E

EditPortfolioAction - Class in hirondelle.stocks.portfolio
Present dialog to edit the list of Stock objects in the CurrentPortfolio.
EditPortfolioAction(CurrentPortfolio, JFrame) - Constructor for class EditPortfolioAction
Constructor.
EditSaver - Class in hirondelle.stocks.portfolio
Allow the user the choice of saving edits to the CurrentPortfolio.
EditSaver(Action, Action, JFrame) - Constructor for class EditSaver
Constructor.
EditUserPreferencesAction - Class in hirondelle.stocks.preferences
Present dialog to allow update of user preferences.
EditUserPreferencesAction(JFrame, List<PreferencesEditor>) - Constructor for class EditUserPreferencesAction
Constructor.
ELLIPSIS - Static variable in class Consts
 
EMPTY_STRING - Static variable in class Consts
 
EmptyIcon - Class in hirondelle.stocks.util.ui
Represents a square icon having no graphical content.
EmptyIcon(int) - Constructor for class EmptyIcon
EmptyIcon objects are always square, having identical height and width.
equalizeSizes(List<JComponent>) - Static method in class UiUtil
Sets the items in aComponents to the same size.
equals(Object) - Method in class Portfolio
 
equals(Object) - Method in class Quote
 
equals(Object) - Method in class Stock
 
equals(Object) - Method in class SortBy
 
EqualsUtil - Class in hirondelle.stocks.util
Collected methods which allow easy implementation of equals.
EqualsUtil() - Constructor for class EqualsUtil
 
ERROR_MESSAGE_START - Static variable in class RegexInputVerifier
The text which begins all error messages.
Exchange - Class in hirondelle.stocks.quotes
Enumeration for all exchanges used by the Yahoo quote system.
ExportAction - Class in hirondelle.stocks.export
Present a dialog to allow user to save all Portfolio data as a single text file.
ExportAction(JFrame) - Constructor for class ExportAction
Constructor.
exportXML(File) - Method in class PortfolioDAO
Place the content of all Portfolios in a single text file, in the format defined by Preferences.exportSubtree(java.io.OutputStream).

F

fetch(String) - Method in class PortfolioDAO
Return the Portfolio whose unique id is aPortfolioName.
fetchAllPortfolioNames() - Method in class PortfolioDAO
Return String objects, one for each stored Portfolio.
fetchDefaultPortfolio() - Method in class PortfolioDAO
Used at startup, and returns the Portfolio which was current when the application was last closed.
FetchQuotesAction - Class in hirondelle.stocks.quotes
Fetch current quote data for the CurrentPortfolio from a data source on the web.
FetchQuotesAction(CurrentPortfolio, QuoteTablePreferencesEditor, QuoteTable, SummaryView) - Constructor for class FetchQuotesAction
Constructor.
FILE_SEPARATOR - Static variable in class Consts
 
FileCloseAction - Class in hirondelle.stocks.file
Close the CurrentPortfolio, and display to the user an empty untitled portfolio, which does not need a save.
FileCloseAction(CurrentPortfolio, EditSaver) - Constructor for class FileCloseAction
Constructor.
FileDeleteAction - Class in hirondelle.stocks.file
Delete the CurrentPortfolio from storage, and display an untitled portfolio to the user, which does not need a save.
FileDeleteAction(CurrentPortfolio, JFrame) - Constructor for class FileDeleteAction
Constructor.
FileExitAction - Class in hirondelle.stocks.file
Close the application.
FileExitAction(CurrentPortfolio, EditSaver) - Constructor for class FileExitAction
Constructor.
FileNewAction - Class in hirondelle.stocks.file
Create a new Portfolio which has a unique name, is placed in storage, and is displayed to the user as the (empty) CurrentPortfolio, and which does not need a save.
FileNewAction(CurrentPortfolio, JFrame, EditSaver) - Constructor for class FileNewAction
Constructor.
FileOpenAction - Class in hirondelle.stocks.file
Present an alphabetical list of Portfolio names, from which the user may choose one, which is then presented to the user as the CurrentPortfolio.
FileOpenAction(CurrentPortfolio, JFrame, EditSaver) - Constructor for class FileOpenAction
Constructor.
FileSaveAction - Class in hirondelle.stocks.file
Save the edits performed on the CurrentPortfolio, and update the display to show that the CurrentPortfolio no longer needs a save.
FileSaveAction(CurrentPortfolio) - Constructor for class FileSaveAction
Constructor.
FileSaveAsAction - Class in hirondelle.stocks.file
Store the CurrentPortfolio under a new unique name, and display it to the user as the CurrentPortfolio, which does not need a save, and which reflects the new name just entered.
FileSaveAsAction(CurrentPortfolio, JFrame) - Constructor for class FileSaveAsAction
Constructor.
FileUtil - Class in hirondelle.stocks.util
Collected methods to ease manipulation of text files.
FileUtil() - Constructor for class FileUtil
 
FLOATING_POINT - Static variable in class RegexInputVerifier
Convenience object for input of decimals numbers, eg -23.23321, 100.25.
flush() - Method in class OptionPaneExceptionHandler
No-operation.

G

GeneralLookPreferencesEditor - Class in hirondelle.stocks.preferences
Allows editing of user preferences related to the general appearance of the application, such as font size, toolbar icon size, theme, and the like.
GeneralLookPreferencesEditor() - Constructor for class GeneralLookPreferencesEditor
 
getAveragePrice() - Method in class Stock
 
getBookValue(Collection<Quote>) - Method in class Portfolio
Return the cost of acquisition of all items in thisPortfolio which also appear in aQuotes.
getBookValue() - Method in class Stock
getChange() - Method in class Quote
Return the aChange passed to the constructor.
getColumn() - Method in class SortBy
Return the column index identifying the sort, or SortBy.NO_SELECTED_COLUMN in the case of SortBy.NONE.
getColumnOrder() - Method in class QuoteTablePreferencesEditor
Return Set of QuoteField objects, whose iteration order reflects the user's preferred column order.
getCommandColumn(List<JComponent>) - Static method in class UiUtil
Make a vertical row of buttons of equal size, whch are equally spaced, and aligned on the right.
getCommandRow(List<JComponent>) - Static method in class UiUtil
Make a horizontal row of buttons of equal size, whch are equally spaced, and aligned on the right.
getConstraints(int, int) - Static method in class UiUtil
Return a set of constraints with convenient default values.
getConstraints(int, int, int, int) - Static method in class UiUtil
Return UiUtil.getConstraints(int, int), with the addition of setting gridwidth to aWidth, and setting gridheight to aHeight.
getCurrentValue(Collection<Quote>) - Method in class Portfolio
Return the current worth of all items in the Portfolio which also appear in aQuotes.
getCurrentValue() - Method in class Quote
Return the product of Stock.getNumShares() and Quote.getPrice().
getDialogTitle(String) - Static method in class UiUtil
Return text which conforms to the Look and Feel Design Guidelines for the title of a dialog : the application name, a colon, then the name of the specific dialog.
getDimensionFromPercent(int, int) - Static method in class UiUtil
Return a Dimension whose size is defined not in terms of pixels, but in terms of a given percent of the screen's width and height.
getEditorUI() - Method in class StandardEditor
Return the GUI which allows the user to manipulate the business objects related to this dialog; this GUI will be placed above the OK and Cancel buttons, in a standard manner.
getEmptyIcon() - Static method in class UiUtil
Return a square icon which paints nothing, and whose dimensions correspond to the user preference for icon size.
getExchange() - Method in class Stock
 
getIconHeight() - Method in class EmptyIcon
Return the icon size (width is same as height).
getIconWidth() - Method in class EmptyIcon
Return the icon size (width is same as height).
getImageIcon(String) - Static method in class UiUtil
Return an ImageIcon using its String identifier.
getImageIcon(String, Class<?>) - Static method in class UiUtil
Return an ImageIcon using its String identifier, relative to a given class.
getItems() - Method in class OrderEditor
Return the aItems passed to OrderEditor.setItems(java.util.Set<java.lang.Object>) (having the same size and content as the original), but in a Set whose iteration order matches the order of items as currently presented to the user.
getListFromString(String) - Static method in class Util
Convert a Collection represented in the form of AbstractCollection.toString into a List of String objects.
getLocalizedInteger(Number) - Static method in class UiUtil
Return a String, suitable for presentation to the end user, representing an integral number with no decimal places, using the default locale.
getLocalizedPercent(Number) - Static method in class UiUtil
Return a String, suitable for presentation to the end user, representing a percentage having two decimal places, using the default locale.
getLocalizedTime(Date) - Static method in class UiUtil
Return a String, suitable for presentation to the end user, representing a date in DateFormat.SHORT and the default locale.
getLogConfigFile() - Method in class LoggingPreferencesEditor
Return the File which is currently being used by this application to configure the Java Logging API.
getLogger(Class<?>) - Static method in class Util
Return a Logger whose name follows a specific naming convention.
getMnemonic() - Method in class GeneralLookPreferencesEditor
 
getMnemonic() - Method in class LoggingPreferencesEditor
 
getMnemonic() - Method in interface PreferencesEditor
The mnemonic to appear in the tab name.
getMnemonic() - Method in class QuoteTablePreferencesEditor
 
getName() - Method in class CurrentPortfolio
Return the name of this CurrentPortfolio.
getName() - Method in class Portfolio
Return the unique name of this Portfolio.
getName() - Method in class Stock
 
getNeedsSave() - Method in class CurrentPortfolio
Return true only if this CurrentPortfolio has unsaved edits.
getNumShares() - Method in class Stock
 
getOrder() - Method in class SortBy
Return the sense of the sort, either ascending or descending.
getPercentageProfit(Collection<Quote>) - Method in class Portfolio
getPercentChange() - Method in class Quote
Return the percentage change between the opening price and the current price; if Quote.getPrice() returns 0, then this method returns 0.
getPercentProfit() - Method in class Quote
Return Quote.getProfit() divided by Stock.getBookValue(), multiplied by 100; if Stock.getBookValue() or Quote.getPrice() returns 0, then this method returns 0.
getPortfolio() - Method in class CurrentPortfolio
Return the Portfolio of current interest to the user.
getPrice() - Method in class Quote
Return the aPrice passed to the constructor.
getProfit(Collection<Quote>) - Method in class Portfolio
getProfit() - Method in class Quote
getQuotes() - Method in class Portfolio
Return Quote objects, one for each Stock in this Portfolio.
getQuotes() - Method in class QuotesDAO
Fetch current stock price data from the web.
getRowHeight() - Method in class QuoteTablePreferencesEditor
Return the height of each row in pixels, in the range 16..32 (inclusive).
getSelectedFilter() - Method in class QuoteFilterFactory
Return the QuoteFilter attached to the currently selected item.
getSortBy() - Method in class TableSortIndicator
Return the identity of column having the primary sort, and the direction of its sort.
getSorter(QuoteField) - Static method in class QuoteSorterFactory
 
getSortField() - Method in class QuoteTablePreferencesEditor
Return a field identifier, but no ascending-descending indicator.
getStandardBorder() - Static method in class UiUtil
Return a border of dimensions recommended by the Java Look and Feel Design Guidelines, suitable for many common cases.
getStandardTextArea(String) - Static method in class UiUtil
An alternative to multi-line labels, for the presentation of several lines of text, and for which the line breaks are determined solely by the widget.
getStandardTextAreaHardNewLines(String) - Static method in class UiUtil
An alternative to multi-line labels, for the presentation of several lines of text, and for which line breaks are determined solely by aText, and not by the widget.
getStock() - Method in class Quote
Return the aStock passed to the constructor.
getStocks() - Method in class CurrentPortfolio
Return the Stock objects in this CurrentPortfolio.
getStocks() - Method in class Portfolio
Return the Stock objects contained in this Portfolio.
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class RenderRedGreen
 
getTheme() - Method in class GeneralLookPreferencesEditor
Return the stored user preference for the theme to be applied to the Java look-and-feel.
getTicker() - Method in class Stock
 
getTickerSuffix() - Method in class Exchange
Return the suffix representing the Exchange (excluding dot).
getTitle() - Method in class GeneralLookPreferencesEditor
 
getTitle() - Method in class LoggingPreferencesEditor
 
getTitle() - Method in interface PreferencesEditor
The name of the tab in which this PreferencesEditor will be placed.
getTitle() - Method in class QuoteTablePreferencesEditor
 
getUI() - Method in class GeneralLookPreferencesEditor
 
getUI() - Method in class LoggingPreferencesEditor
 
getUI() - Method in interface PreferencesEditor
Return a GUI component which allows the user to edit this set of related preferences.
getUI() - Method in class QuoteTablePreferencesEditor
 
getUntitledPortfolio() - Static method in class Portfolio
Return a Portfolio which contains no stocks, and whose title is an empty String.
getUpdateFrequency() - Method in class QuoteTablePreferencesEditor
Return the number of minutes to wait between periodic updates, in the range 1..60.
getValue() - Method in enum CurrentPortfolio.NeedsSave
 
getValue() - Method in enum RegexInputVerifier.UseToolTip
 
getValue() - Method in enum QuotesDAO.UseMonitor
 
getValue() - Method in enum StandardEditor.CloseAction
 
getValue() - Method in enum UiUtil.AlignX
 
getValue() - Method in enum UiUtil.AlignY
 

H

hash(int, boolean) - Static method in class HashCodeUtil
booleans.
hash(int, char) - Static method in class HashCodeUtil
chars.
hash(int, int) - Static method in class HashCodeUtil
ints.
hash(int, long) - Static method in class HashCodeUtil
longs.
hash(int, float) - Static method in class HashCodeUtil
floats.
hash(int, double) - Static method in class HashCodeUtil
doubles.
hash(int, Object) - Static method in class HashCodeUtil
Possibly-null Object fields.
hash(int, Object[]) - Static method in class HashCodeUtil
Arrays of Objects.
hash(int, boolean[]) - Static method in class HashCodeUtil
Arrays of booleans.
hash(int, char[]) - Static method in class HashCodeUtil
Arrays of chars.
hash(int, byte[]) - Static method in class HashCodeUtil
Arrays of bytes.
hash(int, short[]) - Static method in class HashCodeUtil
Arrays of shorts.
hash(int, int[]) - Static method in class HashCodeUtil
Arrays of integers.
hash(int, long[]) - Static method in class HashCodeUtil
Arrays of longs
hash(int, float[]) - Static method in class HashCodeUtil
Arrays of floats.
hash(int, double[]) - Static method in class HashCodeUtil
Arrays of doubles.
hashCode() - Method in class Portfolio
 
hashCode() - Method in class Quote
 
hashCode() - Method in class Stock
 
hashCode() - Method in class SortBy
 
HashCodeUtil - Class in hirondelle.stocks.util
Collected methods which allow easy implementation of hashCode.
HashCodeUtil() - Constructor for class HashCodeUtil
 
hasHorizontalLines() - Method in class QuoteTablePreferencesEditor
Return preference for the display of horizontal lines for each row.
hasLargeFont(MetalTheme) - Static method in class Theme
Return true if aTheme uses a larger font than the default; this is the case only for LARGE_FONT and LOW_VISION.
hasLargeIcons() - Method in class GeneralLookPreferencesEditor
Return the stored user preference for using large icons.
hasShowToolBar() - Method in class GeneralLookPreferencesEditor
Return the stored user preference for hiding or showing the toolbar.
hasVerticalLines() - Method in class QuoteTablePreferencesEditor
Return preference for the display of vertical lines for each column.
HelpAction - Class in hirondelle.stocks.help
Display the help system for the application.
HelpAction(JFrame, String, int, Icon, HelpAction.View) - Constructor for class HelpAction
Constructor.
HelpAction.View - Enum in hirondelle.stocks.help
Enumeration for the style of presentation of the the Help system.
hirondelle.stocks.export - package hirondelle.stocks.export
Import and export portfolios.
hirondelle.stocks.file - package hirondelle.stocks.file
File menu actions.
hirondelle.stocks.help - package hirondelle.stocks.help
Help menu actions.
hirondelle.stocks.main - package hirondelle.stocks.main
Launch point and main screen in the application.
hirondelle.stocks.portfolio - package hirondelle.stocks.portfolio
Edit and store portfolios.
hirondelle.stocks.preferences - package hirondelle.stocks.preferences
Edit user preferences.
hirondelle.stocks.quotes - package hirondelle.stocks.quotes
Fetch and display stock quotes.
hirondelle.stocks.table - package hirondelle.stocks.table
Table for listing, sorting, and filtering stock quotes.
hirondelle.stocks.util - package hirondelle.stocks.util
Utility classes.
hirondelle.stocks.util.ui - package hirondelle.stocks.util.ui
General utility classes related to Swing.

I

ImportAction - Class in hirondelle.stocks.export
Allows user to replace the all Portfolios used by this application with those defined in a single text file.
ImportAction(JFrame) - Constructor for class ImportAction
Constructor.
importXML(File) - Method in class PortfolioDAO
Replace all current Portfolios with the contents of a single XML file produced by PortfolioDAO.exportXML(java.io.File).
INTEGER - Static variable in class RegexInputVerifier
Convenience object for input of integers: ...-2,-1,0,1,2...
isAcceptable(Quote) - Method in class QuoteFilter
Defines the criteria by which aQuote is accepted or rejected by this filter.
isIndex() - Method in class Stock
Return true only if the ticker represents an index such as the Dow Jones or the Standard and Poor 500 , as opposed to a regular stock.
isInRange(int, int, int) - Static method in class Util
Return true only if aNumber is in the range aLow..aHigh (inclusive).
isUntitled() - Method in class CurrentPortfolio
Return true only if the current Portfolio has never been saved under a user-specified name, neither in this session, nor in any other.
isUntitled() - Method in class Portfolio
Return true only if the name of this Portfolio is an empty String.
isValidCandidateName(String) - Method in class PortfolioDAO
Return true only if aNewName has visible content and is not an element of PortfolioDAO.fetchAllPortfolioNames().
isValidInput(List<String>, String, String, Exchange, Integer, BigDecimal) - Static method in class Stock
Validate user input to a fine-grained level.
isZeroMoney(BigDecimal) - Static method in class Util
Return true only if aMoney equals Consts.ZERO_MONEY or Consts.ZERO_MONEY_WITH_DECIMAL.

L

LARGE_FONT - Static variable in class Theme
Differs from Theme.DEFAULT only in font sizes.
Launcher - Class in hirondelle.stocks.main
Launch the application using an older version of a splash screen.
Launcher() - Constructor for class Launcher
 
LoggingPreferencesEditor - Class in hirondelle.stocks.preferences
Refresh the logging config file used upon startup, through a call to LogManager.readConfiguration().
LoggingPreferencesEditor() - Constructor for class LoggingPreferencesEditor
 
LOW_VISION - Static variable in class Theme
Large fonts, and high contrast black and white colors.

M

main(String...) - Static method in class Launcher
Launch the application and display the main window.
main(String...) - Static method in class NewLauncher
Launch the application and display the main window.
main(String...) - Static method in class RegexInputVerifier
Developer test harness for verifying a regular expression, using a simple graphical interface and a RegexInputVerifier.
matchGuiToDefaultPreferences() - Method in class GeneralLookPreferencesEditor
 
matchGuiToDefaultPreferences() - Method in class LoggingPreferencesEditor
No-operation.
matchGuiToDefaultPreferences() - Method in interface PreferencesEditor
Reset the related preferences to their default values, but only as presented in the GUI, without affecting stored preference values.
matchGuiToDefaultPreferences() - Method in class QuoteTablePreferencesEditor
 
MAX_LABEL_LENGTH - Static variable in class UiConsts
Maximum length for some JLabels, beyond which the text will be truncated.
MILLISECONDS_PER_SECOND - Static variable in class Consts
 
MONEY - Static variable in class RegexInputVerifier
Convenience object for input of money values, eg -23, 100.25.
MONEY_DECIMAL_PLACES - Static variable in class Consts
 
MONEY_ROUNDING_STYLE - Static variable in class Consts
 

N

NEGATIVE - Static variable in class Consts
 
NEGATIVE_SIGN - Static variable in class Consts
 
NEW_LINE - Static variable in class Consts
 
NewLauncher - Class in hirondelle.stocks.main
Launch the application using a modern version of a splash screen.
NewLauncher() - Constructor for class NewLauncher
 
NO_KEYSTROKE_MASK - Static variable in class UiConsts
Symbolic name for absence of keystroke mask.
NO_SELECTED_COLUMN - Static variable in class SortBy
The special value of the column index used by SortBy.NONE.
noDefaultButton(JRootPane) - Static method in class UiUtil
Ensure that aRootPane has no default button associated with it.
NON_NEGATIVE_FLOATING_POINT - Static variable in class RegexInputVerifier
Convenience object for input of non-negative decimals numbers, eg 23.23321, 100.25.
NON_NEGATIVE_INTEGER - Static variable in class RegexInputVerifier
Convenience object for input of these integers: 0,1,2...
NON_NEGATIVE_MONEY - Static variable in class RegexInputVerifier
Convenience object for input of non-negative money values, eg 23, 100.25.
NONE - Static variable in class SortBy
A special SortBy which represents the absence of any sort.

O

okAction() - Method in class StandardEditor
The action taken when the user hits the OK button.
ONE - Static variable in class Consts
 
ONE_KILOBYTE - Static variable in class Consts
 
ONE_SPACE - Static variable in class UiConsts
 
OptionPaneExceptionHandler - Class in hirondelle.stocks.preferences
An implementation of a Java Logging API Handler which displays a short message to the user using a JOptionPane, and is intended only for Level.SEVERE messages.
OptionPaneExceptionHandler() - Constructor for class OptionPaneExceptionHandler
Construct this Handler with default settings.
OrderEditor - Class in hirondelle.stocks.preferences
Graphical component for changing the order of several items.
OrderEditor(String, String) - Constructor for class OrderEditor
Construct with text buttons.
OrderEditor(Icon, Icon) - Constructor for class OrderEditor
Construct with graphical icons.

P

paintIcon(Component, Graphics, int, int) - Method in class EmptyIcon
This implementation is empty, and paints nothing.
parseBoolean(String) - Static method in class Util
Return true if aBoolean equals "true" (ignore case), or false if aBoolean equals "false" (ignore case).
PATH_SEPARATOR - Static variable in class Consts
 
PERIOD - Static variable in class Consts
 
PLUS_SIGN - Static variable in class Consts
 
Portfolio - Class in hirondelle.stocks.portfolio
Represents a uniquely-named set of Stock objects, in which the user has an interest in monitoring.
Portfolio(String, Set<Stock>) - Constructor for class Portfolio
Constructor.
PortfolioDAO - Class in hirondelle.stocks.portfolio
Add, change, delete, and fetch Portfolio objects from the datastore.
PortfolioDAO() - Constructor for class PortfolioDAO
 
POSITIVE - Static variable in class Consts
 
PreferencesEditor - Interface in hirondelle.stocks.preferences
Allows editing of a set of related user preferences.
propertyChange(PropertyChangeEvent) - Method in class SummaryView
Update this SummaryView in response to selection by user of a new criterion for filtering items.
propertyChange(PropertyChangeEvent) - Method in class QuoteTable
Update the view in response to the selection by the end user of a new QuoteFilter for filtering displayed items.
publish(LogRecord) - Method in class OptionPaneExceptionHandler
If aLogRecord satisfies Handler.isLoggable(java.util.logging.LogRecord), then a short message is displayed to the user using a JOptionPane.

Q

Quote - Class in hirondelle.stocks.quotes
Data-centric, immutable value class which represents the dynamic price data attached to a Stock.
Quote(Stock, BigDecimal, BigDecimal) - Constructor for class Quote
Constructor.
QuoteField - Enum in hirondelle.stocks.table
Enumeration for the fields of the Quote class.
QuoteFilter - Class in hirondelle.stocks.table
Allows collections of Quote objects to be filtered according to a criterion defined by implementors.
QuoteFilter() - Constructor for class QuoteFilter
 
QuoteFilterFactory - Class in hirondelle.stocks.table
Graphical component which allows the end user to select a QuoteFilter, and informs its listeners of changes to this selection.
QuoteFilterFactory(CurrentPortfolio) - Constructor for class QuoteFilterFactory
Constructor.
QuotesDAO - Class in hirondelle.stocks.quotes
Given a set of stocks in a Portfolio, will retrieve current price information from the web, and return corresponding Quote objects.
QuotesDAO(QuotesDAO.UseMonitor, Collection<Stock>) - Constructor for class QuotesDAO
Constructor.
QuotesDAO.UseMonitor - Enum in hirondelle.stocks.quotes
Enumeration for the two states of aUseMonitor passed to the constructor.
QuoteSorterFactory - Class in hirondelle.stocks.table
Translates a QuoteField into a corresponding Comparator whose primary sort is on that field.
QuoteTable - Class in hirondelle.stocks.table
Graphical component which displays the latest quote information for the CurrentPortfolio.
QuoteTable(QuoteTablePreferencesEditor, QuoteFilterFactory) - Constructor for class QuoteTable
Constructor.
QuoteTablePreferencesEditor - Class in hirondelle.stocks.preferences
Graphical component allows editing of user preferences related to the QuoteTable, and programmatic read-only access to these preferences.
QuoteTablePreferencesEditor() - Constructor for class QuoteTablePreferencesEditor
 

R

RegexInputVerifier - Class in hirondelle.stocks.portfolio
Verifies user input into a JTextComponent versus a regular expression.
RegexInputVerifier(Pattern, RegexInputVerifier.UseToolTip) - Constructor for class RegexInputVerifier
Constructor.
RegexInputVerifier.UseToolTip - Enum in hirondelle.stocks.portfolio
Enumeration compels the caller to use a style which reads clearly.
RenderPrice - Class in hirondelle.stocks.table
Display a Number in a table cell in the format defined by NumberFormat.getCurrencyInstance(), and aligned to the right.
RenderPrice() - Constructor for class RenderPrice
 
RenderRedGreen - Class in hirondelle.stocks.table
Display a Number in a table cell as either red (for negative values) or green (for non-negative values), and aligned on the right.
RenderRedGreen() - Constructor for class RenderRedGreen
 
RenderStockName - Class in hirondelle.stocks.table
Display a Stock in a table cell by placing the full name in the cell, and by providing its Yahoo ticker (including suffix for the Exchange) as tooltip.
RenderStockName() - Constructor for class RenderStockName
 
requestFocus() - Method in class OrderEditor
Overridden in order to implement Label.setLabelFor.

S

save(CurrentPortfolio, ActionEvent) - Method in class EditSaver
Save aCurrentPortfolio, if necessary.
save(Portfolio) - Method in class PortfolioDAO
Save a Portfolio which already exists in storage.
saveAs(Portfolio) - Method in class PortfolioDAO
Save a Portfolio under a name which is not already known to the datastore.
saveAsDefault(Portfolio) - Method in class PortfolioDAO
Save aPortfolio as the one to be launched upon startup.
savePreferences() - Method in class GeneralLookPreferencesEditor
 
savePreferences() - Method in class LoggingPreferencesEditor
No-operation.
savePreferences() - Method in interface PreferencesEditor
Store the related preferences as they are currently displayed, overwriting all corresponding settings.
savePreferences() - Method in class QuoteTablePreferencesEditor
 
SECONDS_PER_MINUTE - Static variable in class Consts
 
SEED - Static variable in class HashCodeUtil
An initial value for a hashCode, to which is added contributions from fields.
SELECTED_FILTER - Static variable in class QuoteFilterFactory
Property name passed to listeners during PropertyChangeEvent.
setItems(Set<Object>) - Method in class OrderEditor
Display aItems in this component.
setName(String) - Method in class CurrentPortfolio
Change the name of this CurrentPortfolio.
setName(String) - Method in class Portfolio
Set the unique name of this Portfolio.
setNeedsSave(boolean) - Method in class CurrentPortfolio
Indicate that this CurrentPortfolio either does or does not have any unsaved edits.
setPortfolio(Portfolio) - Method in class CurrentPortfolio
Change the Portfolio of current interest to the user.
setQuotes(Collection<Quote>) - Method in class SummaryView
Display summary information for the CurrentPortfolio, adding any filtering according to the QuoteFilterFactory passed to the constructor.
setQuoteTable(List<Quote>) - Method in class QuoteTable
Update display of this table using new Quote objects.
setSortBy(SortBy) - Method in class TableSortIndicator
Change the sort programmatically, instead of through a user click.
setStocks(Set<Stock>) - Method in class CurrentPortfolio
Change the stocks in this CurrentPortfolio.
setStocks(Set<Stock>) - Method in class Portfolio
Replace the Stock objects contained in this Portfolio.
setValue(Object) - Method in class RenderPrice
 
setValue(Object) - Method in class RenderStockName
 
shouldYieldFocus(JComponent) - Method in class RegexInputVerifier
Always returns true, in this implementation, such that focus can always transfer to another component whenever the validation fails.
showDialog() - Method in class StandardEditor
Display this StandardEditor to the user.
showStatusMessage(String) - Method in class SummaryView
Present short text to the user indicating success or failure of the most recent FetchQuotesAction.
sift(Collection<Quote>) - Method in class QuoteFilter
Return a List which has the same iteration order as aQuotes, but which includes only those elements which satisfy QuoteFilter.isAcceptable(hirondelle.stocks.quotes.Quote).
SIMPLE_FIELD_WIDTH - Static variable in class UiConsts
Suggested width for a JTextField
SIZE_16 - Static variable in class EmptyIcon
Convenience object for small icons, whose size matches the size of small icons in Sun's graphics repository.
SIZE_24 - Static variable in class EmptyIcon
Convenience object for large icons, whose size matches the size of large icons in Sun's graphics repository.
SortBy - Class in hirondelle.stocks.table
Data-centric, immutable value class representing both the direction of a sort and the index of its column.
SortBy(SortOrder, int) - Constructor for class SortBy
Constructor.
SortOrder - Enum in hirondelle.stocks.table
Enumeration class for the two directions which a sort may take.
SPACE - Static variable in class Consts
 
splash() - Method in class SplashScreen
Show the splash screen to the end user.
SplashScreen - Class in hirondelle.stocks.main
Present a simple graphic to the user upon launch of the application, to provide a faster initial response than is possible with the main window.
SplashScreen(String) - Constructor for class SplashScreen
Construct using an image for the splash screen.
STANDARD_BORDER - Static variable in class UiConsts
 
StandardEditor - Class in hirondelle.stocks.util.ui
Abstract Base Class for a dialog with standard layout, buttons, and behavior.
StandardEditor(String, JFrame, StandardEditor.CloseAction) - Constructor for class StandardEditor
Constructor.
StandardEditor.CloseAction - Enum in hirondelle.stocks.util.ui
Forces calls to constructor to have greater clarity, by using an enumeration instead of integers.
start() - Method in class ColorTip
Temporarily change the background color of the component, without interfering with the user's control of the gui, and without preventing program termination.
startTimer() - Method in class FetchQuotesAction
Start an internal Timer, which in turn calls FetchQuotesAction.actionPerformed(ActionEvent).
Stock - Class in hirondelle.stocks.quotes
Data-centric, immutable value class which encapsulates items related to a stock.
Stock(String, String, Exchange, Integer, BigDecimal) - Constructor for class Stock
 
StockEditor - Class in hirondelle.stocks.portfolio
Dialog allows user to either add new a Stock to the CurrentPortfolio, or to change the parameters of a Stock which is already in the CurrentPortfolio.
StockEditor(JFrame) - Constructor for class StockEditor
Constructor.
StocksMonitorMainWindow - Class in hirondelle.stocks.main
Main window for this application.
StocksMonitorMainWindow() - Constructor for class StocksMonitorMainWindow
Construct this application's main window.
SummaryView - Class in hirondelle.stocks.quotes
Component placed on the main screen to present summary information regarding the CurrentPortfolio to the user.
SummaryView(CurrentPortfolio, QuoteFilterFactory) - Constructor for class SummaryView
Constructor.

T

TAB - Static variable in class Consts
 
TableSortIndicator - Class in hirondelle.stocks.table
Places an up or down icon in a table column header, as an indicator of the primary sort.
TableSortIndicator(JTable, Icon, Icon) - Constructor for class TableSortIndicator
Constructor.
TEXT - Static variable in class RegexInputVerifier
Convenience object for input of short amounts of text.
textHasContent(String) - Static method in class Util
Return true only if aText is not null, and is not empty after trimming.
Theme - Class in hirondelle.stocks.util.ui
Defines all themes which can allow the user to customize the Java Look and Feel.
Theme() - Constructor for class Theme
 
THREE_SPACES - Static variable in class UiConsts
 
toggle() - Method in enum SortOrder
Return the opposite SortOrder from this one.
toString() - Method in enum HelpAction.View
 
toString() - Method in class Portfolio
Represent this object as a String - intended for debugging purposes only.
toString() - Method in class Exchange
Return the full name of this Exchange, suitable for presentation to the end user.
toString() - Method in class Quote
Represent this object as a String - intended for logging purposes only.
toString() - Method in class Stock
Format this object as text which can be used as input to Stock.valueOf(java.lang.String).
toString() - Method in enum QuoteField
Return a text representation of the QuoteField.
toString() - Method in class SortBy
Represent this object as a String - intended for logging purposes only.
toString() - Method in enum SortOrder
 
TWO_SPACES - Static variable in class UiConsts
 

U

UiConsts - Class in hirondelle.stocks.util.ui
Collected constants related to the user interface.
UiUtil - Class in hirondelle.stocks.util.ui
Static convenience methods for GUIs which eliminate code duplication.
UiUtil() - Constructor for class UiUtil
 
UiUtil.AlignX - Enum in hirondelle.stocks.util.ui
Enumeration for horizontal alignment.
UiUtil.AlignY - Enum in hirondelle.stocks.util.ui
Type-safe enumeration vertical alignment.
update(Observable, Object) - Method in class FileCloseAction
Synchronize the state of this object with the state of the CurrentPortfolio passed to the constructor.
update(Observable, Object) - Method in class FileDeleteAction
Synchronize the state of this object with the state of the CurrentPortfolio passed to the constructor.
update(Observable, Object) - Method in class FileSaveAction
Synchronize the state of this object with the state of the CurrentPortfolio passed to the constructor.
update(Observable, Object) - Method in class StocksMonitorMainWindow
Synchronize the state of this window with the state of the CurrentPortfolio, or with GeneralLookPreferencesEditor for the general look-and-feel of the application.
update(Observable, Object) - Method in class FetchQuotesAction
Listens for changes to the CurrentPortfolio or the user preference for update frequency.
update(Observable, Object) - Method in class QuoteFilterFactory
Update this component's GUI in response to changes in the CurrentPortfolio passed to the constructor.
update(Observable, Object) - Method in class QuoteTable
Update the display of this table, not using new underlying data, but using new preferences for its display.
Util - Class in hirondelle.stocks.util
Static convenience methods for common tasks, which eliminate code duplication.
Util() - Constructor for class Util
 

V

valueFrom(String) - Static method in class Exchange
Convert aText into its corresponding Exchange object, if possible.
valueFrom(String) - Static method in enum QuoteField
Parse text into a QuoteField.
valueOf(String) - Static method in enum HelpAction.View
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum CurrentPortfolio.NeedsSave
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum RegexInputVerifier.UseToolTip
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum QuotesDAO.UseMonitor
Returns the enum constant of this type with the specified name.
valueOf(String) - Method in class Stock
Parse a result of Stock.toString() into a Stock object.
valueOf(String) - Static method in enum QuoteField
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum SortOrder
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum StandardEditor.CloseAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in class Theme
Convert aText into its corresponding Theme object, if possible.
valueOf(String) - Static method in enum UiUtil.AlignX
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum UiUtil.AlignY
Returns the enum constant of this type with the specified name.
values() - Static method in enum HelpAction.View
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum CurrentPortfolio.NeedsSave
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum RegexInputVerifier.UseToolTip
Returns an array containing the constants of this enum type, in the order they are declared.
VALUES - Static variable in class Exchange
Allows caller to iterate over all elements of the enumeration.
values() - Static method in enum QuotesDAO.UseMonitor
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum QuoteField
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum SortOrder
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum StandardEditor.CloseAction
Returns an array containing the constants of this enum type, in the order they are declared.
VALUES - Static variable in class Theme
Allows user to iterate over all elements of this enumeration.
values() - Static method in enum UiUtil.AlignX
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum UiUtil.AlignY
Returns an array containing the constants of this enum type, in the order they are declared.
verify(JComponent) - Method in class RegexInputVerifier
Return true only if the untrimmed user input matches the regular expression provided to the constructor.

Z

ZERO - Static variable in class Consts
 
ZERO_MONEY - Static variable in class Consts
 
ZERO_MONEY_WITH_DECIMAL - Static variable in class Consts
 
A B C D E F G H I L M N O P Q R S T U V Z 
StocksMonitor 1.7.0

Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58