当前位置: 首页>>代码示例>>Java>>正文


Java AccessibleControlEvent类代码示例

本文整理汇总了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;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:21,代码来源:JDGuideEditPart.java

示例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;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:22,代码来源:GuideEditPart.java

示例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;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:17,代码来源:AbstractGraphicalEditPart.java

示例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;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:15,代码来源:AbstractGraphicalEditPart.java

示例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;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:11,代码来源:AbstractGraphicalEditPart.java

示例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();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:16,代码来源:DomainEventDispatcher.java

示例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();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:10,代码来源:DomainEventDispatcher.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例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);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java


注:本文中的org.eclipse.swt.accessibility.AccessibleControlEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。