Class ComparableComponent<T extends Comparable<T>>

java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.ComparableComponent<T>
All Implemented Interfaces:
Component, Serializable, Cloneable, Comparable<ComparableComponent<T>>

public class ComparableComponent<T extends Comparable<T>> extends AbstractComponent implements Comparable<ComparableComponent<T>>
A gui component with a compare value. This can be used for arbitrary html text in tables sorted be an extra comparable value. Note: this class has a natural ordering that is inconsistent with equals, There are cases where x.compareTo(y) is 0 and equals return false.
See Also:
  • Field Details

  • Constructor Details

    • ComparableComponent

      public ComparableComponent(T compareval, Element root)
  • Method Details