]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - cms/widgets/auth/CmsLoginShell.java
1 package org
.argeo
.cms
.widgets
.auth
;
3 import org
.argeo
.cms
.CmsView
;
4 import org
.eclipse
.rap
.rwt
.RWT
;
5 import org
.eclipse
.swt
.SWT
;
6 import org
.eclipse
.swt
.widgets
.Display
;
7 import org
.eclipse
.swt
.widgets
.Shell
;
9 /** The site-related user menu */
10 public class CmsLoginShell
extends CmsLogin
{
11 private final Shell shell
;
13 public CmsLoginShell(CmsView cmsView
) {
15 shell
= createShell();
16 shell
.setData(RWT
.CUSTOM_VARIANT
, CMS_USER_MENU
);
17 createContents(shell
);
20 /** To be overridden. */
21 protected Shell
createShell() {
22 Shell shell
= new Shell(Display
.getCurrent(), SWT
.NO_TRIM
);
23 shell
.setMaximized(true);
27 /** To be overridden. */
33 protected void login() {
39 protected void logout() {
44 protected void closeShell() {
49 public Shell
getShell() {