Java Doc for BasicTextUI.java in  » Apache-Harmony-Java-SE » javax-package » javax » swing » plaf » basic » 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 » Apache Harmony Java SE » javax package » javax.swing.plaf.basic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.plaf.TextUI
   javax.swing.plaf.basic.BasicTextUI

All known Subclasses:   javax.swing.plaf.basic.BasicTextAreaUI,  javax.swing.plaf.basic.TextCompUI,  javax.swing.plaf.basic.BasicEditorPaneUI,  javax.swing.plaf.basic.BasicTextFieldUI,
BasicTextUI
abstract public class BasicTextUI extends TextUI implements ViewFactory(Code)

Inner Class :public static class BasicCaret extends DefaultCaret implements UIResource
Inner Class :public static class BasicHighlighter extends DefaultHighlighter implements UIResource
Inner Class :final class DropListener implements DropTargetListener
Inner Class :final class GestureRecognizer extends MouseInputAdapter


Constructor Summary
public  BasicTextUI()
     Creates parent of all view hierarchy.

Method Summary
final  StringaddPrefix(String property)
    
public  Viewcreate(Element elem)
    
public  Viewcreate(Element elem, int p0, int p1)
    
protected  CaretcreateCaret()
    
protected  HighlightercreateHighlighter()
    
protected  KeymapcreateKeymap()
    
public  voiddamageRange(JTextComponent c, int p0, int p1)
    
public  voiddamageRange(JTextComponent c, int p0, int p1, Position.Bias b1, Position.Bias b2)
     Calculates rectangle(r, for example), corresponding these position and biases.
final protected  JTextComponentgetComponent()
    
final  Set<AWTKeyStroke>getDefaultFocusTraversalKeys(int mode)
    
public  EditorKitgetEditorKit(JTextComponent comp)
    
final  booleangetI18nProperty()
    
protected  StringgetKeymapName()
    
public  DimensiongetMaximumSize(JComponent c)
    
public  DimensiongetMinimumSize(JComponent c)
    
public  intgetNextVisualPositionFrom(JTextComponent c, int p0, Position.Bias bias, int p1, Position.Bias[] biasRet)
     Calls getNextVisualPosition on root view.
public  DimensiongetPreferredSize(JComponent c)
    
abstract protected  StringgetPropertyPrefix()
    
public  ViewgetRootView(JTextComponent c)
    
public  StringgetToolTipText(JTextComponent c, Point p)
    
protected  RectanglegetVisibleEditorRect()
     Returns, component getSize, excluding insets.
protected  voidinstallDefaults()
    
protected  voidinstallKeyboardActions()
     Sets InputMap(JComponent.WHEN_FOCUSED), ActionMap, Keymap on TextComponent.
protected  voidinstallListeners()
    
public  voidinstallUI(JComponent c)
    
final  voidinstallUIActionMap()
    
final  voidinstallUIInputMap()
    
protected  voidmodelChanged()
     Rebuilts view hierarchy.
public  RectanglemodelToView(JTextComponent c, int p)
    
public  RectanglemodelToView(JTextComponent comp, int p, Position.Bias b)
    
final public  voidpaint(Graphics g, JComponent c)
    
protected  voidpaintBackground(Graphics g)
    
protected  voidpaintSafely(Graphics g)
    
protected  voidpropertyChange(PropertyChangeEvent e)
    
 voidpropertyChangeImpl(PropertyChangeEvent e)
    
final  voidputActionToActionMap(Action a, ActionMap map)
    
final protected  voidsetView(View v)
    
protected  voiduninstallDefaults()
    
protected  voiduninstallKeyboardActions()
     Sets ActionMap and Keymap of TextComponent to null.
protected  voiduninstallListeners()
    
public  voiduninstallUI(JComponent c)
    
public  voidupdate(Graphics g, JComponent c)
    
final  voidupdateFocusAcceleratorBinding(boolean changed)
    
 voidupdateFocusTraversalKeys()
    
public  intviewToModel(JTextComponent c, Point p)
    
public  intviewToModel(JTextComponent c, Point p, Position.Bias[] b)
    


Constructor Detail
BasicTextUI
public BasicTextUI()(Code)
Creates parent of all view hierarchy.




Method Detail
addPrefix
final String addPrefix(String property)(Code)



create
public View create(Element elem)(Code)



create
public View create(Element elem, int p0, int p1)(Code)



createCaret
protected Caret createCaret()(Code)



createHighlighter
protected Highlighter createHighlighter()(Code)



createKeymap
protected Keymap createKeymap()(Code)



damageRange
public void damageRange(JTextComponent c, int p0, int p1)(Code)



damageRange
public void damageRange(JTextComponent c, int p0, int p1, Position.Bias b1, Position.Bias b2)(Code)
Calculates rectangle(r, for example), corresponding these position and biases. Then call component.repaint(r.x, r.y, r.width, r.height)



