mirror of https://github.com/zlatinb/muwire
fix typo and radio buttons
parent
ff2274d51a
commit
39e21dd57d
|
@ -37,9 +37,9 @@ class EmbeddedRouterStep extends WizardStep {
|
||||||
constraints: gbc(gridx: 0, gridy: 0, fill: GridBagConstraints.HORIZONTAL, weightx: 100))) {
|
constraints: gbc(gridx: 0, gridy: 0, fill: GridBagConstraints.HORIZONTAL, weightx: 100))) {
|
||||||
buttonGroup(id: "routerType")
|
buttonGroup(id: "routerType")
|
||||||
radioButton(text : trans("OPTIONS_EMBEDDED"), toolTipText: trans("TOOLTIP_OPTIONS_EMBEDDED"),
|
radioButton(text : trans("OPTIONS_EMBEDDED"), toolTipText: trans("TOOLTIP_OPTIONS_EMBEDDED"),
|
||||||
selected: bind {defaults.embeddedRouter}, buttonGroup: routerType, actionPerformed : switchToEmbedded)
|
selected: defaults.embeddedRouter, buttonGroup: routerType, actionPerformed : switchToEmbedded)
|
||||||
radioButton(text : trans("OPTIONS_EXTERNAL"), toolTipText: trans("TOOLTIP_OPTIONS_EXTERNAL"),
|
radioButton(text : trans("OPTIONS_EXTERNAL"), toolTipText: trans("TOOLTIP_OPTIONS_EXTERNAL"),
|
||||||
selected: bind {!defaults.embeddedRouter}, buttonGroup: routerType, actionPerformed : switchToExternal)
|
selected: !defaults.embeddedRouter, buttonGroup: routerType, actionPerformed : switchToExternal)
|
||||||
}
|
}
|
||||||
panel(id : "router-props", constraints: gbc(gridx: 0, gridy: 1, fill: GridBagConstraints.HORIZONTAL, weightx: 100)) {
|
panel(id : "router-props", constraints: gbc(gridx: 0, gridy: 1, fill: GridBagConstraints.HORIZONTAL, weightx: 100)) {
|
||||||
cardLayout()
|
cardLayout()
|
||||||
|
@ -86,13 +86,13 @@ class EmbeddedRouterStep extends WizardStep {
|
||||||
|
|
||||||
def switchToEmbedded = {
|
def switchToEmbedded = {
|
||||||
embeddedRouter = true
|
embeddedRouter = true
|
||||||
def cardsPanel = builder.getVarialbe("router-props")
|
def cardsPanel = builder.getVariable("router-props")
|
||||||
cardsPanel.getLayout().show(cardsPanel, "router-props-embedded")
|
cardsPanel.getLayout().show(cardsPanel, "router-props-embedded")
|
||||||
}
|
}
|
||||||
|
|
||||||
def switchToExternal = {
|
def switchToExternal = {
|
||||||
embeddedRouter = false
|
embeddedRouter = false
|
||||||
def cardsPanel = builder.getVarialbe("router-props")
|
def cardsPanel = builder.getVariable("router-props")
|
||||||
cardsPanel.getLayout().show(cardsPanel, "router-props-external")
|
cardsPanel.getLayout().show(cardsPanel, "router-props-external")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue