Java Doc for TabControlButton.java in  » IDE-Netbeans » library » org » netbeans » swing » tabcontrol » plaf » 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 » IDE Netbeans » library » org.netbeans.swing.tabcontrol.plaf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JButton
   org.netbeans.swing.tabcontrol.plaf.TabControlButton

TabControlButton
abstract public class TabControlButton extends JButton (Code)

A base class for control buttons placed within the tabs (view tabs) or next to the tab row (editor tabs). By default the button posts a TabActionEvent to the TabDisplayerUI when pressed.

The button is painted using a set of icons only unless 'showBorder' is true. The icons should include 'fake' button border then.


since:
   1.9
author:
   S. Aubrecht


Field Summary
final public static  intID_CLOSE_BUTTON
    
final public static  intID_DROP_DOWN_BUTTON
    
final public static  intID_MAXIMIZE_BUTTON
    
final public static  intID_PIN_BUTTON
    
final public static  intID_RESTORE_BUTTON
    
final public static  intID_SCROLL_LEFT_BUTTON
    
final public static  intID_SCROLL_RIGHT_BUTTON
    
final public static  intID_SLIDE_DOWN_BUTTON
    
final public static  intID_SLIDE_LEFT_BUTTON
    
final public static  intID_SLIDE_RIGHT_BUTTON
    
final public static  intSTATE_DEFAULT
    
final public static  intSTATE_DISABLED
    
final public static  intSTATE_PRESSED
    
final public static  intSTATE_ROLLOVER
    

Constructor Summary
 TabControlButton(TabDisplayer displayer)
    
 TabControlButton(int buttonId, TabDisplayer displayer)
    
 TabControlButton(int buttonId, TabDisplayer displayer, boolean showBorder)
    

Method Summary
protected  voidconfigureButton()
    
protected  TabActionEventcreateTabActionEvent(ActionEvent e)
    
protected  voidfireActionPerformed(ActionEvent event)
    
protected  intgetButtonId()
    
public  IcongetDisabledIcon()
    
public  IcongetDisabledSelectedIcon()
    
public  IcongetIcon()
    
public  IcongetPressedIcon()
    
public  IcongetRolloverIcon()
    
public  IcongetRolloverSelectedIcon()
    
abstract protected  StringgetTabActionCommand(ActionEvent e)
    
protected  TabDisplayergetTabDisplayer()
    
 voidperformAction(ActionEvent e)
     Post an event to the TabDisplayerUI that this button was pressed.
public  voidupdateUI()
    

Field Detail
ID_CLOSE_BUTTON
final public static int ID_CLOSE_BUTTON(Code)



ID_DROP_DOWN_BUTTON
final public static int ID_DROP_DOWN_BUTTON(Code)



ID_MAXIMIZE_BUTTON
final public static int ID_MAXIMIZE_BUTTON(Code)



ID_PIN_BUTTON
final public static int ID_PIN_BUTTON(Code)



ID_RESTORE_BUTTON
final public static int ID_RESTORE_BUTTON(Code)



ID_SCROLL_LEFT_BUTTON
final public static int ID_SCROLL_LEFT_BUTTON(Code)



ID_SCROLL_RIGHT_BUTTON
final public static int ID_SCROLL_RIGHT_BUTTON(Code)



ID_SLIDE_DOWN_BUTTON
final public static int ID_SLIDE_DOWN_BUTTON(Code)



ID_SLIDE_LEFT_BUTTON
final public static int ID_SLIDE_LEFT_BUTTON(Code)



ID_SLIDE_RIGHT_BUTTON
final public static int ID_SLIDE_RIGHT_BUTTON(Code)



STATE_DEFAULT
final public static int STATE_DEFAULT(Code)



STATE_DISABLED
final public static int STATE_DISABLED(Code)



STATE_PRESSED
final public static int STATE_PRESSED(Code)



STATE_ROLLOVER
final public static int STATE_ROLLOVER(Code)




Constructor Detail
TabControlButton
TabControlButton(TabDisplayer displayer)(Code)

Parameters:
  displayer - Tab displayer where this button is displayed.



TabControlButton
TabControlButton(int buttonId, TabDisplayer displayer)(Code)

Parameters:
  buttonId - Button type (close button, slide button etc)
Parameters:
  displayer - Tab displayer where this button is displayed.



TabControlButton
TabControlButton(int buttonId, TabDisplayer displayer, boolean showBorder)(Code)

Parameters:
  buttonId - Button type (close button, slide button etc)
Parameters:
  displayer - Tab displayer where this button is displayed.
Parameters:
  showBorder - if false then only icon will be make button overall look,true means regular button border




Method Detail
configureButton
protected void configureButton()(Code)
Make sure that only button icon gets painted (turn off borders etc)



createTabActionEvent
protected TabActionEvent createTabActionEvent(ActionEvent e)(Code)
Tab action event that is posted to the TabDisplayerUI when this button is pressed.



fireActionPerformed
protected void fireActionPerformed(ActionEvent event)(Code)



getButtonId
protected int getButtonId()(Code)
Button type identification that is used by the TabDisplayerUI to select the correcticons for this button.



getDisabledIcon
public Icon getDisabledIcon()(Code)



getDisabledSelectedIcon
public Icon getDisabledSelectedIcon()(Code)



getIcon
public Icon getIcon()(Code)



getPressedIcon
public Icon getPressedIcon()(Code)



getRolloverIcon
public Icon getRolloverIcon()(Code)



getRolloverSelectedIcon
public Icon getRolloverSelectedIcon()(Code)



getTabActionCommand
abstract protected String getTabActionCommand(ActionEvent e)(Code)

Parameters:
  e - Tab Action id that is posted to the TabDisplayerUI for processingwhen the button is pressed.



getTabDisplayer
protected TabDisplayer getTabDisplayer()(Code)



performAction
void performAction(ActionEvent e)(Code)
Post an event to the TabDisplayerUI that this button was pressed.



updateUI
public void updateUI()(Code)



Methods inherited from javax.swing.JButton
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean isDefaultButton()(Code)(Java Doc)
public boolean isDefaultCapable()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void removeNotify()(Code)(Java Doc)
public void setDefaultCapable(boolean defaultCapable)(Code)(Java Doc)
public void updateUI()(Code)(Java Doc)

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