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() method.
If the return value is not null, the object supports this interface.
Accessible,
Accessible.getAccessibleContext(),
AccessibleContext,
AccessibleContext.getAccessibleComponent()| Method Summary | |
|---|---|
void |
addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component. |
boolean |
contains(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 |
getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local coordinate Point. |
Color |
getBackground()
Gets the background color of this object. |
Rectangle |
getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Cursor |
getCursor()
Gets the Cursor of this object. |
Font |
getFont()
Gets the Font of this object. |
FontMetrics |
getFontMetrics(Font f)
Gets the FontMetrics of this object. |
Color |
getForeground()
Gets the foreground color of this object. |
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. |
Point |
getLocationOnScreen()
Returns the location of the object on the screen. |
Dimension |
getSize()
Returns the size of this object in the form of a Dimension object. |
boolean |
isEnabled()
Determines if the object is enabled. |
boolean |
isFocusTraversable()
Returns whether this object can accept focus or not. |
boolean |
isShowing()
Determines if the object is showing. |
boolean |
isVisible()
Determines if the object is visible. |
void |
removeFocusListener(FocusListener l)
Removes the specified focus listener so it no longer receives focus events from this component. |
void |
requestFocus()
Requests focus for this object. |
void |
setBackground(Color c)
Sets the background color of this object. |
void |
setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
setCursor(Cursor cursor)
Sets the Cursor of this object. |
void |
setEnabled(boolean b)
Sets the enabled state of the object. |
void |
setFont(Font f)
Sets the Font of this object. |
void |
setForeground(Color c)
Sets the foreground color of this object. |
void |
setLocation(Point p)
Sets the location of the object relative to the parent. |
void |
setSize(Dimension d)
Resizes this object so that it has width and height. |
void |
setVisible(boolean b)
Sets the visible state of the object. |
| Method Detail |
|---|
Color getBackground()
setBackground(java.awt.Color)void setBackground(Color c)
c - the new Color for the backgroundsetBackground(java.awt.Color)Color getForeground()
setForeground(java.awt.Color)void setForeground(Color c)
c - the new Color for the foregroundgetForeground()Cursor getCursor()
setCursor(java.awt.Cursor)void setCursor(Cursor cursor)
cursor - the new Cursor for the objectgetCursor()Font getFont()
setFont(java.awt.Font)void setFont(Font f)
f - the new Font for the objectgetFont()FontMetrics getFontMetrics(Font f)
f - the Font
getFont()boolean isEnabled()
setEnabled(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.ENABLED,
AccessibleStateSetvoid setEnabled(boolean b)
b - if true, enables this object; otherwise, disables itisEnabled()boolean isVisible()
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.
setVisible(boolean),
AccessibleContext.getAccessibleStateSet(),
AccessibleState.VISIBLE,
AccessibleStateSetvoid setVisible(boolean b)
b - if true, shows this object; otherwise, hides itisVisible()boolean isShowing()
boolean contains(Point p)
p - the Point relative to the coordinate system of the object
getBounds()Point getLocationOnScreen()
getBounds(),
getLocation()Point getLocation()
getBounds(),
getLocationOnScreen()void setLocation(Point p)
p - the new position for the top-left cornergetLocation()Rectangle getBounds()
contains(java.awt.Point)void setBounds(Rectangle r)
r - rectangle indicating this component's boundsgetBounds()Dimension getSize()
setSize(java.awt.Dimension)void setSize(Dimension d)
d - The dimension specifying the new size of the object.getSize()Accessible getAccessibleAt(Point p)
p - The point relative to the coordinate system of this object.
boolean isFocusTraversable()
AccessibleContext.getAccessibleStateSet(),
AccessibleState.FOCUSABLE,
AccessibleState.FOCUSED,
AccessibleStateSetvoid requestFocus()
isFocusTraversable()void addFocusListener(FocusListener l)
l - the focus listenerremoveFocusListener(java.awt.event.FocusListener)void removeFocusListener(FocusListener l)
l - the focus listeneraddFocusListener(java.awt.event.FocusListener)Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
6 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)