Skip to content
Snippets Groups Projects
Commit f80ad376 authored by felmer's avatar felmer
Browse files

LMS-787 GUI improved

SVN: 10487
parent b8eb410f
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,9 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTermReplaceme ...@@ -69,6 +69,9 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTermReplaceme
*/ */
public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTermWithStats> public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTermWithStats>
{ {
private static final int FIELD_WITH_IN_REPLACEMENT_DIALOG = 200;
private static final int LABEL_WIDTH_IN_REPLACEMENT_DIALOG = 200;
// browser consists of the grid and the paging toolbar // browser consists of the grid and the paging toolbar
private static final String BROWSER_ID = GenericConstants.ID_PREFIX + "vocabulary-term-browser"; private static final String BROWSER_ID = GenericConstants.ID_PREFIX + "vocabulary-term-browser";
...@@ -185,6 +188,7 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm ...@@ -185,6 +188,7 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm
panel.setBorders(false); panel.setBorders(false);
final SimpleDialog dialog = new SimpleDialog(panel, heading, okButtonLabel, viewContext); final SimpleDialog dialog = new SimpleDialog(panel, heading, okButtonLabel, viewContext);
dialog.setScrollMode(Scroll.NONE); dialog.setScrollMode(Scroll.NONE);
dialog.setResizable(false);
textArea.addKeyListener(new KeyListener() textArea.addKeyListener(new KeyListener()
{ {
@Override @Override
...@@ -300,6 +304,8 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm ...@@ -300,6 +304,8 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm
panel.add(new Text(viewContext.getMessage( panel.add(new Text(viewContext.getMessage(
Dict.DELETE_VOCABULARY_TERMS_CONFIRMATION_MESSAGE_FOR_REPLACEMENTS, totalNumber))); Dict.DELETE_VOCABULARY_TERMS_CONFIRMATION_MESSAGE_FOR_REPLACEMENTS, totalNumber)));
final FormPanel formPanel = new FormPanel(); final FormPanel formPanel = new FormPanel();
formPanel.setLabelWidth(LABEL_WIDTH_IN_REPLACEMENT_DIALOG);
formPanel.setFieldWidth(FIELD_WITH_IN_REPLACEMENT_DIALOG);
formPanel.setBorders(false); formPanel.setBorders(false);
formPanel.setHeaderVisible(false); formPanel.setHeaderVisible(false);
formPanel.setBodyBorder(false); formPanel.setBodyBorder(false);
...@@ -308,7 +314,7 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm ...@@ -308,7 +314,7 @@ public class VocabularyTermGrid extends AbstractSimpleBrowserGrid<VocabularyTerm
String okButtonLable = viewContext.getMessage(Dict.ADD_VOCABULARY_TERMS_OK_BUTTON); String okButtonLable = viewContext.getMessage(Dict.ADD_VOCABULARY_TERMS_OK_BUTTON);
final SimpleDialog dialog = new SimpleDialog(panel, title, okButtonLable, viewContext); final SimpleDialog dialog = new SimpleDialog(panel, title, okButtonLable, viewContext);
dialog.setScrollMode(Scroll.AUTOY); dialog.setScrollMode(Scroll.AUTOY);
dialog.setWidth(420); dialog.setWidth(LABEL_WIDTH_IN_REPLACEMENT_DIALOG + FIELD_WITH_IN_REPLACEMENT_DIALOG + 50);
dialog.setEnableOfAcceptButton(false); dialog.setEnableOfAcceptButton(false);
for (final VocabularyTermReplacement termToBeReplaced : termsToBeReplaced) for (final VocabularyTermReplacement termToBeReplaced : termsToBeReplaced)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment