Class WColumn

    • Constructor Detail

      • WColumn

        public WColumn()
        Creates a WColumn with undefined width.
      • WColumn

        public WColumn​(int widthPercentage)
        Creates a WColumn with the width specified as a percentage of the total available width.
        Parameters:
        widthPercentage - the percentage width, 0 for undefined.
    • Method Detail

      • setWidth

        public void setWidth​(int widthPercent)
        Sets the relative column width, measured as a percentage of the total available width.
        Parameters:
        widthPercent - the column width, 0 for undefined.
      • getWidth

        public int getWidth()
        Returns:
        the column width as a percentage of the total available width, or zero if it has not been specified.
      • getAlignment

        public WColumn.Alignment getAlignment()
        Returns:
        Returns the alignment.
      • setAlignment

        public void setAlignment​(WColumn.Alignment alignment)
        Parameters:
        alignment - The alignment to set.
      • toString

        public String toString()
        Description copied from class: AbstractWComponent
        Creates a String representation of this component; usually for debugging purposes.
        Overrides:
        toString in class AbstractWComponent
        Returns:
        a String representation of this component, for debugging purposes.
      • getComponentModel

        protected WColumn.ColumnModel 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 WColumn.ColumnModel 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