com.groiss.gui.component
Class SortableLink
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.Link
com.groiss.gui.component.SortableLink
- All Implemented Interfaces:
- Component, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class SortableLink
- extends Link
A HTML link element (a) which can be sorted according to an additional attribute, the sortString.
The sortString must be set via setSortString(String)
. Sorting is case insensitive.
A SortableLink without a href will be rendered as a span.
- See Also:
- Serialized Form
Fields inherited from class com.groiss.gui.component.Link |
text |
Fields inherited from class com.groiss.gui.AbstractComponent |
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode |
Method Summary |
java.lang.String |
getSortString()
Gets the sortSting |
void |
setHref(java.lang.String href)
sets the link url |
void |
setSortString(java.lang.String s)
Sets sortString (the string by which this link is sorted) |
Methods inherited from class com.groiss.gui.AbstractComponent |
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SortableLink
public SortableLink(java.lang.String href,
java.lang.String text,
java.lang.String target)
SortableLink
public SortableLink(java.lang.String href,
java.lang.String text)
SortableLink
public SortableLink(java.lang.String href,
Component text)
setHref
public void setHref(java.lang.String href)
- Description copied from class:
Link
- sets the link url
- Overrides:
setHref
in class Link
- Parameters:
href
- the url
setSortString
public void setSortString(java.lang.String s)
- Sets sortString (the string by which this link is sorted)
- Parameters:
s
-
getSortString
public java.lang.String getSortString()
- Gets the sortSting
- Returns:
- the sortString
@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.