From 15161cd0a3595f577cf5ff9204843cdf56af463f Mon Sep 17 00:00:00 2001 From: Nathan Dunn Date: Wed, 18 Dec 2019 11:08:20 -0800 Subject: [PATCH] show all box makes sense now --- .../apollo/gwt/client/AnnotatorPanel.java | 51 +++-- .../apollo/gwt/client/AnnotatorPanel.ui.xml | 192 +++++++++--------- 2 files changed, 136 insertions(+), 107 deletions(-) diff --git a/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.java b/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.java index f30bcfb4d8..03154723aa 100644 --- a/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.java +++ b/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.java @@ -52,6 +52,7 @@ import org.gwtbootstrap3.client.ui.ListBox; import org.gwtbootstrap3.client.ui.TextBox; import org.gwtbootstrap3.client.ui.*; +import org.gwtbootstrap3.client.ui.constants.ButtonType; import org.gwtbootstrap3.client.ui.constants.IconType; import org.gwtbootstrap3.extras.bootbox.client.Bootbox; @@ -124,8 +125,8 @@ interface AnnotatorPanelUiBinder extends UiBinder0) return true; + if(userField.getSelectedIndex()>0) return true; + if(goOnlyCheckBox.getValue()) return true; + if(uniqueNameCheckBox.getValue()) return true; + if(uniqueNameCheckBox.getValue()) return true; + if(nameSearchBox.getText().trim().length()>0) return true; + if(sequenceList.getValue().trim().length()>0) return true; + + return false ; + } + @UiHandler(value = {"pageSizeSelector"}) public void changePageSize(ChangeEvent changeEvent) { pageSize = Integer.parseInt(pageSizeSelector.getSelectedValue()); @@ -851,27 +868,31 @@ public void searchName(KeyUpEvent keyUpEvent) { public void setShowAllSequences(ClickEvent clickEvent) { nameSearchBox.setText(""); sequenceList.setText(""); + userField.setSelectedIndex(0); + typeList.setSelectedIndex(0); + uniqueNameCheckBox.setValue(false); + goOnlyCheckBox.setValue(false); reload(); } private void handleDetails() { - if (showDetails) { - toggleAnnotation.setText("Hide Details"); - toggleAnnotation.setIcon(IconType.EYE_SLASH); - } else { - toggleAnnotation.setText("Show Details"); - toggleAnnotation.setIcon(IconType.INFO_CIRCLE); - } +// if (showDetails) { +// toggleAnnotation.setText("Hide Details"); +// toggleAnnotation.setIcon(IconType.EYE_SLASH); +// } else { +// toggleAnnotation.setText("Show Details"); +// toggleAnnotation.setIcon(IconType.INFO_CIRCLE); +// } tabPanel.setVisible(showDetails && singleSelectionModel.getSelectedObject() != null); } - - @UiHandler("toggleAnnotation") - void toggleAnnotation(ClickEvent clickEvent) { - showDetails = !showDetails; - handleDetails(); - } +// +// @UiHandler("toggleAnnotation") +// void toggleAnnotation(ClickEvent clickEvent) { +// showDetails = !showDetails; +// handleDetails(); +// } private static AnnotationInfo getChildAnnotation(AnnotationInfo annotationInfo, String uniqueName) { diff --git a/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.ui.xml b/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.ui.xml index 14d930a8d8..cd89a7e434 100644 --- a/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.ui.xml +++ b/src/gwt/org/bbop/apollo/gwt/client/AnnotatorPanel.ui.xml @@ -30,7 +30,8 @@ display: inline; margin: 5px; } - .checkBox{ + + .checkBox { display: inline; /*margin: 5px;*/ background-color: grey; @@ -43,7 +44,7 @@ /*border: solid black 5px;*/ } - .idCheckBox{ + .idCheckBox { display: inline; font-weight: bolder; /*margin: 5px;*/ @@ -59,6 +60,12 @@ margin-bottom: 40px; } + .topRowPadding { + margin-bottom: 0px; + padding-bottom: 0px; + border-top: gray 2px solid; + } + .dataGrid td { word-wrap: break-word; } @@ -73,6 +80,15 @@ margin-left: 10px; margin-right: 10px; } + + .showAllButtonRow { + display: inline; + margin-left: 20px; + /*padding-bottom: 15px;*/ + margin-top: 5px !important; + margin-bottom: 5px !important; + } + .pageSizeSelector { display: inline; width: 40px; @@ -80,9 +96,10 @@ } - + - + + @@ -105,91 +122,82 @@ - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
-
-
- - - -
-
- - - - Details - - - - - - - - - - - Coding - - - - Alternate Alleles - - - - Variant Info - - - - Allele Info - - - - GO - - - - DbXref - - - - Comment - - - - Attributes - - - - -
- + + + + + + + + + + + + + + +
+ + + + + +
+
+
+ + + +
+
+ + + + Details + + + + + + + + + + + Coding + + + + Alternate Alleles + + + + Variant Info + + + + Allele Info + + + + GO + + + + DbXref + + + + Comment + + + + Attributes + + + + + +