Class AbstractSingleCompositeComponent

    • Constructor Detail

      • AbstractSingleCompositeComponent

        public AbstractSingleCompositeComponent​(InfoModel infoModel)
        Info model constructor.
        Parameters:
        infoModel - The component info model.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
    • Method Detail

      • getComponent

        protected Component getComponent()
        Returns:
        The child component, or null if this component does not contain a child component.
      • setComponent

        public void setComponent​(Component newComponent)
        Sets the child component. This is a bound property.
        Parameters:
        newComponent - The child component, or null if this component does not contain a child component. //TODO fix if needed @see #CHECK_TYPE_PROPERTY
        Throws:
        java.lang.IllegalArgumentException - if the component already has a parent.
      • hasChildComponents

        public boolean hasChildComponents()
        Returns:
        Whether this component has childh components.
      • getChldren

        public java.lang.Iterable<Component> getChldren()
        Returns:
        An iterable to child components.