Top Description Constructors Methods
org.eclipse.swt.accessibility

public Class AccessibleAttributeAdapter

extends Object
implements AccessibleAttributeListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.accessibility.AccessibleAttributeListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods in the AccessibleAttributeListener interface.

Classes that wish to deal with AccessibleAttribute events can extend this class and override only the methods that they are interested in.

Since
3.6
See Also
AccessibleAttributeListener, AccessibleAttributeEvent, AccessibleTextAttributeEvent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
getAttributes(AccessibleAttributeEvent
an event object containing the following fields:
  • [out] topMargin - the top margin in pixels
  • [out] bottomMargin - the bottom margin in pixels
  • [out] leftMargin - the left margin in pixels
  • [out] rightMargin - the right margin in pixels
  • [out] tabStops - an array of pixel locations
  • [out] justify - whether or not to justify the text
  • [out] alignment - one of SWT#LEFT, SWT#RIGHT or SWT#CENTER
  • [out] indent - the indent in pixels
  • [out] groupLevel - the level of this accessible in its group
  • [out] groupCount - the number of similar children in this accessible's group
  • [out] groupIndex - the index of this accessible in its group
  • [out] attributes - an array of alternating key and value Strings which represent additional (i.e. non predefined) attributes
e
)

Implements org.eclipse.swt.accessibility.AccessibleAttributeListener.getAttributes.

Returns attributes specific to this Accessible object.
public void
getTextAttributes(AccessibleTextAttributeEvent
an event object containing the following fields:
  • [in] offset - the 0 based text offset for which to return attribute information
  • [out] start - the 0 based starting offset of the character range over which all text attributes match those of offset
  • [out] end - the 0 based offset after the last character of the character range over which all text attributes match those of offset
  • [out] textStyle - the TextStyle of the character range
  • [out] attributes - an array of alternating key and value Strings that represent additional attributes that do not correspond to TextStyle fields
e
)

Implements org.eclipse.swt.accessibility.AccessibleAttributeListener.getTextAttributes.

Returns text attributes specific to this Accessible object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AccessibleAttributeAdapterback to summary
public AccessibleAttributeAdapter()

Method Detail

getAttributesback to summary
public void getAttributes(AccessibleAttributeEvent e)

Implements org.eclipse.swt.accessibility.AccessibleAttributeListener.getAttributes.

Returns attributes specific to this Accessible object.

Parameters
e:AccessibleAttributeEvent

an event object containing the following fields:

  • [out] topMargin - the top margin in pixels
  • [out] bottomMargin - the bottom margin in pixels
  • [out] leftMargin - the left margin in pixels
  • [out] rightMargin - the right margin in pixels
  • [out] tabStops - an array of pixel locations
  • [out] justify - whether or not to justify the text
  • [out] alignment - one of SWT#LEFT, SWT#RIGHT or SWT#CENTER
  • [out] indent - the indent in pixels
  • [out] groupLevel - the level of this accessible in its group
  • [out] groupCount - the number of similar children in this accessible's group
  • [out] groupIndex - the index of this accessible in its group
  • [out] attributes - an array of alternating key and value Strings which represent additional (i.e. non predefined) attributes
Annotations
@Override
getTextAttributesback to summary
public void getTextAttributes(AccessibleTextAttributeEvent e)

Implements org.eclipse.swt.accessibility.AccessibleAttributeListener.getTextAttributes.

Returns text attributes specific to this Accessible object.

Parameters
e:AccessibleTextAttributeEvent

an event object containing the following fields:

  • [in] offset - the 0 based text offset for which to return attribute information
  • [out] start - the 0 based starting offset of the character range over which all text attributes match those of offset
  • [out] end - the 0 based offset after the last character of the character range over which all text attributes match those of offset
  • [out] textStyle - the TextStyle of the character range
  • [out] attributes - an array of alternating key and value Strings that represent additional attributes that do not correspond to TextStyle fields
Annotations
@Override