Class BrowserViews.View.Toolbar.Element

    • Field Detail

      • name

        protected final String name
      • properties

        protected final org.apache.sling.api.resource.ValueMap properties
      • condition

        protected final Condition condition
      • isEnabled

        protected final Boolean isEnabled
    • Constructor Detail

      • Element

        public Element​(@NotNull
                       @NotNull org.apache.sling.api.resource.Resource resource)
      • Element

        public Element​(@NotNull
                       @NotNull BrowserViews.View.Toolbar.Element template,
                       @NotNull
                       @NotNull com.composum.sling.core.BeanContext context,
                       @NotNull
                       @NotNull org.apache.sling.api.resource.Resource resource)
    • Method Detail

      • matches

        public boolean matches​(@NotNull
                               @NotNull com.composum.sling.core.BeanContext context,
                               @NotNull
                               @NotNull org.apache.sling.api.resource.Resource resource)
      • enabled

        public boolean enabled​(@NotNull
                               @NotNull com.composum.sling.core.BeanContext context,
                               @NotNull
                               @NotNull org.apache.sling.api.resource.Resource resource)
      • isEnabled

        public boolean isEnabled()
      • getType

        public String getType()
      • getKey

        public String getKey()
      • getIcon

        @NotNull
        public @NotNull String getIcon()
      • getCss

        @NotNull
        public @NotNull String getCss()
      • getLabel

        @NotNull
        public @NotNull String getLabel()
      • getTitle

        @NotNull
        public @NotNull String getTitle()
      • getPlaceholder

        @NotNull
        public @NotNull String getPlaceholder()
      • getHref

        @NotNull
        public @NotNull String getHref()
      • getTarget

        @NotNull
        public @NotNull String getTarget()