Java Doc for XBreadcrumbBar.java in  » XML-UI » xui32 » com » xoetrope » swing » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML UI » xui32 » com.xoetrope.swing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.



Field Summary
protected  ActionListeneractionListener
    
protected  ArrayListlinks
    
protected  XHyperLabelnextButton
    
protected  XPageManagerpageMgr
    
protected  XHyperLabelprevButton
    

Constructor Summary
public  XBreadcrumbBar()
    

Method Summary
public  voidactionPerformed(ActionEvent ae)
    
public  voidaddActionListener(ActionListener l)
     Adds an ActionListener to the button.
public  voidaddLink(String caption, String pageName)
     Add a new link.
public  voidaddLink(String caption, String pageName, String tooltip, String iconName)
     Add a new link.
public  voidaddNotify()
    
protected  voidfireActionPerformed()
     Notifies all listeners that have registered interest for notification on this event type.
public  ActionListener[]getActionListeners()
     Returns an array of all the ActionListeners added to this AbstractButton with addActionListener().
public  voidremoveActionListener(ActionListener l)
     Removes an ActionListener from the button.
public  voidsetBounds(Rectangle r)
    
public  voidsetBounds(int x, int y, int w, int h)
    
public  voidsetLinks(String links)
    
public  voidsetStyle(String name)
    
public  voidshowAll()
    
public  voidshowEarlierLinks()
    
public  voidshowLaterLinks()
    
public  voidupdateNavButtons()
    

Field Detail
actionListener
protected ActionListener actionListener(Code)



links
protected ArrayList links(Code)



nextButton
protected XHyperLabel nextButton(Code)



pageMgr
protected XPageManager pageMgr(Code)



prevButton
protected XHyperLabel prevButton(Code)




Constructor Detail
XBreadcrumbBar
public XBreadcrumbBar()(Code)
Creates a new instance of XBreadcrumbBar




Method Detail
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 ActionListeners added to this AbstractButton with addActionListener(). all of the ActionListeners 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



setLinks
public void setLinks(String links)(Code)



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;



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.