Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kallimachos
Athen
Commits
b93295e8
Commit
b93295e8
authored
Apr 17, 2018
by
tu
Browse files
macOS version of athen with comboBoxes
parent
cbbb4bce
Pipeline
#9914
passed with stage
in 4 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
de.uniwue.mk.athen/bundles/de.ids.tt.athen.rwview/src/de/ids/tt/athen/rwview/part/RedeWiedergabeView.java
View file @
b93295e8
...
...
@@ -1967,8 +1967,8 @@ public class RedeWiedergabeView extends AEditorSubordinateViewPart {
updateAnnotation
(
metaDataList
.
get
(
0
),
timeStampFeat
,
timestampValue
,
true
);
String
versionValue
=
metaDataList
.
get
(
0
).
getFeatureValueAsString
(
versionFeat
);
//
versionValue = "0.0.
7
_1a 0.0.1s";
versionValue
=
"0.0.8a 0.0.1s"
;
versionValue
=
"0.0.
8
_1a 0.0.1s"
;
//
versionValue = "0.0.8a 0.0.1s";
updateAnnotation
(
metaDataList
.
get
(
0
),
versionFeat
,
versionValue
,
true
);
}
...
...
de.uniwue.mk.athen/bundles/de.ids.tt.athen.rwview/src/de/ids/tt/athen/rwview/ui/EditMetadataDialog.java
View file @
b93295e8
...
...
@@ -24,13 +24,13 @@ public class EditMetadataDialog extends JFrame implements ActionListener {
static
RedeWiedergabeView
part
;
private
J
TextField
titleField
=
new
JTextField
(
20
)
;
private
J
TextField
authorField
=
new
JTextField
(
20
)
;
private
J
ComboBox
<
String
>
titleComboBox
;
private
J
ComboBox
<
String
>
authorComboBox
;
private
Color
thistle
=
new
Color
(
216
,
191
,
216
);
private
String
corpuspartArray
[]
=
{
"not defined"
,
"famz"
,
"erz"
,
"zeit"
};
private
JComboBox
<
String
>
corpuspartComboBox
=
new
JComboBox
<
String
>(
corpuspartArray
);
private
JComboBox
<
String
>
corpuspartComboBox
=
new
JComboBox
<
String
>(
corpuspartArray
);
private
String
fictionalArray
[]
=
{
"not defined"
,
"yes"
,
"no"
,
"unsure"
};
private
JComboBox
<
String
>
fictionalComboBox
=
new
JComboBox
<
String
>(
fictionalArray
);
...
...
@@ -67,24 +67,31 @@ public class EditMetadataDialog extends JFrame implements ActionListener {
constraints
.
gridx
=
1
;
if
(
label
.
getText
().
equals
(
"Title"
)){
panel
.
add
(
titleField
,
constraints
);
titleField
.
setText
(
metadataVal
.
get
(
i
));
String
titleArray
[]
=
{
metadataVal
.
get
(
i
)};
titleComboBox
=
new
JComboBox
<
String
>(
titleArray
);
panel
.
add
(
titleComboBox
,
constraints
);
titleComboBox
.
setSelectedItem
(
metadataVal
.
get
(
i
));
titleComboBox
.
setEditable
(
true
);
}
if
(
label
.
getText
().
equals
(
"Author"
)){
panel
.
add
(
authorField
,
constraints
);
authorField
.
setText
(
metadataVal
.
get
(
i
));
String
authorArray
[]
=
{
metadataVal
.
get
(
i
)};
authorComboBox
=
new
JComboBox
<
String
>(
authorArray
);
panel
.
add
(
authorComboBox
,
constraints
);
authorComboBox
.
setSelectedItem
(
metadataVal
.
get
(
i
));
authorComboBox
.
setEditable
(
true
);
}
if
(
label
.
getText
().
equals
(
"Id"
)
||
label
.
getText
().
equals
(
"OrigFile"
)
||
label
.
getText
().
equals
(
"Year"
)
||
label
.
getText
().
equals
(
"Decade"
)
||
label
.
getText
().
equals
(
"Textlength"
)
||
label
.
getText
().
equals
(
"SampleID"
)
||
label
.
getText
().
equals
(
"Periodical"
)
||
label
.
getText
().
equals
(
"Name"
)
||
label
.
getText
().
equals
(
"Timestamp"
)
||
label
.
getText
().
equals
(
"Version"
))
{
JTextField
field
=
new
JTextField
(
20
);
panel
.
add
(
field
,
constraints
);
field
.
setText
(
metadataVal
.
get
(
i
));
field
.
setEditable
(
false
);
field
.
setBackground
(
thistle
);
String
valueArray
[]
=
{
metadataVal
.
get
(
i
)};
JComboBox
<
String
>
comboBox
=
new
JComboBox
<
String
>(
valueArray
);
panel
.
add
(
comboBox
,
constraints
);
comboBox
.
setSelectedItem
(
metadataVal
.
get
(
i
));
comboBox
.
setEditable
(
false
);
comboBox
.
setBackground
(
thistle
);
}
else
if
(
label
.
getText
().
equals
(
"Corpuspart"
)){
...
...
@@ -124,16 +131,7 @@ public class EditMetadataDialog extends JFrame implements ActionListener {
narrativeComboBox
.
setSelectedItem
(
narrativeArray
[
0
]);
}
}
}
/*
else if (label.getText().equals("title") || label.getText().equals("Author")){
JTextField field = new JTextField(50);
field.setText(metadataVal.get(i));
panel.add(field, constraints);
}
*/
}
}
constraints
.
gridx
=
0
;
...
...
@@ -172,9 +170,9 @@ public class EditMetadataDialog extends JFrame implements ActionListener {
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
String
titleInput
=
title
Field
.
getText
();
String
titleInput
=
title
ComboBox
.
getSelectedItem
().
toString
();
part
.
setTitleInput
(
titleInput
);
String
authorInput
=
author
Field
.
getText
();
String
authorInput
=
author
ComboBox
.
getSelectedItem
().
toString
();
part
.
setAuthorInput
(
authorInput
);
String
corpuspartInput
=
corpuspartComboBox
.
getSelectedItem
().
toString
();
part
.
setCorpuspartInput
(
corpuspartInput
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment