|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.java.feednread.frontend.components.addressbar.NewsFeedAddressBar
An address bar component holding an editable Combo to input a
web page or NewsFeed url or to select from addresses in the
history.
| Nested Class Summary | |
private class |
NewsFeedAddressBar.AddressSelectionHandler
Event handler for all selection events triggered by the address field: - User types in new address and hits enter - User selects an existing address from the list |
| Field Summary | |
private Composite |
addressBarContainer
The container to hold all components of the NewsFeedAddressBar |
private ViewForm |
addressBarForm
The form for style purpose |
private Combo |
addressField
Editable address Combo holding all stored addresses
|
private NewsFeedAddressBar.AddressSelectionHandler |
addressHandler
Handles all selections made to the address field: User types in new address and hits enter User selects an existing address from the list All event handling is delegated to the EventCentral.
|
private Label |
addressLabel
Label for the address Text field |
private ComboViewer |
addressViewer
The ComboViewer to act as bridge between the model and gui
layer
|
private NewsFeedAddressBarContentProvider |
contentProvider
The content provider to act as model layer to the address Viewer
|
private MainApplicationWindow |
mainWindow
The Feed'n Read main window |
| Constructor Summary | |
NewsFeedAddressBar(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NewsFeedAddressBar instance embedding it
into the specified parent component.
|
|
| Method Summary | |
void |
addAddress(String url)
Adds the specified url to the list of managed addresses. |
private void |
createComponents(Composite parent)
Creates all components required in this NewsFeedAddressBar
context.
|
void |
defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes. |
void |
dispose()
|
String |
getCurrentAddress()
Gets the current address input as typed in by the user in the address field. |
String |
getSelectedAddress()
Gets the currently selected address of this NewsFeedAddressBar.
|
boolean |
isVisible()
Gets the visibility status of this NewsFeedAddressBar
component.
|
private void |
registerEventHandler()
Creates and registers all event handlers required in this NewsFeedAddressBar |
void |
removeAddress(String url)
Removes the specified url from the list of managed addresses. |
void |
removeAllAddresses()
Removes all urls from the list of managed addresses. |
void |
setCurrentAddress(String url)
Sets the current address to the specified url. |
void |
setVisible(boolean visible)
Sets the visibility status of this NewsFeedAddressBar
component.
|
private void |
unregisterEventHandler()
Unregisters all event handlers required in this NewsFeedAddressBar |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private NewsFeedAddressBarContentProvider contentProvider
The content provider to act as model layer to the address
Viewer
private MainApplicationWindow mainWindow
The Feed'n Read main window
private Composite addressBarContainer
The container to hold all components of the
NewsFeedAddressBar
private ViewForm addressBarForm
The form for style purpose
private Label addressLabel
Label for the address Text field
private Combo addressField
Editable address Combo holding all stored addresses
private ComboViewer addressViewer
The ComboViewer to act as bridge between the model and gui
layer
private NewsFeedAddressBar.AddressSelectionHandler addressHandler
Handles all selections made to the address field:
EventCentral.
| Constructor Detail |
public NewsFeedAddressBar(Composite parent,
MainApplicationWindow mainWindow)
Creates a new NewsFeedAddressBar instance embedding it
into the specified parent component.
parent - the component to embed this NewsFeedAddressBar
instance intomainWindow - the Feed'n Read main window| Method Detail |
public void defaultLanguageChanged(LanguageResourceChangeEvent lrce)
Called whenever the default language changes.
defaultLanguageChanged in interface ILanguageResourceChangeListenerlrce - the triggered LanguageResourceChangeEventpublic void setVisible(boolean visible)
Sets the visibility status of this NewsFeedAddressBar
component.
visible - true for visible; false
for invisiblepublic boolean isVisible()
Gets the visibility status of this NewsFeedAddressBar
component.
true if visible; false
if invisiblepublic void dispose()
public void addAddress(String url)
Adds the specified url to the list of managed addresses. Prevents duplicates from being added.
url - the url to addpublic void removeAddress(String url)
Removes the specified url from the list of managed addresses.
url - the url to removepublic void removeAllAddresses()
Removes all urls from the list of managed addresses.
public String getSelectedAddress()
Gets the currently selected address of this
NewsFeedAddressBar.
null if nothing
selectedgetCurrentAddress()public String getCurrentAddress()
Gets the current address input as typed in by the user in the address
field. This value may differ from the one returned by the
getSelectedAddress() method.
getSelectedAddress(),
setCurrentAddress(String)public void setCurrentAddress(String url)
Sets the current address to the specified url. This method does not change the current selection.
url - the url to set as current addressgetCurrentAddress()private void createComponents(Composite parent)
Creates all components required in this NewsFeedAddressBar
context.
parent - the component to embed the NewsFeedAddressBar
components intoprivate void registerEventHandler()
Creates and registers all event handlers required in this
NewsFeedAddressBar context.
private void unregisterEventHandler()
Unregisters all event handlers required in this
NewsFeedAddressBar context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||