Preferences.java

// license-header java merge-point
// Generated by andromda-jsf cartridge (preferences\Preferences.java.vsl) DO NOT EDIT!
package org.andromda.presentation.jsf;

import java.io.Serializable;

/**
 * Provides dynamically changeable preferences for changing the application
 * display.
 */
public class Preferences
    implements Serializable
{
    /**  */
    private static final long serialVersionUID = 6297094790425024219L;

    private String skin;

    /**
     * The skin to apply.
     * @return skin
     */
    public String getSkin()
    {
        return this.skin;
    }

    /**
     * The skin to apply.
     * @param skinIn
     */
    public void setSkin(final String skinIn)
    {
        this.skin = skinIn;
    }

    private int maxTableRows;

    /**
     * The maximum rows displayed in a table.
     * @param maxTableRowsIn
     */
    public void setMaxTableRows(final int maxTableRowsIn)
    {
        this.maxTableRows = maxTableRowsIn;
    }

    /**
     * The maximum rows displayed in a table.
     * @param maxTableRowsIn
     */
    public void setMaxTableRows(final String maxTableRowsIn)
    {
        try
        {
            this.maxTableRows = Integer.parseInt(maxTableRowsIn);
        }
        catch (Exception ex)
        {
            this.maxTableRows = 10;
        }
    }

    /**
     * The maximum rows displayed in a table.
     * @return maxTableRows
     */
    public int getMaxTableRows()
    {
        return this.maxTableRows;
    }
}