Package hudson.views
Class ListViewColumn
java.lang.Object
hudson.views.ListViewColumn
- All Implemented Interfaces:
ExtensionPoint
,Describable<ListViewColumn>
- Direct Known Subclasses:
BuildButtonColumn
,JobColumn
,LastDurationColumn
,LastFailureColumn
,LastStableColumn
,LastSuccessColumn
,StatusColumn
,WeatherColumn
public abstract class ListViewColumn
extends Object
implements ExtensionPoint, Describable<ListViewColumn>
Extension point for adding a column to a table rendering of
Item
s, such as ListView
.
This object must have the column.jelly
. This view
is called for each cell of this column. The Item
object
is passed in the "job" variable. The view should render
the <td>
tag.
This object may have an additional columnHeader.jelly
. The default ColumnHeader
will render getColumnCaption()
.
If you opt to be shown by default, there also must be a default constructor, which is invoked to create a list view column in the default configuration.
Originally, this extension point was designed for ListView
, but since then
it has grown to be applicable to other View
s and ItemGroup
s that render
a collection of Item
s in a tabular format.
- Since:
- 1.279
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
static final double
static final double
static final double
static final double
static final double
static final DescriptorList<ListViewColumn>
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all the registeredListViewColumn
descriptors.static List<ListViewColumn>
Deprecated.static List<ListViewColumn>
Creates the list ofListViewColumn
s to be used for aListView
s and their likes.static List<ListViewColumn>
createDefaultInitialColumnList
(Class<? extends View> context) Creates the list ofListViewColumn
s to be used for newly createdListView
s and their likes.Returns the name of the column that explains what this column meansFor compatibility reason, this method may not return aListViewColumnDescriptor
and instead return a plainDescriptor
instance.boolean
Deprecated.as of 1.342.
-
Field Details
-
LIST
All registeredListViewColumn
s. -
DEFAULT_COLUMNS_ORDINAL_ICON_START
public static final double DEFAULT_COLUMNS_ORDINAL_ICON_START- See Also:
-
DEFAULT_COLUMNS_ORDINAL_ICON_END
public static final double DEFAULT_COLUMNS_ORDINAL_ICON_END- See Also:
-
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
public static final double DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START- See Also:
-
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_END
public static final double DEFAULT_COLUMNS_ORDINAL_PROPERTIES_END- See Also:
-
DEFAULT_COLUMNS_ORDINAL_ACTIONS_START
public static final double DEFAULT_COLUMNS_ORDINAL_ACTIONS_START- See Also:
-
DEFAULT_COLUMNS_ORDINAL_ACTIONS_END
public static final double DEFAULT_COLUMNS_ORDINAL_ACTIONS_END- See Also:
-
-
Constructor Details
-
ListViewColumn
public ListViewColumn()
-
-
Method Details
-
getColumnCaption
Returns the name of the column that explains what this column means- Returns:
- The convention is to use capitalization like "Foo Bar Zot".
-
all
Returns all the registeredListViewColumn
descriptors. -
shownByDefault
Deprecated.as of 1.342. UseListViewColumnDescriptor.shownByDefault()
Whether this column will be shown by default. The default implementation is true.- Since:
- 1.301
-
getDescriptor
For compatibility reason, this method may not return aListViewColumnDescriptor
and instead return a plainDescriptor
instance.- Specified by:
getDescriptor
in interfaceDescribable<ListViewColumn>
-
createDefaultInitialColumnList
Deprecated.Creates the list ofListViewColumn
s to be used for newly createdListView
s and their likes.- Since:
- 1.391
-
createDefaultInitialColumnList
Creates the list ofListViewColumn
s to be used for newly createdListView
s and their likes.- Since:
- 2.37
- See Also:
-
createDefaultInitialColumnList
Creates the list ofListViewColumn
s to be used for aListView
s and their likes.- Since:
- 2.37
- See Also:
-
all()
for read access andExtension
for registration.