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


javax.swing.BasicSwingTestCase
   javax.swing.text.BoxView_WithChildrenTest

BoxView_WithChildrenTest
public class BoxView_WithChildrenTest extends BasicSwingTestCase implements DocumentListener(Code)
Tests BoxView class which has special children.




Method Summary
public  voidchangedUpdate(DocumentEvent event)
    
public  voidinsertUpdate(DocumentEvent event)
    
public  voidremoveUpdate(DocumentEvent event)
    
protected  voidsetUp()
    
public  voidtestBaselineLayout01()
     Tests baselineLayout with non-resizable child views.
public  voidtestBaselineLayout02()
     Tests baselineLayout with resizable child views.
public  voidtestBaselineRequirements01()
     Tests baselineRequirements with ordinary children along major axis - Y.
public  voidtestBaselineRequirements02()
     Tests baselineRequirements with flexible children along major axis - Y.
public  voidtestBaselineRequirements03()
     Tests baselineRequirements with ordinary children along minor axis - X.
public  voidtestCalculateMajorAxisRequirements01()
     Tests calculateMajorAxisRequirements with ordinary children.
public  voidtestCalculateMajorAxisRequirements02()
     Tests calculateMajorAxisRequirements with flexible children.
public  voidtestCalculateMinorAxisRequirements01()
     Tests calculateMinorAxisRequirements with ordinary children.
public  voidtestCalculateMinorAxisRequirements02()
     Tests calculateMinorAxisRequirements with flexible children.
public  voidtestChildAllocation()
    
public  voidtestChildAllocationNull()
    
public  voidtestFlipEastAndWestAtEnds()
    
public  voidtestFlipEastAndWestAtEndsIndex()
    
public  voidtestForwardUpdate01()
     Tests forwardUpdate when major axis is Y_AXIS and document structure isn't changed.
public  voidtestForwardUpdate02()
     Tests forwardUpdate when major axis is Y_AXIS and document structure isn't changed.
public  voidtestForwardUpdate03()
     Tests forwardUpdate when major axis is X_AXIS and document structure isn't changed.
public  voidtestForwardUpdate04()
     Tests forwardUpdate when major axis is X_AXIS and document structure isn't changed.
public  voidtestGetChildAllocation()
    
public  voidtestGetMaximumSpan01()
     Test getMaximumSpan with ordinary children.
public  voidtestGetMaximumSpan02()
     Test getMaximumSpan with flexible children.
public  voidtestGetMaximumSpan03()
     Test getMaximumSpan throws required exception.
public  voidtestGetMinimumSpan01()
     Test getMinimumSpan with ordinary children.
public  voidtestGetMinimumSpan02()
     Test getMinimumSpan with flexible children.
public  voidtestGetMinimumSpan03()
     Test getMinimumSpan throws required exception.
public  voidtestGetOffset01()
     Tests getOffset with Y axis.
public  voidtestGetOffset02()
     Tests getOffset with X axis.
public  voidtestGetPreferredSpan01()
     Test getPreferredSpan with ordinary children.
public  voidtestGetPreferredSpan02()
     Test getPreferredSpan with flexible children.
public  voidtestGetPreferredSpan03()
     Test getPreferredSpan throws required exception.
public  voidtestGetResizeWeight01()
     Test getResizeWeight with ordinary children.
public  voidtestGetResizeWeight02()
     Test getResizeWeight with flexible children.
public  voidtestGetResizeWeight03()
     Test getResizeWeight throws required exception.
public  voidtestGetResizeWeight04()
     Test getResizeWeight with both ordinary and flexible children while major axis is X.
public  voidtestGetSpan01()
     Tests getSpan with Y axis.
public  voidtestGetSpan02()
     Tests getSpan with X axis.
public  voidtestGetViewAtPoint01()
     General checks.
public  voidtestGetViewAtPoint02()
     Checks with invalid coordinates: outside of the shape.
public  voidtestGetViewAtPoint03()
     Tests getViewAtPoint method when major axis of the view is X.
public  voidtestInsertUpdate()
    
public  voidtestLayoutMajorAxis01()
     Tests layoutMajorAxis with default settings: not resizable children, enough height space.
public  voidtestLayoutMajorAxis02()
     Tests layoutMajorAxis with default settings: not resizable children, height space > maximum.
public  voidtestLayoutMajorAxis03()
     Tests layoutMajorAxis with "flexible" settings: resizable children, enough height space.
public  voidtestLayoutMajorAxis04()
     Tests layoutMajorAxis with "flexible" settings: resizable children, height space > minimum but < preferred.
