本文整理了Java中org.eclipse.swt.accessibility.Accessible.getControl()
方法的一些代码示例,展示了Accessible.getControl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Accessible.getControl()
方法的具体详情如下:
包路径:org.eclipse.swt.accessibility.Accessible
类名称:Accessible
方法名:getControl
[英]Returns the control for this Accessible object.
[中]返回此可访问对象的控件。
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
@Override
public void getName(AccessibleEvent e) {
Control control = ((Accessible) e.getSource()).getControl();
if (e.childID == ACC.CHILDID_SELF) {
e.result = "Overriding Platform Name For " + control.getData("name") + " (was " + e.result + ")";
} else {
e.result = "Overriding Platform Name For " + control.getData("child") + ": " + e.childID + " (was " + e.result + ")";
}
}
@Override
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples
@Override
public void getHelp(AccessibleEvent e) {
Control control = ((Accessible) e.getSource()).getControl();
if (e.childID == ACC.CHILDID_SELF) {
e.result = "Overriding Platform Help For " + control.getData("name") + " (was " + e.result + ")";
} else {
e.result = "Overriding Platform Help For " + control.getData("child") + ": " + e.childID + " (was " + e.result + ")";
}
}
};
代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt
public void getName(AccessibleEvent e) {
if (e.childID != ACC.CHILDID_SELF) {
Accessible accessible = (Accessible) e
.getSource();
ToolBar toolBar = (ToolBar) accessible
.getControl();
if (0 <= e.childID
&& e.childID < toolBar.getItemCount()) {
ToolItem item = toolBar.getItem(e.childID);
if (item != null) {
e.result = item.getToolTipText();
}
}
}
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt
if (e.childID != ACC.CHILDID_SELF) {
Accessible accessible = (Accessible) e.getSource();
ToolBar toolBar = (ToolBar) accessible.getControl();
if (0 <= e.childID && e.childID < toolBar.getItemCount()) {
ToolItem item = toolBar.getItem(e.childID);
内容来源于网络,如有侵权,请联系作者删除!