Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
vaadin:replace_login [2019/08/05 21:28] admin |
vaadin:replace_login [2024/11/18 10:29] (current) admin |
||
|---|---|---|---|
| Line 50: | Line 50: | ||
| package com.sibvisions.apps.customlogin; | package com.sibvisions.apps.customlogin; | ||
| - | import javax.rad.application.genui.UILauncher; | + | import jvx.rad.application.genui.UILauncher; |
| import com.sibvisions.apps.projx.ILogin; | import com.sibvisions.apps.projx.ILogin; | ||
| Line 61: | Line 61: | ||
| super(pLauncher); | super(pLauncher); | ||
| } | } | ||
| - | + | | |
| @Override | @Override | ||
| protected ILogin createLogin() throws Throwable | protected ILogin createLogin() throws Throwable | ||
| { | { | ||
| if (getLauncher().isWebEnvironment()) | if (getLauncher().isWebEnvironment()) | ||
| - | { | + | { |
| - | return new MyCustomLogin(); | + | return new MyCustomLogin(); |
| - | } | + | } |
| - | + | ||
| - | return super.createLogin(); | + | return super.createLogin(); |
| } | } | ||
| } | } | ||
| Line 82: | Line 82: | ||
| package com.sibvisions.apps.customlogin; | package com.sibvisions.apps.customlogin; | ||
| - | import javax.rad.genui.component.UIButton; | + | import jvx.rad.genui.component.UIButton; |
| - | import javax.rad.genui.container.UIPanel; | + | import jvx.rad.genui.container.UIPanel; |
| - | import javax.rad.genui.layout.UIFormLayout; | + | import jvx.rad.genui.layout.UIFormLayout; |
| - | import javax.rad.ui.Style; | + | import jvx.rad.ui.Style; |
| import com.sibvisions.apps.vaadin.web.WebLogin; | import com.sibvisions.apps.vaadin.web.WebLogin; | ||
| Line 151: | Line 151: | ||
| public void doISA() throws Throwable | public void doISA() throws Throwable | ||
| { | { | ||
| - | ((RemoteApplication)getApplication()).showInformation(null, "ISA pressed!"); | + | ((RemoteApplication)getApplication()).showInformation(null, "ISA pressed!"); |
| } | } | ||
| public void doSAM() throws Throwable | public void doSAM() throws Throwable | ||
| { | { | ||
| - | ((RemoteApplication)getApplication()).showInformation(null, "SAM pressed!"); | + | ((RemoteApplication)getApplication()).showInformation(null, "SAM pressed!"); |
| } | } | ||
| } | } | ||
| Line 167: | Line 167: | ||
| .loginwindow .default.v-button.isa | .loginwindow .default.v-button.isa | ||
| { | { | ||
| - | background: red; | + | background: red; |
| - | border-color: darkred; | + | border-color: darkred; |
| } | } | ||
| Line 174: | Line 174: | ||
| .loginwindow .default.v-button.isa:active | .loginwindow .default.v-button.isa:active | ||
| { | { | ||
| - | background: red; | + | background: red; |
| - | border-color: darkred; | + | border-color: darkred; |
| } | } | ||
| .loginwindow .default.v-button.isa:focus | .loginwindow .default.v-button.isa:focus | ||
| { | { | ||
| - | border-color: darkred; | + | border-color: darkred; |
| - | box-shadow: 0 0 4px darkred; | + | box-shadow: 0 0 4px darkred; |
| } | } | ||
| Line 192: | Line 192: | ||
| .loginwindow .default.v-button.sam | .loginwindow .default.v-button.sam | ||
| { | { | ||
| - | background: green; | + | background: green; |
| - | border-color: darkgreen; | + | border-color: darkgreen; |
| } | } | ||
| Line 199: | Line 199: | ||
| .loginwindow .default.v-button.sam:active | .loginwindow .default.v-button.sam:active | ||
| { | { | ||
| - | background: green; | + | background: green; |
| - | border-color: dargreen; | + | border-color: dargreen; |
| } | } | ||
| .loginwindow .default.v-button.sam:focus | .loginwindow .default.v-button.sam:focus | ||
| { | { | ||
| - | border-color: darkgreen; | + | border-color: darkgreen; |
| - | box-shadow: 0 0 4px darkgreen; | + | box-shadow: 0 0 4px darkgreen; |
| } | } | ||
