Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display WKN in MasterData #3498

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private static class MasterDataFacet extends SecurityFacet
private Label valueName;
private Label valueISIN;
private Label valueTickerSymbol;
private Label valueWKN;

@Override
Control createViewControl(Composite parent)
Expand All @@ -89,6 +90,7 @@ Control createViewControl(Composite parent)
valueName = new Label(composite, SWT.NONE);
valueISIN = new Label(composite, SWT.NONE);
valueTickerSymbol = new Label(composite, SWT.NONE);
valueWKN = new Label(composite, SWT.NONE);

// layout

Expand All @@ -109,6 +111,7 @@ Control createViewControl(Composite parent)

below(valueName, valueISIN);
below(valueISIN, valueTickerSymbol);
below(valueTickerSymbol, valueWKN);

return composite;
}
Expand All @@ -118,13 +121,14 @@ void setInput(Security security)
{
if (security == null)
{
clearLabel(valueName, valueISIN, valueTickerSymbol);
clearLabel(valueName, valueISIN, valueTickerSymbol, valueWKN);
}
else
{
valueName.setText(security.getName());
valueISIN.setText(nonNullString(security.getIsin()));
valueTickerSymbol.setText(nonNullString(security.getTickerSymbol()));
valueWKN.setText(nonNullString(security.getWkn()));
}
}
}
Expand Down