- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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.