AmpAttributes
Inheritance: java.lang.Object
public class AmpAttributes
Represents attributes used by the amp-components.
Constructors
Constructor | Description |
---|---|
AmpAttributes() |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getHeight() | Height of element. |
getHeigths() | The value of this attribute is a sizes expression based on media expressions. |
getLayout() | AMP provides a set of layouts that specify how an AMP component behaves in the document layout. |
getMedia() | The value of media is a media query. |
getOn() | The on attribute is used to install event handlers on elements. |
getSizes() | The value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size. |
getWidth() | Width of element. |
hashCode() | |
isFallback() | Define that current element is fallback. |
isNoloading() | The noloading attribute indicates whether the “loading indicator” should be turned off for this element. |
isPlaceHolder() | The placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element. |
notify() | |
notifyAll() | |
setFallback(boolean value) | Define that current element is fallback. |
setHeight(int value) | Height of element. |
setHeigths(String value) | The value of this attribute is a sizes expression based on media expressions. |
setLayout(int value) | AMP provides a set of layouts that specify how an AMP component behaves in the document layout. |
setMedia(String value) | The value of media is a media query. |
setNoloading(boolean value) | The noloading attribute indicates whether the “loading indicator” should be turned off for this element. |
setOn(String value) | The on attribute is used to install event handlers on elements. |
setPlaceHolder(boolean value) | The placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element. |
setSizes(String value) | The value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size. |
setWidth(int value) | Width of element. |
toAmpHtml() | Represents amp html version of attributes. |
toHtml() | Represents html version of attributes. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
AmpAttributes()
public AmpAttributes()
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getHeight()
public final int getHeight()
Height of element.
Returns: int
getHeigths()
public final String getHeigths()
The value of this attribute is a sizes expression based on media expressions.
Returns: java.lang.String
getLayout()
public final int getLayout()
AMP provides a set of layouts that specify how an AMP component behaves in the document layout.
Returns: int
getMedia()
public final String getMedia()
The value of media is a media query. If the query does not match, the element is not rendered and its resources and potentially its child resources will not be fetched. If the browser window changes size or orientation, the media queries are re-evaluated and elements are hidden and shown based on the new results.
Returns: java.lang.String
getOn()
public final String getOn()
The on attribute is used to install event handlers on elements.
Returns: java.lang.String
getSizes()
public final String getSizes()
The value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size.
Returns: java.lang.String
getWidth()
public final int getWidth()
Width of element.
Returns: int
hashCode()
public native int hashCode()
Returns: int
isFallback()
public final boolean isFallback()
Define that current element is fallback.
Returns: boolean
isNoloading()
public final boolean isNoloading()
The noloading attribute indicates whether the “loading indicator” should be turned off for this element.
Returns: boolean
isPlaceHolder()
public final boolean isPlaceHolder()
The placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element.
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFallback(boolean value)
public final void setFallback(boolean value)
Define that current element is fallback.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setHeight(int value)
public final void setHeight(int value)
Height of element.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setHeigths(String value)
public final void setHeigths(String value)
The value of this attribute is a sizes expression based on media expressions.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setLayout(int value)
public final void setLayout(int value)
AMP provides a set of layouts that specify how an AMP component behaves in the document layout.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setMedia(String value)
public final void setMedia(String value)
The value of media is a media query. If the query does not match, the element is not rendered and its resources and potentially its child resources will not be fetched. If the browser window changes size or orientation, the media queries are re-evaluated and elements are hidden and shown based on the new results.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setNoloading(boolean value)
public final void setNoloading(boolean value)
The noloading attribute indicates whether the “loading indicator” should be turned off for this element.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setOn(String value)
public final void setOn(String value)
The on attribute is used to install event handlers on elements.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setPlaceHolder(boolean value)
public final void setPlaceHolder(boolean value)
The placeholder attribute indicates that the element marked with this attribute acts as a placeholder for the parent AMP element.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setSizes(String value)
public final void setSizes(String value)
The value of the AMP sizes attribute is a sizes expression that selects the defined size corresponding to the media query based on the current window size.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setWidth(int value)
public final void setWidth(int value)
Width of element.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
toAmpHtml()
public String toAmpHtml()
Represents amp html version of attributes.
Returns: java.lang.String -
toHtml()
public String toHtml()
Represents html version of attributes.
Returns: java.lang.String -
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |