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 ofItems, such asListView.This object must have the
column.jelly. This view is called for each cell of this column. TheItemobject 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 otherViews andItemGroups that render a collection ofItems 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 doubleDEFAULT_COLUMNS_ORDINAL_ACTIONS_ENDstatic doubleDEFAULT_COLUMNS_ORDINAL_ACTIONS_STARTstatic doubleDEFAULT_COLUMNS_ORDINAL_ICON_ENDstatic doubleDEFAULT_COLUMNS_ORDINAL_ICON_STARTstatic doubleDEFAULT_COLUMNS_ORDINAL_PROPERTIES_ENDstatic doubleDEFAULT_COLUMNS_ORDINAL_PROPERTIES_STARTstatic 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 registeredListViewColumndescriptors.static List<ListViewColumn>createDefaultInitialColumnList()Deprecated.static List<ListViewColumn>createDefaultInitialColumnList(View view)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.StringgetColumnCaption()Returns the name of the column that explains what this column meansDescriptor<ListViewColumn>getDescriptor()For compatibility reason, this method may not return aListViewColumnDescriptorand instead return a plainDescriptorinstance.booleanshownByDefault()Deprecated.as of 1.342.
-
-
-
Field Detail
-
LIST
@Deprecated public static final DescriptorList<ListViewColumn> LIST
All registeredListViewColumns.
-
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 registeredListViewColumndescriptors.
-
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 aListViewColumnDescriptorand instead return a plainDescriptorinstance.- Specified by:
getDescriptorin interfaceDescribable<ListViewColumn>
-
createDefaultInitialColumnList
@Deprecated public static List<ListViewColumn> createDefaultInitialColumnList()
Deprecated.Creates the list ofListViewColumns to be used for newly createdListViews and their likes.- Since:
- 1.391
-
createDefaultInitialColumnList
public static List<ListViewColumn> createDefaultInitialColumnList(Class<? extends View> context)
Creates the list ofListViewColumns to be used for newly createdListViews and their likes.- Since:
- 2.37
- See Also:
ListView.initColumns()
-
createDefaultInitialColumnList
public static List<ListViewColumn> createDefaultInitialColumnList(View view)
Creates the list ofListViewColumns to be used for aListViews and their likes.- Since:
- 2.37
- See Also:
View.getColumns()
-
-