AmpAccordion
Inheritance: java.lang.Object, com.aspose.email.AmpComponent
public class AmpAccordion extends AmpComponent
A UI element that facilitates showing/hiding different sections.
Constructors
Constructor | Description |
---|---|
AmpAccordion() |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getAttributes() | AMP provides a set of common attributes that are extended to many AMP components. |
getClass() | |
getDisableSessionStates() | Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion. |
getExpandSingleSection() | Set this attribute on the amp-accordion to only allow one section to be expanded at a time. |
getFallback() | A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element. |
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. |
getSections() | List of sections. |
hashCode() | |
notify() | |
notifyAll() | |
setDisableSessionStates(boolean value) | Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion. |
setExpandSingleSection(boolean value) | Set this attribute on the amp-accordion to only allow one section to be expanded at a time. |
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. |
setPlaceholder(AmpComponent value) | The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. |
toAmpHtml() | Represents amp html version of component. |
toHtml() | Represents html version of component. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
AmpAccordion()
public AmpAccordion()
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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
getDisableSessionStates()
public final boolean getDisableSessionStates()
Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.
Returns: boolean
getExpandSingleSection()
public final boolean getExpandSingleSection()
Set this attribute on the amp-accordion to only allow one section to be expanded at a time.
Returns: boolean
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
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
getSections()
public final List<Section> getSections()
List of sections.
Returns: java.util.List<com.aspose.email.Section>
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setDisableSessionStates(boolean value)
public final void setDisableSessionStates(boolean value)
Set this attribute on the amp-accordion to opt out of preserving the collapsed/expanded state of the accordion.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setExpandSingleSection(boolean value)
public final void setExpandSingleSection(boolean value)
Set this attribute on the amp-accordion to only allow one section to be expanded at a time.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
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:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
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:
Parameter | Type | Description |
---|---|---|
value | AmpComponent |
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:
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 |