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 boolean
myEditable
protected String
myId
protected boolean
myInitiallyChecked
protected String
myName
protected String
myNote
protected String
myParentId
-
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.boolean
equals(Object o)
String
getId()
Returns unique item identifier.String
getName()
Returns item name to be displayed in list.String
getNote()
Returns some note to be displayed greyed near the item name or null to not display note.String
getParentId()
Returns parent's unique item identifier or null if there is no parent.T
getWarningObject()
int
hashCode()
boolean
hasWarningObject()
boolean
isEditable()
Returns true if item can be edited, false otherwise.boolean
isInitiallyChecked()
Returns true if item is checked by default, false otherwise.void
setWarningObject(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:CheckListItemInfo
Returns unique item identifier.- Specified by:
getId
in interfaceCheckListItemInfo
- Returns:
- see above
-
getParentId
@Nullable public String getParentId()
Description copied from interface:CheckListItemInfo
Returns parent's unique item identifier or null if there is no parent.- Specified by:
getParentId
in interfaceCheckListItemInfo
- Returns:
- see above
-
getName
@NotNull public String getName()
Description copied from interface:CheckListItemInfo
Returns item name to be displayed in list.- Specified by:
getName
in interfaceCheckListItemInfo
- Returns:
- see above
-
getNote
@NotNull public String getNote()
Description copied from interface:CheckListItemInfo
Returns some note to be displayed greyed near the item name or null to not display note.- Specified by:
getNote
in interfaceCheckListItemInfo
- Returns:
- see above
-
isInitiallyChecked
public boolean isInitiallyChecked()
Description copied from interface:CheckListItemInfo
Returns true if item is checked by default, false otherwise.- Specified by:
isInitiallyChecked
in interfaceCheckListItemInfo
- Returns:
- see above
-
isEditable
public boolean isEditable()
Description copied from interface:CheckListItemInfo
Returns true if item can be edited, false otherwise.- Specified by:
isEditable
in 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()
-
-