Package cz.mendelu.xotradov
Class SimpleQueueWidget
java.lang.Object
hudson.widgets.Widget
cz.mendelu.xotradov.SimpleQueueWidget
SimpleQueueWidget replaces the default BuildQueueWidget and adds arrows to each buildable item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSimpleQueueWidget(String ownerUrl, List<QueueItem> queueItems, boolean filtered, String viewName) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringbooleanstatic booleanHelper for Jelly templates: checks whether the given queue item is pending (assigned to an executor, about to start).static booleanHelper for Jelly templates: checks whether the given queue item is a WaitingItem (waiting for its quiet period to pass).Methods inherited from class hudson.widgets.Widget
getUrl, getUrlName
-
Constructor Details
-
SimpleQueueWidget
-
-
Method Details
-
isFiltered
public boolean isFiltered() -
getOwnerUrl
- Overrides:
getOwnerUrlin classWidget
-
getQueueItems
-
getViewName
-
getMoveTypeName
-
getItemIdName
-
getViewNameParamName
-
getItemIdExtName
-
getItemIdExtParamMode
-
getItemIdExtParamTarget
-
isWaiting
Helper for Jelly templates: checks whether the given queue item is a WaitingItem (waiting for its quiet period to pass). Jelly does not supportinstanceof, so this method performs the type check in Java.- Parameters:
item- the queue item to check- Returns:
- true if the item is a
Queue.WaitingItem
-
isPending
Helper for Jelly templates: checks whether the given queue item is pending (assigned to an executor, about to start). Only BuildableItem subclasses can be pending, so this safely returns false for non-BuildableItem types.- Parameters:
item- the queue item to check- Returns:
- true if the item is a pending BuildableItem
-