javax.accessibility
Interface AccessibleComponent

All Known Subinterfaces:
AccessibleExtendedComponent sample code for javax.accessibility.AccessibleExtendedComponent definition code for javax.accessibility.AccessibleExtendedComponent
All Known Implementing Classes:
AbstractButton.AccessibleAbstractButton sample code for javax.swing.AbstractButton.AccessibleAbstractButton definition code for javax.swing.AbstractButton.AccessibleAbstractButton , Applet.AccessibleApplet sample code for java.applet.Applet.AccessibleApplet definition code for java.applet.Applet.AccessibleApplet , Box.AccessibleBox sample code for javax.swing.Box.AccessibleBox definition code for javax.swing.Box.AccessibleBox , Box.Filler.AccessibleBoxFiller sample code for javax.swing.Box.Filler.AccessibleBoxFiller definition code for javax.swing.Box.Filler.AccessibleBoxFiller , Button.AccessibleAWTButton sample code for java.awt.Button.AccessibleAWTButton definition code for java.awt.Button.AccessibleAWTButton , Canvas.AccessibleAWTCanvas sample code for java.awt.Canvas.AccessibleAWTCanvas definition code for java.awt.Canvas.AccessibleAWTCanvas , CellRendererPane.AccessibleCellRendererPane sample code for javax.swing.CellRendererPane.AccessibleCellRendererPane definition code for javax.swing.CellRendererPane.AccessibleCellRendererPane , Checkbox.AccessibleAWTCheckbox sample code for java.awt.Checkbox.AccessibleAWTCheckbox definition code for java.awt.Checkbox.AccessibleAWTCheckbox , CheckboxMenuItem.AccessibleAWTCheckboxMenuItem sample code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem definition code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem , Choice.AccessibleAWTChoice sample code for java.awt.Choice.AccessibleAWTChoice definition code for java.awt.Choice.AccessibleAWTChoice , Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer , Dialog.AccessibleAWTDialog sample code for java.awt.Dialog.AccessibleAWTDialog definition code for java.awt.Dialog.AccessibleAWTDialog , Frame.AccessibleAWTFrame sample code for java.awt.Frame.AccessibleAWTFrame definition code for java.awt.Frame.AccessibleAWTFrame , JApplet.AccessibleJApplet sample code for javax.swing.JApplet.AccessibleJApplet definition code for javax.swing.JApplet.AccessibleJApplet , JButton.AccessibleJButton sample code for javax.swing.JButton.AccessibleJButton definition code for javax.swing.JButton.AccessibleJButton , JCheckBox.AccessibleJCheckBox sample code for javax.swing.JCheckBox.AccessibleJCheckBox definition code for javax.swing.JCheckBox.AccessibleJCheckBox , JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem sample code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem definition code for javax.swing.JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem , JColorChooser.AccessibleJColorChooser sample code for javax.swing.JColorChooser.AccessibleJColorChooser definition code for javax.swing.JColorChooser.AccessibleJColorChooser , JComboBox.AccessibleJComboBox sample code for javax.swing.JComboBox.AccessibleJComboBox definition code for javax.swing.JComboBox.AccessibleJComboBox , JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent , JDesktopPane.AccessibleJDesktopPane sample code for javax.swing.JDesktopPane.AccessibleJDesktopPane definition code for javax.swing.JDesktopPane.AccessibleJDesktopPane , JDialog.AccessibleJDialog sample code for javax.swing.JDialog.AccessibleJDialog definition code for javax.swing.JDialog.AccessibleJDialog , JEditorPane.AccessibleJEditorPane sample code for javax.swing.JEditorPane.AccessibleJEditorPane definition code for javax.swing.JEditorPane.AccessibleJEditorPane , JEditorPane.AccessibleJEditorPaneHTML sample code for javax.swing.JEditorPane.AccessibleJEditorPaneHTML definition code for javax.swing.JEditorPane.AccessibleJEditorPaneHTML , JEditorPane.JEditorPaneAccessibleHypertextSupport sample code for javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport definition code for javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport , JFileChooser.AccessibleJFileChooser sample code for javax.swing.JFileChooser.AccessibleJFileChooser definition code for javax.swing.JFileChooser.AccessibleJFileChooser , JFrame.AccessibleJFrame sample code for javax.swing.JFrame.AccessibleJFrame definition code for javax.swing.JFrame.AccessibleJFrame , JInternalFrame.AccessibleJInternalFrame sample code for javax.swing.JInternalFrame.AccessibleJInternalFrame definition code for javax.swing.JInternalFrame.AccessibleJInternalFrame , JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon sample code for javax.swing.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon definition code for javax.swing.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon , JLabel.AccessibleJLabel sample code for javax.swing.JLabel.AccessibleJLabel definition code for javax.swing.JLabel.AccessibleJLabel , JLayeredPane.AccessibleJLayeredPane sample code for javax.swing.JLayeredPane.AccessibleJLayeredPane definition code for javax.swing.JLayeredPane.AccessibleJLayeredPane , JList.AccessibleJList sample code for javax.swing.JList.AccessibleJList definition code for javax.swing.JList.AccessibleJList , JList.AccessibleJList.AccessibleJListChild sample code for javax.swing.JList.AccessibleJList.AccessibleJListChild definition code for javax.swing.JList.AccessibleJList.AccessibleJListChild , JMenu.AccessibleJMenu sample code for javax.swing.JMenu.AccessibleJMenu definition code for javax.swing.JMenu.AccessibleJMenu , JMenuBar.AccessibleJMenuBar sample code for javax.swing.JMenuBar.AccessibleJMenuBar definition code for javax.swing.JMenuBar.AccessibleJMenuBar , JMenuItem.AccessibleJMenuItem sample code for javax.swing.JMenuItem.AccessibleJMenuItem definition code for javax.swing.JMenuItem.AccessibleJMenuItem , JOptionPane.AccessibleJOptionPane sample code for javax.swing.JOptionPane.AccessibleJOptionPane definition code for javax.swing.JOptionPane.AccessibleJOptionPane , JPanel.AccessibleJPanel sample code for javax.swing.JPanel.AccessibleJPanel definition code for javax.swing.JPanel.AccessibleJPanel , JPasswordField.AccessibleJPasswordField sample code for javax.swing.JPasswordField.AccessibleJPasswordField definition code for javax.swing.JPasswordField.AccessibleJPasswordField , JPopupMenu.AccessibleJPopupMenu sample code for javax.swing.JPopupMenu.AccessibleJPopupMenu definition code for javax.swing.JPopupMenu.AccessibleJPopupMenu , JProgressBar.AccessibleJProgressBar sample code for javax.swing.JProgressBar.AccessibleJProgressBar definition code for javax.swing.JProgressBar.AccessibleJProgressBar , JRadioButton.AccessibleJRadioButton sample code for javax.swing.JRadioButton.AccessibleJRadioButton definition code for javax.swing.JRadioButton.AccessibleJRadioButton , JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem sample code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem definition code for javax.swing.JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem , JRootPane.AccessibleJRootPane sample code for javax.swing.JRootPane.AccessibleJRootPane definition code for javax.swing.JRootPane.AccessibleJRootPane , JScrollBar.AccessibleJScrollBar sample code for javax.swing.JScrollBar.AccessibleJScrollBar definition code for javax.swing.JScrollBar.AccessibleJScrollBar , JScrollPane.AccessibleJScrollPane sample code for javax.swing.JScrollPane.AccessibleJScrollPane definition code for javax.swing.JScrollPane.AccessibleJScrollPane , JSeparator.AccessibleJSeparator sample code for javax.swing.JSeparator.AccessibleJSeparator definition code for javax.swing.JSeparator.AccessibleJSeparator , JSlider.AccessibleJSlider sample code for javax.swing.JSlider.AccessibleJSlider definition code for javax.swing.JSlider.AccessibleJSlider , JSpinner.AccessibleJSpinner sample code for javax.swing.JSpinner.AccessibleJSpinner definition code for javax.swing.JSpinner.AccessibleJSpinner , JSplitPane.AccessibleJSplitPane sample code for javax.swing.JSplitPane.AccessibleJSplitPane definition code for javax.swing.JSplitPane.AccessibleJSplitPane , JTabbedPane.AccessibleJTabbedPane sample code for javax.swing.JTabbedPane.AccessibleJTabbedPane definition code for javax.swing.JTabbedPane.AccessibleJTabbedPane , JTable.AccessibleJTable sample code for javax.swing.JTable.AccessibleJTable definition code for javax.swing.JTable.AccessibleJTable , JTable.AccessibleJTable.AccessibleJTableCell sample code for javax.swing.JTable.AccessibleJTable.AccessibleJTableCell definition code for javax.swing.JTable.AccessibleJTable.AccessibleJTableCell , JTableHeader.AccessibleJTableHeader sample code for javax.swing.table.JTableHeader.AccessibleJTableHeader definition code for javax.swing.table.JTableHeader.AccessibleJTableHeader , JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry sample code for javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry definition code for javax.swing.table.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry , JTextArea.AccessibleJTextArea sample code for javax.swing.JTextArea.AccessibleJTextArea definition code for javax.swing.JTextArea.AccessibleJTextArea , JTextComponent.AccessibleJTextComponent sample code for javax.swing.text.JTextComponent.AccessibleJTextComponent definition code for javax.swing.text.JTextComponent.AccessibleJTextComponent , JTextField.AccessibleJTextField sample code for javax.swing.JTextField.AccessibleJTextField definition code for javax.swing.JTextField.AccessibleJTextField , JToggleButton.AccessibleJToggleButton sample code for javax.swing.JToggleButton.AccessibleJToggleButton definition code for javax.swing.JToggleButton.AccessibleJToggleButton , JToolBar.AccessibleJToolBar sample code for javax.swing.JToolBar.AccessibleJToolBar definition code for javax.swing.JToolBar.AccessibleJToolBar , JToolTip.AccessibleJToolTip sample code for javax.swing.JToolTip.AccessibleJToolTip definition code for javax.swing.JToolTip.AccessibleJToolTip , JTree.AccessibleJTree sample code for javax.swing.JTree.AccessibleJTree definition code for javax.swing.JTree.AccessibleJTree , JTree.AccessibleJTree.AccessibleJTreeNode sample code for javax.swing.JTree.AccessibleJTree.AccessibleJTreeNode definition code for javax.swing.JTree.AccessibleJTree.AccessibleJTreeNode , JViewport.AccessibleJViewport sample code for javax.swing.JViewport.AccessibleJViewport definition code for javax.swing.JViewport.AccessibleJViewport , JWindow.AccessibleJWindow sample code for javax.swing.JWindow.AccessibleJWindow definition code for javax.swing.JWindow.AccessibleJWindow , Label.AccessibleAWTLabel sample code for java.awt.Label.AccessibleAWTLabel definition code for java.awt.Label.AccessibleAWTLabel , List.AccessibleAWTList sample code for java.awt.List.AccessibleAWTList definition code for java.awt.List.AccessibleAWTList , List.AccessibleAWTList.AccessibleAWTListChild sample code for java.awt.List.AccessibleAWTList.AccessibleAWTListChild definition code for java.awt.List.AccessibleAWTList.AccessibleAWTListChild , Menu.AccessibleAWTMenu sample code for java.awt.Menu.AccessibleAWTMenu definition code for java.awt.Menu.AccessibleAWTMenu , MenuBar.AccessibleAWTMenuBar sample code for java.awt.MenuBar.AccessibleAWTMenuBar definition code for java.awt.MenuBar.AccessibleAWTMenuBar , MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent , MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem , Panel.AccessibleAWTPanel sample code for java.awt.Panel.AccessibleAWTPanel definition code for java.awt.Panel.AccessibleAWTPanel , PopupMenu.AccessibleAWTPopupMenu sample code for java.awt.PopupMenu.AccessibleAWTPopupMenu definition code for java.awt.PopupMenu.AccessibleAWTPopupMenu , Scrollbar.AccessibleAWTScrollBar sample code for java.awt.Scrollbar.AccessibleAWTScrollBar definition code for java.awt.Scrollbar.AccessibleAWTScrollBar , ScrollPane.AccessibleAWTScrollPane sample code for java.awt.ScrollPane.AccessibleAWTScrollPane definition code for java.awt.ScrollPane.AccessibleAWTScrollPane , TextArea.AccessibleAWTTextArea sample code for java.awt.TextArea.AccessibleAWTTextArea definition code for java.awt.TextArea.AccessibleAWTTextArea , TextComponent.AccessibleAWTTextComponent sample code for java.awt.TextComponent.AccessibleAWTTextComponent definition code for java.awt.TextComponent.AccessibleAWTTextComponent , TextField.AccessibleAWTTextField sample code for java.awt.TextField.AccessibleAWTTextField definition code for java.awt.TextField.AccessibleAWTTextField , Window.AccessibleAWTWindow sample code for java.awt.Window.AccessibleAWTWindow definition code for java.awt.Window.AccessibleAWTWindow

public interface AccessibleComponent

The AccessibleComponent interface should be supported by any object that is rendered on the screen. This interface provides the standard mechanism for an assistive technology to determine and set the graphical representation of an object. Applications can determine if an object supports the AccessibleComponent interface by first obtaining its AccessibleContext and then calling the AccessibleContext.getAccessibleComponent() sample code for javax.accessibility.AccessibleContext.getAccessibleComponent() definition code for javax.accessibility.AccessibleContext.getAccessibleComponent() method. If the return value is not null, the object supports this interface.

See Also:
Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , Accessible.getAccessibleContext() sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() , AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext , AccessibleContext.getAccessibleComponent() sample code for javax.accessibility.AccessibleContext.getAccessibleComponent() definition code for javax.accessibility.AccessibleContext.getAccessibleComponent()

Method Summary
 void addFocusListener sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) (FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
          Adds the specified focus listener to receive focus events from this component.
 boolean contains sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.
 Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible getAccessibleAt sample code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Returns the Accessible child, if one exists, contained at the local coordinate Point.
 Color sample code for java.awt.Color definition code for java.awt.Color getBackground sample code for javax.accessibility.AccessibleComponent.getBackground() definition code for javax.accessibility.AccessibleComponent.getBackground() ()
          Gets the background color of this object.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getBounds sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() ()
          Gets the bounds of this object in the form of a Rectangle object.
 Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor getCursor sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor() ()
          Gets the Cursor of this object.
 Font sample code for java.awt.Font definition code for java.awt.Font getFont sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont() ()
          Gets the Font of this object.
 FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics getFontMetrics sample code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  f)
          Gets the FontMetrics of this object.
 Color sample code for java.awt.Color definition code for java.awt.Color getForeground sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground() ()
          Gets the foreground color of this object.
 Point sample code for java.awt.Point definition code for java.awt.Point getLocation sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation() ()
          Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.
 Point sample code for java.awt.Point definition code for java.awt.Point getLocationOnScreen sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen() ()
          Returns the location of the object on the screen.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getSize sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize() ()
          Returns the size of this object in the form of a Dimension object.
 boolean isEnabled sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled() ()
          Determines if the object is enabled.
 boolean isFocusTraversable sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable() ()
          Returns whether this object can accept focus or not.
 boolean isShowing sample code for javax.accessibility.AccessibleComponent.isShowing() definition code for javax.accessibility.AccessibleComponent.isShowing() ()
          Determines if the object is showing.
 boolean isVisible sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible() ()
          Determines if the object is visible.
 void removeFocusListener sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) (FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
          Removes the specified focus listener so it no longer receives focus events from this component.
 void requestFocus sample code for javax.accessibility.AccessibleComponent.requestFocus() definition code for javax.accessibility.AccessibleComponent.requestFocus() ()
          Requests focus for this object.
 void setBackground sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  c)
          Sets the background color of this object.
 void setBounds sample code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) definition code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) (Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
          Sets the bounds of this object in the form of a Rectangle object.
 void setCursor sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) (Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor)
          Sets the Cursor of this object.
 void setEnabled sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean) (boolean b)
          Sets the enabled state of the object.
 void setFont sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  f)
          Sets the Font of this object.
 void setForeground sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  c)
          Sets the foreground color of this object.
 void setLocation sample code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) (Point sample code for java.awt.Point definition code for java.awt.Point  p)
          Sets the location of the object relative to the parent.
 void setSize sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) (Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  d)
          Resizes this object so that it has width and height.
 void setVisible sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean) (boolean b)
          Sets the visible state of the object.
 

Method Detail

getBackground sample code for javax.accessibility.AccessibleComponent.getBackground() definition code for javax.accessibility.AccessibleComponent.getBackground()

Color sample code for java.awt.Color definition code for java.awt.Color  getBackground()
Gets the background color of this object.

Returns:
the background color, if supported, of the object; otherwise, null
See Also:
setBackground(java.awt.Color) sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color)

setBackground sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color)

void setBackground(Color sample code for java.awt.Color definition code for java.awt.Color  c)
Sets the background color of this object.

Parameters:
c - the new Color for the background
See Also:
setBackground(java.awt.Color) sample code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setBackground(java.awt.Color)

getForeground sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground()

Color sample code for java.awt.Color definition code for java.awt.Color  getForeground()
Gets the foreground color of this object.

Returns:
the foreground color, if supported, of the object; otherwise, null
See Also:
setForeground(java.awt.Color) sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color)

setForeground sample code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color) definition code for javax.accessibility.AccessibleComponent.setForeground(java.awt.Color)

void setForeground(Color sample code for java.awt.Color definition code for java.awt.Color  c)
Sets the foreground color of this object.

Parameters:
c - the new Color for the foreground
See Also:
getForeground() sample code for javax.accessibility.AccessibleComponent.getForeground() definition code for javax.accessibility.AccessibleComponent.getForeground()

