add(decPanel);
layout.setSpacing(5);
HorizontalPanel hp = new HorizontalPanel();
hp.setVerticalAlignment(ALIGN_MIDDLE);
layout.add(hp);
if ( mainPanel.isReadOnly() ) {
hp.add(new TLabel("Mapped ontologies:",
"The ontologies where the mapped entities where taken from. " +
"<br/>" +
"These ontologies are given " +
"codes, starting from 'A', to identify them in " +
"the rest of the VINE interface. "
));
}
else {
hp.add(new TLabel("Working ontologies:",
"This section lists the ontologies whose entities can be mapped. " +
"Use the \"Add\" button to add a working ontology. " +
"<br/>" +
"These ontologies are given " +
"codes, starting from 'A', to identify them in " +
"the rest of the VINE interface. "
));
final PushButton addButton = new PushButton("Add...");
addButton.setTitle("Allows to add a working ontology");
DOM.setElementAttribute(addButton.getElement(), "id", "my-button-id");
addButton.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
int x = addButton.getAbsoluteLeft();
int y = addButton.getAbsoluteTop();
addVocabulary(x, y + 20);
}
});
hp.add(addButton);
}
layout.add(workingUrisPanel);
refreshListWorkingUris();