Package com.groiss.gui.component
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 Summary
Fields inherited from class com.groiss.gui.AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
-
Method Summary
Methods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getAttribute, getBrowserMode, getContent, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setAttribute, setBrowserMode, setClass, setContent, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toggleClass, toString
-
Field Details
-
compareval
-
-
Constructor Details
-
ComparableComponent
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T extends Comparable<T>>
-
getCompareval
-