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


Java AccessibleEvent类代码示例

本文整理汇总了Java中org.eclipse.swt.accessibility.AccessibleEvent的典型用法代码示例。如果您正苦于以下问题:Java AccessibleEvent类的具体用法?Java AccessibleEvent怎么用?Java AccessibleEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AccessibleEvent类属于org.eclipse.swt.accessibility包,在下文中一共展示了AccessibleEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAccessibleEditPart

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的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.AccessibleEvent; //导入依赖的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: getAccessibleListener

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * Get the accessible listener for the tool bar.
 * 
 * @return AccessibleListener
 * 
 * @since 3.1
 */
private AccessibleListener getAccessibleListener() {
	return new AccessibleAdapter() {
		public void getName(AccessibleEvent e) {
			if (e.childID != ACC.CHILDID_SELF) {
				ToolItem item = toolBar.getItem(e.childID);
				if (item != null) {
					String toolTip = item.getToolTipText();
					if (toolTip != null) {
						e.result = toolTip;
					}
				}
			}
		}
	};

}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:24,代码来源:ToolBarManager.java

示例4: setAccessible

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * Specifically set the reporting name of a control for accessibility
 */
private void setAccessible( Control control, String name )
{
	if ( control == null )
		return;
	final String n = name;
	control.getAccessible( )
			.addAccessibleListener( new AccessibleAdapter( ) {

				public void getName( AccessibleEvent e )
				{
					if ( e.childID == ACC.CHILDID_SELF )
						e.result = n;
				}
			} );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:19,代码来源:ExpressionSyntaxColoringPage.java

示例5: initButton

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
private void initButton(Image im, final String tt) {
	toolButton.setImage(im);
	toolButton.setToolTipText(tt);
   	toolbar.setVisible(true);
	toolbar.getParent().layout(); // must layout

   	toolbar.getAccessible().addAccessibleListener(new AccessibleAdapter() {
       	@Override
		public void getName(AccessibleEvent e) {
       		e.result = tt;
       	}
       });
}
 
开发者ID:termsuite,项目名称:termsuite-ui,代码行数:14,代码来源:ProgressAnimationItem.java

示例6: setAccessible

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * Specifically set the reporting name of a control for accessibility
 */
private void setAccessible(Control control, String name) {
	if (control == null)
		return;
	final String n = name;
	control.getAccessible().addAccessibleListener(new AccessibleAdapter() {
		public void getName(AccessibleEvent e) {
			if (e.childID == ACC.CHILDID_SELF)
				e.result = n;
		}
	});
}
 
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:15,代码来源:HTMLAngularEditorSyntaxColoringPreferencePage.java

示例7: setAccessibilityText

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * Adds an accessibility listener returning the given fixed name.
 * 
 * @param control
 *            the control to add the accessibility support to
 * @param text
 *            the name
 */
public static void setAccessibilityText(Control control, final String text) {
	control.getAccessible().addAccessibleListener(new AccessibleAdapter() {
		@Override
		public void getName(AccessibleEvent e) {
			e.result = text;
		}
	});
}
 
开发者ID:cplutte,项目名称:bts,代码行数:17,代码来源:SWTUtil.java

示例8: getAccessibleEditPart

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * @generated
 */
protected AccessibleEditPart getAccessibleEditPart() {
	if (accessibleEP == null) {
		accessibleEP = new AccessibleGraphicalEditPart() {

			public void getName(AccessibleEvent e) {
				e.result = getLabelTextHelper(getFigure());
			}
		};
	}
	return accessibleEP;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:15,代码来源:StateNameEditPart.java

示例9: getAccessibleEditPart

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getName(AccessibleEvent e) {
				e.result = isHorizontal() ? "Horizontal" : "Vertical"; //$NON-NLS-1$ //$NON-NLS-2$
			}

			public void getDescription(AccessibleEvent e) {
				e.result = "Ruler"; //$NON-NLS-1$
			}
		};
	return accPart;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:14,代码来源:JDRulerEditPart.java

示例10: setAccessibilityText

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/**
 * Adds an accessibility listener returning the given fixed name.
 *
 * @param control the control to add the accessibility support to
 * @param text the name
 */
public static void setAccessibilityText(Control control, final String text) {
	control.getAccessible().addAccessibleListener(new AccessibleAdapter() {
		@Override
		public void getName(AccessibleEvent e) {
			if (e.childID == ACC.CHILDID_SELF) {
				e.result= text;
			}
		}
	});
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:SWTUtil.java

示例11: addAccessibleListeners

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
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;
		}
	});
}
 
开发者ID:heartsome,项目名称:translationstudio8,代码行数:12,代码来源:CustomMessageDialog.java

示例12: getAccessibleEditPart

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
protected AccessibleEditPart getAccessibleEditPart() {
	if (accPart == null)
		accPart = new AccessibleGraphicalEditPart() {
			public void getName(AccessibleEvent e) {
				e.result = isHorizontal() ? GEFMessages.Ruler_Horizontal_Label
						: GEFMessages.Ruler_Vertical_Label;
			}

			public void getDescription(AccessibleEvent e) {
				e.result = GEFMessages.Ruler_Desc;
			}
		};
	return accPart;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:15,代码来源:RulerEditPart.java

示例13: getDescription

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/** @see AccessibleListener#getDescription(AccessibleEvent) */
public void getDescription(AccessibleEvent e) {
	EventDispatcher.AccessibilityDispatcher ad;
	ad = getEventDispatcher().getAccessibilityDispatcher();
	if (ad != null)
		ad.getDescription(e);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例14: getHelp

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/** @see AccessibleListener#getHelp(AccessibleEvent) */
public void getHelp(AccessibleEvent e) {
	EventDispatcher.AccessibilityDispatcher ad;
	ad = getEventDispatcher().getAccessibilityDispatcher();
	if (ad != null)
		ad.getHelp(e);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java

示例15: getKeyboardShortcut

import org.eclipse.swt.accessibility.AccessibleEvent; //导入依赖的package包/类
/** @see AccessibleListener#getKeyboardShortcut(AccessibleEvent) */
public void getKeyboardShortcut(AccessibleEvent e) {
	EventDispatcher.AccessibilityDispatcher ad;
	ad = getEventDispatcher().getAccessibilityDispatcher();
	if (ad != null)
		ad.getKeyboardShortcut(e);
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:8,代码来源:LightweightSystem.java


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