getCursor sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor()

Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  getCursor()
Gets the Cursor of this object.

Returns:
the Cursor, if supported, of the object; otherwise, null
See Also:
setCursor(java.awt.Cursor) sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor)

setCursor sample code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor) definition code for javax.accessibility.AccessibleComponent.setCursor(java.awt.Cursor)

void setCursor(Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor)
Sets the Cursor of this object.

Parameters:
cursor - the new Cursor for the object
See Also:
getCursor() sample code for javax.accessibility.AccessibleComponent.getCursor() definition code for javax.accessibility.AccessibleComponent.getCursor()

getFont sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont()

Font sample code for java.awt.Font definition code for java.awt.Font  getFont()
Gets the Font of this object.

Returns:
the Font,if supported, for the object; otherwise, null
See Also:
setFont(java.awt.Font) sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font)

setFont sample code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.setFont(java.awt.Font)

void setFont(Font sample code for java.awt.Font definition code for java.awt.Font  f)
Sets the Font of this object.

Parameters:
f - the new Font for the object
See Also:
getFont() sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont()

getFontMetrics sample code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font) definition code for javax.accessibility.AccessibleComponent.getFontMetrics(java.awt.Font)

FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics  getFontMetrics(Font sample code for java.awt.Font definition code for java.awt.Font  f)
Gets the FontMetrics of this object.

