Class WRow

    • Constructor Detail

      • WRow

        public WRow()
        Creates a WRow.
      • WRow

        public WRow​(Size space)
        Create a WRow with the specified space between columns.
        Parameters:
        space - the space between columns in the row
    • Method Detail

      • add

        public void add​(WColumn column)
        Adds the given column as a child of this component.
        Parameters:
        column - the column to add.
      • remove

        public void remove​(WColumn column)
        Removes the given column from this components list of children.
        Parameters:
        column - the column to remove
      • getHgap

        @Deprecated
        public int getHgap()
        Deprecated.
        Returns:
        the horizontal space between the columns in the row, measured in pixels
      • getSpace

        public Size getSpace()
        Returns:
        the horizontal space between the columns in the row
      • getGap

        @Deprecated
        public int getGap()
        Deprecated.
        Returns:
        the space between the components added to the layout.
      • setMargin

        public void setMargin​(Margin margin)
        Set the margin for the component, or null for no margin.
        Specified by:
        setMargin in interface Marginable
        Parameters:
        margin - the margin for the component
      • getMargin

        public Margin getMargin()
        Get the margin for the component, or null if not set.
        Specified by:
        getMargin in interface Marginable
        Returns:
        the margin for the component, or null if not set
      • getComponentModel

        protected WRow.RowModel getComponentModel()
        Returns the effective component model for this component. Subclass may override this method to narrow the return type to their specific model type.
        Overrides:
        getComponentModel in class AbstractWComponent
        Returns:
        the effective component model
      • getOrCreateComponentModel

        protected WRow.RowModel getOrCreateComponentModel()
        Retrieves the model for this component so that it can be modified. If this method is called during request processing, and a session specific model does not yet exist, then a new model is created. Subclasses may override this method to narrow the return type to their specific model type.
        Overrides:
        getOrCreateComponentModel in class AbstractWComponent
        Returns:
        the model for this component