Class ParametersViewBean.RenderContext
- java.lang.Object
-
- jetbrains.buildServer.controllers.parameters.embed.ParametersViewBean.RenderContext
-
- All Implemented Interfaces:
ParameterContext,ParameterRenderContext
- Enclosing class:
- ParametersViewBean
public class ParametersViewBean.RenderContext extends Object implements ParameterRenderContext
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.controllers.parameters.ParameterContext
BUILD_TEMPLATE, BUILD_TYPE, PROJECT
-
-
Constructor Summary
Constructors Constructor Description RenderContext(String id, Parameter parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetAdditionalParameter(AdditionalParameter<T> parameter)Returns parameter by given keyControlDescriptiongetDescription()Control description to be used for parameter presentationStringgetId()Constrol must add an HTML input control with given ID.ParametergetParameter()Control should be shown for the given parameter.booleanisReadOnly()
-
-
-
Method Detail
-
getParameter
@NotNull public Parameter getParameter()
Description copied from interface:ParameterRenderContextControl should be shown for the given parameter. Implementation must use this interface to obtain parameter value- Specified by:
getParameterin interfaceParameterRenderContext- Returns:
- Parameter instance to show
-
getId
@NotNull public String getId()
Description copied from interface:ParameterRenderContextConstrol must add an HTML input control with given ID. This control may have input control of the same name. Host will use this the id to persist form and/or to get value from the control- Specified by:
getIdin interfaceParameterRenderContext- Returns:
- Control HTML element ID to be used
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceParameterRenderContext
-
getDescription
@NotNull public ControlDescription getDescription()
Description copied from interface:ParameterContextControl description to be used for parameter presentation- Specified by:
getDescriptionin interfaceParameterContext- Returns:
- descriptoin of control presentation
-
getAdditionalParameter
@Nullable public <T> T getAdditionalParameter(@NotNull AdditionalParameter<T> parameter)Description copied from interface:ParameterContextReturns parameter by given key- Specified by:
getAdditionalParameterin interfaceParameterContext- Type Parameters:
T- type of parameter- Parameters:
parameter- key and type of parameter to get- Returns:
- parameter or null
-
-