本文整理了Java中org.eclipse.swt.widgets.Label.getAccessible()
方法的一些代码示例,展示了Label.getAccessible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getAccessible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Label
类名称:Label
方法名:getAccessible
暂无
代码示例来源:origin: org.eclipse/org.eclipse.help.ui
private void initAccessibleLabel() {
Accessible accessible = label.getAccessible();
accessible.addAccessibleControlListener(new AccessibleControlAdapter() {
public void getState(AccessibleControlEvent e) {
if (hasFocus)
e.detail = ACC.STATE_READONLY | ACC.STATE_FOCUSABLE
| ACC.STATE_SELECTABLE | ACC.STATE_LINKED
| ACC.STATE_FOCUSED;
else
e.detail = ACC.STATE_READONLY | ACC.STATE_FOCUSABLE
| ACC.STATE_SELECTABLE | ACC.STATE_LINKED;
}
});
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
/**
* Add an accessible listener to the label if it can be inferred from the
* image.
*
* @param label
* @param image
*/
private void addAccessibleListeners(Label label, final Image image) {
label.getAccessible().addAccessibleListener(new AccessibleAdapter() {
public void getName(AccessibleEvent event) {
final String accessibleMessage = getAccessibleMessageFor(image);
if (accessibleMessage == null) {
return;
}
event.result = accessibleMessage;
}
});
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
/**
* Add an accessible listener to the label if it can be inferred from the
* image.
*
* @param label
* @param image
*/
private void addAccessibleListeners(Label label, final Image image) {
label.getAccessible().addAccessibleListener(new AccessibleAdapter() {
@Override
public void getName(AccessibleEvent event) {
final String accessibleMessage = getAccessibleMessageFor(image);
if (accessibleMessage == null) {
return;
}
event.result = accessibleMessage;
}
});
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
/**
* Add an accessible listener to the label if it can be inferred from the
* image.
*
* @param label
* @param image
*/
private void addAccessibleListeners(Label label, final Image image) {
label.getAccessible().addAccessibleListener(new AccessibleAdapter() {
@Override
public void getName(AccessibleEvent event) {
final String accessibleMessage = getAccessibleMessageFor(image);
if (accessibleMessage == null) {
return;
}
event.result = accessibleMessage;
}
});
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
clearButton.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
@Override
clearButton.getAccessible().addAccessibleControlListener(
new AccessibleControlAdapter() {
@Override
代码示例来源:origin: org.eclipse.mylyn.commons/workbench
labelButton.getAccessible().addAccessibleListener(new AccessibleAdapter() {
@Override
public void getName(AccessibleEvent e) {
labelButton.getAccessible().addAccessibleControlListener(new AccessibleControlAdapter() {
@Override
public void getRole(AccessibleControlEvent e) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
clearButton.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
@Override
clearButton.getAccessible().addAccessibleControlListener(
new AccessibleControlAdapter() {
@Override
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
pressedImage.dispose();
});
clearButton.getAccessible().addAccessibleListener(
new AccessibleAdapter() {
@Override
clearButton.getAccessible().addAccessibleControlListener(
new AccessibleControlAdapter() {
@Override
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
list.getAccessible ().addAccessibleListener (accessibleAdapter);
arrow.getAccessible ().addAccessibleListener (new AccessibleAdapter() {
public void getName (AccessibleEvent e) {
e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
arrow.getAccessible ().addAccessibleControlListener (new AccessibleControlAdapter() {
public void getDefaultAction (AccessibleControlEvent e) {
e.result = isDropped () ? SWT.getMessage ("SWT_Close") : SWT.getMessage ("SWT_Open"); //$NON-NLS-1$ //$NON-NLS-2$
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
overrideLabel.setToolTipText("Label ToolTip");
overrideLabel.setData("name", "Label");
overrideLabel.getAccessible().addAccessibleListener(overrideAccessibleAdapter);
overrideImageLabel.setToolTipText("Image Label ToolTip");
overrideImageLabel.setData("name", "Image Label");
overrideImageLabel.getAccessible().addAccessibleListener(overrideAccessibleAdapter);
内容来源于网络,如有侵权,请联系作者删除!