Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f80ad376
Commit
f80ad376
authored
16 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-787 GUI improved
SVN: 10487
parent
b8eb410f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/vocabulary/VocabularyTermGrid.java
+7
-1
7 additions, 1 deletion
.../client/application/ui/vocabulary/VocabularyTermGrid.java
with
7 additions
and
1 deletion
openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/vocabulary/VocabularyTermGrid.java
+
7
−
1
View file @
f80ad376
...
@@ -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
(
42
0
);
dialog
.
setWidth
(
LABEL_WIDTH_IN_REPLACEMENT_DIALOG
+
FIELD_WITH_IN_REPLACEMENT_DIALOG
+
5
0
);
dialog
.
setEnableOfAcceptButton
(
false
);
dialog
.
setEnableOfAcceptButton
(
false
);
for
(
final
VocabularyTermReplacement
termToBeReplaced
:
termsToBeReplaced
)
for
(
final
VocabularyTermReplacement
termToBeReplaced
:
termsToBeReplaced
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment