Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.javatools.compare.view
Class SplitPanelLayout

java.lang.Object
  extended by oracle.javatools.compare.view.SplitPanelLayout

All Implemented Interfaces:
java.awt.LayoutManager

public final class SplitPanelLayout
extends java.lang.Object
implements java.awt.LayoutManager

A custom layout manager for a two or three pane split compare / merge window. The layout supports a left, center and right editor component along with splitters and gutters. It also contains support for adjusting the variable weight of the three editor components.


Field Summary
static java.lang.String CENTER_EDITOR
           
static java.lang.String CENTER_GUTTER
           
static java.lang.String CENTER_SPLIT
           
static java.lang.String CENTER_SPLIT_TOP
           
static java.lang.String CENTER_TITLE
           
static java.lang.String LEFT_EDITOR
           
static java.lang.String LEFT_GUTTER
           
static java.lang.String LEFT_OVERVIEW
           
static java.lang.String LEFT_SPLIT
           
static java.lang.String LEFT_SPLIT_TOP
           
static java.lang.String LEFT_TITLE
           
static java.lang.String RIGHT_EDITOR
           
static java.lang.String RIGHT_GUTTER
           
static java.lang.String RIGHT_OVERVIEW
           
static java.lang.String RIGHT_SCROLLBAR
           
static java.lang.String RIGHT_TITLE
           
static java.lang.String SPLITTER_LOCATION_PROPERTY
           

 

Constructor Summary
SplitPanelLayout()
           

 

Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void copyWeightsFromLayout(SplitPanelLayout layout)
           
 java.awt.Component getComponent(java.lang.String key)
           
 int getRightGutterAlignment()
          Where the right editor's gutter appears in relation to the editor
 void layoutContainer(java.awt.Container parent)
           
static void main(java.lang.String[] args)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 void setRightGutterAlignment(int alignment)
          Set whether right editor's gutter appears to the left or the right of the editor
 void setThreePaneMode(boolean isThreePaneMode)
          Set whether the layout is in three pane mode.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

LEFT_OVERVIEW

public static final java.lang.String LEFT_OVERVIEW
See Also:
Constant Field Values

LEFT_GUTTER

public static final java.lang.String LEFT_GUTTER
See Also:
Constant Field Values

LEFT_TITLE

public static final java.lang.String LEFT_TITLE
See Also:
Constant Field Values

LEFT_EDITOR

public static final java.lang.String LEFT_EDITOR
See Also:
Constant Field Values

LEFT_SPLIT_TOP

public static final java.lang.String LEFT_SPLIT_TOP
See Also:
Constant Field Values

LEFT_SPLIT

public static final java.lang.String LEFT_SPLIT
See Also:
Constant Field Values

CENTER_GUTTER

public static final java.lang.String CENTER_GUTTER
See Also:
Constant Field Values

CENTER_TITLE

public static final java.lang.String CENTER_TITLE
See Also:
Constant Field Values

CENTER_EDITOR

public static final java.lang.String CENTER_EDITOR
See Also:
Constant Field Values

CENTER_SPLIT_TOP

public static final java.lang.String CENTER_SPLIT_TOP
See Also:
Constant Field Values

CENTER_SPLIT

public static final java.lang.String CENTER_SPLIT
See Also:
Constant Field Values

RIGHT_TITLE

public static final java.lang.String RIGHT_TITLE
See Also:
Constant Field Values

RIGHT_EDITOR

public static final java.lang.String RIGHT_EDITOR
See Also:
Constant Field Values

RIGHT_GUTTER

public static final java.lang.String RIGHT_GUTTER
See Also:
Constant Field Values

RIGHT_SCROLLBAR

public static final java.lang.String RIGHT_SCROLLBAR
See Also:
Constant Field Values

RIGHT_OVERVIEW

public static final java.lang.String RIGHT_OVERVIEW
See Also:
Constant Field Values

SPLITTER_LOCATION_PROPERTY

public static final java.lang.String SPLITTER_LOCATION_PROPERTY
See Also:
Constant Field Values

Constructor Detail

SplitPanelLayout

public SplitPanelLayout()

Method Detail

copyWeightsFromLayout

public void copyWeightsFromLayout(SplitPanelLayout layout)

setRightGutterAlignment

public void setRightGutterAlignment(int alignment)
Set whether right editor's gutter appears to the left or the right of the editor
Parameters:
alignment - SwingConstants.LEFT or SwingConstants.RIGHT

getRightGutterAlignment

public int getRightGutterAlignment()
Where the right editor's gutter appears in relation to the editor
Returns:
SwingConstants.LEFT or SwingConstants.RIGHT

setThreePaneMode

public void setThreePaneMode(boolean isThreePaneMode)
Set whether the layout is in three pane mode. This affects the visibility of all components using CENTER_ constraints, and also resets the weights of the three editor components to their default size for the mode (1/2 available space for two pane, 1/3 available space for three pane).
Parameters:
isThreePaneMode - if true, the layout will display the CENTER_ components and will allocate widths to the editor components based on the position of two splitters.

getComponent

public java.awt.Component getComponent(java.lang.String key)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager

main

public static void main(java.lang.String[] args)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.