focus on the tab of the new search
This commit is contained in:
@@ -32,6 +32,9 @@ class MainFrameController {
|
|||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void search() {
|
void search() {
|
||||||
|
def cardsPanel = builder.getVariable("cards-panel")
|
||||||
|
cardsPanel.getLayout().show(cardsPanel, "search window")
|
||||||
|
|
||||||
def search = builder.getVariable("search-field").text
|
def search = builder.getVariable("search-field").text
|
||||||
def uuid = UUID.randomUUID()
|
def uuid = UUID.randomUUID()
|
||||||
Map<String, Object> params = new HashMap<>()
|
Map<String, Object> params = new HashMap<>()
|
||||||
|
@@ -55,6 +55,7 @@ class SearchTabView {
|
|||||||
parent = mvcGroup.parentGroup.view.builder.getVariable("result-tabs")
|
parent = mvcGroup.parentGroup.view.builder.getVariable("result-tabs")
|
||||||
parent.addTab(searchTerms, pane)
|
parent.addTab(searchTerms, pane)
|
||||||
int index = parent.indexOfTab(searchTerms)
|
int index = parent.indexOfTab(searchTerms)
|
||||||
|
parent.setSelectedIndex(index)
|
||||||
|
|
||||||
def tabPanel
|
def tabPanel
|
||||||
builder.with {
|
builder.with {
|
||||||
|
Reference in New Issue
Block a user