Class SimpleBeanBoundTableModel.LevelDetails

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    SimpleBeanBoundTableModel

    public static final class SimpleBeanBoundTableModel.LevelDetails
    extends Object
    implements Serializable
    The details of an expandable level. A level can either have "columns" or a "renderer".

    For levels that have a "renderer", if the data for the level is a list, then a row can be rendered for "each" item in the list. However, if the data is not a list or the renderer will handle rendering the "list" then the rowPerListItem flag needs to be set to false via LevelDetails(java.lang.String, java.lang.Class, boolean) constructor.

    Since:
    1.0.0
    Author:
    Jonathan Austin
    See Also:
    Serialized Form
    • Constructor Detail

      • LevelDetails

        public LevelDetails​(String levelBeanProperty,
                            String[] columnBeanProperties)
        Parameters:
        levelBeanProperty - the bean property for this level's data (usually a list of beans)
        columnBeanProperties - the column bean properties for the level
      • LevelDetails

        public LevelDetails​(String levelBeanProperty,
                            Class<? extends WComponent> renderer)
        Parameters:
        levelBeanProperty - the bean property for this level's data (usually a list of beans)
        renderer - the custom renderer for this level
      • LevelDetails

        public LevelDetails​(String levelBeanProperty,
                            Class<? extends WComponent> renderer,
                            boolean rowPerListItem)
        Parameters:
        levelBeanProperty - the bean property for this level's data (usually a list of beans)
        renderer - the custom renderer for this level
        rowPerListItem - true if row per item in list, otherwise false
    • Method Detail

      • getLevelBeanProperty

        public String getLevelBeanProperty()
        Returns:
        the bean property for this level's data (usually a list of beans)
      • getRenderer

        public Class<? extends WComponent> getRenderer()
        Returns:
        the custom renderer for this level, null if not defined.
      • isRowPerListItem

        public boolean isRowPerListItem()
        For levels that have a "renderer", if the data for the level is a list, then a row can be rendered for "each" item in the list. However, if the data is not a list or the renderer will handle rendering the "list" then the rowPerListItem will be false.
        Returns:
        true if row per item in list, otherwise false
      • getColumnBeanProperties

        public String[] getColumnBeanProperties()
        Returns:
        the column bean properties for the level, or null if the level has a custom renderer