本文整理汇总了Java中org.eclipse.swt.accessibility.AccessibleControlEvent类的典型用法代码示例。如果您正苦于以下问题:Java AccessibleControlEvent类的具体用法?Java AccessibleControlEvent怎么用?Java AccessibleControlEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AccessibleControlEvent类属于org.eclipse.swt.accessibility包,在下文中一共展示了AccessibleControlEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAccessibleEditPart
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
if (accPart == null)
accPart = new AccessibleGraphicalEditPart() {
public void getDescription(AccessibleEvent e) {
if (getRulerProvider() != null)
getRulerProvider().getAccGuideDescription(e, getModel());
}
public void getName(AccessibleEvent e) {
if (getRulerProvider() != null)
getRulerProvider().getAccGuideName(e, getModel());
}
public void getValue(AccessibleControlEvent e) {
if (getRulerProvider() != null)
getRulerProvider().getAccGuideValue(e, getModel());
}
};
return accPart;
}
示例2: getAccessibleEditPart
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
if (accPart == null)
accPart = new AccessibleGraphicalEditPart() {
public void getDescription(AccessibleEvent e) {
if (getRulerProvider() != null)
getRulerProvider()
.getAccGuideDescription(e, getModel());
}
public void getName(AccessibleEvent e) {
if (getRulerProvider() != null)
getRulerProvider().getAccGuideName(e, getModel());
}
public void getValue(AccessibleControlEvent e) {
if (getRulerProvider() != null)
getRulerProvider().getAccGuideValue(e, getModel());
}
};
return accPart;
}
示例3: getChildren
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/**
* @see AccessibleEditPart#getChildren(AccessibleControlEvent)
*/
public void getChildren(AccessibleControlEvent e) {
List list = AbstractGraphicalEditPart.this.getChildren();
Object children[] = new Object[list.size()];
for (int i = 0; i < list.size(); i++) {
EditPart part = (EditPart) list.get(i);
AccessibleEditPart access = (AccessibleEditPart) part
.getAdapter(AccessibleEditPart.class);
if (access == null)
return; // fail if any children aren't accessible.
children[i] = new Integer(access.getAccessibleID());
}
e.children = children;
}
示例4: getLocation
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/**
* @see AccessibleEditPart#getLocation(AccessibleControlEvent)
*/
public void getLocation(AccessibleControlEvent e) {
Rectangle bounds = getFigure().getBounds().getCopy();
getFigure().translateToAbsolute(bounds);
org.eclipse.swt.graphics.Point p = new org.eclipse.swt.graphics.Point(
0, 0);
p = getViewer().getControl().toDisplay(p);
e.x = bounds.x + p.x;
e.y = bounds.y + p.y;
e.width = bounds.width;
e.height = bounds.height;
}
示例5: getState
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/**
* @see AccessibleEditPart#getState(AccessibleControlEvent)
*/
public void getState(AccessibleControlEvent e) {
e.detail = ACC.STATE_SELECTABLE | ACC.STATE_FOCUSABLE;
if (getSelected() != EditPart.SELECTED_NONE)
e.detail |= ACC.STATE_SELECTED;
if (getViewer().getFocusEditPart() == AbstractGraphicalEditPart.this)
e.detail |= ACC.STATE_FOCUSED;
}
示例6: getChildAtPoint
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/**
* @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent)
*/
public void getChildAtPoint(AccessibleControlEvent e) {
org.eclipse.swt.graphics.Point p = new org.eclipse.swt.graphics.Point(
e.x, e.y);
p = getViewer().getControl().toControl(p);
EditPart part = getViewer().findObjectAt(new Point(p.x, p.y));
if (part == null)
return;
AccessibleEditPart acc = (AccessibleEditPart) part
.getAdapter(AccessibleEditPart.class);
if (acc != null)
e.childID = acc.getAccessibleID();
}
示例7: getFocus
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/**
* @see AccessibleControlListener#getFocus(AccessibleControlEvent)
*/
public void getFocus(AccessibleControlEvent e) {
AccessibleEditPart acc = (AccessibleEditPart) getViewer()
.getFocusEditPart().getAdapter(AccessibleEditPart.class);
if (acc != null)
e.childID = acc.getAccessibleID();
}
示例8: getChild
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getChild(AccessibleControlEvent) */
public void getChild(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getChild(e);
}
示例9: getChildAtPoint
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent) */
public void getChildAtPoint(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getChildAtPoint(e);
}
示例10: getChildCount
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */
public void getChildCount(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getChildCount(e);
}
示例11: getChildren
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getChildren(AccessibleControlEvent) */
public void getChildren(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getChildren(e);
}
示例12: getDefaultAction
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */
public void getDefaultAction(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getDefaultAction(e);
}
示例13: getFocus
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getFocus(AccessibleControlEvent) */
public void getFocus(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getFocus(e);
}
示例14: getLocation
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getLocation(AccessibleControlEvent) */
public void getLocation(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getLocation(e);
}
示例15: getRole
import org.eclipse.swt.accessibility.AccessibleControlEvent; //导入依赖的package包/类
/** @see AccessibleControlListener#getRole(AccessibleControlEvent) */
public void getRole(AccessibleControlEvent e) {
EventDispatcher.AccessibilityDispatcher ad;
ad = getEventDispatcher().getAccessibilityDispatcher();
if (ad != null)
ad.getRole(e);
}