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; }
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; }
/** * @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; }
/** * @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; }
/** * @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; }
/** * @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(); }
/** * @see AccessibleControlListener#getFocus(AccessibleControlEvent) */ public void getFocus(AccessibleControlEvent e) { AccessibleEditPart acc = (AccessibleEditPart) getViewer() .getFocusEditPart().getAdapter(AccessibleEditPart.class); if (acc != null) e.childID = acc.getAccessibleID(); }
/** @see AccessibleControlListener#getChild(AccessibleControlEvent) */ public void getChild(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getChild(e); }
/** @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent) */ public void getChildAtPoint(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getChildAtPoint(e); }
/** @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */ public void getChildCount(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getChildCount(e); }
/** @see AccessibleControlListener#getChildren(AccessibleControlEvent) */ public void getChildren(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getChildren(e); }
/** @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */ public void getDefaultAction(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getDefaultAction(e); }
/** @see AccessibleControlListener#getFocus(AccessibleControlEvent) */ public void getFocus(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getFocus(e); }
/** @see AccessibleControlListener#getLocation(AccessibleControlEvent) */ public void getLocation(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getLocation(e); }
/** @see AccessibleControlListener#getRole(AccessibleControlEvent) */ public void getRole(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getRole(e); }
/** @see AccessibleControlListener#getSelection(AccessibleControlEvent) */ public void getSelection(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getSelection(e); }
/** @see AccessibleControlListener#getState(AccessibleControlEvent) */ public void getState(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getState(e); }
/** @see AccessibleControlListener#getValue(AccessibleControlEvent) */ public void getValue(AccessibleControlEvent e) { EventDispatcher.AccessibilityDispatcher ad; ad = getEventDispatcher().getAccessibilityDispatcher(); if (ad != null) ad.getValue(e); }
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; }
public void getChildAtPoint( AccessibleControlEvent e ) { Point testPoint = toControl( new Point( e.x, e.y ) ); if ( getBounds( ).contains( testPoint ) ) { e.childID = ACC.CHILDID_SELF; } }
public void getLocation( AccessibleControlEvent e ) { Rectangle location = getBounds( ); Point pt = toDisplay( new Point( location.x, location.y ) ); e.x = pt.x; e.y = pt.y; e.width = location.width; e.height = location.height; }
/** * @see AccessibleEditPart#getChildCount(AccessibleControlEvent) */ public void getChildCount(AccessibleControlEvent e) { e.detail = AbstractGraphicalEditPart.this.getChildren().size(); }
/** * @see AccessibleEditPart#getRole(AccessibleControlEvent) */ public void getRole(AccessibleControlEvent e) { e.detail = ACC.ROLE_LABEL; }
/** * @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */ public void getChildCount(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getChildCount(e); }
/** * @see AccessibleControlListener#getChildren(AccessibleControlEvent) */ public void getChildren(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getChildren(e); }
/** * @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */ public void getDefaultAction(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getDefaultAction(e); }
/** * @see AccessibleControlListener#getLocation(AccessibleControlEvent) */ public void getLocation(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getLocation(e); }
/** * @see AccessibleControlListener#getRole(AccessibleControlEvent) */ public void getRole(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getRole(e); }
/** * @see AccessibleControlListener#getState(AccessibleControlEvent) */ public void getState(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getState(e); }
/** * @see AccessibleControlListener#getValue(AccessibleControlEvent) */ public void getValue(AccessibleControlEvent e) { AccessibleEditPart acc = get(e.childID); if (acc != null) acc.getValue(e); }
/** @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent) */ public void getChildAtPoint(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */ public void getChildCount(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getChildren(AccessibleControlEvent) */ public void getChildren(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */ public void getDefaultAction(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getFocus(AccessibleControlEvent) */ public void getFocus(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getLocation(AccessibleControlEvent) */ public void getLocation(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getRole(AccessibleControlEvent) */ public void getRole(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getSelection(AccessibleControlEvent) */ public void getSelection(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getState(AccessibleControlEvent) */ public void getState(AccessibleControlEvent e) { }
/** @see AccessibleControlListener#getValue(AccessibleControlEvent) */ public void getValue(AccessibleControlEvent e) { }