001package com.github.gwtbootstrap.client.ui.config;
002
003/**
004 * Column size configurator.
005 * <p>
006 * There is this interface for customize column size.
007 * If you use custom bootstrap css and change column size, please do below settings.
008 * </p>
009 * <ol>
010 *  <li>Create implemention of this interface or extends {@link DefaultColumnSizeConfigurator}</li>
011 *  <li>Implement methods of this interface, fit your custom columns</li>
012 *  <li>Add a setting to your module xml like below.</li>
013 * </ol>
014 * <pre>
015 *  {@literal
016 *  <replace-with class="com.example.config.MyColumnSizeConfigurator">
017 *     <when-type-is class="com.github.gwtbootstrap.client.ui.config.ColumnSizeConfigurator"/>
018 *  </replace-with>
019 *  }
020 *  </pre>
021 * 
022 * @since 2.2.1.0
023 * @author ohashi keisuke
024 * @see DefaultColumnSizeConfigurator
025 */
026public interface ColumnSizeConfigurator {
027
028    /**
029     * Get maximum span style size.
030     * @return maximum span style size.
031     */
032    public int getMaximumSpanSize();
033    
034    /**
035     * Get minimum span style size.
036     * @return minimum span style size.
037     */
038    public int getMinimumSpanSize();
039    
040    /**
041     * Get maximum offset style size.
042     * @return maximum offset style size.
043     */
044    public int getMaximumOffsetSize();
045    
046    /**
047     * Get minimum offset style size.
048     * @return minimum offset style size.
049     */
050    public int getMinimumOffsetSize();
051}