Skip to content

Commit

Permalink
Removed the IP type label. Selects metadata option when any option is…
Browse files Browse the repository at this point in the history
… changed.
  • Loading branch information
André Pereira committed May 12, 2016
1 parent 802cf72 commit 4d5e0f6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/org/roda/rodain/inspection/InspectionPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -1201,13 +1201,9 @@ public void updateItem(UIPair item, boolean empty) {
}
}
});
contentType.setTooltip(new Tooltip(I18n.t("InspectionPane.sipTypeTooltip")));

HBox ipTypeWrapper = new HBox();
ipTypeWrapper.setAlignment(Pos.CENTER_LEFT);
Label ipType = new Label(I18n.t("InspectionPane.IPType"));
ipType.getStyleClass().add("top-subtitle");
ipTypeWrapper.getChildren().add(ipType);
top.getChildren().addAll(space, ipTypeWrapper, contentType);
top.getChildren().addAll(space, contentType);

topSubtitle.getChildren().addAll(space, top);

Expand Down
16 changes: 16 additions & 0 deletions src/main/java/org/roda/rodain/rules/ui/RuleModalPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ private HBox optionsSingleFile(List<UIPair> metaTypeList) {
Label typeLabel = new Label(I18n.t("type") + ":");
comboTypesSingleFile = new ComboBox<>(FXCollections.observableList(metaTypeList));
comboTypesSingleFile.getSelectionModel().selectFirst();
comboTypesSingleFile.valueProperty().addListener(observable -> {
metaList.getSelectionModel().clearSelection();
metaList.getSelectionModel().select(cellSingleFile);
});
HBox space = new HBox();
HBox.setHgrow(space, Priority.ALWAYS);

Expand All @@ -310,10 +314,18 @@ private HBox optionsSameFolder(List<UIPair> metaTypeList) {

Label lab = new Label(I18n.t("RuleModalPane.metadataPattern"));
sameFolderTxtField = new TextField("metadata.xml");
sameFolderTxtField.textProperty().addListener(observable -> {
metaList.getSelectionModel().clearSelection();
metaList.getSelectionModel().select(cellSameFolder);
});

Label typeLabel = new Label(I18n.t("type") + ":");
comboTypesSameDir = new ComboBox<>(FXCollections.observableList(metaTypeList));
comboTypesSameDir.getSelectionModel().selectFirst();
comboTypesSameDir.valueProperty().addListener(observable -> {
metaList.getSelectionModel().clearSelection();
metaList.getSelectionModel().select(cellSameFolder);
});
HBox space = new HBox();
HBox.setHgrow(space, Priority.ALWAYS);

Expand Down Expand Up @@ -342,6 +354,10 @@ private HBox optionsDiffFolder(List<UIPair> metaTypeList) {
Label typeLabel = new Label(I18n.t("type") + ":");
comboTypesDiffFolder = new ComboBox<>(FXCollections.observableList(metaTypeList));
comboTypesDiffFolder.getSelectionModel().selectFirst();
comboTypesDiffFolder.valueProperty().addListener(observable -> {
metaList.getSelectionModel().clearSelection();
metaList.getSelectionModel().select(cellDiffFolder);
});
HBox space = new HBox();
HBox.setHgrow(space, Priority.ALWAYS);

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/properties/lang.properties
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ InspectionPane.IPType=IP type
IPContentType.MIXED=Mixed
IPContentType.OTHER=Other
metadata.descDate=Description creation date
InspectionPane.sipTypeTooltip=IP type
1 change: 1 addition & 0 deletions src/main/resources/properties/lang_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ InspectionPane.IPType=IP type
IPContentType.MIXED=Mixed
IPContentType.OTHER=Other
metadata.descDate=Description creation date
InspectionPane.sipTypeTooltip=IP type
1 change: 1 addition & 0 deletions src/main/resources/properties/lang_pt.properties
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ InspectionPane.IPType=Tipo de pacote
IPContentType.MIXED=Misto
IPContentType.OTHER=Outro
metadata.descDate=Data da descrição
InspectionPane.sipTypeTooltip=Tipo do pacote



Expand Down

0 comments on commit 4d5e0f6

Please sign in to comment.