src/java.desktop/share/classes/java/awt/List.java

Print this page




1635             public int getAccessibleChildrenCount() {
1636                 return 0;       // list elements can't have children
1637             }
1638 
1639             /**
1640              * Return the specified Accessible child of the object.  The
1641              * Accessible children of an Accessible object are zero-based,
1642              * so the first child of an Accessible child is at index 0, the
1643              * second child is at index 1, and so on.
1644              *
1645              * @param i zero-based index of child
1646              * @return the Accessible child of the object
1647              * @see #getAccessibleChildrenCount
1648              */
1649             public Accessible getAccessibleChild(int i) {
1650                 return null;    // list elements can't have children
1651             }
1652 
1653 
1654             //
1655             // AccessibleComponent delegatation to parent List
1656             //
1657 
1658             /**
1659              * Get the background color of this object.
1660              *
1661              * @return the background color, if supported, of the object;
1662              * otherwise, null
1663              * @see #setBackground
1664              */
1665             public Color getBackground() {
1666                 return parent.getBackground();
1667             }
1668 
1669             /**
1670              * Set the background color of this object.
1671              *
1672              * @param c the new Color for the background
1673              * @see #setBackground
1674              */
1675             public void setBackground(Color c) {


1842 
1843             /**
1844              * Returns the location of the object on the screen.
1845              *
1846              * @return location of object on screen; null if this object
1847              * is not on the screen
1848              * @see #getBounds
1849              * @see #getLocation
1850              */
1851             public Point getLocationOnScreen() {
1852                 // [[[FIXME]]] sigh
1853                 return null;
1854             }
1855 
1856             /**
1857              * Gets the location of the object relative to the parent in the
1858              * form of a point specifying the object's top-left corner in the
1859              * screen's coordinate space.
1860              *
1861              * @return An instance of Point representing the top-left corner of
1862              * the objects's bounds in the coordinate space of the screen; null
1863              * if this object or its parent are not on the screen
1864              * @see #getBounds
1865              * @see #getLocationOnScreen
1866              */
1867             public Point getLocation() {
1868                 // [[[FIXME]]]
1869                 return null;
1870             }
1871 
1872             /**
1873              * Sets the location of the object relative to the parent.
1874              * @param p the new position for the top-left corner
1875              * @see #getLocation
1876              */
1877             public void setLocation(Point p) {
1878                 // [[[FIXME]]] maybe - can simply return as no-op
1879             }
1880 
1881             /**
1882              * Gets the bounds of this object in the form of a Rectangle object.


1890             public Rectangle getBounds() {
1891                 // [[[FIXME]]]
1892                 return null;
1893             }
1894 
1895             /**
1896              * Sets the bounds of this object in the form of a Rectangle
1897              * object.  The bounds specify this object's width, height, and
1898              * location relative to its parent.
1899              *
1900              * @param r rectangle indicating this component's bounds
1901              * @see #getBounds
1902              */
1903             public void setBounds(Rectangle r) {
1904                 // no-op; not supported
1905             }
1906 
1907             /**
1908              * Returns the size of this object in the form of a Dimension
1909              * object.  The height field of the Dimension object contains this
1910              * objects's height, and the width field of the Dimension object
1911              * contains this object's width.
1912              *
1913              * @return A Dimension object that indicates the size of this
1914              * component; null if this object is not on the screen
1915              * @see #setSize
1916              */
1917             public Dimension getSize() {
1918                 // [[[FIXME]]]
1919                 return null;
1920             }
1921 
1922             /**
1923              * Resizes this object so that it has width and height.
1924              *
1925              * @param d - The dimension specifying the new size of the object.
1926              * @see #getSize
1927              */
1928             public void setSize(Dimension d) {
1929                 // not supported; no-op
1930             }




1635             public int getAccessibleChildrenCount() {
1636                 return 0;       // list elements can't have children
1637             }
1638 
1639             /**
1640              * Return the specified Accessible child of the object.  The
1641              * Accessible children of an Accessible object are zero-based,
1642              * so the first child of an Accessible child is at index 0, the
1643              * second child is at index 1, and so on.
1644              *
1645              * @param i zero-based index of child
1646              * @return the Accessible child of the object
1647              * @see #getAccessibleChildrenCount
1648              */
1649             public Accessible getAccessibleChild(int i) {
1650                 return null;    // list elements can't have children
1651             }
1652 
1653 
1654             //
1655             // AccessibleComponent delegation to parent List
1656             //
1657 
1658             /**
1659              * Get the background color of this object.
1660              *
1661              * @return the background color, if supported, of the object;
1662              * otherwise, null
1663              * @see #setBackground
1664              */
1665             public Color getBackground() {
1666                 return parent.getBackground();
1667             }
1668 
1669             /**
1670              * Set the background color of this object.
1671              *
1672              * @param c the new Color for the background
1673              * @see #setBackground
1674              */
1675             public void setBackground(Color c) {


1842 
1843             /**
1844              * Returns the location of the object on the screen.
1845              *
1846              * @return location of object on screen; null if this object
1847              * is not on the screen
1848              * @see #getBounds
1849              * @see #getLocation
1850              */
1851             public Point getLocationOnScreen() {
1852                 // [[[FIXME]]] sigh
1853                 return null;
1854             }
1855 
1856             /**
1857              * Gets the location of the object relative to the parent in the
1858              * form of a point specifying the object's top-left corner in the
1859              * screen's coordinate space.
1860              *
1861              * @return An instance of Point representing the top-left corner of
1862              * the object's bounds in the coordinate space of the screen; null
1863              * if this object or its parent are not on the screen
1864              * @see #getBounds
1865              * @see #getLocationOnScreen
1866              */
1867             public Point getLocation() {
1868                 // [[[FIXME]]]
1869                 return null;
1870             }
1871 
1872             /**
1873              * Sets the location of the object relative to the parent.
1874              * @param p the new position for the top-left corner
1875              * @see #getLocation
1876              */
1877             public void setLocation(Point p) {
1878                 // [[[FIXME]]] maybe - can simply return as no-op
1879             }
1880 
1881             /**
1882              * Gets the bounds of this object in the form of a Rectangle object.


1890             public Rectangle getBounds() {
1891                 // [[[FIXME]]]
1892                 return null;
1893             }
1894 
1895             /**
1896              * Sets the bounds of this object in the form of a Rectangle
1897              * object.  The bounds specify this object's width, height, and
1898              * location relative to its parent.
1899              *
1900              * @param r rectangle indicating this component's bounds
1901              * @see #getBounds
1902              */
1903             public void setBounds(Rectangle r) {
1904                 // no-op; not supported
1905             }
1906 
1907             /**
1908              * Returns the size of this object in the form of a Dimension
1909              * object.  The height field of the Dimension object contains this
1910              * object's height, and the width field of the Dimension object
1911              * contains this object's width.
1912              *
1913              * @return A Dimension object that indicates the size of this
1914              * component; null if this object is not on the screen
1915              * @see #setSize
1916              */
1917             public Dimension getSize() {
1918                 // [[[FIXME]]]
1919                 return null;
1920             }
1921 
1922             /**
1923              * Resizes this object so that it has width and height.
1924              *
1925              * @param d - The dimension specifying the new size of the object.
1926              * @see #getSize
1927              */
1928             public void setSize(Dimension d) {
1929                 // not supported; no-op
1930             }