]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms/src/org/argeo/cms/widgets/auth/CmsLoginShell.java
1 package org
.argeo
.cms
.widgets
.auth
;
3 import org
.argeo
.cms
.CmsView
;
4 import org
.argeo
.eclipse
.ui
.dialogs
.ErrorFeedback
;
5 import org
.eclipse
.rap
.rwt
.RWT
;
6 import org
.eclipse
.swt
.SWT
;
7 import org
.eclipse
.swt
.widgets
.Control
;
8 import org
.eclipse
.swt
.widgets
.Display
;
9 import org
.eclipse
.swt
.widgets
.Shell
;
10 import org
.eclipse
.swt
.widgets
.Widget
;
12 /** The site-related user menu */
13 public class CmsLoginShell
extends CmsLogin
{
14 private final Shell shell
;
16 public CmsLoginShell(CmsView cmsView
) {
18 shell
= createShell();
19 shell
.setData(RWT
.CUSTOM_VARIANT
, CMS_USER_MENU
);
23 /** To be overridden. */
24 protected Shell
createShell() {
25 Shell shell
= new Shell(Display
.getCurrent(), SWT
.NO_TRIM
);
26 shell
.setMaximized(true);
30 /** To be overridden. */
36 protected boolean login() {
37 boolean success
= false;
39 success
= super.login();
45 for (Control child
: shell
.getChildren())
55 protected void logout() {
60 protected void closeShell() {
61 if (!shell
.isDisposed()) {
67 public Shell
getShell() {