Class MultiSplitLayout.Split

java.lang.Object
org.jdesktop.swingx.MultiSplitLayout.Node
org.jdesktop.swingx.MultiSplitLayout.Split
Enclosing class:
MultiSplitLayout

public static class MultiSplitLayout.Split extends MultiSplitLayout.Node
Defines a vertical or horizontal subdivision into two or more tiles.
  • Constructor Details

    • Split

      public Split()
  • Method Details

    • isRowLayout

      public boolean isRowLayout()
      Returns true if the this Split's children are to be laid out in a row: all the same height, left edge equal to the previous Node's right edge. If false, children are laid on in a column.
      Returns:
      the value of the rowLayout property.
      See Also:
    • setRowLayout

      public void setRowLayout(boolean rowLayout)
      Set the rowLayout property. If true, all of this Split's children are to be laid out in a row: all the same height, each node's left edge equal to the previous Node's right edge. If false, children are laid on in a column. Default value is true.
      Parameters:
      rowLayout - true for horizontal row layout, false for column
      See Also:
    • getChildren

      public List<MultiSplitLayout.Node> getChildren()
      Returns this Split node's children. The returned value is not a reference to the Split's internal list of children
      Returns:
      the value of the children property.
      See Also:
    • setChildren

      public void setChildren(List<MultiSplitLayout.Node> children)
      Set's the children property of this Split node. The parent of each new child is set to this Split node, and the parent of each old child (if any) is set to null. This method defensively copies the incoming List. Default value is an empty List.
      Parameters:
      children - List of children
      Throws:
      IllegalArgumentException - if children is null
      See Also:
    • lastWeightedChild

      public final MultiSplitLayout.Node lastWeightedChild()
      Convenience method that returns the last child whose weight is > 0.0.
      Returns:
      the last child whose weight is > 0.0.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object