Kevin Ryde > chart > App::Chart::Weblink

Download:
chart-250.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  15
Open  3
View/Report Bugs
Source  

NAME ^

App::Chart::Weblink -- web page links for symbols

SYNOPSIS ^

 use App::Chart::Weblink;

DESCRIPTION ^

A weblink is a URL to some web site page related to a symbol, such as a company information page or commodity contract specifications. The weblinks for a given symbol are presented under the "View/Web" menu in the main Chart GUI.

FUNCTIONS ^

App::Chart::Weblink->new (name=>..., pred=>...)

Create and register a new weblink. The return is a new App::Chart::Weblink object, though usually this is not of interest (only all the links later with links_for_symbol below).

@list = App::Chart::Weblink->links_for_symbol ($symbol)

Return a list of App::Chart::Weblink objects for use on the given symbol. Eg.

    my @links = App::Chart::Weblink->links_for_symbol ('BHP.AX');

METHODS ^

$string = $weblink->name

Return the menu item name for $weblink. This can include a "_" underscore for a mnemonic.

$string = $weblink->url ($symbol)

Return the url for $weblink on $symbol.

$bool = $weblink->sensitive ($symbol)

Return true if the menu item for $weblink should be sensitive for $symbol, ie. there's a target URL for that symbol.

$weblink->open ($symbol)

Open a web browser to show $weblink for $symbol.

SEE ALSO ^

App::Chart::Weblink::SandP, App::Chart::Gtk2::WeblinkMenu

syntax highlighting: