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


java.lang.Object
   javax.swing.plaf.ComponentUI
      org.netbeans.swing.tabcontrol.TabbedContainerUI

All known Subclasses:   org.netbeans.swing.tabcontrol.plaf.DefaultTabbedContainerUI,
TabbedContainerUI
abstract public class TabbedContainerUI extends ComponentUI (Code)
Basic UI for tabbed containers. Note this is distinct from the UI for the embedded tab displayer component - that where all the interesting painting logic is.

To provide an implementation of TabbedContainerUI, it is a far better idea to subclass AbstractTabbedContainerUI, BasicTabbedContainerUI, or BasicScrollingTabbedContainerUI.
author:
   Tim Boudreau



Field Summary
protected  TabbedContainercontainer
     The TabbedContainer this instance is acting as a ui delegate for. do not alter the value in this field.

Constructor Summary
public  TabbedContainerUI(TabbedContainer container)
    

Method Summary
abstract protected  voidcancelRequestAttention(int tab)
    
abstract public  ImagecreateImageOfTab(int idx)
    
abstract public  intdropIndexOfPoint(Point p)
     Index at which a tab would be inserted if a suitable object were dropped at this point.
abstract public  RectanglegetContentArea()
    
abstract public  PolygongetExactTabIndication(int idx)
    
abstract public  PolygongetInsertTabIndication(int idx)
     Get a polygon indicating the insertion of a tab before the passed index, unless the index is equal to the model size, in which case it will return an indication for inserting a tab at the end.
abstract public  SingleSelectionModelgetSelectionModel()
     Get the selection model that tracks and determines which tab is selected.
abstract public  RectanglegetTabRect(int tab, Rectangle r)
     Get the bounds of a tab.
abstract public  RectanglegetTabsArea()
    
public  voidinstallUI(JComponent c)
    
abstract public  booleanisShowCloseButton()
    
abstract public  voidmakeTabVisible(int index)
     Make a tab visible.
abstract protected  voidrequestAttention(int tab)
    
abstract public  voidsetShowCloseButton(boolean val)
    
final protected  booleanshouldPerformAction(String command, int tab, MouseEvent event)
     Allows ActionListeners attached to the container to determine if the event should be acted on.
final  booleanshouldReplaceUI()
    
abstract public  inttabForCoordinate(Point p)
     Get the tab at a given point in the coordinate space of the container.
protected  booleanuichange()
     This method is called if TabbedContainer.updateUI() gets called after a UI delegate has been installed (in other words, the user did something like switch look and feels or switch the Windows desktop theme).

Normally, the only UI delegate that exists for TabbedContainer is DefaultTabbedContainerUI, so it makes no sense to replace one with another, since they do the same thing.

However, this method can be used to update the tab displayer component's UI.


Field Detail
container
protected TabbedContainer container(Code)
The TabbedContainer this instance is acting as a ui delegate for. do not alter the value in this field.




Constructor Detail
TabbedContainerUI
public TabbedContainerUI(TabbedContainer container)(Code)
Creates a new instance of TabbedContainerUI




Method Detail
cancelRequestAttention
abstract protected void cancelRequestAttention(int tab)(Code)



createImageOfTab
abstract public Image createImageOfTab(int idx)(Code)
Create an image suitable for use in drag and drop operations, of a tab



dropIndexOfPoint
abstract public int dropIndexOfPoint(Point p)(Code)
Index at which a tab would be inserted if a suitable object were dropped at this point.
Parameters:
  p - A point A tab index which may be equal to the size of the model (past thelast tab index) if the tab should be inserted at the end.



getContentArea
abstract public Rectangle getContentArea()(Code)
Get a rectangle matching the area in which content is displayed



getExactTabIndication
abstract public Polygon getExactTabIndication(int idx)(Code)
Get a polygon matching the shape of the tab



getInsertTabIndication
abstract public Polygon getInsertTabIndication(int idx)(Code)
Get a polygon indicating the insertion of a tab before the passed index, unless the index is equal to the model size, in which case it will return an indication for inserting a tab at the end.
Parameters:
  idx - A tab index A shape representing the shape of the tab as it is displayed onscreen,in the coordinate space of the displayer



