Class SecurityRoleEditorTransform

    • Field Detail

      • renderForm

        public FormalParameter renderForm
        Indicates if this transform should render a form for holding the inner fields

        public java.lang.String FP_RENDER_FORM
        String constant holding the name of the renderForm formal parameter. Value is renderForm
    • Constructor Detail

      • SecurityRoleEditorTransform

        public SecurityRoleEditorTransform()
    • Method Detail

      • initializeTransform

        public void initializeTransform​(Transformable data)
        Description copied from class: AbstractAppTransform

        This method initialize the private and protected fields of the transform, such as width and height. It also invokes the initializeWebComponent, initializeImages and initializeCss methods.

        This method is automatically called from the transform method. Transforms which would like to invoke other methods in this instance directly (for example, to invoke some render methods), need first to call this method to guarantee that the Transform is ready to generate output.
        Specified by:
        initializeTransform in interface AppTransform
        initializeTransform in class AbstractAppTransform
        data - the bean to transform.
      • renderJavascriptLinks

        public void renderJavascriptLinks​(MarkupOutput out)
      • getModifyPropertiesEvent

        protected WebEvent getModifyPropertiesEvent()
      • getEventArgumentName

        protected java.lang.String getEventArgumentName​(WebEvent event,
                                                        int argumentId)
      • renderNameLabel

        public void renderNameLabel​(MarkupOutput out)
      • renderNameField

        public void renderNameField​(MarkupOutput out)
      • renderDescription

        public void renderDescription​(MarkupOutput out)
      • renderDescriptionLabel

        public void renderDescriptionLabel​(MarkupOutput out)
      • renderDescriptionField

        public void renderDescriptionField​(MarkupOutput out)
      • renderPrivileges

        public void renderPrivileges​(MarkupOutput out)
      • renderPrivilegesLabel

        public void renderPrivilegesLabel​(MarkupOutput out)
      • renderPrivilegesField

        public void renderPrivilegesField​(MarkupOutput out)
      • getAttributesPrivilegeDiv

        protected java.util.Map getAttributesPrivilegeDiv​(WebPrivilegeEntry priv)
      • renderPrivilegeCheckbox

        protected void renderPrivilegeCheckbox​(MarkupOutput out,
                                               WebPrivilegeEntry priv,
                                               boolean isGranted)
        Renders a single privilege checkbox.
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Transform
        Returns a textual description of the transform.
        Specified by:
        getDescription in interface Transform
        The textual description of the transform.
      • getSupportedBeanType

        public java.lang.Class getSupportedBeanType()
        Description copied from class: AbstractAppTransform
        Returns the supported bean type. This abstract Transform supports all WebComponents so every sub-class should override this method to return the class of the Bean the Transform is expecting, for example:
         public class CustomReportClass extends AbstractAppTransform {
            public Class getSupportedBeanType() {
                //This Transform is expected to work only with a ReportBean,
                //therefore this method needs to return this class:
                return ReportBean.class;
        Specified by:
        getSupportedBeanType in interface Transform
        getSupportedBeanType in class AbstractAppTransform
        a root class/interface supported by this transform.