Java Doc for XRollupBar.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.XRollupBar

All known Subclasses:   com.xoetrope.swing.XAccordian,
XRollupBar
public class XRollupBar extends XPanel implements ActionListener,XAttributedComponent,XCompositeComponent(Code)
An outlook style roll-up bar. The methods are modelled on the JTabbedPane

Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Xoetrope.

$Revision: 1.15 $


Inner Class :class XRollupPanel extends JComponent
Inner Class :public class AccordianLayout implements LayoutManager

Field Summary
protected  booleanallExpandable
    
protected  booleanantiAlias
    
protected  StringbuttonClassName
    
protected  ButtonGroupbuttonGroup
    
protected  intbuttonHeight
    
protected  XProjectcurrentProject
    
protected  intmaxPanelSize
    
protected  intminPanelSize
    
protected  intselIdxlastSelIdx
    
protected  JToggleButtontopBtn
    

Constructor Summary
public  XRollupBar()
    

Method Summary
public  voidactionPerformed(ActionEvent e)
     Invoked when a mouse button has been pressed on a component.
public  Componentadd(Component comp)
     Add a new button.
public  voidadd(Component comp, Object constraints)
     Add a new button.
public  ColorgetBackgroundAt(int index)
    
public  JToggleButtongetButton(int index)
    
public  intgetButtonCount()
    
public  ComponentgetContentComponent(int idx)
    
public  intgetContentComponentCount()
    
public  ColorgetForegroundAt(int index)
    
public  intgetMaxSharedPanels()
    
public  DimensiongetMaximumSize()
    
public  DimensiongetMinimumSize()
    
public  DimensiongetPreferredSize()
    
public  intgetSelectedIndex()
    
public  StringgetTitleAt(int index)
    
protected  booleanisAllExpandable()
    
public  booleanisOverlapButtons()
    
protected  voidsetAllExpandable(boolean state)
     Set this component to allow all of its panel to be visible at once.
public  voidsetAntiAlias(String state)
     Set the AntiAliasing state.
public  intsetAttribute(String attribName, Object attribValue)
     Set one or more attributes of the component.
  1. alignment, value=(Left|Right|Center|Leading|Trailing)
  2. imagename, value=the image file name
  3. pressed, value=the pressed image file name
  4. rollover, value=the rollover image file name
  5. icon, value=name of the image
  6. iconpressed, value=name of the pressed image
  7. iconrollover, value=name of the rollover image
  8. tooltip, value=the tooltip text
  9. painter, value=the painter class for the image buttons
  10. slideImages, value=true to slide images of the panels rather than the actual panels themselves.
public  voidsetBackgroundAt(int index, Color clr)
    
public  voidsetForegroundAt(int index, Color clr)
    
public  voidsetIsVertical(boolean vertical)
    
public  voidsetMaxSharedPanels(int maxPanels)
    
public  voidsetOverlapButtons(boolean state)
    
public  voidsetSelectedIndex(int index)
    
public  voidsetState(String[] panelStates)
    
public  voidsetTitleAt(int index, String str)
    

Field Detail
allExpandable
protected boolean allExpandable(Code)



antiAlias
protected boolean antiAlias(Code)



buttonClassName
protected String buttonClassName(Code)



buttonGroup
protected ButtonGroup buttonGroup(Code)



buttonHeight
protected int buttonHeight(Code)



currentProject
protected XProject currentProject(Code)



maxPanelSize
protected int maxPanelSize(Code)



minPanelSize
protected int minPanelSize(Code)



selIdxlastSelIdx
protected int selIdxlastSelIdx(Code)



topBtn
protected JToggleButton topBtn(Code)




Constructor Detail
XRollupBar
public XRollupBar()(Code)
Create a new button panel




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Invoked when a mouse button has been pressed on a component.
Parameters:
  e - the event



add
public Component add(Component comp)(Code)
Add a new button. The add method could not be overloaded so this method adds does the equivalent.
Parameters:
  comp - the new button component the new component



add
public void add(Component comp, Object constraints)(Code)
Add a new button. The add method could not be overloaded so this method adds does the equivalent.
Parameters:
  comp - the new button component the new component



