Java 类org.eclipse.swt.accessibility.AccessibleControlEvent 实例源码

项目:PDFReporter-Studio    文件:JDGuideEditPart.java   
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;
}
项目:gef-gwt    文件:GuideEditPart.java   
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;
}
项目:gef-gwt    文件:AbstractGraphicalEditPart.java   
/**
 * @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;
}
项目:gef-gwt    文件:AbstractGraphicalEditPart.java   
/**
 * @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;
}
项目:gef-gwt    文件:AbstractGraphicalEditPart.java   
/**
 * @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;
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @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();
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getFocus(AccessibleControlEvent)
 */
public void getFocus(AccessibleControlEvent e) {
    AccessibleEditPart acc = (AccessibleEditPart) getViewer()
            .getFocusEditPart().getAdapter(AccessibleEditPart.class);
    if (acc != null)
        e.childID = acc.getAccessibleID();
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getChild(AccessibleControlEvent) */
public void getChild(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getChild(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent) */
public void getChildAtPoint(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getChildAtPoint(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */
public void getChildCount(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getChildCount(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getChildren(AccessibleControlEvent) */
public void getChildren(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getChildren(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */
public void getDefaultAction(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getDefaultAction(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getFocus(AccessibleControlEvent) */
public void getFocus(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getFocus(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getLocation(AccessibleControlEvent) */
public void getLocation(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getLocation(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getRole(AccessibleControlEvent) */
public void getRole(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getRole(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getSelection(AccessibleControlEvent) */
public void getSelection(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getSelection(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getState(AccessibleControlEvent) */
public void getState(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getState(e);
}
项目:gef-gwt    文件:LightweightSystem.java   
/** @see AccessibleControlListener#getValue(AccessibleControlEvent) */
public void getValue(AccessibleControlEvent e) {
    EventDispatcher.AccessibilityDispatcher ad;
    ad = getEventDispatcher().getAccessibilityDispatcher();
    if (ad != null)
        ad.getValue(e);
}
项目:birt    文件:EditorGuideEditPart.java   
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;
}
项目:birt    文件:CustomChooserComposite.java   
public void getChildAtPoint( AccessibleControlEvent e )
{
    Point testPoint = toControl( new Point( e.x, e.y ) );
    if ( getBounds( ).contains( testPoint ) )
    {
        e.childID = ACC.CHILDID_SELF;
    }
}
项目:birt    文件:CustomChooserComposite.java   
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;
}
项目:gef-gwt    文件:AbstractGraphicalEditPart.java   
/**
 * @see AccessibleEditPart#getChildCount(AccessibleControlEvent)
 */
public void getChildCount(AccessibleControlEvent e) {
    e.detail = AbstractGraphicalEditPart.this.getChildren().size();
}
项目:gef-gwt    文件:AbstractGraphicalEditPart.java   
/**
 * @see AccessibleEditPart#getRole(AccessibleControlEvent)
 */
public void getRole(AccessibleControlEvent e) {
    e.detail = ACC.ROLE_LABEL;
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getChildCount(AccessibleControlEvent)
 */
public void getChildCount(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getChildCount(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getChildren(AccessibleControlEvent)
 */
public void getChildren(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getChildren(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent)
 */
public void getDefaultAction(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getDefaultAction(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getLocation(AccessibleControlEvent)
 */
public void getLocation(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getLocation(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getRole(AccessibleControlEvent)
 */
public void getRole(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getRole(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getState(AccessibleControlEvent)
 */
public void getState(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getState(e);
}
项目:gef-gwt    文件:DomainEventDispatcher.java   
/**
 * @see AccessibleControlListener#getValue(AccessibleControlEvent)
 */
public void getValue(AccessibleControlEvent e) {
    AccessibleEditPart acc = get(e.childID);
    if (acc != null)
        acc.getValue(e);
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getChildAtPoint(AccessibleControlEvent) */
public void getChildAtPoint(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getChildCount(AccessibleControlEvent) */
public void getChildCount(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getChildren(AccessibleControlEvent) */
public void getChildren(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getDefaultAction(AccessibleControlEvent) */
public void getDefaultAction(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getFocus(AccessibleControlEvent) */
public void getFocus(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getLocation(AccessibleControlEvent) */
public void getLocation(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getRole(AccessibleControlEvent) */
public void getRole(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getSelection(AccessibleControlEvent) */
public void getSelection(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getState(AccessibleControlEvent) */
public void getState(AccessibleControlEvent e) {
}
项目:gef-gwt    文件:SWTEventDispatcher.java   
/** @see AccessibleControlListener#getValue(AccessibleControlEvent) */
public void getValue(AccessibleControlEvent e) {
}