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
Items, 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 Views and ItemGroups that render
a collection of Items 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
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final DescriptorList<ListViewColumn> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Returns all the registeredListViewColumndescriptors.static List<ListViewColumn> Deprecated.static List<ListViewColumn> Creates the list ofListViewColumns to be used for aListViews and their likes.static List<ListViewColumn> createDefaultInitialColumnList(Class<? extends View> context) Creates the list ofListViewColumns to be used for newly createdListViews and their likes.Returns the name of the column that explains what this column meansFor compatibility reason, this method may not return aListViewColumnDescriptorand instead return a plainDescriptorinstance.booleanDeprecated.as of 1.342.
-
Field Details
-
LIST
All registeredListViewColumns. -
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 registeredListViewColumndescriptors. -
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 aListViewColumnDescriptorand instead return a plainDescriptorinstance.- Specified by:
getDescriptorin interfaceDescribable<ListViewColumn>
-
createDefaultInitialColumnList
Deprecated.Creates the list ofListViewColumns to be used for newly createdListViews and their likes.- Since:
- 1.391
-
createDefaultInitialColumnList
Creates the list ofListViewColumns to be used for newly createdListViews and their likes.- Since:
- 2.37
- See Also:
-
createDefaultInitialColumnList
Creates the list ofListViewColumns to be used for aListViews and their likes.- Since:
- 2.37
- See Also:
-
all()for read access andExtensionfor registration.