getBackgroundAt
public Color getBackgroundAt(int index)(Code)
Get a button's background color
Parameters:
  index - the button index the color



getButton
public JToggleButton getButton(int index)(Code)
Get the button component at the specified index, skips over the expanded panel
Parameters:
  index - the button index the button component



getButtonCount
public int getButtonCount()(Code)
Get the number of buttons the number of buttons



getContentComponent
public Component getContentComponent(int idx)(Code)
Get a nested component
Parameters:
  the - index of the nested component the specified component



getContentComponentCount
public int getContentComponentCount()(Code)
Get the count of the nested components the component count



getForegroundAt
public Color getForegroundAt(int index)(Code)
Get a button's foreground color
Parameters:
  index - the button index the color



getMaxSharedPanels
public int getMaxSharedPanels()(Code)
Get the maximum number of shared panels the panel count



getMaximumSize
public Dimension getMaximumSize()(Code)
Get the minimum layout size of this component the preferred size



getMinimumSize
public Dimension getMinimumSize()(Code)
Get the minimum layout size of this component the preferred size



getPreferredSize
public Dimension getPreferredSize()(Code)
Get the preferred layout size of this component the preferred size



getSelectedIndex
public int getSelectedIndex()(Code)
Get the index of the selected button the selection index



getTitleAt
public String getTitleAt(int index)(Code)
Get the title of the button at the specified index
Parameters:
  index - the button index the button text/title



isAllExpandable
protected boolean isAllExpandable()(Code)
Does this component allow all of its panel to be visible at once? true if all panels can be made visible



isOverlapButtons
public boolean isOverlapButtons()(Code)
Do the buttons overlap for the adjacent panels when the content is hidden? true if the buttons ovrlap



setAllExpandable
protected void setAllExpandable(boolean state)(Code)
Set this component to allow all of its panel to be visible at once.
Parameters:
  allExpandable -



setAntiAlias
public void setAntiAlias(String state)(Code)
Set the AntiAliasing state. Any buttons contained within the rolloup bar will have their antialias setting modified by this call. "true" to anti alias the text



setAttribute
public int setAttribute(String attribName, Object attribValue)(Code)
Set one or more attributes of the component.
  1. alignment, value=(Left|Right|Center|Leading|Trailing)
  2. imagename, value=the image file name
  3. pressed, value=the pressed image file name
  4. rollover, value=the rollover image file name
  5. icon, value=name of the image
  6. iconpressed, value=name of the pressed image
  7. iconrollover, value=name of the rollover image
  8. tooltip, value=the tooltip text
  9. painter, value=the painter class for the image buttons
  10. slideImages, value=true to slide images of the panels rather than the actual panels themselves. In sme case this can give better performance as each panel does not get layout at ever animatio step

Parameters:
  attribName - the name of the attribute
Parameters:
  attribValue - the value of the attribute 0 for success, non zero otherwise



setBackgroundAt
public void setBackgroundAt(int index, Color clr)(Code)
Set the button background color
Parameters:
  index - the button index
Parameters:
  clr - the new colr



setForegroundAt
public void setForegroundAt(int index, Color clr)(Code)
Set the foreground color
Parameters:
  index - the button index
Parameters:
  clr - the new color



setIsVertical
public void setIsVertical(boolean vertical)(Code)
Set the layout as vertical (one button above another)
Parameters:
  isVertical -



setMaxSharedPanels
public void setMaxSharedPanels(int maxPanels)(Code)
Set the maximum number of shared panels (the number of panels that can occupy a single divider)
Parameters:
  maxPanels - the new max panel count



setOverlapButtons
public void setOverlapButtons(boolean state)(Code)
Set the buttons to overlap for the adjacent panels when the content is hidden
Parameters:
  state - the new flag value



setSelectedIndex
public void setSelectedIndex(int index)(Code)
Select a button
Parameters:
  index - the button index



setState
public void setState(String[] panelStates)(Code)



setTitleAt
public void setTitleAt(int index, String str)(Code)
Set a button's title
Parameters:
  index - the button index
Parameters:
  str - the text for the button



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