public  voidtestLayoutMinorAxis01()
     Tests layout of minor axis with normal (non-resizable) children.
public  voidtestLayoutMinorAxis02()
     Tests layout of minor axis with resizable children.
public  voidtestLayoutMinorAxis03()
     Tests layout of minor axis with resizable children in the case where targetSpan is less than the minimum span of at least one of the children.
public  voidtestModelToView()
    
public  voidtestPaint()
    
public  voidtestUpdateLayout01()
    
public  voidtestUpdateLayout02()
    
public  voidtestViewToModel()
    



Method Detail
changedUpdate
public void changedUpdate(DocumentEvent event)(Code)



insertUpdate
public void insertUpdate(DocumentEvent event)(Code)



removeUpdate
public void removeUpdate(DocumentEvent event)(Code)



setUp
protected void setUp() throws Exception(Code)



testBaselineLayout01
public void testBaselineLayout01()(Code)
Tests baselineLayout with non-resizable child views.

The test performed for both major and minor axes.




testBaselineLayout02
public void testBaselineLayout02()(Code)
Tests baselineLayout with resizable child views.

The test performed for major axis only.




testBaselineRequirements01
public void testBaselineRequirements01()(Code)
Tests baselineRequirements with ordinary children along major axis - Y.



testBaselineRequirements02
public void testBaselineRequirements02()(Code)
Tests baselineRequirements with flexible children along major axis - Y.



testBaselineRequirements03
public void testBaselineRequirements03()(Code)
Tests baselineRequirements with ordinary children along minor axis - X.



testCalculateMajorAxisRequirements01
public void testCalculateMajorAxisRequirements01()(Code)
Tests calculateMajorAxisRequirements with ordinary children.



testCalculateMajorAxisRequirements02
public void testCalculateMajorAxisRequirements02()(Code)
Tests calculateMajorAxisRequirements with flexible children.



testCalculateMinorAxisRequirements01
public void testCalculateMinorAxisRequirements01()(Code)
Tests calculateMinorAxisRequirements with ordinary children.



testCalculateMinorAxisRequirements02
public void testCalculateMinorAxisRequirements02()(Code)
Tests calculateMinorAxisRequirements with flexible children.



testChildAllocation
public void testChildAllocation()(Code)



testChildAllocationNull
public void testChildAllocationNull() throws Exception(Code)



testFlipEastAndWestAtEnds
public void testFlipEastAndWestAtEnds()(Code)



testFlipEastAndWestAtEndsIndex
public void testFlipEastAndWestAtEndsIndex() throws Exception(Code)



testForwardUpdate01
public void testForwardUpdate01() throws BadLocationException(Code)
Tests forwardUpdate when major axis is Y_AXIS and document structure isn't changed. The child says it changed its preference along both axes. (See javax.swing.text.ViewTestHelpers.ChildView.insertUpdate()).



testForwardUpdate02
public void testForwardUpdate02() throws BadLocationException(Code)
Tests forwardUpdate when major axis is Y_AXIS and document structure isn't changed. The child says it changed its prefence along X_AXIS only.



testForwardUpdate03
public void testForwardUpdate03() throws BadLocationException(Code)
Tests forwardUpdate when major axis is X_AXIS and document structure isn't changed. The child says it changed its preference along both axes. (See javax.swing.text.ViewTestHelpers.ChildView.insertUpdate()).



testForwardUpdate04
public void testForwardUpdate04() throws BadLocationException(Code)
Tests forwardUpdate when major axis is X_AXIS and document structure isn't changed. The child says it changed its preference along Y_AXIS only.



testGetChildAllocation
public void testGetChildAllocation()(Code)



testGetMaximumSpan01
public void testGetMaximumSpan01()(Code)
Test getMaximumSpan with ordinary children.



testGetMaximumSpan02
public void testGetMaximumSpan02()(Code)
Test getMaximumSpan with flexible children.



testGetMaximumSpan03
public void testGetMaximumSpan03()(Code)
Test getMaximumSpan throws required exception.



testGetMinimumSpan01
public void testGetMinimumSpan01()(Code)
Test getMinimumSpan with ordinary children.



testGetMinimumSpan02
public void testGetMinimumSpan02()(Code)
Test getMinimumSpan with flexible children.



testGetMinimumSpan03
public void testGetMinimumSpan03()(Code)
Test getMinimumSpan throws required exception.



testGetOffset01
public void testGetOffset01()(Code)
Tests getOffset with Y axis.



testGetOffset02
public void testGetOffset02()(Code)
Tests getOffset with X axis.



testGetPreferredSpan01
public void testGetPreferredSpan01()(Code)
Test getPreferredSpan with ordinary children.



