|
Modifier and Type |
Method and Description |
|
addAccessibleSelection |
void addAccessibleSelection(int i)
Adds the specified Accessible child of the object
to the object's selection.
public void addAccessibleSelection(int i)
-
Adds the specified Accessible child of the object
to the object's selection. If the object supports multiple selections,
the specified child is added to any existing selection, otherwise
it replaces any existing selection in the object. If the
specified child is already selected, this method has no effect.
- Specified by:
addAccessibleSelection in interface javax.accessibility.AccessibleSelection
- Parameters:
i - the zero-based index of the child- See Also:
AccessibleContext.getAccessibleChild(int)
|
|
addFocusListener |
void addFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this
component.
-
Adds the specified focus listener to receive focus events from this
component.
- Specified by:
addFocusListener in interface javax.accessibility.AccessibleComponent
- Parameters:
l - the focus listener- See Also:
AccessibleComponent.removeFocusListener(java.awt.event.FocusListener)
|
|
addPropertyChangeListener |
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
-
Description copied from class: javax.accessibility.AccessibleContext
Adds a PropertyChangeListener to the listener list.
The listener is registered for all Accessible properties and will
be called when those properties change.
- Parameters:
listener - The PropertyChangeListener to be added- See Also:
AccessibleContext.ACCESSIBLE_NAME_PROPERTY ,
AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY ,
AccessibleContext.ACCESSIBLE_STATE_PROPERTY ,
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY ,
AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY ,
AccessibleContext.ACCESSIBLE_TEXT_PROPERTY ,
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
|
|
clearAccessibleSelection |
void clearAccessibleSelection()
Clears the selection in the object, so that no children in the
object are selected.
public void clearAccessibleSelection()
-
Clears the selection in the object, so that no children in the
object are selected.
- Specified by:
clearAccessibleSelection in interface javax.accessibility.AccessibleSelection
|
|
contains |
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.
public 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.
- Specified by:
contains in interface javax.accessibility.AccessibleComponent
- Parameters:
p - the Point relative to the coordinate
system of the object
- Returns:
- true if object contains
Point ; otherwise false - See Also:
AccessibleComponent.getBounds()
|
|
firePropertyChange |
void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Support for reporting bound property changes.
public void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
-
Description copied from class: javax.accessibility.AccessibleContext
Support for reporting bound property changes. If oldValue and
newValue are not equal and the PropertyChangeEvent listener list
is not empty, then fire a PropertyChange event to each listener.
In general, this is for use by the Accessible objects themselves
and should not be called by an application program.
- Parameters:
propertyName - The programmatic name of the property that
was changed.oldValue - The old value of the property.newValue - The new value of the property.- See Also:
PropertyChangeSupport ,
AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener) ,
AccessibleContext.removePropertyChangeListener(java.beans.PropertyChangeListener) ,
AccessibleContext.ACCESSIBLE_NAME_PROPERTY ,
AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY ,
AccessibleContext.ACCESSIBLE_STATE_PROPERTY ,
AccessibleContext.ACCESSIBLE_VALUE_PROPERTY ,
AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY ,
AccessibleContext.ACCESSIBLE_TEXT_PROPERTY ,
AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY
|
|
getAccessibleAction |
javax.accessibility.AccessibleAction getAccessibleAction()
Gets the AccessibleAction associated with this object that supports
one or more actions.
public javax.accessibility.AccessibleAction getAccessibleAction()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleAction associated with this object that supports
one or more actions.
- Returns:
- AccessibleAction if supported by object; else return null
- See Also:
AccessibleAction
|
|
getAccessibleAt |
javax.accessibility.Accessible getAccessibleAt(Point p)
Returns the Accessible child, if one exists,
contained at the local coordinate Point .
public javax.accessibility.Accessible getAccessibleAt( Point p)
-
Returns the Accessible child, if one exists,
contained at the local coordinate Point .
If there is no Accessible child, null
is returned.
- Specified by:
getAccessibleAt in interface javax.accessibility.AccessibleComponent
- Parameters:
p - the point defining the top-left corner of the
Accessible , given in the coordinate space
of the object's parent
- Returns:
- the
Accessible , if it exists,
at the specified location; else null
|
|
getAccessibleChild |
javax.accessibility.Accessible getAccessibleChild(int i)
Returns the nth Accessible child of the object.
public javax.accessibility.Accessible getAccessibleChild(int i)
-
Returns the nth Accessible child of the object.
- Specified by:
getAccessibleChild in class javax.accessibility.AccessibleContext
- Parameters:
i - zero-based index of child
- Returns:
- the nth Accessible child of the object
- See Also:
AccessibleContext.getAccessibleChildrenCount()
|
|
getAccessibleChildrenCount |
int getAccessibleChildrenCount()
Returns the number of accessible children in the object.
public int getAccessibleChildrenCount()
-
Returns the number of accessible children in the object. If all
of the children of this object implement Accessible ,
then this method should return the number of children of this object.
- Specified by:
getAccessibleChildrenCount in class javax.accessibility.AccessibleContext
- Returns:
- the number of accessible children in the object
|
|
getAccessibleComponent |
javax.accessibility.AccessibleComponent getAccessibleComponent()
Gets the AccessibleComponent associated with
this object if one exists.
public javax.accessibility.AccessibleComponent getAccessibleComponent()
-
Gets the AccessibleComponent associated with
this object if one exists. Otherwise return null .
- Overrides:
getAccessibleComponent in class javax.accessibility.AccessibleContext
- Returns:
- the component
- See Also:
AccessibleComponent
|
|
getAccessibleDescription |
java.lang.String getAccessibleDescription()
Gets the accessible description of this object.
public java.lang.String getAccessibleDescription()
-
Gets the accessible description of this object. This should be
a concise, localized description of what this object is - what
is its meaning to the user. If the object has a tooltip, the
tooltip text may be an appropriate string to return, assuming
it contains a concise description of the object (instead of just
the name of the object - e.g. a "Save" icon on a toolbar that
had "save" as the tooltip text shouldn't return the tooltip
text as the description, but something like "Saves the current
text document" instead).
- Overrides:
getAccessibleDescription in class javax.accessibility.AccessibleContext
- Returns:
- the localized description of the object -- can be
null if this object does not have a description - See Also:
AccessibleContext.setAccessibleDescription(java.lang.String)
|
|
getAccessibleEditableText |
javax.accessibility.AccessibleEditableText getAccessibleEditableText()
Gets the AccessibleEditableText associated with this object
presenting editable text on the display.
public javax.accessibility.AccessibleEditableText getAccessibleEditableText()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleEditableText associated with this object
presenting editable text on the display.
- Returns:
- AccessibleEditableText if supported by object; else return null
- Since:
- 1.4
- See Also:
AccessibleEditableText
|
|
getAccessibleIcon |
javax.accessibility.AccessibleIcon[] getAccessibleIcon()
Gets the AccessibleIcons associated with an object that has
one or more associated icons
public javax.accessibility.AccessibleIcon[] getAccessibleIcon()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleIcons associated with an object that has
one or more associated icons
- Returns:
- an array of AccessibleIcon if supported by object;
otherwise return null
- Since:
- 1.3
- See Also:
AccessibleIcon
|
|
getAccessibleIndexInParent |
int getAccessibleIndexInParent()
Gets the index of this object in its accessible parent.
public int getAccessibleIndexInParent()
-
Gets the index of this object in its accessible parent.
- Specified by:
getAccessibleIndexInParent in class javax.accessibility.AccessibleContext
- Returns:
- the index of this object in its parent; -1 if this
object does not have an accessible parent
- See Also:
MenuComponent.AccessibleAWTMenuComponent.getAccessibleParent()
|
|
getAccessibleName |
java.lang.String getAccessibleName()
Gets the accessible name of this object.
public java.lang.String getAccessibleName()
-
Gets the accessible name of this object. This should almost never
return java.awt.MenuComponent.getName , as that
generally isn't a localized name, and doesn't have meaning for the
user. If the object is fundamentally a text object (e.g. a menu item), the
accessible name should be the text of the object (e.g. "save").
If the object has a tooltip, the tooltip text may also be an
appropriate String to return.
- Overrides:
getAccessibleName in class javax.accessibility.AccessibleContext
- Returns:
- the localized name of the object -- can be
null
if this object does not have a name - See Also:
AccessibleContext.setAccessibleName(java.lang.String)
|
|
getAccessibleParent |
javax.accessibility.Accessible getAccessibleParent()
Gets the Accessible parent of this object.
public javax.accessibility.Accessible getAccessibleParent()
-
Gets the Accessible parent of this object.
If the parent of this object implements Accessible ,
this method should simply return getParent .
- Overrides:
getAccessibleParent in class javax.accessibility.AccessibleContext
- Returns:
- the
Accessible parent of this object -- can
be null if this object does not have an
Accessible parent
|
|
getAccessibleRelationSet |
javax.accessibility.AccessibleRelationSet getAccessibleRelationSet()
Gets the AccessibleRelationSet associated with an object
public javax.accessibility.AccessibleRelationSet getAccessibleRelationSet()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleRelationSet associated with an object
- Returns:
- an AccessibleRelationSet if supported by object;
otherwise return null
- Since:
- 1.3
- See Also:
AccessibleRelationSet
|
|
getAccessibleRole |
javax.accessibility.AccessibleRole getAccessibleRole()
Get the role of this object.
|
|
getAccessibleSelection |
javax.accessibility.AccessibleSelection getAccessibleSelection()
Gets the AccessibleSelection associated with this
object which allows its Accessible children to be selected.
public javax.accessibility.AccessibleSelection getAccessibleSelection()
-
Gets the AccessibleSelection associated with this
object which allows its Accessible children to be selected.
- Overrides:
getAccessibleSelection in class javax.accessibility.AccessibleContext
- Returns:
AccessibleSelection if supported by object;
else return null - See Also:
AccessibleSelection
|
|
getAccessibleSelection |
javax.accessibility.Accessible getAccessibleSelection(int i)
Returns an Accessible representing the specified
selected child in the object.
public javax.accessibility.Accessible getAccessibleSelection(int i)
-
Returns an Accessible representing the specified
selected child in the object. If there isn't a selection, or there are
fewer children selected than the integer passed in, the return
value will be null .
Note that the index represents the i-th selected child, which
is different from the i-th child.
- Specified by:
getAccessibleSelection in interface javax.accessibility.AccessibleSelection
- Parameters:
i - the zero-based index of selected children
- Returns:
- the i-th selected child
- See Also:
MenuComponent.AccessibleAWTMenuComponent.getAccessibleSelectionCount()
|
|
getAccessibleSelectionCount |
int getAccessibleSelectionCount()
Returns the number of Accessible children currently selected.
public int getAccessibleSelectionCount()
-
Returns the number of Accessible children currently selected.
If no children are selected, the return value will be 0.
- Specified by:
getAccessibleSelectionCount in interface javax.accessibility.AccessibleSelection
- Returns:
- the number of items currently selected
|
|
getAccessibleStateSet |
javax.accessibility.AccessibleStateSet getAccessibleStateSet()
Gets the state of this object.
public javax.accessibility.AccessibleStateSet getAccessibleStateSet()
-
Gets the state of this object.
- Specified by:
getAccessibleStateSet in class javax.accessibility.AccessibleContext
- Returns:
- an instance of
AccessibleStateSet
containing the current state set of the object - See Also:
AccessibleState
|
|
getAccessibleTable |
javax.accessibility.AccessibleTable getAccessibleTable()
Gets the AccessibleTable associated with an object
public javax.accessibility.AccessibleTable getAccessibleTable()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleTable associated with an object
- Returns:
- an AccessibleTable if supported by object;
otherwise return null
- Since:
- 1.3
- See Also:
AccessibleTable
|
|
getAccessibleText |
javax.accessibility.AccessibleText getAccessibleText()
Gets the AccessibleText associated with this object presenting
text on the display.
public javax.accessibility.AccessibleText getAccessibleText()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleText associated with this object presenting
text on the display.
- Returns:
- AccessibleText if supported by object; else return null
- See Also:
AccessibleText
|
|
getAccessibleValue |
javax.accessibility.AccessibleValue getAccessibleValue()
Gets the AccessibleValue associated with this object that supports a
Numerical value.
public javax.accessibility.AccessibleValue getAccessibleValue()
-
Description copied from class: javax.accessibility.AccessibleContext
Gets the AccessibleValue associated with this object that supports a
Numerical value.
- Returns:
- AccessibleValue if supported by object; else return null
- See Also:
AccessibleValue
|
|
getBackground |
Gets the background color of this object.
public Color getBackground()
-
Gets the background color of this object.
- Specified by:
getBackground in interface javax.accessibility.AccessibleComponent
- Returns:
- the background color, if supported, of the object;
otherwise,
null - See Also:
AccessibleComponent.setBackground(java.awt.Color)
|
|
getBounds |
Gets the bounds of this object in the form of a
Rectangle object.
-
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.
- Specified by:
getBounds in interface javax.accessibility.AccessibleComponent
- Returns:
- a rectangle indicating this component's bounds;
null if this object is not on the screen - See Also:
AccessibleComponent.contains(java.awt.Point)
|
|
getCursor |
Gets the Cursor of this object.
-
Gets the Cursor of this object.
- Specified by:
getCursor in interface javax.accessibility.AccessibleComponent
- Returns:
- the
Curso , if supported, of the object;
otherwise, null - See Also:
AccessibleComponent.setCursor(java.awt.Cursor)
|
|
getFont |
Gets the Font of this object.
-
Gets the Font of this object.
- Specified by:
getFont in interface javax.accessibility.AccessibleComponent
- Returns:
- the
Font ,if supported, for the object;
otherwise, null - See Also:
AccessibleComponent.setFont(java.awt.Font)
|
|
getFontMetrics |
Gets the FontMetrics of this object.
-
Gets the FontMetrics of this object.
- Specified by:
getFontMetrics in interface javax.accessibility.AccessibleComponent
- Parameters:
f - the Font
- Returns:
- the FontMetrics, if supported, the object;
otherwise,
null - See Also:
MenuComponent.AccessibleAWTMenuComponent.getFont()
|
|
getForeground |
Gets the foreground color of this object.
public Color getForeground()
-
Gets the foreground color of this object.
- Specified by:
getForeground in interface javax.accessibility.AccessibleComponent
- Returns:
- the foreground color, if supported, of the object;
otherwise,
null - See Also:
AccessibleComponent.setForeground(java.awt.Color)
|
|
getLocale |
java.util.Locale getLocale()
Returns the locale of this object.
public java.util.Locale getLocale()
-
Returns the locale of this object.
- Specified by:
getLocale in class javax.accessibility.AccessibleContext
- Returns:
- the locale of this object
|
|
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.
public 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.
- Specified by:
getLocation in interface javax.accessibility.AccessibleComponent
- 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:
AccessibleComponent.getBounds() ,
AccessibleComponent.getLocationOnScreen()
|
|
getLocationOnScreen |
Point getLocationOnScreen()
Returns the location of the object on the screen.
public Point getLocationOnScreen()
-
Returns the location of the object on the screen.
- Specified by:
getLocationOnScreen in interface javax.accessibility.AccessibleComponent
- Returns:
- location of object on screen -- can be
null
if this object is not on the screen - See Also:
AccessibleComponent.getBounds() ,
AccessibleComponent.getLocation()
|
|
getSize |
Returns the size of this object in the form of a
Dimension object.
-
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.
- Specified by:
getSize in interface javax.accessibility.AccessibleComponent
- Returns:
- a
Dimension object that indicates the
size of this component; null
if this object is not on the screen - See Also:
AccessibleComponent.setSize(java.awt.Dimension)
|
|
isAccessibleChildSelected |
boolean isAccessibleChildSelected(int i)
Determines if the current child of this object is selected.
public boolean isAccessibleChildSelected(int i)
-
Determines if the current child of this object is selected.
- Specified by:
isAccessibleChildSelected in interface javax.accessibility.AccessibleSelection
- Parameters:
i - the zero-based index of the child in this
Accessible object
- Returns:
- true if the current child of this object is selected;
else false
- See Also:
AccessibleContext.getAccessibleChild(int)
|
|
isEnabled |
boolean isEnabled()
Determines if the object is enabled.
public boolean isEnabled()
-
Determines if the object is enabled.
- Specified by:
isEnabled in interface javax.accessibility.AccessibleComponent
- Returns:
- true if object is enabled; otherwise, false
- See Also:
AccessibleComponent.setEnabled(boolean) ,
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.ENABLED ,
AccessibleStateSet
|
|
isFocusTraversable |
boolean isFocusTraversable()
Returns whether this object can accept focus or not.
public boolean isFocusTraversable()
-
Returns whether this object can accept focus or not.
- Specified by:
isFocusTraversable in interface javax.accessibility.AccessibleComponent
- Returns:
- true if object can accept focus; otherwise false
- See Also:
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.FOCUSABLE ,
AccessibleState.FOCUSED ,
AccessibleStateSet
|
|
isShowing |
boolean isShowing()
Determines if the object is showing.
public boolean isShowing()
-
Determines if the object is showing. This is determined by checking
the visibility of the object and ancestors of the object. Note:
this will return true even if the object is obscured by another
(for example, it happens to be underneath a menu that was pulled
down).
- Specified by:
isShowing in interface javax.accessibility.AccessibleComponent
- Returns:
- true if object is showing; otherwise, false
|
|
isVisible |
boolean isVisible()
Determines if the object is visible.
public boolean isVisible()
-
Determines if the object is visible. Note: this means that the
object intends to be visible; however, it may not in fact be
showing on the screen because one of the objects that this object
is contained by is not visible. To determine if an object is
showing on the screen, use isShowing .
- Specified by:
isVisible in interface javax.accessibility.AccessibleComponent
- Returns:
- true if object is visible; otherwise, false
- See Also:
AccessibleComponent.setVisible(boolean) ,
AccessibleContext.getAccessibleStateSet() ,
AccessibleState.VISIBLE ,
AccessibleStateSet
|
|
removeAccessibleSelection |
void removeAccessibleSelection(int i)
Removes the specified child of the object from the object's
selection.
public void removeAccessibleSelection(int i)
-
Removes the specified child of the object from the object's
selection. If the specified item isn't currently selected, this
method has no effect.
- Specified by:
removeAccessibleSelection in interface javax.accessibility.AccessibleSelection
- Parameters:
i - the zero-based index of the child- See Also:
AccessibleContext.getAccessibleChild(int)
|
|
removeFocusListener |
void removeFocusListener(FocusListener l)
Removes the specified focus listener so it no longer receives focus
events from this component.
-
Removes the specified focus listener so it no longer receives focus
events from this component.
- Specified by:
removeFocusListener in interface javax.accessibility.AccessibleComponent
- Parameters:
l - the focus listener- See Also:
AccessibleComponent.addFocusListener(java.awt.event.FocusListener)
|
|
removePropertyChangeListener |
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list.
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
-
Description copied from class: javax.accessibility.AccessibleContext
Removes a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
- Parameters:
listener - The PropertyChangeListener to be removed
|
|
requestFocus |
void requestFocus()
Requests focus for this object.
public void requestFocus()
-
Requests focus for this object.
- Specified by:
requestFocus in interface javax.accessibility.AccessibleComponent
- See Also:
AccessibleComponent.isFocusTraversable()
|
|
selectAllAccessibleSelection |
void selectAllAccessibleSelection()
Causes every child of the object to be selected
if the object supports multiple selections.
public void selectAllAccessibleSelection()
-
Causes every child of the object to be selected
if the object supports multiple selections.
- Specified by:
selectAllAccessibleSelection in interface javax.accessibility.AccessibleSelection
|
|
setAccessibleDescription |
void setAccessibleDescription(java.lang.String s)
Sets the accessible description of this object.
public void setAccessibleDescription(java.lang.String s)
-
Description copied from class: javax.accessibility.AccessibleContext
Sets the accessible description of this object. Changing the
name will cause a PropertyChangeEvent to be fired for the
ACCESSIBLE_DESCRIPTION_PROPERTY property.
- Parameters:
s - the new localized description of the object- See Also:
AccessibleContext.setAccessibleName(java.lang.String) ,
AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener)
|
|
setAccessibleName |
void setAccessibleName(java.lang.String s)
Sets the localized accessible name of this object.
public void setAccessibleName(java.lang.String s)
-
Description copied from class: javax.accessibility.AccessibleContext
Sets the localized accessible name of this object. Changing the
name will cause a PropertyChangeEvent to be fired for the
ACCESSIBLE_NAME_PROPERTY property.
- Parameters:
s - the new localized name of the object.- See Also:
AccessibleContext.getAccessibleName() ,
AccessibleContext.addPropertyChangeListener(java.beans.PropertyChangeListener)
|
|
setAccessibleParent |
void setAccessibleParent(javax.accessibility.Accessible a)
Sets the Accessible parent of this object.
public void setAccessibleParent(javax.accessibility.Accessible a)
-
Description copied from class: javax.accessibility.AccessibleContext
Sets the Accessible parent of this object. This is meant to be used
only in the situations where the actual component's parent should
not be treated as the component's accessible parent and is a method
that should only be called by the parent of the accessible child.
- Parameters:
a - - Accessible to be set as the parent
|
|
setBackground |
void setBackground(Color c)
Sets the background color of this object.
public void setBackground( Color c)
-
Sets the background color of this object.
(For transparency, see isOpaque .)
- Specified by:
setBackground in interface javax.accessibility.AccessibleComponent
- Parameters:
c - the new Color for the background- See Also:
Component.isOpaque()
|
|
setBounds |
void setBounds(Rectangle r)
Sets the bounds of this object in the form of a
Rectangle object.
-
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.
- Specified by:
setBounds in interface javax.accessibility.AccessibleComponent
- Parameters:
r - a rectangle indicating this component's bounds- See Also:
AccessibleComponent.getBounds()
|
|
setCursor |
void setCursor(Cursor cursor)
Sets the Cursor of this object.
public void setCursor( Cursor cursor)
-
Sets the Cursor of this object.
The method may have no visual effect if the Java platform
implementation and/or the native system do not support
changing the mouse cursor shape.
- Specified by:
setCursor in interface javax.accessibility.AccessibleComponent
- Parameters:
cursor - the new Cursor for the object- See Also:
AccessibleComponent.getCursor()
|
|
setEnabled |
void setEnabled(boolean b)
Sets the enabled state of the object.
public void setEnabled(boolean b)
-
Sets the enabled state of the object.
- Specified by:
setEnabled in interface javax.accessibility.AccessibleComponent
- Parameters:
b - if true, enables this object; otherwise, disables it- See Also:
AccessibleComponent.isEnabled()
|
|
setFont |
void setFont(Font f)
Sets the Font of this object.
public void setFont( Font f)
-
Sets the Font of this object.
- Specified by:
setFont in interface javax.accessibility.AccessibleComponent
- Parameters:
f - the new Font for the object- See Also:
AccessibleComponent.getFont()
|
|
setForeground |
void setForeground(Color c)
Sets the foreground color of this object.
public void setForeground( Color c)
-
Sets the foreground color of this object.
- Specified by:
setForeground in interface javax.accessibility.AccessibleComponent
- Parameters:
c - the new Color for the foreground- See Also:
AccessibleComponent.getForeground()
|
|
setLocation |
void setLocation(Point p)
Sets the location of the object relative to the parent.
public void setLocation( Point p)
-
Sets the location of the object relative to the parent.
- Specified by:
setLocation in interface javax.accessibility.AccessibleComponent
- Parameters:
p - the new position for the top-left corner- See Also:
AccessibleComponent.getLocation()
|
|
setSize |
void setSize(Dimension d)
Resizes this object.
-
Resizes this object.
- Specified by:
setSize in interface javax.accessibility.AccessibleComponent
- Parameters:
d - - the Dimension specifying the
new size of the object- See Also:
AccessibleComponent.getSize()
|
|
setVisible |
void setVisible(boolean b)
Sets the visible state of the object.
public void setVisible(boolean b)
-
Sets the visible state of the object.
- Specified by:
setVisible in interface javax.accessibility.AccessibleComponent
- Parameters:
b - if true, shows this object; otherwise, hides it- See Also:
AccessibleComponent.isVisible()
|