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 ofItem
s, such asListView
.This object must have the
column.jelly
. This view is called for each cell of this column. TheItem
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 rendergetColumnCaption()
.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 otherView
s andItemGroup
s that render a collection ofItem
s in a tabular format.- Since:
- 1.279
- Author:
- Kohsuke Kawaguchi
- See Also:
ListViewColumnDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_COLUMNS_ORDINAL_ACTIONS_END
static double
DEFAULT_COLUMNS_ORDINAL_ACTIONS_START
static double
DEFAULT_COLUMNS_ORDINAL_ICON_END
static double
DEFAULT_COLUMNS_ORDINAL_ICON_START
static double
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_END
static double
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
static DescriptorList<ListViewColumn>
LIST
-
Constructor Summary
Constructors Constructor Description ListViewColumn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DescriptorExtensionList<ListViewColumn,Descriptor<ListViewColumn>>
all()
Returns all the registeredListViewColumn
descriptors.static List<ListViewColumn>
createDefaultInitialColumnList()
Deprecated.static List<ListViewColumn>
createDefaultInitialColumnList(View view)
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.String
getColumnCaption()
Returns the name of the column that explains what this column meansDescriptor<ListViewColumn>
getDescriptor()
For compatibility reason, this method may not return aListViewColumnDescriptor
and instead return a plainDescriptor
instance.boolean
shownByDefault()
Deprecated.as of 1.342.
-
-
-
Field Detail
-
LIST
@Deprecated public static final DescriptorList<ListViewColumn> LIST
All registeredListViewColumn
s.
-
DEFAULT_COLUMNS_ORDINAL_ICON_START
public static final double DEFAULT_COLUMNS_ORDINAL_ICON_START
- See Also:
- Constant Field Values
-
DEFAULT_COLUMNS_ORDINAL_ICON_END
public static final double DEFAULT_COLUMNS_ORDINAL_ICON_END
- See Also:
- Constant Field Values
-
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
public static final double DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
- See Also:
- Constant Field Values
-
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_END
public static final double DEFAULT_COLUMNS_ORDINAL_PROPERTIES_END
- See Also:
- Constant Field Values
-
DEFAULT_COLUMNS_ORDINAL_ACTIONS_START
public static final double DEFAULT_COLUMNS_ORDINAL_ACTIONS_START
- See Also:
- Constant Field Values
-
DEFAULT_COLUMNS_ORDINAL_ACTIONS_END
public static final double DEFAULT_COLUMNS_ORDINAL_ACTIONS_END
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnCaption
@Exported public String 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
public static DescriptorExtensionList<ListViewColumn,Descriptor<ListViewColumn>> all()
Returns all the registeredListViewColumn
descriptors.
-
shownByDefault
@Deprecated public boolean 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
public Descriptor<ListViewColumn> getDescriptor()
For compatibility reason, this method may not return aListViewColumnDescriptor
and instead return a plainDescriptor
instance.- Specified by:
getDescriptor
in interfaceDescribable<ListViewColumn>
-
createDefaultInitialColumnList
@Deprecated public static List<ListViewColumn> createDefaultInitialColumnList()
Deprecated.Creates the list ofListViewColumn
s to be used for newly createdListView
s and their likes.- Since:
- 1.391
-
createDefaultInitialColumnList
public static List<ListViewColumn> createDefaultInitialColumnList(Class<? extends View> context)
Creates the list ofListViewColumn
s to be used for newly createdListView
s and their likes.- Since:
- 2.37
- See Also:
ListView.initColumns()
-
createDefaultInitialColumnList
public static List<ListViewColumn> createDefaultInitialColumnList(View view)
Creates the list ofListViewColumn
s to be used for aListView
s and their likes.- Since:
- 2.37
- See Also:
View.getColumns()
-
-