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

Print this page




  96  * @see #setDividerLocation
  97  * @see #resetToPreferredSizes
  98  *
  99  * @author Scott Violet
 100  * @since 1.2
 101  */
 102 @SuppressWarnings("serial") // Same-version serialization only
 103 public class JSplitPane extends JComponent implements Accessible
 104 {
 105     /**
 106      * @see #getUIClassID
 107      * @see #readObject
 108      */
 109     private static final String uiClassID = "SplitPaneUI";
 110 
 111     /**
 112      * Vertical split indicates the <code>Component</code>s are
 113      * split along the y axis.  For example the two
 114      * <code>Component</code>s will be split one on top of the other.
 115      */
 116     public final static int VERTICAL_SPLIT = 0;
 117 
 118     /**
 119      * Horizontal split indicates the <code>Component</code>s are
 120      * split along the x axis.  For example the two
 121      * <code>Component</code>s will be split one to the left of the
 122      * other.
 123      */
 124     public final static int HORIZONTAL_SPLIT = 1;
 125 
 126     /**
 127      * Used to add a <code>Component</code> to the left of the other
 128      * <code>Component</code>.
 129      */
 130     public final static String LEFT = "left";
 131 
 132     /**
 133      * Used to add a <code>Component</code> to the right of the other
 134      * <code>Component</code>.
 135      */
 136     public final static String RIGHT = "right";
 137 
 138     /**
 139      * Used to add a <code>Component</code> above the other
 140      * <code>Component</code>.
 141      */
 142     public final static String TOP = "top";
 143 
 144     /**
 145      * Used to add a <code>Component</code> below the other
 146      * <code>Component</code>.
 147      */
 148     public final static String BOTTOM = "bottom";
 149 
 150     /**
 151      * Used to add a <code>Component</code> that will represent the divider.
 152      */
 153     public final static String DIVIDER = "divider";
 154 
 155     /**
 156      * Bound property name for orientation (horizontal or vertical).
 157      */
 158     public final static String ORIENTATION_PROPERTY = "orientation";
 159 
 160     /**
 161      * Bound property name for continuousLayout.
 162      */
 163     public final static String CONTINUOUS_LAYOUT_PROPERTY = "continuousLayout";
 164 
 165     /**
 166      * Bound property name for border.
 167      */
 168     public final static String DIVIDER_SIZE_PROPERTY = "dividerSize";
 169 
 170     /**
 171      * Bound property for oneTouchExpandable.
 172      */
 173     public final static String ONE_TOUCH_EXPANDABLE_PROPERTY =
 174                                "oneTouchExpandable";
 175 
 176     /**
 177      * Bound property for lastLocation.
 178      */
 179     public final static String LAST_DIVIDER_LOCATION_PROPERTY =
 180                                "lastDividerLocation";
 181 
 182     /**
 183      * Bound property for the dividerLocation.
 184      * @since 1.3
 185      */
 186     public final static String DIVIDER_LOCATION_PROPERTY = "dividerLocation";
 187 
 188     /**
 189      * Bound property for weight.
 190      * @since 1.3
 191      */
 192     public final static String RESIZE_WEIGHT_PROPERTY = "resizeWeight";
 193 
 194     /**
 195      * How the views are split.
 196      */
 197     protected int orientation;
 198 
 199     /**
 200      * Whether or not the views are continuously redisplayed while
 201      * resizing.
 202      */
 203     protected boolean continuousLayout;
 204 
 205     /**
 206      * The left or top component.
 207      */
 208     protected Component leftComponent;
 209 
 210     /**
 211      * The right or bottom component.
 212      */




  96  * @see #setDividerLocation
  97  * @see #resetToPreferredSizes
  98  *
  99  * @author Scott Violet
 100  * @since 1.2
 101  */
 102 @SuppressWarnings("serial") // Same-version serialization only
 103 public class JSplitPane extends JComponent implements Accessible
 104 {
 105     /**
 106      * @see #getUIClassID
 107      * @see #readObject
 108      */
 109     private static final String uiClassID = "SplitPaneUI";
 110 
 111     /**
 112      * Vertical split indicates the <code>Component</code>s are
 113      * split along the y axis.  For example the two
 114      * <code>Component</code>s will be split one on top of the other.
 115      */
 116     public static final int VERTICAL_SPLIT = 0;
 117 
 118     /**
 119      * Horizontal split indicates the <code>Component</code>s are
 120      * split along the x axis.  For example the two
 121      * <code>Component</code>s will be split one to the left of the
 122      * other.
 123      */
 124     public static final int HORIZONTAL_SPLIT = 1;
 125 
 126     /**
 127      * Used to add a <code>Component</code> to the left of the other
 128      * <code>Component</code>.
 129      */
 130     public static final String LEFT = "left";
 131 
 132     /**
 133      * Used to add a <code>Component</code> to the right of the other
 134      * <code>Component</code>.
 135      */
 136     public static final String RIGHT = "right";
 137 
 138     /**
 139      * Used to add a <code>Component</code> above the other
 140      * <code>Component</code>.
 141      */
 142     public static final String TOP = "top";
 143 
 144     /**
 145      * Used to add a <code>Component</code> below the other
 146      * <code>Component</code>.
 147      */
 148     public static final String BOTTOM = "bottom";
 149 
 150     /**
 151      * Used to add a <code>Component</code> that will represent the divider.
 152      */
 153     public static final String DIVIDER = "divider";
 154 
 155     /**
 156      * Bound property name for orientation (horizontal or vertical).
 157      */
 158     public static final String ORIENTATION_PROPERTY = "orientation";
 159 
 160     /**
 161      * Bound property name for continuousLayout.
 162      */
 163     public static final String CONTINUOUS_LAYOUT_PROPERTY = "continuousLayout";
 164 
 165     /**
 166      * Bound property name for border.
 167      */
 168     public static final String DIVIDER_SIZE_PROPERTY = "dividerSize";
 169 
 170     /**
 171      * Bound property for oneTouchExpandable.
 172      */
 173     public static final String ONE_TOUCH_EXPANDABLE_PROPERTY =
 174                                "oneTouchExpandable";
 175 
 176     /**
 177      * Bound property for lastLocation.
 178      */
 179     public static final String LAST_DIVIDER_LOCATION_PROPERTY =
 180                                "lastDividerLocation";
 181 
 182     /**
 183      * Bound property for the dividerLocation.
 184      * @since 1.3
 185      */
 186     public static final String DIVIDER_LOCATION_PROPERTY = "dividerLocation";
 187 
 188     /**
 189      * Bound property for weight.
 190      * @since 1.3
 191      */
 192     public static final String RESIZE_WEIGHT_PROPERTY = "resizeWeight";
 193 
 194     /**
 195      * How the views are split.
 196      */
 197     protected int orientation;
 198 
 199     /**
 200      * Whether or not the views are continuously redisplayed while
 201      * resizing.
 202      */
 203     protected boolean continuousLayout;
 204 
 205     /**
 206      * The left or top component.
 207      */
 208     protected Component leftComponent;
 209 
 210     /**
 211      * The right or bottom component.
 212      */