Parameters:
f - the Font
Returns:
the FontMetrics, if supported, the object; otherwise, null
See Also:
getFont() sample code for javax.accessibility.AccessibleComponent.getFont() definition code for javax.accessibility.AccessibleComponent.getFont()

isEnabled sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled()

boolean isEnabled()
Determines if the object is enabled. Objects that are enabled will also have the AccessibleState.ENABLED state set in their AccessibleStateSets.

Returns:
true if object is enabled; otherwise, false
See Also:
setEnabled(boolean) sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean) , AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.ENABLED sample code for javax.accessibility.AccessibleState.ENABLED definition code for javax.accessibility.AccessibleState.ENABLED , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

setEnabled sample code for javax.accessibility.AccessibleComponent.setEnabled(boolean) definition code for javax.accessibility.AccessibleComponent.setEnabled(boolean)

void setEnabled(boolean b)
Sets the enabled state of the object.

Parameters:
b - if true, enables this object; otherwise, disables it
See Also:
isEnabled() sample code for javax.accessibility.AccessibleComponent.isEnabled() definition code for javax.accessibility.AccessibleComponent.isEnabled()

isVisible sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible()

boolean isVisible()
Determines if the object is visible. Note: this means that the object intends to be visible; however, it may not be showing on the screen because one of the objects that this object is contained by is currently not visible. To determine if an object is showing on the screen, use isShowing().

Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.

