public interface IRespViewField extends IRespViewGuidance
Represents a field of responsive view.
Modifier and Type | Method and Description |
---|---|
IDisplayTypeAttributes.INumberRangeColor |
createNumberRangeColor(java.lang.Long bottom,
java.lang.Long top,
java.lang.String color)
Creates an
IDisplayTypeAttributes.INumberRangeColor object, that is used by setNumberRangeColors(List) . |
java.util.List<IRespViewAction> |
getActions()
Gets all actions associated with the current field
|
java.util.Map<java.lang.String,java.lang.String> |
getEnumValueColors()
Returns the map that represents colors for enumerated values, or null if it is not set.
|
IFieldDefinition |
getFieldDefinition()
Returns the field definition of the responsive view field or null.
|
RespViewFieldType |
getFieldType()
Returns type of the responsive view field.
|
java.lang.String |
getNameLabel()
Returns the localized name label of the relationship field
for the user session
|
java.util.List<ILabel> |
getNameLabels()
Returns the responsive view field name labels for all locales
|
java.util.List<IDisplayTypeAttributes.INumberRangeColor> |
getNumberRangeColors()
Returns list of
IDisplayTypeAttributes.INumberRangeColor , or null if it is not set. |
ITypeDefinition |
getParentRelationTypeDefinition()
Returns the parent type definition of the responsive view field or null.
|
Id |
getRelationFilterId()
Returns the id of the relation filter.
|
java.lang.String |
getRelationshipName()
Returns the name of the responsive view field or null.
|
java.util.List<java.lang.String> |
getRelationshipPaths()
Returns the list of type definition paths to the related object.
|
ITypeDefinition |
getRelationTypeDefinition()
Returns the type definition of the responsive view field or null.
|
java.util.List<IRespViewFieldRule> |
getRules()
Gets the list of rules defined on this field.
|
SortDirection |
getSortDirection()
Returns the direction of sorting of the relationship rows.
|
IFieldDefinition |
getSortField()
Returns the field definition that is used for sorting of relationship rows.
|
void |
setActions(java.util.List<IRespViewAction> actions)
Sets the list of actions associated to the current field.
|
void |
setEnumValueColors(java.util.Map<java.lang.String,java.lang.String> enumValueColors)
Sets the map that represents colors for enumerated values.
|
void |
setNameLabels(java.util.List<ILabel> nameLabels)
Sets the list of responsive view field name labels
|
void |
setNumberRangeColors(java.util.List<IDisplayTypeAttributes.INumberRangeColor> numberRangeColors)
Sets the list of
IDisplayTypeAttributes.INumberRangeColor . |
void |
setParentRelationTypeDefinition(ITypeDefinition parentRelationTypeDefinition)
Sets the parentRelationTypeDefinition used in sibling relationship type.
|
void |
setRelationFilterId(Id filterId)
Sets the id of the relation filter.
|
void |
setRelationshipPaths(java.util.List<java.lang.String> relationPaths)
Sets the list of type definition paths to the related object.
|
void |
setRules(java.util.List<IRespViewFieldRule> rules)
Sets the list of rules defined on this field.
|
void |
setSortDirection(SortDirection direction)
Sets the direction of sorting of the relationship rows.
|
void |
setSortField(IFieldDefinition sortFields)
Sets the field definition that is used for sorting of relationship rows.
|
getFields, getHelpText, getHelpTextLabels, getHelpTopic, getHelpTopicLabels, setFields, setHelpText, setHelpTextLabels, setHelpTopic, setHelpTopicLabels
RespViewFieldType getFieldType()
RespViewFieldType
the type of responsive view field.IFieldDefinition getFieldDefinition()
IFieldDefinition
the field definition when the field type is RespViewFieldType.object
. Returns null otherwise.java.lang.String getRelationshipName()
RespViewFieldType.object
. Returns null
otherwise.ITypeDefinition getRelationTypeDefinition()
ITypeDefinition
the type definition when the field type is anything other than RespViewFieldType.object
. Returns null
otherwise.ITypeDefinition getParentRelationTypeDefinition()
ITypeDefinition
the type definition of the parent type when the field type is anything other than
RespViewFieldType.object
and relationship type is 'sibling'. Returns null otherwise.Id getRelationFilterId()
RespViewFieldType.object
.Id
the filter definition Id of the relation.void setRelationFilterId(Id filterId)
filterId
- java.util.List<java.lang.String> getRelationshipPaths()
RespViewFieldType.object
.void setRelationshipPaths(java.util.List<java.lang.String> relationPaths)
relationPaths
- IFieldDefinition getSortField()
RespViewFieldType.object
.IFieldDefinition
the field used for sorting of relationship rows.void setSortField(IFieldDefinition sortFields)
sortFields
- SortDirection getSortDirection()
RespViewFieldType.object
.void setSortDirection(SortDirection direction)
direction
- java.util.Map<java.lang.String,java.lang.String> getEnumValueColors()
IDisplayTypeAttributes
also.void setEnumValueColors(java.util.Map<java.lang.String,java.lang.String> enumValueColors)
getEnumValueColors()
and IDisplayTypeAttributes
also.enumValueColors
- java.util.List<IDisplayTypeAttributes.INumberRangeColor> getNumberRangeColors()
IDisplayTypeAttributes.INumberRangeColor
, or null if it is not set.
The color definitions are persisted on either:
- field definition and shared across multiple views, or
- view definition, that owns this field
depending on the context. Here is the rule determine the location of persistence:
- system views persist colors on view definition
- draft-saved views persist colors on view definition
- relationship fields persist colors on view definition
- otherwise (i.e. not system view, view is published and on object fields), colors are persisted on the field definition
Refer IDisplayTypeAttributes
also.void setNumberRangeColors(java.util.List<IDisplayTypeAttributes.INumberRangeColor> numberRangeColors)
IDisplayTypeAttributes.INumberRangeColor
.
Refer getNumberRangeColors()
and IDisplayTypeAttributes
also.numberRangeColors
- IDisplayTypeAttributes.INumberRangeColor createNumberRangeColor(java.lang.Long bottom, java.lang.Long top, java.lang.String color)
IDisplayTypeAttributes.INumberRangeColor
object, that is used by setNumberRangeColors(List)
.
Refer getNumberRangeColors()
and IDisplayTypeAttributes
also.bottom
- : bottom number of the range. It can be null when the top value is not null.top
- : top number of the range. It can be null when the bottom value is not null.color
- : color of the rangejava.lang.String getNameLabel()
java.util.List<ILabel> getNameLabels()
ILabel
the responsive view name labelvoid setNameLabels(java.util.List<ILabel> nameLabels)
nameLabels
- the list of ILabel
java.util.List<IRespViewAction> getActions()
void setActions(java.util.List<IRespViewAction> actions)
actions
- the list of IRespViewAction
java.util.List<IRespViewFieldRule> getRules()
void setRules(java.util.List<IRespViewFieldRule> rules)
rules
- Listvoid setParentRelationTypeDefinition(ITypeDefinition parentRelationTypeDefinition)
parentRelationTypeDefinition
-
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.