borland Packages  Class Hierarchy  jbcl.control Package  Index 

SplitPanel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.control.SplitPanel

About the SplitPanel component

Variables  Constructors  Properties  Methods  Event Listeners

Implements MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

A SplitPanel is a JBCL container that uses a Borland layout called PaneLayout. The placement and size of each component placed into the SplitPanel is specified relative to the components that have already been added to the container. Each component (other than the first one) splits the space already occupied by a previously added component. Therefore, the order you add the components to the SplitPanel is important. The components appear in panes separated by movable "splitter" bars that allows the user to change the pane constraints of the panel at runtime.

For more information on using the PaneLayout, see PaneLayout in the Building Applications with JBuilder. For more information on creating a SplitPanel, see Working with advanced components in the Building Applications with JBuilder.


SplitPanel variables

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in com.sun.java.swing.JComponent

Variables implemented in java.awt.Component

SplitPanel constructors

SplitPanel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in com.sun.java.swing.JComponent

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

SplitPanel methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.BeanPanel

Methods implemented in com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

SplitPanel event listeners


SplitPanel constructors

SplitPanel()

  public SplitPanel()
The default constructor. Creates and hides the divider, and sets its color to black. Sets the layout of the panel to PaneLayout. Sets the PaneLayout gap to 2. Listens for panel mouse events.


SplitPanel properties

dividerColor

 public Color getDividerColor()
 public void setDividerColor(java.awt.Color color)
Sets the color of the Pane divider. The default is black.

gap

 public int getGap()
 public void setGap(int gap)
The pane layout gap; the thickness of the border between adjacent panes.

layout

 public void setLayout(java.awt.LayoutManager mgr)
If Layout Manager is a PaneLayout, sets the LayoutManager to the supplied PaneLayout. If LayoutManager is not a PaneLayout, does nothing.

preferredSize

 public Dimension getPreferredSize()
The preferred layout size for this container. Calls java.awt.Container.getPreferredSize().

If the preferred width or height is initially 10, it is increased to 100.

textureName

 public String getTextureName()
 public void setTextureName(java.lang.String path)
Determines the name of the file that provides the image used to tile the background of the control so that the background appears to have a texture. Specify the complete path name of the file with the path parameter.

SplitPanel event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )