/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.d3;

import javax.faces.component.UIComponentBase;

/**
 * @author Joe Hendrix
 */
public abstract class MasterComponent extends UIComponentBase
{
    /**
     * Returns the value of the class attribute of the div element that contains the component.
     *
     * @return String the value of the class attribute of the div element that contains the component
     */
    public String getStyleClass()
    {
        return (String) getStateHelper().eval(PropertyKeys.styleClass, null);
    }

    /**
     * Sets the value of the class attribute of the div element that contains the component.
     *
     * @param styleClass the value of the class attribute of the div element that contains the component
     */
    public void setStyleClass(String styleClass)
    {
        getStateHelper().put(PropertyKeys.styleClass, styleClass);
    }

    /**
     * Returns the value of the style attribute of the div element that contains the component.
     *
     * @return String the value of the style attribute of the div element that contains the component
     */
    public String getStyle()
    {
        return (String) getStateHelper().eval(PropertyKeys.style, null);
    }

    /**
     * Sets the value of the style attribute of the div element that contains the component.
     *
     * @param style the value of the style attribute of the div element that contains the component
     */
    public void setStyle(String style)
    {
        getStateHelper().put(PropertyKeys.style, style);
    }

    protected enum PropertyKeys
    {

        /**
         *
         */
        styleClass,
        style
    }
}

@@ -454,37 +454,45 @@
 he value of the 
+%7B@code 
 class
+%7D
  attribute of th
@@ -485,35 +485,43 @@
 ttribute of the 
+%7B@code 
 div
+%7D
  element that co
@@ -556,39 +556,32 @@
 %0A     * @return 
-String 
 the value of the
@@ -806,37 +806,45 @@
 he value of the 
+%7B@code 
 class
+%7D
  attribute of th
@@ -837,35 +837,43 @@
 ttribute of the 
+%7B@code 
 div
+%7D
  element that co
@@ -1175,37 +1175,45 @@
 he value of the 
+%7B@code 
 style
+%7D
  attribute of th
@@ -1206,35 +1206,43 @@
 ttribute of the 
+%7B@code 
 div
+%7D
  element that co
@@ -1285,23 +1285,16 @@
 @return 
-String 
 the valu
@@ -1517,37 +1517,45 @@
 he value of the 
+%7B@code 
 style
+%7D
  attribute of th
@@ -1548,35 +1548,43 @@
 ttribute of the 
+%7B@code 
 div
+%7D
  element that co

Update MasterComponent.java