com.imagero.swing.layout
Interface SortableContainer

All Known Implementing Classes:
BasicTitleBar, TitleBar

public interface SortableContainer

RainLayout uses this interface to sort components.


Method Summary
 java.util.Comparator getComparator()
          Get Comparator used to sort Components.
 java.awt.Component[] getComponentsOrdered()
          Get components in right order.
 

Method Detail

getComparator

public java.util.Comparator getComparator()
Get Comparator used to sort Components. If this method returns null, then Components should be in their natural order.

Returns:
current Comparator or null

getComponentsOrdered

public java.awt.Component[] getComponentsOrdered()
Get components in right order. If this method returns null LayoutManager should use getComparator and sort children by itself. Purpose of this method is to achieve better performance without caching of information by LayoutManager.

Returns:
Component [] array or null