public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.webContentListScreenlet.FolderId = LiferayServerContext.LongPropertyForKey("webContentListFolderId");

            this.webContentListScreenlet.Delegate = this;
        }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.pdfDisplayScreenlet.ClassPK   = LiferayServerContext.LongPropertyForKey("pdfClassPK");
            this.pdfDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");

            this.pdfDisplayScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //FIXME: BlogsEntryDisplayScreenlet doesn't work if the blog has images in its body
            this.blogsDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("blogClassPK");

            this.blogsDisplayScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.signUpScreenlet.AnonymousApiUserName = LiferayServerContext.StringPropertyForKey("anonymousUsername");
            this.signUpScreenlet.AnonymousApiPassword = LiferayServerContext.StringPropertyForKey("anonymousPassword");

            this.signUpScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.ddlListScreenlet.RecordSetId = LiferayServerContext.LongPropertyForKey("ddlListRecordSetId");
            this.ddlListScreenlet.LabelFields = LiferayServerContext.StringPropertyForKey("ddlListLabelFields");

            this.ddlListScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.commentDisplayScreenlet.CommentId = LiferayServerContext.LongPropertyForKey("commentId");
            this.commentDisplayScreenlet.Editable  = true;

            this.commentDisplayScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.imageDisplayScreenlet.AutoLoad     = false;
            this.imageDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("imageEntryId");

            this.imageDisplayScreenlet.Delegate = this;
            this.imageDisplayScreenlet.Load();
        }
Beispiel #8
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.webContentDisplayScreenlet.ArticleId  = LiferayServerContext.StringPropertyForKey("webContentDisplayArticleId");
            this.webContentDisplayScreenlet.GroupId    = LiferayServerContext.LongPropertyForKey("webContentDisplayGroupId");
            this.webContentDisplayScreenlet.TemplateId = LiferayServerContext.LongPropertyForKey("webContentDisplayTemplateId");

            this.webContentDisplayScreenlet.Delegate = this;
        }
Beispiel #9
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //FIXME: ImageGalleryScreenlet doesn't work with "default" theme (grid)
            this.imageGalleryScreenlet.FolderId     = LiferayServerContext.LongPropertyForKey("imageGalleryFolderId");
            this.imageGalleryScreenlet.RepositoryId = LiferayServerContext.LongPropertyForKey("imageGalleryRepositoryId");
            this.imageGalleryScreenlet.ThemeName    = LiferayServerContext.StringPropertyForKey("imageGalleryThemeName");

            this.imageGalleryScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.forgotPasswordScreenlet.AnonymousApiUserName = LiferayServerContext.StringPropertyForKey("anonymousUsername");
            this.forgotPasswordScreenlet.AnonymousApiPassword = LiferayServerContext.StringPropertyForKey("anonymousPassword");

            this.forgotPasswordScreenlet.Delegate = this;

            SetDefaultValues();
        }
Beispiel #11
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //FIXME: RatingScreenlet doesn't work with emojis view
            this.ratingScreenletStars.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");
            this.ratingScreenletStars.ClassPK   = LiferayServerContext.LongPropertyForKey("ratingClassPK");
            this.ratingScreenletStars.ThemeName = LiferayServerContext.StringPropertyForKey("ratingThemeName");
            this.ratingScreenletStars.Editable  = true;

            this.ratingScreenletStars.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //With classNameId
            //this.assetListScreenlet.ClassNameId = LiferayServerContext.LongPropertyForKey("assetListClassNameId");

            //With porletItemName
            this.assetListScreenlet.PortletItemName = LiferayServerContext.StringPropertyForKey("assetListPortletItemName");

            this.assetListScreenlet.Delegate = this;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.ddlFormScreenlet.StructureId = LiferayServerContext.LongPropertyForKey("ddlFormStructureId");
            this.ddlFormScreenlet.RecordSetId = LiferayServerContext.LongPropertyForKey("ddlFormRecordSetId");
            this.ddlFormScreenlet.RecordId    = LiferayServerContext.LongPropertyForKey("ddlFormRecordId");
            this.ddlFormScreenlet.AutoLoad    = false;

            this.ddlFormScreenlet.Delegate = this;

            this.ddlFormScreenlet.LoadForm();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            webScreenlet.AutoLoad = false;

            var url = LiferayServerContext.StringPropertyForKey("webScreenletUrl");

            var config = new WebScreenletConfigurationBuilder(url)
                         .AddJsWithLocalFile("js/js_master")
                         .AddCssWithLocalFile("css/css_master")
                         .Load();

            webScreenlet.Configuration = config;

            webScreenlet.Delegate = this;
            webScreenlet.Load();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //AssetDisplayScreenlet works with AssetEntryId o ClassName and ClassPK
            this.assetDisplayScreenlet.AutoLoad = false;

            //Blog
            //this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("blogEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("blogClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("blogClassName");

            //Image
            //this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("imageEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("imageClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");

            //Audio
            this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("audioEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("audioClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");

            //Video
            //this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("videoEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("videoClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");

            //PDF
            //this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("pdfEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("pdfClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("fileClassName");

            //FIXME: AssetDisplayScreenlet doesn't work with WebContent
            //this.assetDisplayScreenlet.AssetEntryId = LiferayServerContext.LongPropertyForKey("webContentEntryId");
            //this.assetDisplayScreenlet.ClassPK = LiferayServerContext.LongPropertyForKey("webContentClassPK");
            //this.assetDisplayScreenlet.ClassName = LiferayServerContext.StringPropertyForKey("webContentClassName");

            this.assetDisplayScreenlet.Load();

            this.assetDisplayScreenlet.Delegate = this;
        }
        /* Private methods */

        void SetDefaultValues()
        {
            this.loginScreenlet.ViewModel.UserName = LiferayServerContext.StringPropertyForKey("defaultUsername");
            this.loginScreenlet.ViewModel.Password = LiferayServerContext.StringPropertyForKey("defaultPassword");
        }