getSelectionModel
abstract public SingleSelectionModel getSelectionModel()(Code)
Get the selection model that tracks and determines which tab is selected. The selection model (in the default implementation, this is the selection model of theembedded tab displayer)



getTabRect
abstract public Rectangle getTabRect(int tab, Rectangle r)(Code)
Get the bounds of a tab. Note that for non-rectangular tabs this may not correspond exactly to the area in which it will respond to mouse clicks.
Parameters:
  tab - A tab index
Parameters:
  r - A rectangle to configure with the information, or null The passed rectangle, or a new one if null was passed



getTabsArea
abstract public Rectangle getTabsArea()(Code)
Get a rectangle matching the area in which tabs are displayed



installUI
public void installUI(JComponent c)(Code)



isShowCloseButton
abstract public boolean isShowCloseButton()(Code)



makeTabVisible
abstract public void makeTabVisible(int index)(Code)
Make a tab visible. No-op except in the case of scrolling tabs, in which case the tab may be scrolled offscreen.
Parameters:
  index - A tab index



requestAttention
abstract protected void requestAttention(int tab)(Code)



setShowCloseButton
abstract public void setShowCloseButton(boolean val)(Code)



shouldPerformAction
final protected boolean shouldPerformAction(String command, int tab, MouseEvent event)(Code)
Allows ActionListeners attached to the container to determine if the event should be acted on. Delegates to displayer.postActionEvent(). This method will create a TabActionEvent with the passed string as an action command, and cause the displayer to fire this event. It will return true if no listener on the displayer consumed the TabActionEvent; consuming the event is the way a listener can veto a change, or provide special handling for it.
Parameters:
  command - The action command - this should be TabDisplayer.COMMAND_SELECTor TabDisplayer.COMMAND_CLOSE, but private contractsbetween custom UIs and components are also an option.
Parameters:
  tab - The index of the tab upon which the action should act, or-1 if non-applicable
Parameters:
  event - A mouse event which initiated the action, or null true if the event posted was not consumed by any listener



shouldReplaceUI
final boolean shouldReplaceUI()(Code)
Accessor method for TabbedContainer
See Also:   uichange



tabForCoordinate
abstract public int tabForCoordinate(Point p)(Code)
Get the tab at a given point in the coordinate space of the container.
Parameters:
  p - A point The tab index at this point, or -1 if no tab



uichange
protected boolean uichange()(Code)
This method is called if TabbedContainer.updateUI() gets called after a UI delegate has been installed (in other words, the user did something like switch look and feels or switch the Windows desktop theme).

Normally, the only UI delegate that exists for TabbedContainer is DefaultTabbedContainerUI, so it makes no sense to replace one with another, since they do the same thing.

However, this method can be used to update the tab displayer component's UI. Subclasses are expected to override this method to call updateUI() on the displayer, or do whatever is appropriate to ensure that the UI will look right after the change - or to return true from this method, in which the entire UI delegate for the tabbed container will be replaced. false




Methods inherited from javax.swing.plaf.ComponentUI
public boolean contains(JComponent c, int x, int y)(Code)(Java Doc)
public static ComponentUI createUI(JComponent c)(Code)(Java Doc)
public Accessible getAccessibleChild(JComponent c, int i)(Code)(Java Doc)
public int getAccessibleChildrenCount(JComponent c)(Code)(Java Doc)
public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc)
public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc)
public Dimension getMaximumSize(JComponent c)(Code)(Java Doc)
public Dimension getMinimumSize(JComponent c)(Code)(Java Doc)
public Dimension getPreferredSize(JComponent c)(Code)(Java Doc)
public void installUI(JComponent c)(Code)(Java Doc)
public void paint(Graphics g, JComponent c)(Code)(Java Doc)
public void uninstallUI(JComponent c)(Code)(Java Doc)
public void update(Graphics g, JComponent c)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.