< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthSplitPaneUI.java

Print this page




  63     /**
  64      * Style for the divider.
  65      */
  66     private SynthStyle dividerStyle;
  67 
  68 
  69     /**
  70      * Creates a new SynthSplitPaneUI instance
  71      *
  72      * @param x component to create UI object for
  73      * @return the UI object
  74      */
  75     public static ComponentUI createUI(JComponent x) {
  76         return new SynthSplitPaneUI();
  77     }
  78 
  79     /**
  80      * Installs the UI defaults.
  81      */
  82     @Override

  83     protected void installDefaults() {
  84         updateStyle(splitPane);
  85 
  86         setOrientation(splitPane.getOrientation());
  87         setContinuousLayout(splitPane.isContinuousLayout());
  88 
  89         resetLayoutManager();
  90 
  91         /* Install the nonContinuousLayoutDivider here to avoid having to
  92         add/remove everything later. */
  93         if(nonContinuousLayoutDivider == null) {
  94             setNonContinuousLayoutDivider(
  95                                 createDefaultNonContinuousLayoutDivider(),
  96                                 true);
  97         } else {
  98             setNonContinuousLayoutDivider(nonContinuousLayoutDivider, true);
  99         }
 100 
 101         // focus forward traversal key
 102         if (managingFocusForwardTraversalKeys==null) {




  63     /**
  64      * Style for the divider.
  65      */
  66     private SynthStyle dividerStyle;
  67 
  68 
  69     /**
  70      * Creates a new SynthSplitPaneUI instance
  71      *
  72      * @param x component to create UI object for
  73      * @return the UI object
  74      */
  75     public static ComponentUI createUI(JComponent x) {
  76         return new SynthSplitPaneUI();
  77     }
  78 
  79     /**
  80      * Installs the UI defaults.
  81      */
  82     @Override
  83     @SuppressWarnings("deprecation")
  84     protected void installDefaults() {
  85         updateStyle(splitPane);
  86 
  87         setOrientation(splitPane.getOrientation());
  88         setContinuousLayout(splitPane.isContinuousLayout());
  89 
  90         resetLayoutManager();
  91 
  92         /* Install the nonContinuousLayoutDivider here to avoid having to
  93         add/remove everything later. */
  94         if(nonContinuousLayoutDivider == null) {
  95             setNonContinuousLayoutDivider(
  96                                 createDefaultNonContinuousLayoutDivider(),
  97                                 true);
  98         } else {
  99             setNonContinuousLayoutDivider(nonContinuousLayoutDivider, true);
 100         }
 101 
 102         // focus forward traversal key
 103         if (managingFocusForwardTraversalKeys==null) {


< prev index next >