Skip to content

Commit

Permalink
SPC-823, search token field list updates with history
Browse files Browse the repository at this point in the history
  • Loading branch information
Donald Desloge committed Dec 9, 2013
1 parent 8504be8 commit 0f51a01
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -188,6 +188,7 @@ private boolean needsRefresh() {
private Button m_szlOutBtn;
private LastUpdatedLabel m_lastUpdatedTimeLabel;
int m_settingFragment = 0;
private SearchBox m_searchBox;

private String getHeader(HttpServletRequest request) {
if(m_headerProvider == null) {
Expand Down Expand Up @@ -607,9 +608,9 @@ public void buttonClick(ClickEvent event) {
}
});

SearchBox searchBox = new SearchBox(m_serviceManager, new CommandManager.DefaultOperationContext(this, m_graphContainer, OperationContext.DisplayLocation.SEARCH));
m_selectionManager.addSelectionListener(searchBox);
m_graphContainer.addChangeListener(searchBox);
m_searchBox = new SearchBox(m_serviceManager, new CommandManager.DefaultOperationContext(this, m_graphContainer, OperationContext.DisplayLocation.SEARCH));
m_selectionManager.addSelectionListener(m_searchBox);
m_graphContainer.addChangeListener(m_searchBox);

//History Button Layout
HorizontalLayout historyButtonLayout = new HorizontalLayout();
Expand Down Expand Up @@ -659,7 +660,7 @@ public void buttonClick(ClickEvent event) {
mapLayout.addComponent(m_topologyComponent, "top:0px; left: 0px; right: 0px; bottom: 0px;");
mapLayout.addComponent(m_lastUpdatedTimeLabel, "top: 5px; right: 10px;");
mapLayout.addComponent(toolbar, "top: 25px; right: 10px;");
mapLayout.addComponent(searchBox, "top:5px; left:5px;");
mapLayout.addComponent(m_searchBox, "top:5px; left:5px;");
//mapLayout.addComponent(locationToolLayout, "top: 5px; left: 50%");
mapLayout.setSizeFull();

Expand Down Expand Up @@ -915,6 +916,9 @@ public void uriFragmentChanged(UriFragmentChangedEvent event) {
// after a history operation
graphChanged(m_graphContainer);

//Manually trigger the searchbox to refresh
m_searchBox.graphChanged(m_graphContainer);

m_settingFragment--;
}

Expand Down

0 comments on commit 0f51a01

Please sign in to comment.