AmpFitText

Inheritance: java.lang.Object, com.aspose.email.AmpComponent

public class AmpFitText extends AmpComponent

Expands or shrinks its font size to fit the content within the space given to it.

Constructors

ConstructorDescription
AmpFitText(String value)Creates instance of AmpFitText.

Methods

MethodDescription
equals(Object arg0)
getAttributes()AMP provides a set of common attributes that are extended to many AMP components.
getClass()
getFallback()A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
getMaxFontSize()Specifies the maximum font size as an integer that the amp-fit-text can use.
getMinFontSize()Specifies the minimum font size as an integer that the amp-fit-text can use.
getPlaceholder()The element marked with the placeholder attribute acts as a placeholder for the parent AMP element.
getRequiredScript()Required script that muct be added to head section.
getValue()Text Value of component.
hashCode()
notify()
notifyAll()
setFallback(String value)A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
setMaxFontSize(int value)Specifies the maximum font size as an integer that the amp-fit-text can use.
setMinFontSize(int value)Specifies the minimum font size as an integer that the amp-fit-text can use.
setPlaceholder(AmpComponent value)The element marked with the placeholder attribute acts as a placeholder for the parent AMP element.
setValue(String value)Text Value of component.
toAmpHtml()Represents amp html version of component.
toHtml()Represents html version of component.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AmpFitText(String value)

public AmpFitText(String value)

Creates instance of AmpFitText.

Parameters:

ParameterTypeDescription
valuejava.lang.String

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAttributes()

public final AmpAttributes getAttributes()

AMP provides a set of common attributes that are extended to many AMP components.

Returns: AmpAttributes

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFallback()

public final String getFallback()

A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.

Returns: java.lang.String

getMaxFontSize()

public final int getMaxFontSize()

Specifies the maximum font size as an integer that the amp-fit-text can use.

Returns: int

getMinFontSize()

public final int getMinFontSize()

Specifies the minimum font size as an integer that the amp-fit-text can use.

Returns: int

getPlaceholder()

public final AmpComponent getPlaceholder()

The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element.

Returns: AmpComponent

getRequiredScript()

public String getRequiredScript()

Required script that muct be added to head section.

Returns: java.lang.String

getValue()

public final String getValue()

Text Value of component.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setFallback(String value)

public final void setFallback(String value)

A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setMaxFontSize(int value)

public final void setMaxFontSize(int value)

Specifies the maximum font size as an integer that the amp-fit-text can use.

Parameters:

ParameterTypeDescription
valueint

setMinFontSize(int value)

public final void setMinFontSize(int value)

Specifies the minimum font size as an integer that the amp-fit-text can use.

Parameters:

ParameterTypeDescription
valueint

setPlaceholder(AmpComponent value)

public final void setPlaceholder(AmpComponent value)

The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element.

Parameters:

ParameterTypeDescription
valueAmpComponent

setValue(String value)

public final void setValue(String value)

Text Value of component.

Parameters:

ParameterTypeDescription
valuejava.lang.String

toAmpHtml()

public String toAmpHtml()

Represents amp html version of component.

Returns: java.lang.String -

toHtml()

public String toHtml()

Represents html version of component.

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int