public abstract class AbstractRoleWithCommonAttributes extends AbstractRoleWithBaseAttributes implements AttributeWriteAriaChecked, AttributeWriteAriaLevel, AttributeWriteAriaActiveDescendant, AttributeWriteAriaOrientation
AbstractRoleWithAttributeExpanded with various common ARIA attributes to avoid
java multi-inheritance problems. As Roles shall always be
accessed via their interface we consider this as implementation secret and expect nobody to bypass the API
and access invalid attributes.| Modifier and Type | Field and Description |
|---|---|
private String |
activeDescendant |
private AriaTristate |
checked |
private Integer |
level |
private Orientation |
orientation |
HTML_ATTRIBUTE_ARIA_CHECKEDHTML_ATTRIBUTE_ARIA_LEVELHTML_ATTRIBUTE_ARIA_ACTIVE_DESCENDANTHTML_ATTRIBUTE_ARIA_ORIENTATIONWAI_ARIAHTML_ATTRIBUTE_ARIA_READ_ONLYHTML_ATTRIBUTE_ARIA_REQUIREDHTML_ATTRIBUTE_ARIA_SELECTEDHTML_ATTRIBUTE_ARIA_EXPANDEDARIA_ROLE_ALERT, ARIA_ROLE_ALERT_DIALOG, ARIA_ROLE_APPLICATION, ARIA_ROLE_ARTICLE, ARIA_ROLE_BANNER, ARIA_ROLE_BUTTON, ARIA_ROLE_CHECKBOX, ARIA_ROLE_COLUMN_HEADER, ARIA_ROLE_COMBOBOX, ARIA_ROLE_COMPLEMENTARY, ARIA_ROLE_COMPOSITE, ARIA_ROLE_CONTENT_INFO, ARIA_ROLE_DEFINITION, ARIA_ROLE_DIALOG, ARIA_ROLE_DIRECTORY, ARIA_ROLE_DOCUMENT, ARIA_ROLE_FORM, ARIA_ROLE_GRID, ARIA_ROLE_GRID_CELL, ARIA_ROLE_GROUP, ARIA_ROLE_HEADING, ARIA_ROLE_IMG, ARIA_ROLE_LANDMARK, ARIA_ROLE_LINK, ARIA_ROLE_LIST, ARIA_ROLE_LIST_ITEM, ARIA_ROLE_LISTBOX, ARIA_ROLE_LOG, ARIA_ROLE_MAIN, ARIA_ROLE_MARQUEE, ARIA_ROLE_MATH, ARIA_ROLE_MENU, ARIA_ROLE_MENU_BAR, ARIA_ROLE_MENU_ITEM, ARIA_ROLE_MENU_ITEM_CHECKBOX, ARIA_ROLE_MENU_ITEM_RADIO, ARIA_ROLE_NAVIGATION, ARIA_ROLE_NOTE, ARIA_ROLE_OPTION, ARIA_ROLE_PRESENTATION, ARIA_ROLE_PROGRESS_BAR, ARIA_ROLE_RADIO, ARIA_ROLE_RADIO_GROUP, ARIA_ROLE_REGION, ARIA_ROLE_ROW, ARIA_ROLE_ROW_GROUP, ARIA_ROLE_ROW_HEADER, ARIA_ROLE_SCROLLBAR, ARIA_ROLE_SEARCH, ARIA_ROLE_SECTION_HEAD, ARIA_ROLE_SEPARATOR, ARIA_ROLE_SLIDER, ARIA_ROLE_SPIN_BUTTON, ARIA_ROLE_STATUS, ARIA_ROLE_TAB, ARIA_ROLE_TAB_LIST, ARIA_ROLE_TAB_PANEL, ARIA_ROLE_TEXTBOX, ARIA_ROLE_TIMER, ARIA_ROLE_TOOLBAR, ARIA_ROLE_TOOLTIP, ARIA_ROLE_TREE, ARIA_ROLE_TREE_GRID, ARIA_ROLE_TREE_ITEM, HTML_ATTRIBUTE_ARIA_ROLEHTML_ATTRIBUTE_ARIA_ATOMICHTML_ATTRIBUTE_ARIA_BUSYHTML_ATTRIBUTE_ARIA_CONTROLSHTML_ATTRIBUTE_ARIA_DESCRIBED_BYHTML_ATTRIBUTE_ARIA_DISABLEDHTML_ATTRIBUTE_ARIA_DROP_EFFECTHTML_ATTRIBUTE_ARIA_FLOW_TOHTML_ATTRIBUTE_ARIA_GRABBEDHTML_ATTRIBUTE_ARIA_HAS_POPUPHTML_ATTRIBUTE_ARIA_HIDDENHTML_ATTRIBUTE_ARIA_INVALIDHTML_ATTRIBUTE_ARIA_LABELHTML_ATTRIBUTE_ARIA_LABELLED_BYHTML_ATTRIBUTE_ARIA_LIVEHTML_ATTRIBUTE_ARIA_OWNSHTML_ATTRIBUTE_ARIA_RELEVANT| Constructor and Description |
|---|
AbstractRoleWithCommonAttributes()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveDescendant()
This method gets the ID of the active descendant
property of this object.
|
AriaTristate |
getChecked()
This method gets the checked state of this object.
|
Integer |
getLevel()
This method gets the level
property of this object.
|
Orientation |
getOrientation()
This method gets the orientation property of
this object.
|
void |
setActiveDescendant(String id)
This method sets the
activeDescendant attribute of this object. |
void |
setChecked(AriaTristate checked)
This method sets the
checked state of this object. |
void |
setLevel(Integer level)
This method sets the
level property of this object. |
void |
setOrientation(Orientation orientation)
This method sets the
orientation attribute of this object. |
protected void |
updateDelegate()
This method is called from
AbstractRole.setDelegate(AttributeWriteOnlyAttribute) in order to update all
attributes on the new delegate. |
isReadOnly, isRequired, setReadOnly, setRequiredgetSelected, setSelectedisExpanded, setExpandedgetControls, getDescribedBy, getDropEffect, getFlowTo, getGrabbed, getInvalid, getLabel, getLabelledBy, getLive, getOwns, getRelevant, getRoleInterface, hasPopup, isAtomic, isBusy, isDisabled, isHidden, setAtomic, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBusy, setControls, setControls, setDelegate, setDescribedBy, setDescribedBy, setDisabled, setDropEffect, setFlowTo, setFlowTo, setGrabbed, setHasPopup, setHidden, setInvalid, setLabel, setLabelledBy, setLabelledBy, setLive, setOwns, setOwns, setRelevantprivate AriaTristate checked
getChecked()private Integer level
getLevel()private String activeDescendant
getActiveDescendant()private Orientation orientation
getOrientation()public AbstractRoleWithCommonAttributes()
public void setChecked(AriaTristate checked)
checked state of this object.setChecked in interface AttributeWriteAriaCheckedchecked - is the new value of AttributeReadAriaChecked.getChecked().public AriaTristate getChecked()
getChecked in interface AttributeReadAriaCheckedAriaTristate indicating if this object is checked or null if undefined.public Integer getLevel()
getLevel in interface AttributeReadAriaLevelnull if undefined.public void setLevel(Integer level)
level property of this object.setLevel in interface AttributeWriteAriaLevellevel - is the new value of AttributeReadAriaLevel.getLevel().public void setActiveDescendant(String id)
activeDescendant attribute of this object.setActiveDescendant in interface AttributeWriteAriaActiveDescendantid - is the ID of the activeDescendant or null for none.public String getActiveDescendant()
getActiveDescendant in interface AttributeReadAriaActiveDescendantnull if undefined.public Orientation getOrientation()
getOrientation in interface AttributeReadAriaOrientationOrientation value or null if undefined.public void setOrientation(Orientation orientation)
orientation attribute of this object.setOrientation in interface AttributeWriteAriaOrientationorientation - is the new value of AttributeReadAriaOrientation.getOrientation(). May be null to unset.protected void updateDelegate()
AbstractRole.setDelegate(AttributeWriteOnlyAttribute) in order to update all
attributes on the new delegate.updateDelegate in class AbstractRoleWithBaseAttributesCopyright © 2001–2016 mmm-Team. All rights reserved.