Class AbstractCheckListItem<T>
- java.lang.Object
-
- jetbrains.buildServer.controllers.agent.AbstractCheckListItem<T>
-
- All Implemented Interfaces:
CheckListItemInfo
- Direct Known Subclasses:
PoolAgentTypeSelectorItem
public abstract class AbstractCheckListItem<T> extends Object implements CheckListItemInfo
- Author:
- Leonid Bushuev from JetBrains
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmyEditableprotected StringmyIdprotected booleanmyInitiallyCheckedprotected StringmyNameprotected StringmyNoteprotected StringmyParentId
-
Constructor Summary
Constructors Constructor Description AbstractCheckListItem(String id, String parentId, String name, String note, boolean initiallyChecked, boolean editable)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Collection<String>collectPhrasesForFilter()Fires when user attempts to filter the list for the very first time.booleanequals(Object o)StringgetId()Returns unique item identifier.StringgetName()Returns item name to be displayed in list.StringgetNote()Returns some note to be displayed greyed near the item name or null to not display note.StringgetParentId()Returns parent's unique item identifier or null if there is no parent.TgetWarningObject()inthashCode()booleanhasWarningObject()booleanisEditable()Returns true if item can be edited, false otherwise.booleanisInitiallyChecked()Returns true if item is checked by default, false otherwise.voidsetWarningObject(T warningObject)
-
-
-
Field Detail
-
myId
@NotNull protected final String myId
-
myParentId
@Nullable protected final String myParentId
-
myName
@NotNull protected final String myName
-
myNote
@NotNull protected final String myNote
-
myInitiallyChecked
protected final boolean myInitiallyChecked
-
myEditable
protected final boolean myEditable
-
-
Method Detail
-
getId
@NotNull public String getId()
Description copied from interface:CheckListItemInfoReturns unique item identifier.- Specified by:
getIdin interfaceCheckListItemInfo- Returns:
- see above
-
getParentId
@Nullable public String getParentId()
Description copied from interface:CheckListItemInfoReturns parent's unique item identifier or null if there is no parent.- Specified by:
getParentIdin interfaceCheckListItemInfo- Returns:
- see above
-
getName
@NotNull public String getName()
Description copied from interface:CheckListItemInfoReturns item name to be displayed in list.- Specified by:
getNamein interfaceCheckListItemInfo- Returns:
- see above
-
getNote
@NotNull public String getNote()
Description copied from interface:CheckListItemInfoReturns some note to be displayed greyed near the item name or null to not display note.- Specified by:
getNotein interfaceCheckListItemInfo- Returns:
- see above
-
isInitiallyChecked
public boolean isInitiallyChecked()
Description copied from interface:CheckListItemInfoReturns true if item is checked by default, false otherwise.- Specified by:
isInitiallyCheckedin interfaceCheckListItemInfo- Returns:
- see above
-
isEditable
public boolean isEditable()
Description copied from interface:CheckListItemInfoReturns true if item can be edited, false otherwise.- Specified by:
isEditablein interfaceCheckListItemInfo- Returns:
- see above
-
collectPhrasesForFilter
@NotNull protected abstract Collection<String> collectPhrasesForFilter()
Fires when user attempts to filter the list for the very first time. Expected a bunch of phrases Checklist will search user words in.- Returns:
- collection of strings. Must be non-null (but may be empty).
-
getWarningObject
@Nullable public T getWarningObject()
-
setWarningObject
public void setWarningObject(@Nullable T warningObject)
-
hasWarningObject
public boolean hasWarningObject()
-
-