`

Setting an Accessible Name for an Image Button

阅读更多
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>

Setting an Accessible Name for an Image Button


You should also set the accessible name for components that only
show an image. The tool tip text, if set, serves as the accessible
name for a component. However, if the tool tip text is being used for
something else, set the component's accessible name.


JButton button = new JButton(new ImageIcon("image.gif"));
button.setToolTipText("Button Name");
// If tool tip is being used for something else,
// set the accessible name.
button.getAccessibleContext().setAccessibleName("Button Name");

为一个图像按钮设置一个存取名,你也应该为只显示图像的部件设置一个存取名。如果一个组件的提示符设置了的话,那么它可以作为这个组件的名字。然而,如果部件提示符被用于其他事情,就要设置它的存取名。

分享到:
评论

相关推荐

    Concise Computer Vision - An Introduction into Theory and Algorithm

    Features: provides an introduction to the basic notation and mathematical concepts for describing an image and the key concepts for mapping an image into an image; explains the topologic and ...

    CSA ASC B651-2023 Accessible design for the built environment

    CSA ASC B651-2023 Accessible design for the built environment

    An Introduction to Statistical learning.pdf

    对现代统计方法感兴趣的读者,利用此书从数据中建模和预测。包括科学家,工程师,数据分析员,金融工程师,以及非定量领域的社会科学家或商人。要求读者至少又郁闷统计学基础。线性回归背景知识不是必须,但是有利的...

    Geometric Computing: for WT, Robot Vision, Learning, Control and Action

    Part I, is written in an accessible way allowing readers to easily grasp the mathematical system of Clifford algebra. Part II presents related topics. While Part 3 features practical applications for...

    An Introduction to Data Science

    Needing no prior coding experience or a deep understanding of statistics, this book uses the R programming language and RStudio® platform to make data science welcoming and accessible for all ...

    Digital Signal Processing An Experimental Approach

    "Digital Signal Processing" is a mathematically rigorous but accessible treatment of digital signal processing that intertwines basic theoretical techniques with hands-on laboratory instruction....

    An Introduction to Statistical Learning with Applications in R.pdf

    An Introduction to Statistical Learning provides an accessible overview of the field of statistical learning, an essential toolset for making sense of the vast and complex data sets that have emerged ...

    Accessible接口读取软件UI元素

    在IT领域,特别是软件开发和自动化测试中,`Accessible接口`是一个重要的概念,它主要用于获取和操作用户界面(UI)元素。这个接口是无障碍技术( Accessibility Technology)的一部分,旨在帮助残障人士通过辅助...

    易语言调用Accessible接口例程

    在这个例子中,我们关注的是如何在易语言中调用`Accessible`接口,这是一种用于获取Windows应用程序中控件信息的技术,通常用于无障碍访问或者自动化测试。 `AccessibleObjectFromWindow`函数是Windows API中的一...

    An introduction to statistical learning

    An Introduction to Statistical Learning provides an accessible overview of the field of statistical learning, an essential toolset for making sense of the vast and complex data sets that have emerged ...

    html实现的几款button效果

    为了提高无障碍性,可以使用ARIA(Accessible Rich Internet Applications)属性,如`aria-label`来描述按钮的功能: ```html &lt;button aria-label="分享到Facebook"&gt;Facebook&lt;/button&gt; ``` 以上就是HTML实现的几款...

    Machine Learning an Algorithmic Perspective

    Written in an easily accessible style, this book provides the ideal blend of theory and practical, applicable knowledge. It covers neural networks, graphical models, reinforcement learning, ...

    Statistics.for.Research.With.a.Guide.to.SPSS.3rd.Edition

    This fully updated edition of Statistics for Research explains statistical concepts in a straight-forward and accessible way using practical examples from a variety of disciplines. If you're looking ...

    Accessible.tlb

    Accessible.tlb

    Digital image processing techniques for detecting, quantifying

    This paper presents a survey on methods that use digital image processing techniques to detect, quantify and classify plant diseases from digital images in the visible spectrum. Although disease ...

    易语言基于accessible接口打造获取QQ窗口相关信息

    此外,为了实时获取QQ窗口的变化,比如聊天窗口的打开和关闭,我们可以注册窗口消息监听,通过`SetWinEventHook` API函数设置事件钩子,监听`EVENT_OBJECT_NAMECHANGE`、`EVENT_OBJECT_FOCUS`等事件。当这些事件发生...

Global site tag (gtag.js) - Google Analytics