本文整理汇总了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;
}
示例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;
}
示例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;
}
}
}
}
};
}
示例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;
}
} );
}
示例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;
}
});
}
示例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;
}
});
}
示例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;
}
示例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;
}
示例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;
}
}
});
}
示例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;
}
});
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}