本文整理汇总了Java中javax.accessibility.AccessibleRole.AWT_COMPONENT属性的典型用法代码示例。如果您正苦于以下问题:Java AccessibleRole.AWT_COMPONENT属性的具体用法?Java AccessibleRole.AWT_COMPONENT怎么用?Java AccessibleRole.AWT_COMPONENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.accessibility.AccessibleRole
的用法示例。
在下文中一共展示了AccessibleRole.AWT_COMPONENT属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAccessibleRole
@Override
public AccessibleRole getAccessibleRole() {
toolkit.lockAWT();
try {
return AccessibleRole.AWT_COMPONENT;
} finally {
toolkit.unlockAWT();
}
}
示例2: getAccessibleRole
public AccessibleRole getAccessibleRole() {
return AccessibleRole.AWT_COMPONENT;
}
示例3: getAccessibleRole
@Override
public AccessibleRole getAccessibleRole() {
return AccessibleRole.AWT_COMPONENT;
}
示例4: getAccessibleRole
@Override
public AccessibleRole getAccessibleRole() {
return AccessibleRole.AWT_COMPONENT;
}
示例5: getAccessibleRole
/**
* Gets the role of this object.
*
* @return an instance of {@code AccessibleRole}
* describing the role of the object
* @see AccessibleRole
*/
public AccessibleRole getAccessibleRole() {
return AccessibleRole.AWT_COMPONENT; // Non-specific -- overridden in subclasses
}
示例6: getAccessibleRole
/**
* Returns the accessible role of this component.
* <br />
* <br />
* The abstract implementation of this method returns
* <code>AccessibleRole.AWT_COMPONENT</code>,
* as the abstract component has no specific role. This
* method should be overridden by concrete subclasses, so
* as to return an appropriate role for the component.
*
* @return <code>AccessibleRole.AWT_COMPONENT</code>
*/
public AccessibleRole getAccessibleRole()
{
return AccessibleRole.AWT_COMPONENT;
}
示例7: getAccessibleRole
/**
* Returns the role of this component.
*
* @return the accessible role
*/
public AccessibleRole getAccessibleRole()
{
return AccessibleRole.AWT_COMPONENT;
}