org.richfaces.component.AbstractAjaxLog Maven / Gradle / Ivy
The newest version!
/**
* License Agreement.
*
* Rich Faces - Natural Ajax for Java Server Faces (JSF)
*
* Copyright (C) 2007 Exadel, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package org.richfaces.component;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponentBase;
import org.richfaces.cdk.annotations.Attribute;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
import org.richfaces.cdk.annotations.Tag;
import org.richfaces.cdk.annotations.TagType;
/**
*
* The <a4j:log> component generates JavaScript that opens a debug window, logging application information such as
* requests, responses, and DOM changes.
*
* @author Nick Belaevski
*/
@ResourceDependencies(value = { @ResourceDependency(library = "javax.faces", name = "jsf.js"),
@ResourceDependency(name = "jquery.js"),
@ResourceDependency(name = "richfaces.js"),
@ResourceDependency(name = "richfaces-base-component.js"),
@ResourceDependency(library = "org.richfaces", name = "log.js"),
@ResourceDependency(library = "org.richfaces", name = "log.ecss") })
@JsfComponent(tag = @Tag(name = "log", type = TagType.Facelets), renderer = @JsfRenderer(type = "org.richfaces.AjaxLogRenderer"))
public abstract class AbstractAjaxLog extends UIComponentBase {
public static final String COMPONENT_TYPE = "org.richfaces.AjaxLog";
public static final String COMPONENT_FAMILY = "org.richfaces.AjaxLog";
/**
* CSS style(s) to be applied when this component is rendered.
*/
@Attribute
public abstract String getStyle();
/**
* Sets the logging level, can be one of 'debug', 'info', 'warn', 'error'.
*/
@Attribute
public abstract String getLevel();
/**
* Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be
* passed through as the "class" attribute on generated markup.
*/
@Attribute
public abstract String getStyleClass();
/**
* Determines how the log appears on the page, can be one of: "inline", "popup". When set to "popup", the popup
* window is opened by pressing the key combination Ctrl + Shift + L
*/
@Attribute
public abstract LogMode getMode();
// public abstract String getHotkey();
// public abstract void setHotkey(String newvalue);
//
// public abstract String getName();
// public abstract void setName(String newvalue);
//
// public abstract String getWidth();
// public abstract void setWidth(String newvalue);
//
// public abstract String getHeight();
// public abstract void setHeight(String newvalue);
//
// public abstract String getLevel();
// public abstract void setLevel(String newvalue);
//
// public abstract boolean isPopup();
// public abstract void setPopup(boolean popup);
}