javax.faces.component.html.HtmlMessage Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package javax.faces.component.html;
import javax.faces.component.UIComponent;
import javax.faces.el.ValueBinding;
import javax.faces.context.FacesContext;
// Generated from class javax.faces.component.html._HtmlMessage.
//
// WARNING: This file was automatically generated. Do not edit it directly,
// or you will lose your changes.
public class HtmlMessage extends javax.faces.component.UIMessage
{
static public final String COMPONENT_TYPE =
"javax.faces.HtmlMessage";
public HtmlMessage()
{
setRendererType("javax.faces.Message");
}
// Property: style
private String _style;
public String getStyle()
{
if (_style != null)
{
return _style;
}
ValueBinding vb = getValueBinding("style");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setStyle(String style)
{
this._style = style;
}
// Property: styleClass
private String _styleClass;
public String getStyleClass()
{
if (_styleClass != null)
{
return _styleClass;
}
ValueBinding vb = getValueBinding("styleClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setStyleClass(String styleClass)
{
this._styleClass = styleClass;
}
// Property: errorClass
private String _errorClass;
public String getErrorClass()
{
if (_errorClass != null)
{
return _errorClass;
}
ValueBinding vb = getValueBinding("errorClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setErrorClass(String errorClass)
{
this._errorClass = errorClass;
}
// Property: errorStyle
private String _errorStyle;
public String getErrorStyle()
{
if (_errorStyle != null)
{
return _errorStyle;
}
ValueBinding vb = getValueBinding("errorStyle");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setErrorStyle(String errorStyle)
{
this._errorStyle = errorStyle;
}
// Property: fatalClass
private String _fatalClass;
public String getFatalClass()
{
if (_fatalClass != null)
{
return _fatalClass;
}
ValueBinding vb = getValueBinding("fatalClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setFatalClass(String fatalClass)
{
this._fatalClass = fatalClass;
}
// Property: fatalStyle
private String _fatalStyle;
public String getFatalStyle()
{
if (_fatalStyle != null)
{
return _fatalStyle;
}
ValueBinding vb = getValueBinding("fatalStyle");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setFatalStyle(String fatalStyle)
{
this._fatalStyle = fatalStyle;
}
// Property: infoClass
private String _infoClass;
public String getInfoClass()
{
if (_infoClass != null)
{
return _infoClass;
}
ValueBinding vb = getValueBinding("infoClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setInfoClass(String infoClass)
{
this._infoClass = infoClass;
}
// Property: infoStyle
private String _infoStyle;
public String getInfoStyle()
{
if (_infoStyle != null)
{
return _infoStyle;
}
ValueBinding vb = getValueBinding("infoStyle");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setInfoStyle(String infoStyle)
{
this._infoStyle = infoStyle;
}
// Property: title
private String _title;
public String getTitle()
{
if (_title != null)
{
return _title;
}
ValueBinding vb = getValueBinding("title");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setTitle(String title)
{
this._title = title;
}
// Property: tooltip
private boolean _tooltip;
private boolean _tooltipSet;
public boolean isTooltip()
{
if (_tooltipSet)
{
return _tooltip;
}
ValueBinding vb = getValueBinding("tooltip");
if (vb != null)
{
return ((Boolean) vb.getValue(getFacesContext())).booleanValue();
}
return false;
}
public void setTooltip(boolean tooltip)
{
this._tooltip = tooltip;
this._tooltipSet = true;
}
// Property: warnClass
private String _warnClass;
public String getWarnClass()
{
if (_warnClass != null)
{
return _warnClass;
}
ValueBinding vb = getValueBinding("warnClass");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setWarnClass(String warnClass)
{
this._warnClass = warnClass;
}
// Property: warnStyle
private String _warnStyle;
public String getWarnStyle()
{
if (_warnStyle != null)
{
return _warnStyle;
}
ValueBinding vb = getValueBinding("warnStyle");
if (vb != null)
{
Object value = vb.getValue(getFacesContext());
if (value == null)
{
return null;
}
else
{
return (String) value.toString();
}
}
return null;
}
public void setWarnStyle(String warnStyle)
{
this._warnStyle = warnStyle;
}
public Object saveState(FacesContext facesContext)
{
Object[] values = new Object[14];
values[0] = super.saveState(facesContext);
values[1] = _style;
values[2] = _styleClass;
values[3] = _errorClass;
values[4] = _errorStyle;
values[5] = _fatalClass;
values[6] = _fatalStyle;
values[7] = _infoClass;
values[8] = _infoStyle;
values[9] = _title;
values[10] = Boolean.valueOf(_tooltip);
values[11] = Boolean.valueOf(_tooltipSet);
values[12] = _warnClass;
values[13] = _warnStyle;
return values;
}
public void restoreState(FacesContext facesContext, Object state)
{
Object[] values = (Object[])state;
super.restoreState(facesContext,values[0]);
_style = (java.lang.String) values[1];
_styleClass = (java.lang.String) values[2];
_errorClass = (java.lang.String) values[3];
_errorStyle = (java.lang.String) values[4];
_fatalClass = (java.lang.String) values[5];
_fatalStyle = (java.lang.String) values[6];
_infoClass = (java.lang.String) values[7];
_infoStyle = (java.lang.String) values[8];
_title = (java.lang.String) values[9];
_tooltip = ((Boolean) values[10]).booleanValue();
_tooltipSet = ((Boolean) values[11]).booleanValue();
_warnClass = (java.lang.String) values[12];
_warnStyle = (java.lang.String) values[13];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy