Skip to content

Commit

Permalink
added internal ID
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Nov 14, 2018
1 parent 1d9a9b7 commit ea9df81
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
5 changes: 4 additions & 1 deletion src/gwt/org/bbop/apollo/gwt/client/OrganismPanel.java
Expand Up @@ -78,6 +78,8 @@ interface OrganismBrowserPanelUiBinder extends UiBinder<Widget, OrganismPanel> {
WebApolloSimplePager pager = new WebApolloSimplePager(WebApolloSimplePager.TextLocation.CENTER);
@UiField
TextBox nonDefaultTranslationTable;
@UiField
org.gwtbootstrap3.client.ui.Label organismIdLabel;

boolean creatingNewOrganism = false; // a special flag for handling the clearSelection event when filling out new organism info
boolean savingNewOrganism = false; // a special flag for handling the clearSelection event when filling out new organism info
Expand Down Expand Up @@ -134,7 +136,6 @@ public String asString() {
}
});
dataGrid.addColumn(sequenceColumn, safeHtmlHeader);
// dataGrid.addColumn(sequenceColumn, "Ref Sequences");
dataGrid.setEmptyTableWidget(new Label("No organisms available. Add new organisms using the form field."));


Expand Down Expand Up @@ -226,6 +227,8 @@ public void loadOrganismInfo(OrganismInfo organismInfo) {
publicMode.setValue(organismInfo.getPublicMode());
publicMode.setEnabled(isEditable);

organismIdLabel.setHTML("Internal ID: " +organismInfo.getId());

nonDefaultTranslationTable.setText(organismInfo.getNonDefaultTranslationTable());
nonDefaultTranslationTable.setEnabled(isEditable);

Expand Down
29 changes: 22 additions & 7 deletions src/gwt/org/bbop/apollo/gwt/client/OrganismPanel.ui.xml
Expand Up @@ -3,7 +3,7 @@
xmlns:b="urn:import:org.gwtbootstrap3.client.ui"
xmlns:cellview="urn:import:com.google.gwt.user.cellview.client"
xmlns:wa="urn:import:org.bbop.apollo.gwt.client"
>
>
<ui:style>

.widgetPanel {
Expand All @@ -15,6 +15,7 @@
margin-top: 10px;
vertical-align: middle;
}

.container {
margin-left: 10px;
margin-top: 10px;
Expand All @@ -24,13 +25,17 @@
margin-left: 0px;
margin-right: 10px;
}

.pager {
width: 100%;
margin-left: auto;
margin-right: auto;
}
.inline-button{

.inline-button {
display: inline;
margin-left: 5px;
margin-right: 5px;
}

</ui:style>
Expand Down Expand Up @@ -94,17 +99,27 @@
<b:Column size="XS_12" styleName="{style.widgetPanel}">
<b:InputGroup>
<b:InputGroupAddon>Non-default Translation Table</b:InputGroupAddon>
<b:TextBox autoComplete="false" ui:field="nonDefaultTranslationTable" enabled="false"/>
<b:TextBox autoComplete="false" ui:field="nonDefaultTranslationTable"
enabled="false"/>
</b:InputGroup>
</b:Column>
</b:Row>
<b:Row styleName="{style.row}">
<b:Column size="XS_12" styleName="{style.widgetPanel}">
<b:Button ui:field="newButton" text="Add New Organism" enabled="true"/>
<b:Button ui:field="deleteButton" text="Delete Organism" visible="false"/>
<b:Button ui:field="createButton" text="Save New Organism" visible="false"/>
<b:Button ui:field="cancelButton" text="Cancel" visible="false"/>
<b:CheckBox ui:field="publicMode" text="Public" enabled="true" />
<b:Button ui:field="deleteButton" text="Delete Organism" visible="false"
styleName="{style.inline-button}"
/>
<b:Button ui:field="createButton" text="Save New Organism" visible="false"
styleName="{style.inline-button}"
/>
<b:Button ui:field="cancelButton" text="Cancel" visible="false"
styleName="{style.inline-button}"
/>
<b:CheckBox ui:field="publicMode" text="Public" enabled="true"
styleName="{style.inline-button}"
/>
<b:Label ui:field="organismIdLabel"/>
</b:Column>
</b:Row>
</b:Container>
Expand Down

0 comments on commit ea9df81

Please sign in to comment.