/** * Get the divider location. You can only get a valid divider location when the component is displayed on the * screen. If the component has never been displayed on screen, -1 will be returned. * * @param dividerIndex the divider index * @return the location of the divider. */ public int getDividerLocation(int dividerIndex) { return ((JideSplitPaneLayout) getLayout()).getDividerLocation(dividerIndex); }
/** * Lays out the <code>JideSplitPane</code> layout based on the preferred size children components, or based on the * proportions if proportional layout is on. This will likely result in changing the divider location. */ public void resetToPreferredSizes() { if (getLayout() instanceof JideBoxLayout) { boolean old = ((JideBoxLayout) getLayout()).isResetWhenInvalidate(); try { ((JideBoxLayout) getLayout()).setResetWhenInvalidate(true); ((JideBoxLayout) getLayout()).invalidateLayout(this); } finally { ((JideBoxLayout) getLayout()).setResetWhenInvalidate(old); } } doLayout(); }
/** * Set the divider location. You can only call this method to set the divider location when the component is * rendered on the screen. If the component has never been displayed before, this method call has no effect. * * @param dividerIndex the divider index, starting from 0 for the first divider. * @param location new location */ public void setDividerLocation(int dividerIndex, int location) { ((JideSplitPaneLayout) getLayout()).setDividerLocation(dividerIndex, location, true); validate(); }
/** * Causes this container to lay out its components. Most programs should not call this method directly, but should * invoke the <code>validate</code> method instead. * * @see LayoutManager#layoutContainer * @see #setLayout * @see #validate * @since JDK1.1 */ @Override public void doLayout() { if (removeExtraDividers()) { ((JideSplitPaneLayout) getLayout()).invalidateLayout(this); } super.doLayout(); }
_proportions = (proportions == null) ? null : proportions.clone(); LayoutManager layoutManager = getLayout(); boolean reset = false; if (layoutManager instanceof JideBoxLayout) {
LayoutManager oldManager = getLayout(); Map<Component,Object> constraintMap = null; if (oldManager instanceof JideSplitPaneLayout) {
LayoutManager layoutManager = getLayout(); if (layoutManager instanceof JideBoxLayout) { ((JideBoxLayout) layoutManager).setResetWhenInvalidate(true);