public abstract class AbstractRoleWithCommonAttributes extends AbstractRoleWithBaseAttributes implements AttributeWriteAriaChecked, AttributeWriteAriaLevel, AttributeWriteAriaActiveDescendant, AttributeWriteAriaOrientation
AbstractRoleWithAttributeExpanded
with various common ARIA attributes to avoid
java multi-inheritance problems. As Role
s 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_CHECKED
HTML_ATTRIBUTE_ARIA_LEVEL
HTML_ATTRIBUTE_ARIA_ACTIVE_DESCENDANT
HTML_ATTRIBUTE_ARIA_ORIENTATION
WAI_ARIA
HTML_ATTRIBUTE_ARIA_READ_ONLY
HTML_ATTRIBUTE_ARIA_REQUIRED
HTML_ATTRIBUTE_ARIA_SELECTED
HTML_ATTRIBUTE_ARIA_EXPANDED
ARIA_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_ROLE
HTML_ATTRIBUTE_ARIA_ATOMIC
HTML_ATTRIBUTE_ARIA_BUSY
HTML_ATTRIBUTE_ARIA_CONTROLS
HTML_ATTRIBUTE_ARIA_DESCRIBED_BY
HTML_ATTRIBUTE_ARIA_DISABLED
HTML_ATTRIBUTE_ARIA_DROP_EFFECT
HTML_ATTRIBUTE_ARIA_FLOW_TO
HTML_ATTRIBUTE_ARIA_GRABBED
HTML_ATTRIBUTE_ARIA_HAS_POPUP
HTML_ATTRIBUTE_ARIA_HIDDEN
HTML_ATTRIBUTE_ARIA_INVALID
HTML_ATTRIBUTE_ARIA_LABEL
HTML_ATTRIBUTE_ARIA_LABELLED_BY
HTML_ATTRIBUTE_ARIA_LIVE
HTML_ATTRIBUTE_ARIA_OWNS
HTML_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, setRequired
getSelected, setSelected
isExpanded, setExpanded
getControls, 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, setRelevant
private 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 AttributeWriteAriaChecked
checked
- is the new value of AttributeReadAriaChecked.getChecked()
.public AriaTristate getChecked()
getChecked
in interface AttributeReadAriaChecked
AriaTristate
indicating if this object is checked or null
if undefined.public Integer getLevel()
getLevel
in interface AttributeReadAriaLevel
null
if undefined.public void setLevel(Integer level)
level
property of this object.setLevel
in interface AttributeWriteAriaLevel
level
- is the new value of AttributeReadAriaLevel.getLevel()
.public void setActiveDescendant(String id)
activeDescendant
attribute of this object.setActiveDescendant
in interface AttributeWriteAriaActiveDescendant
id
- is the ID of the activeDescendant
or null
for none.public String getActiveDescendant()
getActiveDescendant
in interface AttributeReadAriaActiveDescendant
null
if undefined.public Orientation getOrientation()
getOrientation
in interface AttributeReadAriaOrientation
Orientation
value or null
if undefined.public void setOrientation(Orientation orientation)
orientation
attribute of this object.setOrientation
in interface AttributeWriteAriaOrientation
orientation
- 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 AbstractRoleWithBaseAttributes
Copyright © 2001–2016 mmm-Team. All rights reserved.