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

All known Subclasses:   org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI,  org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI,
TabDisplayerUI
abstract public class TabDisplayerUI extends ComponentUI (Code)
The basic UI of a tab displayer component. Defines the API of the UI for TabDisplayers, which may be called by TabDisplayer.
author:
   Tim Boudreau
See Also:   org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI
See Also:   org.netbeans.swing.tabcontrol.plaf.BasicTabDisplayerUI


Field Summary
final protected  TabDisplayerdisplayer
    
protected  SingleSelectionModelselectionModel
    

Constructor Summary
protected  TabDisplayerUI(TabDisplayer displayer)
    

Method Summary
abstract protected  voidcancelRequestAttention(int tab)
    
public  ImagecreateImageOfTab(int index)
     Returns an image suitable for use in drag and drop operations, representing the tab at this index.
abstract protected  SingleSelectionModelcreateSelectionModel()
     Create the selection model which will handle selection for the TabDisplayer.
abstract public  intdropIndexOfPoint(Point p)
    
public  IcongetButtonIcon(int buttonId, int buttonState)
    
abstract public  PolygongetExactTabIndication(int index)
     Get a shape representing the exact outline of the numbered tab.
abstract public  PolygongetInsertTabIndication(int index)
     Get a shape representing the area of visual feedback during a drag and drop operation, which represents where a tab will be inserted if a drop operation is performed over the indicated tab.
abstract public  RectanglegetTabRect(int index, Rectangle destination)
     Configure the passed rectangle with the shape of the tab at the given index.
public  voidinstallUI(JComponent c)
    
public  voidmakeTabVisible(int index)
     Instruct the UI to ensure that the tab at the given index is visible. Some UIs allow scrolling or otherwise hiding tabs.
public  voidpostTabAction(TabActionEvent e)
    
abstract public  voidregisterShortcuts(JComponent comp)
    
abstract protected  voidrequestAttention(int tab)
    
final protected  booleanshouldPerformAction(String command, int tab, MouseEvent event)
     Allows ActionListeners attached to the container to determine if the event should be acted on.
abstract public  inttabForCoordinate(Point p)
     Returns the index of the tab at the passed point, or -1 if no tab is at that location.
public  voiduninstallUI(JComponent c)
    
abstract public  voidunregisterShortcuts(JComponent comp)
    

Field Detail
displayer
final protected TabDisplayer displayer(Code)



selectionModel
protected SingleSelectionModel selectionModel(Code)




Constructor Detail
TabDisplayerUI
protected TabDisplayerUI(TabDisplayer displayer)(Code)
Creates a new instance of TabDisplayerUI




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



createImageOfTab
public Image createImageOfTab(int index)(Code)
Returns an image suitable for use in drag and drop operations, representing the tab at this index. The default implementation returns null.
Parameters:
  index - A tab index
throws:
  IllegalArgumentException - if no tab is at the passed index



createSelectionModel
abstract protected SingleSelectionModel createSelectionModel()(Code)
Create the selection model which will handle selection for the TabDisplayer. SPI method located here because TabDisplayer.setSelectionModel is package private.



dropIndexOfPoint
abstract public int dropIndexOfPoint(Point p)(Code)
The index a tab would acquire if dropped at a given point
Parameters:
  p - A point An index which may be equal to the size of the data model



getButtonIcon
public Icon getButtonIcon(int buttonId, int buttonState)(Code)

since:
   1.9 An icon for various buttons displayed in tab control (close/pin/scroll left/right etc), see TabControlButton class.



getExactTabIndication
abstract public Polygon getExactTabIndication(int index)(Code)
Get a shape representing the exact outline of the numbered tab. The implementations in the package will return instances of EqualPolygon from this method; other implementations may return what they want, but for performance reasons, it is highly desirable that the shape object returned honor equals() and hashCode(), as there are significant optimizations in NetBeans' drag and drop support that depend on this.



getInsertTabIndication
abstract public Polygon getInsertTabIndication(int index)(Code)
Get a shape representing the area of visual feedback during a drag and drop operation, which represents where a tab will be inserted if a drop operation is performed over the indicated tab.

The implementations in the package will return instances of EqualPolygon from this method; other implementations may return what they want, but for performance reasons, it is highly desirable that the shape object returned honor equals() and hashCode(), as there are significant optimizations in NetBeans' drag and drop support that depened on this. Shape representing feedback shape




getTabRect
abstract public Rectangle getTabRect(int index, Rectangle destination)(Code)
Configure the passed rectangle with the shape of the tab at the given index.



installUI
public void installUI(JComponent c)(Code)



makeTabVisible
public void makeTabVisible(int index)(Code)
Instruct the UI to ensure that the tab at the given index is visible. Some UIs allow scrolling or otherwise hiding tabs. The default implementation is a no-op.
Parameters:
  index - The index of the tab that should be made visible, whichshould be within the range of 0 to the count of tabs in themodel



postTabAction
public void postTabAction(TabActionEvent e)(Code)



registerShortcuts
abstract public void registerShortcuts(JComponent comp)(Code)



requestAttention
abstract protected void requestAttention(int tab)(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



tabForCoordinate
abstract public int tabForCoordinate(Point p)(Code)
Returns the index of the tab at the passed point, or -1 if no tab is at that location. Note that this method may return -1 for coordinates which are within a tab as returned by getTabRect(), but are not within the visible shape of the tab as the UI paints it.



uninstallUI
public void uninstallUI(JComponent c)(Code)



unregisterShortcuts
abstract public void unregisterShortcuts(JComponent comp)(Code)



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.