getComponent
final protected JTextComponent getComponent()(Code)



getDefaultFocusTraversalKeys
final Set<AWTKeyStroke> getDefaultFocusTraversalKeys(int mode)(Code)



getEditorKit
public EditorKit getEditorKit(JTextComponent comp)(Code)
Always returns DefaultEditorKit



getI18nProperty
final boolean getI18nProperty()(Code)



getKeymapName
protected String getKeymapName()(Code)



getMaximumSize
public Dimension getMaximumSize(JComponent c)(Code)



getMinimumSize
public Dimension getMinimumSize(JComponent c)(Code)
Uses getMinimumSpan of View Hierarchy and getInsets of TextComponent



getNextVisualPositionFrom
public int getNextVisualPositionFrom(JTextComponent c, int p0, Position.Bias bias, int p1, Position.Bias[] biasRet) throws BadLocationException(Code)
Calls getNextVisualPosition on root view. If root view returns -1, then this method will return p0 and biasRet[0] will be the same as bias



getPreferredSize
public Dimension getPreferredSize(JComponent c)(Code)
Uses getPrefferedSpan of View Hierarchy and getInsets of TextComponent



getPropertyPrefix
abstract protected String getPropertyPrefix()(Code)



getRootView
public View getRootView(JTextComponent c)(Code)



getToolTipText
public String getToolTipText(JTextComponent c, Point p)(Code)



getVisibleEditorRect
protected Rectangle getVisibleEditorRect()(Code)
Returns, component getSize, excluding insets.



installDefaults
protected void installDefaults()(Code)



installKeyboardActions
protected void installKeyboardActions()(Code)
Sets InputMap(JComponent.WHEN_FOCUSED), ActionMap, Keymap on TextComponent.



installListeners
protected void installListeners()(Code)



installUI
public void installUI(JComponent c)(Code)



installUIActionMap
final void installUIActionMap()(Code)



installUIInputMap
final void installUIInputMap()(Code)



modelChanged
protected void modelChanged()(Code)
Rebuilts view hierarchy.



modelToView
public Rectangle modelToView(JTextComponent c, int p) throws BadLocationException(Code)



modelToView
public Rectangle modelToView(JTextComponent comp, int p, Position.Bias b) throws BadLocationException(Code)



paint
final public void paint(Graphics g, JComponent c)(Code)



paintBackground
protected void paintBackground(Graphics g)(Code)



paintSafely
protected void paintSafely(Graphics g)(Code)



propertyChange
protected void propertyChange(PropertyChangeEvent e)(Code)



propertyChangeImpl
void propertyChangeImpl(PropertyChangeEvent e)(Code)



putActionToActionMap
final void putActionToActionMap(Action a, ActionMap map)(Code)



setView
final protected void setView(View v)(Code)
Replaces child of the root view



uninstallDefaults
protected void uninstallDefaults()(Code)



uninstallKeyboardActions
protected void uninstallKeyboardActions()(Code)
Sets ActionMap and Keymap of TextComponent to null.



uninstallListeners
protected void uninstallListeners()(Code)



uninstallUI
public void uninstallUI(JComponent c)(Code)



update
public void update(Graphics g, JComponent c)(Code)



updateFocusAcceleratorBinding
final void updateFocusAcceleratorBinding(boolean changed)(Code)



updateFocusTraversalKeys
void updateFocusTraversalKeys()(Code)



viewToModel
public int viewToModel(JTextComponent c, Point p)(Code)



viewToModel
public int viewToModel(JTextComponent c, Point p, Position.Bias[] b)(Code)



Methods inherited from javax.swing.plaf.TextUI
abstract public void damageRange(JTextComponent a0, int a1, int a2)(Code)(Java Doc)
abstract public void damageRange(JTextComponent a0, int a1, int a2, Position.Bias a3, Position.Bias a4)(Code)(Java Doc)
abstract public EditorKit getEditorKit(JTextComponent a0)(Code)(Java Doc)
abstract public int getNextVisualPositionFrom(JTextComponent a0, int a1, Position.Bias a2, int a3, Position.Bias[] a4) throws BadLocationException(Code)(Java Doc)
abstract public View getRootView(JTextComponent a0)(Code)(Java Doc)
public String getToolTipText(JTextComponent a0, Point a1)(Code)(Java Doc)
abstract public Rectangle modelToView(JTextComponent a0, int a1) throws BadLocationException(Code)(Java Doc)
abstract public Rectangle modelToView(JTextComponent a0, int a1, Position.Bias a2) throws BadLocationException(Code)(Java Doc)
abstract public int viewToModel(JTextComponent a0, Point a1)(Code)(Java Doc)
abstract public int viewToModel(JTextComponent a0, Point a1, Position.Bias[] a2)(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.