public abstract class AbstractRole extends Object implements Role
Role
.Modifier and Type | Field and Description |
---|---|
private boolean |
atomic |
private boolean |
busy |
private AriaIdList |
controls |
private AttributeWriteOnlyAttribute |
delegate |
private AriaIdList |
describedBy |
private boolean |
disabled |
private AriaDropEffect |
dropEffect |
private static AriaIdList |
EMPTY_ID_LIST
The empty
AriaIdList . |
private AriaIdList |
flowTo |
private Boolean |
grabbed |
private boolean |
hasPopup |
private boolean |
hidden |
private AriaInvalid |
invalid |
private String |
label |
private AriaIdList |
labelledBy |
private AriaLiveLevel |
live |
private AriaIdList |
owns |
private AriaChangeNotifications |
relevant |
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
WAI_ARIA
Constructor and Description |
---|
AbstractRole()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
AriaIdList |
getControls()
This method gets the ID of the controls property of this
object.
|
AriaIdList |
getDescribedBy()
This method gets the ID of the describedby property of
this object.
|
AriaDropEffect |
getDropEffect()
This method gets the dropeffect property of
this object.
|
AriaIdList |
getFlowTo()
This method gets the ID of the flowto property of this
object.
|
Boolean |
getGrabbed()
This method gets the value of the grabbed state of this object.
|
AriaInvalid |
getInvalid()
This method gets the invalid state of this object.
|
String |
getLabel()
This method gets the label
property of this object.
|
AriaIdList |
getLabelledBy()
This method gets the ID of the labelledby property of
this object.
|
AriaLiveLevel |
getLive()
This method gets the live
property of this object.
|
AriaIdList |
getOwns()
This method gets the ID of the owns property of this object.
|
AriaChangeNotifications |
getRelevant()
This method gets the relevant property of this
object.
|
abstract Class<? extends Role> |
getRoleInterface() |
boolean |
hasPopup()
This method gets the value of the haspopup property of this
object.
|
boolean |
isAtomic()
This method gets the value of the atomic property of this
object.
|
boolean |
isBusy()
This method gets the value of the busy state of this object.
|
boolean |
isDisabled()
This method gets the value of the disabled state of this
object.
|
boolean |
isHidden()
This method gets the hidden
state of this object.
|
void |
setAtomic(boolean atomic)
This method sets the
atomic property of this object. |
protected void |
setAttribute(String name,
boolean flag) |
protected void |
setAttribute(String name,
Boolean flag) |
protected void |
setAttribute(String name,
Datatype datatype) |
protected void |
setAttribute(String name,
Number number) |
protected void |
setAttribute(String name,
String value) |
void |
setBusy(boolean busy)
This method sets the
busy state of this object. |
void |
setControls(AriaIdList controls)
This method sets the
controls attribute of this object. |
void |
setControls(String controls)
This method sets the
controls attribute of this object. |
void |
setDelegate(AttributeWriteOnlyAttribute delegate) |
void |
setDescribedBy(AriaIdList describedBy)
This method sets the
describedBy attribute of this object. |
void |
setDescribedBy(String describedBy)
This method sets the
describedBy attribute of this object. |
void |
setDisabled(boolean disabled)
This method sets the
disabled state of this object. |
void |
setDropEffect(AriaDropEffect dropEffect)
This method sets the
dropEffect attribute of this object. |
void |
setFlowTo(AriaIdList flowTo)
This method sets the
flowTo attribute of this object. |
void |
setFlowTo(String flowTo)
This method sets the
flowTo attribute of this object. |
void |
setGrabbed(Boolean grabbed)
This method sets the
grabbed state of this object. |
void |
setHasPopup(boolean hasPopup)
This method sets the
hasPopup property of this object. |
void |
setHidden(boolean hidden)
This method sets the
hidden attribute of this object. |
void |
setInvalid(AriaInvalid invalid)
This method sets the
invalid state of this object. |
void |
setLabel(String label)
This method sets the
label property of this object. |
void |
setLabelledBy(AriaIdList labelledBy)
This method sets the
labelledBy attribute of this object. |
void |
setLabelledBy(String labelledBy)
This method sets the
labelledBy attribute of this object. |
void |
setLive(AriaLiveLevel live)
This method sets the
live attribute of this object. |
void |
setOwns(AriaIdList owns)
This method sets the
owns attribute of this object. |
void |
setOwns(String owns)
This method sets the
owns attribute of this object. |
void |
setRelevant(AriaChangeNotifications relevant)
This method sets the
relevant attribute of this object. |
protected void |
updateDelegate()
This method is called from
setDelegate(AttributeWriteOnlyAttribute) in order to update all
attributes on the new delegate. |
private static final AriaIdList EMPTY_ID_LIST
AriaIdList
.private AttributeWriteOnlyAttribute delegate
setAttribute(String, String)
private boolean atomic
isAtomic()
private boolean busy
isBusy()
private AriaIdList controls
getControls()
private AriaIdList describedBy
getDescribedBy()
private boolean disabled
isDisabled()
private AriaDropEffect dropEffect
getDropEffect()
private AriaIdList flowTo
getFlowTo()
private Boolean grabbed
getGrabbed()
private boolean hasPopup
hasPopup()
private boolean hidden
isHidden()
private AriaInvalid invalid
getInvalid()
private String label
getLabel()
private AriaIdList labelledBy
getLabelledBy()
private AriaLiveLevel live
getLive()
private AriaIdList owns
getOwns()
private AriaChangeNotifications relevant
getRelevant()
public abstract Class<? extends Role> getRoleInterface()
Role
-Interface corresponding to this instance.public final void setDelegate(AttributeWriteOnlyAttribute delegate)
delegate
- is the delegate where attributes are set
.protected void updateDelegate()
setDelegate(AttributeWriteOnlyAttribute)
in order to update all
attributes on the new delegate.protected final void setAttribute(String name, Datatype datatype)
name
- is the name of the attribute.datatype
- is the value to set as a Datatype
.AttributeWriteOnlyAttribute.setAttribute(String, String)
protected final void setAttribute(String name, Number number)
name
- is the name of the attribute.number
- is the value to set as a Number
.AttributeWriteOnlyAttribute.setAttribute(String, String)
protected final void setAttribute(String name, Boolean flag)
name
- is the name of the attribute.flag
- is the value to set as a Boolean
.AttributeWriteOnlyAttribute.setAttribute(String, String)
protected final void setAttribute(String name, boolean flag)
name
- is the name of the attribute.flag
- is the value to set as boolean
.AttributeWriteOnlyAttribute.setAttribute(String, String)
protected final void setAttribute(String name, String value)
name
- is the name of the attribute.value
- is the value to set. May be null
to unset.AttributeWriteOnlyAttribute.setAttribute(String, String)
public void setAtomic(boolean atomic)
atomic
property of this object.setAtomic
in interface AttributeWriteAriaAtomic
atomic
- is the new value of AttributeReadAriaAtomic.isAtomic()
.public boolean isAtomic()
isAtomic
in interface AttributeReadAriaAtomic
true
if assistive technologies should present the entire region as
a whole, false
if a change within the region may be processed by the assistive
technologies on its own. The default (if NOT set) is false
.public void setBusy(boolean busy)
busy
state of this object.setBusy
in interface AttributeWriteAriaBusy
busy
- is the new value of AttributeReadAriaBusy.isBusy()
.public boolean isBusy()
isBusy
in interface AttributeReadAriaBusy
false
.public void setControls(AriaIdList controls)
controls
attribute of this object.setControls
in interface AttributeWriteAriaControls
controls
- is value of AttributeReadAriaControls.getControls()
. May be null
to unset.public void setControls(String controls)
controls
attribute of this object.setControls
in interface AttributeWriteAriaControls
controls
- is value of AttributeReadAriaControls.getControls()
as String
. May be null
or the
empty string to unset.public AriaIdList getControls()
getControls
in interface AttributeReadAriaControls
AriaIdList
of the controls. Will be the an empty AriaIdList
if undefined.public void setDescribedBy(AriaIdList describedBy)
describedBy
attribute of this object.setDescribedBy
in interface AttributeWriteAriaDescribedBy
describedBy
- is value of AttributeReadAriaDescribedBy.getDescribedBy()
. May be null
to unset.public void setDescribedBy(String describedBy)
describedBy
attribute of this object.setDescribedBy
in interface AttributeWriteAriaDescribedBy
describedBy
- is value of AttributeReadAriaDescribedBy.getDescribedBy()
as String
. May be null
or
the empty string to unset.public AriaIdList getDescribedBy()
getDescribedBy
in interface AttributeReadAriaDescribedBy
AriaIdList
of objects that describe this object. Will be the empty AriaIdList
if undefined.public void setDisabled(boolean disabled)
disabled
state of this object.setDisabled
in interface AttributeWriteAriaDisabled
disabled
- is the new value of AttributeReadAriaDisabled.isDisabled()
.public boolean isDisabled()
isDisabled
in interface AttributeReadAriaDisabled
true
if this object and all its focusable descendants are
disabled so the end-user cannot change their value, false
otherwise (default).public void setDropEffect(AriaDropEffect dropEffect)
dropEffect
attribute of this object.setDropEffect
in interface AttributeWriteAriaDropEffect
dropEffect
- is the new value of AttributeReadAriaDropEffect.getDropEffect()
. May be null
to unset (for
none).public AriaDropEffect getDropEffect()
AriaDropEffect
rather than returning a
list of AriaDropEffect
s.getDropEffect
in interface AttributeReadAriaDropEffect
AriaDropEffect
value. The default (if NOT set) is AriaDropEffect.NONE
.public void setFlowTo(AriaIdList flowTo)
flowTo
attribute of this object.setFlowTo
in interface AttributeWriteAriaFlowTo
flowTo
- is value of AttributeReadAriaFlowTo.getFlowTo()
. May be null
to unset.public void setFlowTo(String flowTo)
flowTo
attribute of this object.setFlowTo
in interface AttributeWriteAriaFlowTo
flowTo
- is value of AttributeReadAriaFlowTo.getFlowTo()
as String
. May be null
or the empty
string to unset.public AriaIdList getFlowTo()
getFlowTo
in interface AttributeReadAriaFlowTo
AriaIdList
of the next objects in alternate reading order. Will be the empty
AriaIdList
if undefined.public void setGrabbed(Boolean grabbed)
grabbed
state of this object.setGrabbed
in interface AttributeWriteAriaGrabbed
grabbed
- is the new value of AttributeReadAriaGrabbed.getGrabbed()
. May be null
.public Boolean getGrabbed()
getGrabbed
in interface AttributeReadAriaGrabbed
true
if the object has been "grabbed" for dragging, false
if the object
supports being dragged (but is not currently grabbed), null
if the object does not
support being dragged (default).public void setHasPopup(boolean hasPopup)
hasPopup
property of this object.setHasPopup
in interface AttributeWriteAriaHasPopup
hasPopup
- is the new value of AttributeReadAriaHasPopup.hasPopup()
.public boolean hasPopup()
hasPopup
in interface AttributeReadAriaHasPopup
true
if this object has a popup context menu or sub-level menu, false
otherwise. The default (if NOT set) is false
.public void setHidden(boolean hidden)
hidden
attribute of this object.setHidden
in interface AttributeWriteAriaHidden
hidden
- is the new value of AttributeReadAriaHidden.isHidden()
.AttributeReadAriaHidden.isHidden()
public boolean isHidden()
isHidden
in interface AttributeReadAriaHidden
true
if the object is hidden, false
if it is visible for assistive
technologies.AttributeReadVisible.isVisible()
public void setInvalid(AriaInvalid invalid)
invalid
state of this object.setInvalid
in interface AttributeWriteAriaInvalid
invalid
- is the new value of AttributeReadAriaInvalid.getInvalid()
.public AriaInvalid getInvalid()
getInvalid
in interface AttributeReadAriaInvalid
AriaInvalid
indicating if the validation state of this object. The default (if NOT
set) is AriaInvalid.FALSE
.public void setLabel(String label)
label
property of this object.setLabel
in interface AttributeWriteAriaLabel
label
- is the new value of AttributeReadAriaLabel.getLabel()
.public String getLabel()
getLabel
in interface AttributeReadAriaLabel
null
if undefined.AttributeReadLabel.getLabel()
public void setLabelledBy(AriaIdList labelledBy)
labelledBy
attribute of this object.setLabelledBy
in interface AttributeWriteAriaLabelledBy
labelledBy
- is value of AttributeReadAriaLabelledBy.getLabelledBy()
. May be null
to unset.public void setLabelledBy(String labelledBy)
labelledBy
attribute of this object.setLabelledBy
in interface AttributeWriteAriaLabelledBy
labelledBy
- is value of AttributeReadAriaLabelledBy.getLabelledBy()
as String. May be null
or the empty
string to unset.public AriaIdList getLabelledBy()
getLabelledBy
in interface AttributeReadAriaLabelledBy
AriaIdList
of IDs of objects that label this object. Will be the empty
AriaIdList
if undefined.public void setLive(AriaLiveLevel live)
live
attribute of this object.setLive
in interface AttributeWriteAriaLive
live
- is the new value of AttributeReadAriaLive.getLive()
. May be null
to unset.public AriaLiveLevel getLive()
getLive
in interface AttributeReadAriaLive
AriaLiveLevel
. The default (if NOT set) is AriaLiveLevel.OFF
.public void setOwns(AriaIdList owns)
owns
attribute of this object.setOwns
in interface AttributeWriteAriaOwns
owns
- is value of AttributeReadAriaOwns.getOwns()
. May be null
to unset.public void setOwns(String owns)
owns
attribute of this object.setOwns
in interface AttributeWriteAriaOwns
owns
- is value of AttributeReadAriaOwns.getOwns()
as String
. May be null
or the empty
string to unset.public AriaIdList getOwns()
getOwns
in interface AttributeReadAriaOwns
AriaIdList
of objects owned by this object. Will be the empty AriaIdList
if
undefined.public void setRelevant(AriaChangeNotifications relevant)
relevant
attribute of this object.setRelevant
in interface AttributeWriteAriaRelevant
relevant
- is the new value of AttributeReadAriaRelevant.getRelevant()
. May be null
to unset.public AriaChangeNotifications getRelevant()
AriaChangeNotifications
that covers all combinations
rather than a list of the enum.getRelevant
in interface AttributeReadAriaRelevant
AriaChangeNotifications
value or null
if undefined.Copyright © 2001–2016 mmm-Team. All rights reserved.