Returns:
true if object is visible; otherwise, false
See Also:
setVisible(boolean) sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean) , AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.VISIBLE sample code for javax.accessibility.AccessibleState.VISIBLE definition code for javax.accessibility.AccessibleState.VISIBLE , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

setVisible sample code for javax.accessibility.AccessibleComponent.setVisible(boolean) definition code for javax.accessibility.AccessibleComponent.setVisible(boolean)

void setVisible(boolean b)
Sets the visible state of the object.

Parameters:
b - if true, shows this object; otherwise, hides it
See Also:
isVisible() sample code for javax.accessibility.AccessibleComponent.isVisible() definition code for javax.accessibility.AccessibleComponent.isVisible()

isShowing sample code for javax.accessibility.AccessibleComponent.isShowing() definition code for javax.accessibility.AccessibleComponent.isShowing()

boolean isShowing()
Determines if the object is showing. This is determined by checking the visibility of the object and its ancestors. Note: this will return true even if the object is obscured by another (for example, it is underneath a menu that was pulled down).

Returns:
true if object is showing; otherwise, false

contains sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point)

boolean contains(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.

Parameters:
p - the Point relative to the coordinate system of the object
Returns:
true if object contains Point; otherwise false
See Also:
getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds()

getLocationOnScreen sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen()

Point sample code for java.awt.Point definition code for java.awt.Point  getLocationOnScreen()
Returns the location of the object on the screen.

Returns:
the location of the object on screen; null if this object is not on the screen
See Also:
getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() , getLocation() sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation()

getLocation sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation()

Point sample code for java.awt.Point definition code for java.awt.Point  getLocation()
Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.

Returns:
An instance of Point representing the top-left corner of the object's bounds in the coordinate space of the screen; null if this object or its parent are not on the screen
See Also:
getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds() , getLocationOnScreen() sample code for javax.accessibility.AccessibleComponent.getLocationOnScreen() definition code for javax.accessibility.AccessibleComponent.getLocationOnScreen()

setLocation sample code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.setLocation(java.awt.Point)

void setLocation(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Sets the location of the object relative to the parent.

Parameters:
p - the new position for the top-left corner
See Also:
getLocation() sample code for javax.accessibility.AccessibleComponent.getLocation() definition code for javax.accessibility.AccessibleComponent.getLocation()

getBounds sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds()

Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getBounds()
Gets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.

Returns:
A rectangle indicating this component's bounds; null if this object is not on the screen.
See Also:
contains(java.awt.Point) sample code for javax.accessibility.AccessibleComponent.contains(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.contains(java.awt.Point)

setBounds sample code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle) definition code for javax.accessibility.AccessibleComponent.setBounds(java.awt.Rectangle)

void setBounds(Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
Sets the bounds of this object in the form of a Rectangle object. The bounds specify this object's width, height, and location relative to its parent.

Parameters:
r - rectangle indicating this component's bounds
See Also:
getBounds() sample code for javax.accessibility.AccessibleComponent.getBounds() definition code for javax.accessibility.AccessibleComponent.getBounds()

getSize sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize()

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getSize()
Returns the size of this object in the form of a Dimension object. The height field of the Dimension object contains this object's height, and the width field of the Dimension object contains this object's width.

Returns:
A Dimension object that indicates the size of this component; null if this object is not on the screen
See Also:
setSize(java.awt.Dimension) sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension)

setSize sample code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension) definition code for javax.accessibility.AccessibleComponent.setSize(java.awt.Dimension)

void setSize(Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  d)
Resizes this object so that it has width and height.

Parameters:
d - The dimension specifying the new size of the object.
See Also:
getSize() sample code for javax.accessibility.AccessibleComponent.getSize() definition code for javax.accessibility.AccessibleComponent.getSize()

getAccessibleAt sample code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point) definition code for javax.accessibility.AccessibleComponent.getAccessibleAt(java.awt.Point)

Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible  getAccessibleAt(Point sample code for java.awt.Point definition code for java.awt.Point  p)
Returns the Accessible child, if one exists, contained at the local coordinate Point.

