All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.icefaces.ace.component.textareaentry.TextAreaEntryMeta Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2004-2014 ICEsoft Technologies Canada Corp.
 *
 * Licensed 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 org.icefaces.ace.component.textareaentry;

import org.icefaces.ace.meta.annotation.*;
import org.icefaces.ace.meta.baseMeta.UIInputMeta;

import org.icefaces.ace.resources.ACEResourceNames;
import org.icefaces.component.PassthroughAttributes;
import org.icefaces.resources.ICEResourceDependencies;
import org.icefaces.resources.ICEResourceDependency;
import org.icefaces.resources.ICEResourceLibrary;

@Component(
        tagName = "textAreaEntry",
        componentClass = "org.icefaces.ace.component.textareaentry.TextAreaEntry",
        rendererClass = "org.icefaces.ace.component.textareaentry.TextAreaEntryRenderer",
        generatedClass = "org.icefaces.ace.component.textareaentry.TextAreaEntryBase",
        extendsClass = "javax.faces.component.html.HtmlInputTextarea",
        componentType = "org.icefaces.ace.component.TextAreaEntry",
        rendererType = "org.icefaces.ace.component.TextAreaEntryRenderer",
        componentFamily = "org.icefaces.ace.TextAreaEntry",
        tlddoc = "TextAreaEntry is a text area input component that can display some placeholder text inside the text area when the component doesn't have a value and is not focussed." +
                " It also has custom styling for invalid state and required status." +
                "

For more information, see the TextAreaEntry Wiki Documentation." ) @ICEResourceLibrary(ACEResourceNames.ACE_LIBRARY) @ICEResourceDependencies({ @ICEResourceDependency(name = "util/ace-core.js"), @ICEResourceDependency(name = "jquery/jquery.js"), @ICEResourceDependency(name = "textareaentry/textareaentry.js") }) @ClientBehaviorHolder(events = { @ClientEvent(name = "blur", javadoc = "Fired when the text input field loses focus (default event).", tlddoc = "Fired when the text input field loses focus (default event).", defaultRender = "@all", defaultExecute = "@this"), @ClientEvent(name = "charCount", javadoc = "Fired when the number of characters entered in the component changes, either by the " + "user typing a new character, deleting one or more characters, or cutting/pasting characters into the component.", tlddoc = "Fired when the number of characters entered in the component changes, either by the user typing a new " + "character, deleting one or more characters, or cutting/pasting characters into the component.", defaultRender = "@all", defaultExecute = "@this"), @ClientEvent(name="valueChange", javadoc="Fired when the component detects value is changed.", tlddoc="Fired when the component detects value is changed.", defaultRender="@all", defaultExecute="@this") }, defaultEvent = "valueChange") @PassthroughAttributes({ "cols", "rows", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onblur", "onfocus", "onchange" }) public class TextAreaEntryMeta extends UIInputMeta { @Property(tlddoc = "Access key that, when pressed, transfers focus to this component.") String accesskey; @Property(implementation = Implementation.EXISTS_IN_SUPERCLASS, tlddoc="The inline style of the component, rendered on the element of the component.") private String style; @Property(implementation = Implementation.EXISTS_IN_SUPERCLASS, tlddoc="The CSS style class of the component, rendered on the element of the component.") private String styleClass; @Property(tlddoc = "Indicator indicating that the user is required to provide a submitted value for this input component.") private String requiredIndicator; @Property(tlddoc = "Indicator indicating that the user is NOT required to provide a submitted value for this input component.") private String optionalIndicator; @Property(tlddoc = "Position of label relative to input field. Supported values are \"left/right/top/bottom/inField/none\". Default is \"none\".") private String labelPosition; @Property(tlddoc = "Position of input-required or input-optional indicator relative to input field or label. " + "Supported values are \"left/right/top/bottom/labelLeft/labelRight/none\". " + "Default is \"labelRight\" if labelPosition is \"inField\", \"right\" otherwise.") private String indicatorPosition; @Property(tlddoc = "Make the text area resizable via dragging the bottom right corner. Works only if browser supports CSS3 resize property.", defaultValue = "true") private boolean resizable; @Property(implementation = Implementation.EXISTS_IN_SUPERCLASS, tlddoc = "A localized user presentable name for this component.") private String label; @Property(defaultValue = "-1", tlddoc = "The maximum number of characters that may be entered in this field.") private int maxlength; @Property(tlddoc = "The HTML5 placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry " + "when the input element has no value. If the placeholder attribute is not supported by the browser, the label 'inField' functionality " + "will be used instead. Alternatively, the Mojarra HTML5 'placeholder' passthrough attribute may also be used with this component.") private String placeholder; @Property(tlddoc = "Flag indicating that this element must never receive focus or be included in a subsequent submit. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as disabled=\"disabled\".", defaultValue = "false") private boolean disabled; @Property(tlddoc = "Flag indicating that this component will prohibit changes by the user. The element may receive focus unless it has also been disabled. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as readonly=\"readonly\".", defaultValue = "false") private boolean readonly; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy