< prev index next >

src/java.desktop/share/classes/javax/swing/JColorChooser.java

Print this page




 544      * @return  a string representation of this <code>JColorChooser</code>
 545      */
 546     protected String paramString() {
 547         StringBuilder chooserPanelsString = new StringBuilder();
 548         for (AbstractColorChooserPanel panel : chooserPanels) {
 549             chooserPanelsString.append('[').append(panel)
 550                                .append(']');
 551         }
 552         String previewPanelString = (previewPanel != null ? previewPanel
 553                 .toString() : "");
 554 
 555         return super.paramString() + ",chooserPanels="
 556                 + chooserPanelsString.toString() + ",previewPanel="
 557                 + previewPanelString;
 558     }
 559 
 560 /////////////////
 561 // Accessibility support
 562 ////////////////
 563 



 564     protected AccessibleContext accessibleContext = null;
 565 
 566     /**
 567      * Gets the AccessibleContext associated with this JColorChooser.
 568      * For color choosers, the AccessibleContext takes the form of an
 569      * AccessibleJColorChooser.
 570      * A new AccessibleJColorChooser instance is created if necessary.
 571      *
 572      * @return an AccessibleJColorChooser that serves as the
 573      *         AccessibleContext of this JColorChooser
 574      */
 575     public AccessibleContext getAccessibleContext() {
 576         if (accessibleContext == null) {
 577             accessibleContext = new AccessibleJColorChooser();
 578         }
 579         return accessibleContext;
 580     }
 581 
 582     /**
 583      * This class implements accessibility support for the




 544      * @return  a string representation of this <code>JColorChooser</code>
 545      */
 546     protected String paramString() {
 547         StringBuilder chooserPanelsString = new StringBuilder();
 548         for (AbstractColorChooserPanel panel : chooserPanels) {
 549             chooserPanelsString.append('[').append(panel)
 550                                .append(']');
 551         }
 552         String previewPanelString = (previewPanel != null ? previewPanel
 553                 .toString() : "");
 554 
 555         return super.paramString() + ",chooserPanels="
 556                 + chooserPanelsString.toString() + ",previewPanel="
 557                 + previewPanelString;
 558     }
 559 
 560 /////////////////
 561 // Accessibility support
 562 ////////////////
 563 
 564     /**
 565      * The accessible context.
 566      */
 567     protected AccessibleContext accessibleContext = null;
 568 
 569     /**
 570      * Gets the AccessibleContext associated with this JColorChooser.
 571      * For color choosers, the AccessibleContext takes the form of an
 572      * AccessibleJColorChooser.
 573      * A new AccessibleJColorChooser instance is created if necessary.
 574      *
 575      * @return an AccessibleJColorChooser that serves as the
 576      *         AccessibleContext of this JColorChooser
 577      */
 578     public AccessibleContext getAccessibleContext() {
 579         if (accessibleContext == null) {
 580             accessibleContext = new AccessibleJColorChooser();
 581         }
 582         return accessibleContext;
 583     }
 584 
 585     /**
 586      * This class implements accessibility support for the


< prev index next >