| com.xoetrope.swing.XBreadcrumbBar
XBreadcrumbBar | public class XBreadcrumbBar extends XPanel implements ActionListener,XStyleComponent(Code) | |
The Breadcrumb bar can be used to present a navigation history by listing
links to the pages used to navigate to the current page.
If the visible navigation history exceeds the size of the component the
component will scroll the navigation either left or right via arrow keys
automatically prefixed and appended to the component.
When a link is selected an ActionEvent is fired and the listener can
respond to the event. The page name associated with the link is passed with
the event as the action command. Once the link has been clicked the links to
the right of the select link are removed and the bar is refreshed.
|
pageMgr | protected XPageManager pageMgr(Code) | | |
XBreadcrumbBar | public XBreadcrumbBar()(Code) | | Creates a new instance of XBreadcrumbBar
|
actionPerformed | public void actionPerformed(ActionEvent ae)(Code) | | Respond to the button click events
|
addActionListener | public void addActionListener(ActionListener l)(Code) | | Adds an ActionListener to the button.
Parameters: l - the ActionListener to be added |
addLink | public void addLink(String caption, String pageName)(Code) | | Add a new link. The new link will be appended to the breadcrumb trail.
Parameters: caption - the component caption (or localization key) as displayed to the end user Parameters: pageName - the page to which the application will move to if the new link is selected |
addLink | public void addLink(String caption, String pageName, String tooltip, String iconName)(Code) | | Add a new link. The new link will be appended to the breadcrumb trail.
Parameters: caption - the component caption (or localization key) as displayed to the end user Parameters: pageName - the page to which the application will move to if the new link is selected Parameters: tooltip - the tooltip text or null if none is specified Parameters: iconName - the link icon or null if none is specified |
addNotify | public void addNotify()(Code) | | Repaint the component once it has been created
|
fireActionPerformed | protected void fireActionPerformed()(Code) | | Notifies all listeners that have registered interest for
notification on this event type. The event instance
is lazily created using the event
parameter.
See Also: EventListenerList |
getActionListeners | public ActionListener[] getActionListeners()(Code) | | Returns an array of all the ActionListener s added
to this AbstractButton with addActionListener().
all of the ActionListener s added or an emptyarray if no listeners have been added since: 1.4 |
removeActionListener | public void removeActionListener(ActionListener l)(Code) | | Removes an ActionListener from the button.
If the listener is the currently set Action
for the button, then the Action
is set to null .
Parameters: l - the listener to be removed |
setBounds | public void setBounds(Rectangle r)(Code) | | Intercept the size change to reset the navigation buttons
|
setBounds | public void setBounds(int x, int y, int w, int h)(Code) | | Intercept the size change to reset the navigation buttons
|
setStyle | public void setStyle(String name)(Code) | | Set the component style
Parameters: name - the new style name |
showAll | public void showAll()(Code) | | |
showEarlierLinks | public void showEarlierLinks()(Code) | | Display the earlier (hidden) links
|
showLaterLinks | public void showLaterLinks()(Code) | | Display the later links by hiding earlier links
|
updateNavButtons | public void updateNavButtons()(Code) | | Update the navigation buttons accoriding to the available width;
|
|
|