Skip to main content

Custom components in a profile

Overview

In addition to standard Vaadin components, FA has custom components that you can use in profiles.

Standard components

Standard components are Vaadin components that can be used without importing any additional namespace declarations. Common standard components are listed in the table:

Component

Data type

Notes / Example

Examples

Header

String

  <vaadin-label caption="Header"></vaadin-label>

 

Header.png

TextField

String

<vaadin-text-field id="isinCode" caption="ISIN"></vaadin-text-field>

 

ISIN.png

TextField

String

 

<vaadin-combo-box caption="Identity" icon="fonticon://Vaadin-Icons/e72f" description="Explanation of the field." id="Identity">
<option item="1" enabled="false">Known</option>
<option item="2" enabled="false">Unknown</option>
</vaadin-combo-box>

 

Explanation_field.png

DateField

String

<vaadin-date-field id="vaadin.date.field" caption="Date field" date-format="yyyy-MM-dd"/>

 

Date_field.png

RadioButtonGroup

String

<vaadin-radio-button-group id="Citizen" caption="Swedish citizen">
    <option item="Yes">Yes</option>
    <option item="No">No</option>
</vaadin-radio-button-group>

 

Citizen.png

Checkbox

Boolean

<vaadin-check-box id="ETF" caption="ETF"/>

 

Checkbox.png

Combobox

String

<vaadin-combo-box caption="Combobox" id="Combo" data-item-type="java.lang.String">
       <option item="Privateperson">Private Person</option>
       <option item="Company">Company</option>
</vaadin-combo-box>

 

Combobox.png

Custom components

The custom components assume the following namespace declarations:

<head>
    <meta name="package-mapping" content="fa:com.fasolutions.vaadin.components">
    <meta name="package-mapping" content="pop:com.fasolutions.vaadin.components.populatable">
    <meta name="package-mapping" content="custom:fi.fasolutions.app.pfmgmt.component"/>
    <meta name="package-mapping" content="ext:com.fasolutions.ext.components">
</head>

Custom components are listed in the table:

Component

Namespace

Data type

Notes / Example

Examples

DesignIntegerField

com.fasolutions.vaadin.components

Integer

Simple whole-number field

<fa-design-integer-field caption="Integer field" id="x.integerField"/>

 

Integer_field.jpg

DesignNumberField

com.fasolutions.vaadin.components

Double

Simple decimal-number field. Supports the decimal-format and locale attributes

<fa-design-number-field id="x.decimalField" caption="Decimal field"/>

 

Decimal_field.jpg

TagsField

com.fasolutions.vaadin.components

Multiselect String

Tags field

<fa-tags-field id = "x.tags" caption="Tags test" tags="test1,test2,test3"/>

 

Tags_test.jpg

PopulatableCheckBoxGroup

com.fasolutions.vaadin.components.populatable

Multiselect String

<pop-populatable-check-box-group id = "x.pop7" caption="Populatable checkbox group" populate="Juridical"/>

 

Populatable_checkbox_group.jpg

PopulatableComboBox

com.fasolutions.vaadin.components.populatable

String

<pop-populatable-combo-box id = "x.pop9" caption="Populatable combobox (LightContact)" populate="LightContact"/>

 

Popluatable_combobox__LightContact_.jpg

PopulatableListSelect

com.fasolutions.vaadin.components.populatable

Multiselect String

<pop-populatable-list-select id = "x.pop3" caption="Populatable list select" populate="TransactionType"/>

 

Populatable_list_select.jpg

PopulatableNativeSelect

com.fasolutions.vaadin.components.populatable

String

<pop-populatable-native-select id = "x.pop8" caption="Populatable nativeselect" populate="Country"/>

 

Popluatable_nativeselect.jpg

PopulatableRadioButtonGroup

com.fasolutions.vaadin.components.populatable

String

<pop-populatable-radio-button-group id = "x.pop5" caption="Populatable radio button group" exclude="BANKID;PASS" populate="Identity"/>

 

Populatable_radio_button_group.jpg

PopulatableTagsField

com.fasolutions.vaadin.components.populatable

Multiselect String

<pop-populatable-tags-field id = "x.tags2" caption="Populatable tags test" populate="Country"/>

 

Populatable_tags_test.jpg

PopulatableTwinColSelect

com.fasolutions.vaadin.components.populatable

Multiselect String

<pop-populatable-twin-col-select id = "x.pop6" caption="Populatable twin col select" populate="Classification"/>

 

Populatable_twin_column.jpg

CustomPopupDateField

fi.fasolutions.app.pfmgmt.component

String

<custom-custom-popup-date-field id="custom.date.field" caption="Custom date field" date-format="yyyy-MM-dd"/>

 

CustomDateField.png

IntegerSpacing

com.fasolutions.ext.components

Integer

<ext-design-integer-field id="InvestmentSize" caption="Investment in euro"></ext-design-integer-field>
IntegerSpacing.png

Populatable components have following custom attributes related to the population of the data:

Attribute

Description

Mandatory / Optional

Values

populate

Defines what data component is populated with

Mandatory

Asset, AssetType, Benchmark, CostType, Country, Exchange, Group, PortfolioGroup, PortfolioType, Language, ClassType, ClassType2, ClassType3, ClassType4, ClassType5, Classification, Classification2, Classification3, ContactSubType, Juridical, TransactionType, Identity, Contact, ContactType, TaxType, Security, SecurityType, SecuritySubType, Settlement, ContactTags, LightPortfolio, PortfolioTags, PortfolioAccountTags, TransactionTags, TradeorderTags, SecurityTags, LightPortfolio

model-getter

Is be used to define which attribute value is saved in the data base. E.g. model-getter=”name” to save the name of the selection, which is nice, because that makes the human-readable version easily available in the search views.

Optional

 

exclude

This option can be used to remove specific items from the list. It is given as a semicolon-separated list of identifiers, e.g. contact IDs if populating the component with Contacts or LightContacts. If model-getter is used, then exclude should be a semicolon-separated list of the defined identifiers.

Optional

 

include

This option works like exclude, but the other way around: only the items defined in the semicolon-separated list are populated. Note, that if your list of items includes something that is not found in the database, it will not be added to the list of available selections.

Optional