Package com.ptc.mvc.components
Interface PropertyConfig
- All Superinterfaces:
ComponentConfig
- All Known Subinterfaces:
AttributeConfig,ColumnConfig
- All Known Implementing Classes:
JcaColumnConfig,JcaPropertyConfig
Describes a property of a component
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionintreturns max string entry length for text input field.This determines if a numeric value should be displayed in currency format (applicable to numeric fields only).returns the id to use for data utility lookup.This is the format string used to format a timestamp value.This determines if a date input field should be displayed as a DateOnly/DateTime field.The mode of displaying the default value of an attribute.returns the truncation length for values displayed in an info page.returns the truncation length for values displayed in a table.returns the string to be used as the id of the corresponding HTML element.Specify whether the attribute should be displayed as a single-line or multi-line input field (applicable to string attributes only).Indicates whether a value must be entered for an input field.getNeed()Returns the first model attribute needed for this property.Returns the list of model attributes needed for this property.This determines if a numeric value should be displayed in percent format (applicable to numeric fields only).The style in which the list of choices for an attribute value are to be displayed.separator drawn between the attributes by model.The string length threshhold that determines if a multi-line input field should be used (applicable to string attributes only).intcolumns of text input field (applicable to textfields and multi-line input fields only).introws of text input field (applicable to multi-line input fields only).booleanOverrides the default behavior of the column/property to include/exclude a blank entry (or an Undefined radio button) to the selection list of an attribute.booleanWhen true, this attribute indicates that glyphs returned by the general status data utility should distinguish between checked-out original and working copy.booleanisHidden()When true, the column will not be shown in the displayed
Supported API: truebooleanOverrides the default behavior of the column/property to add or remove a hyperlink to the info page of the context object this attribute is only applicable for certain columns/properties like name and number.booleanThis determines if all Lifecycle States should be rendered (applicable to lifeCycleState fields only).booleanWhether or not each row object must define this attribute.booleanchecks whether the property is actually the statusGlyph
Supported API: truevoidsetCharacterEntryLimit(int characterEntryLimit) sets the max string entry length for text input field.voidsetCurrency(String currency) sets value which determines if a numeric value should be displayed in currency format (applicable to numeric fields only).voidsetDataUtilityId(String duid) sets the id to use for data utility lookup.voidsetDateDisplayFormat(String dateDisplayFormat) sets the format string used to format a timestamp value.voidsetDateInputFieldType(String dateInputFieldType) returns value that determines if a date input field should be displayed as a DateOnly/DateTime field.voidsetDefaultValueDisplayMode(String defaultValueDisplayMode) sets the mode of displaying the default value of an attribute.voidsetDisplayLengthInInfoPage(String displayLengthInInfoPage) sets the truncation length for values displayed in an info page.voidsetDisplayLengthInTables(String displayLengthInTables) sets the truncation length for values displayed in a table.voidsetDistinguishWIPVersions(boolean distinguishWIPVersions)
Supported API: truevoidsetHidden(boolean hidden)
Supported API: truevoid
Supported API: truevoidsetIncludeBlankOption(boolean includeBlank)
Supported API: truevoidsetInfoPageLink(boolean infoPageLink)
Supported API: truevoidsetInputFieldType(String inputFieldType)
Supported API: truevoidsetInputRequired(String inputRequired)
Supported API: truevoidSets the model attributes needed for this config.voidsetPercent(String percent)
Supported API: truevoidsetRenderAllStates(boolean renderAllStates)
Supported API: truevoidsetRequired(boolean required)
Supported API: truevoidsetSelectionListStyle(String selectionListStyle)
Supported API: truevoidsetSeparatorType(String seperatorType)
Supported API: truevoidsetStatusGlyph(boolean statusGlyph)
Supported API: truevoidsetStringLengthThreshholdForMultilineInput(String threshholdForMultiLineInput)
Supported API: truevoidsetTextInputColumns(int textInputColumns)
Supported API: truevoidsetTextInputRows(int textInputRows)
Supported API: trueMethods inherited from interface com.ptc.mvc.components.ComponentConfig
addComponent, addComponents, getActionModel, getComponentMode, getComponents, getComponentType, getHelpContext, getId, getLabel, getTargetObject, getType, getTypes, removeComponent, setActionModel, setComponentMode, setComponentType, setHelpContext, setId, setLabel, setTargetObject, setType, setTypes
-
Method Details
-
getCharacterEntryLimit
int getCharacterEntryLimit()returns max string entry length for text input field.
Supported API: true- Returns:
- integer
-
setCharacterEntryLimit
void setCharacterEntryLimit(int characterEntryLimit) sets the max string entry length for text input field.
Supported API: true- Parameters:
characterEntryLimit-
-
getCurrency
String getCurrency()This determines if a numeric value should be displayed in currency format (applicable to numeric fields only).
Supported API: true- Returns:
- String
-
setCurrency
sets value which determines if a numeric value should be displayed in currency format (applicable to numeric fields only).
Supported API: true- Parameters:
currency-
-
getDataUtilityId
String getDataUtilityId()returns the id to use for data utility lookup.
Supported API: true- Returns:
- String
-
setDataUtilityId
sets the id to use for data utility lookup.
Supported API: true- Parameters:
duid-
-
getDateDisplayFormat
String getDateDisplayFormat()This is the format string used to format a timestamp value.
Supported API: true- Returns:
- String
-
setDateDisplayFormat
sets the format string used to format a timestamp value.
Supported API: true- Parameters:
dateDisplayFormat-
-
getDateInputFieldType
String getDateInputFieldType()This determines if a date input field should be displayed as a DateOnly/DateTime field.
Supported API: true- Returns:
- String
-
setDateInputFieldType
returns value that determines if a date input field should be displayed as a DateOnly/DateTime field.
Supported API: true- Parameters:
dateInputFieldType-
-
getDefaultValueDisplayMode
String getDefaultValueDisplayMode()The mode of displaying the default value of an attribute.
Supported API: true- Returns:
- String
-
setDefaultValueDisplayMode
sets the mode of displaying the default value of an attribute.
Supported API: true- Parameters:
defaultValueDisplayMode-
-
getDisplayLengthInInfoPage
String getDisplayLengthInInfoPage()returns the truncation length for values displayed in an info page.
Supported API: true- Returns:
- string
-
setDisplayLengthInInfoPage
sets the truncation length for values displayed in an info page.
Supported API: true- Parameters:
displayLengthInInfoPage-
-
getDisplayLengthInTables
String getDisplayLengthInTables()returns the truncation length for values displayed in a table.
Supported API: true- Returns:
- string
-
setDisplayLengthInTables
sets the truncation length for values displayed in a table.
Supported API: true- Parameters:
displayLengthInTables-
-
isDistinguishWIPVersions
boolean isDistinguishWIPVersions()When true, this attribute indicates that glyphs returned by the general status data utility should distinguish between checked-out original and working copy. If false (or not-specified), only "working copy" will be displayed
Supported API: true- Returns:
- boolean
-
setDistinguishWIPVersions
void setDistinguishWIPVersions(boolean distinguishWIPVersions)
Supported API: true- Parameters:
distinguishWIPVersions-- See Also:
-
getHtmlId
String getHtmlId()returns the string to be used as the id of the corresponding HTML element.
Supported API: true- Returns:
- String
-
setHtmlId
Supported API: true- Parameters:
htmlId-- See Also:
-
getInputFieldType
String getInputFieldType()Specify whether the attribute should be displayed as a single-line or multi-line input field (applicable to string attributes only). This directive will override that of the stringLengthThreshholdForMultilineInput preference.
Supported API: true- Returns:
- String
-
setInputFieldType
Supported API: true- Parameters:
inputFieldType-- See Also:
-
getInputRequired
String getInputRequired()Indicates whether a value must be entered for an input field.
Supported API: true- Returns:
- String
-
setInputRequired
Supported API: true- Parameters:
inputRequired-- See Also:
-
getNeed
String getNeed()Returns the first model attribute needed for this property.
Supported API: true- Returns:
- String
-
getNeedList
Returns the list of model attributes needed for this property.
Supported API: true -
setNeed
Sets the model attributes needed for this config. Model attributes are used (1) when the property has an id that doesn't map to the way the attribute is defined either by introspection or by logical attributes and (2) when multiple attribute values are needed to display column cells. To specify multiple model attributes, use a comma-separated list.
Supported API: true- Parameters:
need-
-
getPercent
String getPercent()This determines if a numeric value should be displayed in percent format (applicable to numeric fields only).
Supported API: true- Returns:
- string
-
setPercent
Supported API: true- Parameters:
percent-- See Also:
-
getSelectionListStyle
String getSelectionListStyle()The style in which the list of choices for an attribute value are to be displayed.
Supported API: true- Returns:
- String
-
setSelectionListStyle
Supported API: true- Parameters:
selectionListStyle-- See Also:
-
getSeparatorType
String getSeparatorType()separator drawn between the attributes by model. The default is none.
Supported API: true- Returns:
- String
-
setSeparatorType
Supported API: true- Parameters:
seperatorType-- See Also:
-
getStringLengthThreshholdForMultilineInput
String getStringLengthThreshholdForMultilineInput()The string length threshhold that determines if a multi-line input field should be used (applicable to string attributes only).
Supported API: true- Returns:
- String
-
setStringLengthThreshholdForMultilineInput
Supported API: true- Parameters:
threshholdForMultiLineInput-- See Also:
-
getTextInputColumns
int getTextInputColumns()columns of text input field (applicable to textfields and multi-line input fields only).
Supported API: true- Returns:
- integer
-
setTextInputColumns
void setTextInputColumns(int textInputColumns)
Supported API: true- Parameters:
textInputColumns-- See Also:
-
getTextInputRows
int getTextInputRows()rows of text input field (applicable to multi-line input fields only).
Supported API: true- Returns:
- integer
-
setTextInputRows
void setTextInputRows(int textInputRows)
Supported API: true- Parameters:
textInputRows-- See Also:
-
isHidden
boolean isHidden()When true, the column will not be shown in the displayed
Supported API: true- Returns:
- boolean
-
setHidden
void setHidden(boolean hidden)
Supported API: true- Parameters:
hidden-- See Also:
-
isInfoPageLink
boolean isInfoPageLink()Overrides the default behavior of the column/property to add or remove a hyperlink to the info page of the context object this attribute is only applicable for certain columns/properties like name and number. By default the number is a hyperlink to the info page and name is not.
Supported API: true- Returns:
- boolean
-
setInfoPageLink
void setInfoPageLink(boolean infoPageLink)
Supported API: true- Parameters:
infoPageLink-- See Also:
-
isRenderAllStates
boolean isRenderAllStates()This determines if all Lifecycle States should be rendered (applicable to lifeCycleState fields only).
Supported API: true- Returns:
- boolean
-
setRenderAllStates
void setRenderAllStates(boolean renderAllStates)
Supported API: true- Parameters:
renderAllStates-- See Also:
-
isRequired
boolean isRequired()Whether or not each row object must define this attribute. Note that setting this to <code>true</code> does not guarantee a non-null value, it just ensures that the type definition for each row object defines the property
Supported API: true- Returns:
- boolean
-
setRequired
void setRequired(boolean required)
Supported API: true- Parameters:
required-- See Also:
-
isStatusGlyph
boolean isStatusGlyph()checks whether the property is actually the statusGlyph
Supported API: true- Returns:
- boolean
-
setStatusGlyph
void setStatusGlyph(boolean statusGlyph)
Supported API: true- Parameters:
statusGlyph-- See Also:
-
includeBlankOption
boolean includeBlankOption()Overrides the default behavior of the column/property to include/exclude a blank entry (or an Undefined radio button) to the selection list of an attribute. This attribute is only applicable for columns/properties that have a selection list. By default, a blank entry (or an Undefined radio button) is included as the first element of the selection list.
Supported API: true- Returns:
- boolean
-
setIncludeBlankOption
void setIncludeBlankOption(boolean includeBlank)
Supported API: true- Parameters:
includeBlank-- See Also:
-