All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.JCSplitterWindow

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jclass.bwt.JCContainer
                                   |
                                   +----jclass.bwt.JCSplitterWindow

public class JCSplitterWindow
extends JCContainer
A container similar to Motif's XmPanedWindow, which manages 1 or more children oriented vertically or horizontally. A JCSeparator component separates each pair of children. The user can adjust the size of the panes by dragging the separator.

Properties

Name Method
Background setBackground
Font setFont
Foreground setForeground
Insets setInsets
MinChildSize setMinChildSize
Orientation setOrientation
PreferredSize setPreferredSize
UserData setUserData


Variable Index

 o HORIZONTAL
 o VERTICAL

Constructor Index

 o JCSplitterWindow()
Creates an empty horizontal window.
 o JCSplitterWindow(int)
Creates an empty window.
 o JCSplitterWindow(int, Applet, String)
Creates a pane which reads parameters from the applet's HTML file.

Method Index

 o add(Component)
Adds the specified component to this container at the given position.
 o getMinChildSize()
Gets the MinChildSize value.
 o getOrientation()
Gets the direction of the panes.
 o getParameters()
Reads the parameter values from the HTML page using the component's applet.
 o layout()
Position's the window's internal elements.
 o preferredHeight()
Returns the sum of all children's preferred height if orientation is vertical; otherwise returns the maximum preferred height of all children.
 o preferredWidth()
Returns the sum of all children's preferred width if orientation is horizontal; otherwise returns the maximum preferred width of all children.
 o setLayout(LayoutManager)
Sets the layout manager for this container.
 o setMinChildSize(int)
Sets the minimum size (in pixels) to which a child can be resized by the user (default: 20).
 o setOrientation(int)
Sets the orientation: HORIZONTAL or VERTICAL.

Variables

 o HORIZONTAL
  public final static int HORIZONTAL
 o VERTICAL
  public final static int VERTICAL

Constructors

 o JCSplitterWindow
  public JCSplitterWindow()
Creates an empty horizontal window. No parameters are read from an HTML file.

 o JCSplitterWindow
  public JCSplitterWindow(int dir)
Creates an empty window. No parameters are read from an HTML file.

Parameters:
dir - either HORIZONTAL or VERTICAL
 o JCSplitterWindow
  public JCSplitterWindow(int dir,
                          Applet applet,
                          String name)
Creates a pane which reads parameters from the applet's HTML file.

Parameters:
dir - either HORIZONTAL or VERTICAL
applet - the applet whose PARAM tags are to be read
name - if this is not null, only parameters preceded by this name are read
See Also:
getParameter

Methods

 o getParameters
  protected void getParameters()
Reads the parameter values from the HTML page using the component's applet. The values will override those previously set.

Overrides:
getParameters in class JCContainer
 o getOrientation
  public int getOrientation()
Gets the direction of the panes.

See Also:
setOrientation
 o setOrientation
  public void setOrientation(int v)
Sets the orientation: HORIZONTAL or VERTICAL.

Throws: IllegalArgumentException
If an invalid value was set
 o getMinChildSize
  public int getMinChildSize()
Gets the MinChildSize value.

See Also:
setMinChildSize
 o setMinChildSize
  public void setMinChildSize(int v)
Sets the minimum size (in pixels) to which a child can be resized by the user (default: 20).

 o add
  public Component add(Component comp)
Adds the specified component to this container at the given position. A JCSeparator is added between each pair of children.

Parameters:
pos - the position at which to insert the component. -1 means insert at the end.
Overrides:
add in class JCContainer
See Also:
JCSeparator
 o preferredHeight
  protected int preferredHeight()
Returns the sum of all children's preferred height if orientation is vertical; otherwise returns the maximum preferred height of all children.

Overrides:
preferredHeight in class JCContainer
 o preferredWidth
  protected int preferredWidth()
Returns the sum of all children's preferred width if orientation is horizontal; otherwise returns the maximum preferred width of all children.

Overrides:
preferredWidth in class JCContainer
 o layout
  public synchronized void layout()
Position's the window's internal elements.

Overrides:
layout in class Container
 o setLayout
  public final void setLayout(LayoutManager mgr)
Sets the layout manager for this container. This method is overridden to prevent the layout mgr from being set.

Overrides:
setLayout in class Container

All Packages  Class Hierarchy  This Package  Previous  Next  Index