Class Type
- java.lang.Object
-
- com.webfirmframework.wffweb.tag.core.AbstractTagBase
-
- com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
-
- com.webfirmframework.wffweb.tag.html.attribute.Type
-
- All Implemented Interfaces:
TagBase
,AAttributable
,AreaAttributable
,InputAttributable
,ScriptAttributable
,StyleAttributable
,java.io.Serializable
,java.lang.Cloneable
public class Type extends AbstractAttribute implements AAttributable, AreaAttributable, InputAttributable, ScriptAttributable, StyleAttributable
type
attribute for the element.
type attribute for a element :-
This attribute specifies the media type in the form of a MIME type for the link target. Generally, this is provided strictly as advisory information; however, in the future a browser might add a small icon for multimedia types. For example, a browser might add a small speaker icon when type is set to audio/wav. For a complete list of recognized MIME types, see http://www.w3.org/TR/html4/references.html#ref-MIMETYPES. Use this attribute only if the href attribute is present.
type attribute for area element :-
This attribute specifies the media type in the form of a MIME type for the link target. Generally, this is provided strictly as advisory information; however, in the future a browser might add a small icon for multimedia types. For example, a browser might add a small speaker icon when type is set to audio/wav. For a complete list of recognized MIME types, see http://www.w3.org/TR/html4/references.html#ref-MIMETYPES. Use this attribute only if the href attribute is present.
type attribute for area element :-
The type of control to display. The default type is text, if this attribute is not specified. Possible values are: button: A push button with no default behavior. checkbox: A check box. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected. You can also use the indeterminate attribute to indicate that the checkbox is in an indeterminate state (on most platforms, this draws a horizontal line across the checkbox). color: HTML5 A control for specifying a color. A color picker's UI has no required features other than accepting simple colors as text (more info). date: HTML5 A control for entering a date (year, month, and day, with no time). datetime: HTML5 A control for entering a date and time (hour, minute, second, and fraction of a second) based on UTC time zone. This feature has been removed from WHATWG HTML. datetime-local: HTML5 A control for entering a date and time, with no time zone. email: HTML5 A field for editing an e-mail address. The input value is validated to contain either the empty string or a single valid e-mail address before submitting. The :valid and :invalid CSS pseudo-classes are applied as appropriate. file: A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select. hidden: A control that is not displayed, but whose value is submitted to the server. image: A graphical submit button. You must use the src attribute to define the source of the image and the alt attribute to define alternative text. You can use the height and width attributes to define the size of the image in pixels. month: HTML5 A control for entering a month and year, with no time zone. number: HTML5 A control for entering a floating point number. password: A single-line text field whose value is obscured. Use the maxlength attribute to specify the maximum length of the value that can be entered. radio: A radio button. You must use the value attribute to define the value submitted by this item. Use the checked attribute to indicate whether this item is selected by default. Radio buttons that have the same value for the name attribute are in the same "radio button group"; only one radio button in a group can be selected at a time. range: HTML5 A control for entering a number whose exact value is not important. This type control uses the following default values if the corresponding attributes are not specified: min: 0 max: 100 value: min + (max-min)/2, or min if max is less than min step: 1 reset: A button that resets the contents of the form to default values. search: HTML5 A single-line text field for entering search strings; line-breaks are automatically removed from the input value. submit: A button that submits the form. tel: HTML5 A control for entering a telephone number; line-breaks are automatically removed from the input value, but no other syntax is enforced. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate. text: A single-line text field; line-breaks are automatically removed from the input value. time: HTML5 A control for entering a time value with no time zone. url: HTML5 A field for editing a URL. The input value is validated to contain either the empty string or a valid absolute URL before submitting. Line-breaks and leading or trailing whitespace are automatically removed from the input value. You can use attributes such as pattern and maxlength to restrict values entered in the control. The :valid and :invalid CSS pseudo-classes are applied as appropriate. week: HTML5 A control for entering a date consisting of a week-year number and a week number with no time zone.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPLICATION_ECMASCRIPT
static java.lang.String
APPLICATION_JAVASCRIPT
static java.lang.String
BUTTON
static java.lang.String
CHECKBOX
static java.lang.String
COLOR
static java.lang.String
DATE
static java.lang.String
DATETIME
static java.lang.String
DATETIME_LOCAL
static java.lang.String
EMAIL
static java.lang.String
FILE
static java.lang.String
HIDDEN
static java.lang.String
IMAGE
static java.lang.String
MONTH
static java.lang.String
NUMBER
static java.lang.String
PASSWORD
static java.lang.String
RADIO
static java.lang.String
RANGE
static java.lang.String
RESET
static java.lang.String
SEARCH
static java.lang.String
SUBMIT
static java.lang.String
TEL
static java.lang.String
TEXT
static java.lang.String
TEXT_CSS
static java.lang.String
TEXT_ECMASCRIPT
static java.lang.String
TEXT_JAVASCRIPT
static java.lang.String
TIME
static java.lang.String
URL
static java.lang.String
WEEK
-
Fields inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
LOGGER
-
-
Constructor Summary
Constructors Constructor Description Type(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
gets the value of this attributeprotected void
init()
invokes only once per objectvoid
setValue(boolean updateClient, java.lang.String value)
sets the value for this attributevoid
setValue(java.lang.String value)
sets the value for this attribute-
Methods inherited from class com.webfirmframework.wffweb.tag.html.attribute.core.AbstractAttribute
addAllToAttributeValueMap, addAllToAttributeValueSet, addAllToAttributeValueSet, addToAttributeValueMap, addToAttributeValueSet, addValueChangeListener, beforePrintStructure, beforePrintStructureCompressedByIndex, beforeWffPrintStructure, getAttributeName, getAttributeValue, getAttributeValueMap, getAttributeValueSet, getBinaryStructureCompressedByIndex, getCharset, getOwnerTag, getOwnerTags, getPrintStructure, getPrintStructure, getValueChangeListeners, getWffPrintStructure, removeAllFromAttributeValueMap, removeAllFromAttributeValueSet, removeAllFromAttributeValueSet, removeFromAttributeValueMap, removeFromAttributeValueMap, removeFromAttributeValueSet, removeValueChangeListener, setAttributeName, setAttributeValue, setAttributeValue, setAttributeValueMap, setAttributeValueSet, setCharset, setModified, setOwnerTag, toCompressedBytesByIndex, toCompressedBytesByIndex, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString, toWffString, unsetOwnerTag
-
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setRebuild
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.webfirmframework.wffweb.tag.core.TagBase
toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toString
-
-
-
-
Field Detail
-
BUTTON
public static final java.lang.String BUTTON
- See Also:
- Constant Field Values
-
CHECKBOX
public static final java.lang.String CHECKBOX
- See Also:
- Constant Field Values
-
COLOR
public static final java.lang.String COLOR
- See Also:
- Constant Field Values
-
DATE
public static final java.lang.String DATE
- See Also:
- Constant Field Values
-
DATETIME
public static final java.lang.String DATETIME
- See Also:
- Constant Field Values
-
DATETIME_LOCAL
public static final java.lang.String DATETIME_LOCAL
- See Also:
- Constant Field Values
-
EMAIL
public static final java.lang.String EMAIL
- See Also:
- Constant Field Values
-
FILE
public static final java.lang.String FILE
- See Also:
- Constant Field Values
-
HIDDEN
public static final java.lang.String HIDDEN
- See Also:
- Constant Field Values
-
IMAGE
public static final java.lang.String IMAGE
- See Also:
- Constant Field Values
-
MONTH
public static final java.lang.String MONTH
- See Also:
- Constant Field Values
-
NUMBER
public static final java.lang.String NUMBER
- See Also:
- Constant Field Values
-
PASSWORD
public static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
RADIO
public static final java.lang.String RADIO
- See Also:
- Constant Field Values
-
RANGE
public static final java.lang.String RANGE
- See Also:
- Constant Field Values
-
RESET
public static final java.lang.String RESET
- See Also:
- Constant Field Values
-
SEARCH
public static final java.lang.String SEARCH
- See Also:
- Constant Field Values
-
SUBMIT
public static final java.lang.String SUBMIT
- See Also:
- Constant Field Values
-
TEL
public static final java.lang.String TEL
- See Also:
- Constant Field Values
-
TEXT
public static final java.lang.String TEXT
- See Also:
- Constant Field Values
-
TIME
public static final java.lang.String TIME
- See Also:
- Constant Field Values
-
URL
public static final java.lang.String URL
- See Also:
- Constant Field Values
-
WEEK
public static final java.lang.String WEEK
- See Also:
- Constant Field Values
-
TEXT_JAVASCRIPT
public static final java.lang.String TEXT_JAVASCRIPT
- See Also:
- Constant Field Values
-
TEXT_ECMASCRIPT
public static final java.lang.String TEXT_ECMASCRIPT
- See Also:
- Constant Field Values
-
APPLICATION_ECMASCRIPT
public static final java.lang.String APPLICATION_ECMASCRIPT
- See Also:
- Constant Field Values
-
APPLICATION_JAVASCRIPT
public static final java.lang.String APPLICATION_JAVASCRIPT
- See Also:
- Constant Field Values
-
TEXT_CSS
public static final java.lang.String TEXT_CSS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setValue
public void setValue(java.lang.String value)
sets the value for this attribute- Parameters:
value
- the value for the attribute.- Since:
- 1.0.0
-
setValue
public void setValue(boolean updateClient, java.lang.String value)
sets the value for this attribute- Parameters:
updateClient
- true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.value
- the value for the attribute.- Since:
- 2.1.15
-
getValue
public java.lang.String getValue()
gets the value of this attribute- Returns:
- the value of the attribute
- Since:
- 1.0.0
-
init
protected void init()
invokes only once per object- Since:
- 1.0.0
-
-