testGetPreferredSpan02
public void testGetPreferredSpan02()(Code)
Test getPreferredSpan with flexible children.



testGetPreferredSpan03
public void testGetPreferredSpan03()(Code)
Test getPreferredSpan throws required exception.



testGetResizeWeight01
public void testGetResizeWeight01()(Code)
Test getResizeWeight with ordinary children.



testGetResizeWeight02
public void testGetResizeWeight02()(Code)
Test getResizeWeight with flexible children.



testGetResizeWeight03
public void testGetResizeWeight03()(Code)
Test getResizeWeight throws required exception.



testGetResizeWeight04
public void testGetResizeWeight04()(Code)
Test getResizeWeight with both ordinary and flexible children while major axis is X.



testGetSpan01
public void testGetSpan01()(Code)
Tests getSpan with Y axis.



testGetSpan02
public void testGetSpan02()(Code)
Tests getSpan with X axis.



testGetViewAtPoint01
public void testGetViewAtPoint01()(Code)
General checks.



testGetViewAtPoint02
public void testGetViewAtPoint02()(Code)
Checks with invalid coordinates: outside of the shape.



testGetViewAtPoint03
public void testGetViewAtPoint03()(Code)
Tests getViewAtPoint method when major axis of the view is X.



testInsertUpdate
public void testInsertUpdate() throws BadLocationException(Code)



testLayoutMajorAxis01
public void testLayoutMajorAxis01()(Code)
Tests layoutMajorAxis with default settings: not resizable children, enough height space.



testLayoutMajorAxis02
public void testLayoutMajorAxis02()(Code)
Tests layoutMajorAxis with default settings: not resizable children, height space > maximum.



testLayoutMajorAxis03
public void testLayoutMajorAxis03()(Code)
Tests layoutMajorAxis with "flexible" settings: resizable children, enough height space.



testLayoutMajorAxis04
public void testLayoutMajorAxis04()(Code)
Tests layoutMajorAxis with "flexible" settings: resizable children, height space > minimum but < preferred.



testLayoutMinorAxis01
public void testLayoutMinorAxis01()(Code)
Tests layout of minor axis with normal (non-resizable) children.



testLayoutMinorAxis02
public void testLayoutMinorAxis02()(Code)
Tests layout of minor axis with resizable children.



testLayoutMinorAxis03
public void testLayoutMinorAxis03()(Code)
Tests layout of minor axis with resizable children in the case where targetSpan is less than the minimum span of at least one of the children.



testModelToView
public void testModelToView() throws BadLocationException(Code)



testPaint
public void testPaint()(Code)



testUpdateLayout01
public void testUpdateLayout01() throws BadLocationException(Code)



testUpdateLayout02
public void testUpdateLayout02() throws BadLocationException(Code)



testViewToModel
public void testViewToModel()(Code)



Fields inherited from javax.swing.BasicSwingTestCase
final public static long DEFAULT_TIMEOUT_DELAY(Code)(Java Doc)
protected PropertyChangeController propertyChangeController(Code)(Java Doc)
protected static long timeoutDelay(Code)(Java Doc)

Methods inherited from javax.swing.BasicSwingTestCase
public static void assertEquals(Object[] expected, Object[] actual)(Code)(Java Doc)
protected Graphics createTestGraphics()(Code)(Java Doc)
protected Component findComponent(Container root, Class findClass, boolean exactClassMatch)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt, int charWidth)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt, int charWidth, int charHeight)(Code)(Java Doc)
protected EventListener getListener(EventListener[] listeners, Class listenerClass)(Code)(Java Doc)
protected boolean hasListener(EventListener[] listeners, Class listenerClass)(Code)(Java Doc)
public static boolean isHarmony()(Code)(Java Doc)
protected boolean isSystemWindow(Frame f)(Code)(Java Doc)
protected void rethrow(Throwable exception) throws Throwable(Code)(Java Doc)
public void runBare() throws Throwable(Code)(Java Doc)
protected Throwable runBareImpl() throws Throwable(Code)(Java Doc)
protected void runBareSuper() throws Throwable(Code)(Java Doc)
public static Object serializeObject(Object objectToWrite) throws IOException, ClassNotFoundException(Code)(Java Doc)
public void setIgnoreNotImplemented(boolean b)(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
protected void testExceptionalCase(ExceptionalCase ec)(Code)(Java Doc)
protected void traverseComponentTree(Component root, TraverseAction action)(Code)(Java Doc)
protected boolean waitForFocus(Component c) throws Exception(Code)(Java Doc)
protected void waitForIdle() throws Exception(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.