Class ResponsiveColumn

    • Constructor Detail

      • ResponsiveColumn

        public ResponsiveColumn​(Resource resource,
                                java.util.Map<java.lang.String,​Breakpoint> gridBreakpoints,
                                java.lang.String classNamePrefix)
    • Method Detail

      • getExportedComponent

        @Nonnull
        public ComponentExporter getExportedComponent()
        Specified by:
        getExportedComponent in interface ResponsiveColumnExporter
        Returns:
        Returns the actual component model that is wrapped inside of the responsive column. This is useful when performing a JSON export of the responsive grid; in such case, responsive child columns act as wrappers for the actual components that are part of the grid.
      • getExportedType

        @Nonnull
        public java.lang.String getExportedType()
        Description copied from interface: ResponsiveColumnExporter

        Returns the type of the resource for which the export is performed.

        NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.

        Specified by:
        getExportedType in interface ComponentExporter
        Specified by:
        getExportedType in interface ResponsiveColumnExporter
        Returns:
        the type of the component
      • getResource

        @Nonnull
        public Resource getResource()
        Returns:
        The wrapped Resource associated with the column.
      • getPath

        @Nonnull
        public java.lang.String getPath()
        Description copied from interface: Resource
        Returns the absolute path of this resource in the resource tree.
        Specified by:
        getPath in interface Resource
        Returns:
        The resource path
      • getMissingBreakpointNames

        @Deprecated
        public java.util.Set<java.lang.String> getMissingBreakpointNames()
        Deprecated.
      • getColumnCount

        @Deprecated
        public java.lang.Integer getColumnCount​(java.lang.String breakpointName)
        Deprecated.
        Returns the number of columns for the given breakpoint name
        Parameters:
        breakpointName - The name of the breakpoint
        Returns:
        The number of columns for given breakpoint name.
      • getResourceType

        @Nonnull
        @Deprecated
        public java.lang.String getResourceType()
        Deprecated.
        Description copied from interface: Resource
        The resource type is meant to point to rendering/processing scripts, editing dialogs, etc. It is usually a path in the repository, where scripts and other tools definitions are found, but the ResourceResolver is free to set this to any suitable value such as the primary node type of the JCR node from which the resource is created.

        If the resource instance represents a resource which is not actually existing, this method returns Resource.RESOURCE_TYPE_NON_EXISTING.

        Specified by:
        getResourceType in interface Resource
        Returns:
        The resource type
      • getResourceSuperType

        @Deprecated
        public java.lang.String getResourceSuperType()
        Deprecated.
        Description copied from interface: Resource
        Returns the super type of the resource if the resource defines its own super type. Otherwise null is returned. A resource might return a resource super type to overwrite the resource type hierarchy. If a client is interested in the effective resource super type of a resource, it should call ResourceResolver.getParentResourceType(Resource).
        Specified by:
        getResourceSuperType in interface Resource
        Returns:
        The super type of the resource or null.
      • getProperties

        @Deprecated
        public ValueMap getProperties()
        Deprecated.