Parameters:
p - The point relative to the coordinate system of this object.
Returns:
the Accessible, if it exists, at the specified location; otherwise null

isFocusTraversable sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable()

boolean isFocusTraversable()
Returns whether this object can accept focus or not. Objects that can accept focus will also have the AccessibleState.FOCUSABLE state set in their AccessibleStateSets.

Returns:
true if object can accept focus; otherwise false
See Also:
AccessibleContext.getAccessibleStateSet() sample code for javax.accessibility.AccessibleContext.getAccessibleStateSet() definition code for javax.accessibility.AccessibleContext.getAccessibleStateSet() , AccessibleState.FOCUSABLE sample code for javax.accessibility.AccessibleState.FOCUSABLE definition code for javax.accessibility.AccessibleState.FOCUSABLE , AccessibleState.FOCUSED sample code for javax.accessibility.AccessibleState.FOCUSED definition code for javax.accessibility.AccessibleState.FOCUSED , AccessibleStateSet sample code for javax.accessibility.AccessibleStateSet definition code for javax.accessibility.AccessibleStateSet

requestFocus sample code for javax.accessibility.AccessibleComponent.requestFocus() definition code for javax.accessibility.AccessibleComponent.requestFocus()

void requestFocus()
Requests focus for this object. If this object cannot accept focus, nothing will happen. Otherwise, the object will attempt to take focus.

See Also:
isFocusTraversable() sample code for javax.accessibility.AccessibleComponent.isFocusTraversable() definition code for javax.accessibility.AccessibleComponent.isFocusTraversable()

addFocusListener sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener)

void addFocusListener(FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
Adds the specified focus listener to receive focus events from this component.

Parameters:
l - the focus listener
See Also:
removeFocusListener(java.awt.event.FocusListener) sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener)

removeFocusListener sample code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.removeFocusListener(java.awt.event.FocusListener)

void removeFocusListener(FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  l)
Removes the specified focus listener so it no longer receives focus events from this component.

Parameters:
l - the focus listener
See Also:
addFocusListener(java.awt.event.FocusListener) sample code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener) definition code for javax.accessibility.AccessibleComponent.addFocusListener(java.awt.event.FocusListener)