Skip to content

Commit

Permalink
Increase size of ISIN, ticker, and WKN input fields
Browse files Browse the repository at this point in the history
Issue: #3532
Issue: https://forum.portfolio-performance.info/t/eingabefeld-symbol-in-der-eingabemaske-verlangern/24916
Co-authored-by: OnkelDok <90478568+OnkelDok@users.noreply.github.com>
Co-authored-by: Andreas Buchen <andreas.buchen@gmail.com>
  • Loading branch information
buchen and OnkelDok committed Sep 2, 2023
1 parent aba4388 commit 0a0fc7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ public final Text bindStringInput(Composite editArea, final String label, String
return txtValue;
}

public final Text bindISINInput(Composite editArea, final String label, String property)
public final Text bindISINInput(Composite editArea, final String label, String property, int lenghtInCharacters)
{
Text txtValue = createTextInput(editArea, label, SWT.NONE, 12);
Text txtValue = createTextInput(editArea, label, SWT.NONE, lenghtInCharacters);
txtValue.setTextLimit(12);

IObservableValue<String> targetObservable = WidgetProperties.text(SWT.Modify).observe(txtValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ public void createControl(Composite parent)

if (!isExchangeRate)
{
isin = bindings.bindISINInput(container, Messages.ColumnISIN, "isin"); //$NON-NLS-1$
isin = bindings.bindISINInput(container, Messages.ColumnISIN, "isin", 30); //$NON-NLS-1$
if (isSyncedOnline)
{
isin.setEditable(false);
isin.setBackground(Colors.SIDEBAR_BACKGROUND_SELECTED);
}
}

bindings.bindStringInput(container, Messages.ColumnTicker, "tickerSymbol", SWT.NONE, 12); //$NON-NLS-1$
bindings.bindStringInput(container, Messages.ColumnTicker, "tickerSymbol", SWT.NONE, 30); //$NON-NLS-1$

if (!isExchangeRate)
{
wkn = bindings.bindStringInput(container, Messages.ColumnWKN, "wkn", SWT.NONE, 12); //$NON-NLS-1$
wkn = bindings.bindStringInput(container, Messages.ColumnWKN, "wkn", SWT.NONE, 30); //$NON-NLS-1$
if (isSyncedOnline)
{
wkn.setEditable(false);
Expand Down

0 comments on commit 0a0fc7c

Please sign in to comment.