|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.AccessibleHTML.ElementInfo javax.swing.text.html.AccessibleHTML.TableElementInfo.TableCellElementInfo
TableCellElementInfo is used to represents the cells of the table.
Field Summary | |
private javax.accessibility.Accessible |
accessible
|
private boolean |
isHeaderCell
|
Constructor Summary | |
(package private) |
AccessibleHTML.TableElementInfo.TableCellElementInfo(Element e,
AccessibleHTML.ElementInfo parent)
|
(package private) |
AccessibleHTML.TableElementInfo.TableCellElementInfo(Element e,
AccessibleHTML.ElementInfo parent,
boolean isHeaderCell)
|
Method Summary | |
protected void |
addChild(AccessibleHTML.ElementInfo child)
Adds a new child to this ElementInfo. |
javax.accessibility.Accessible |
getAccessible()
|
private void |
getAccessible(AccessibleHTML.ElementInfo elementInfo)
|
protected AttributeSet |
getAttributes()
Returns the AttributeSet associated with the Element, this will return null if the ElementInfo can't be validated. |
Rectangle |
getBounds()
Returns the Bounds for this ElementInfo, or null if the ElementInfo can't be validated. |
AccessibleHTML.ElementInfo |
getChild(int index)
Returns the child ElementInfo at index , or null
if index isn't a valid index. |
int |
getChildCount()
Returns the number of children the ElementInfo contains. |
int |
getColumnCount()
Returns the colspan attribute. |
Element |
getElement()
Returns the Element this ElementInfo represents. |
int |
getIndexInParent()
Returns the index of the child in the parent, or -1 for the root or if the parent isn't valid. |
protected int |
getIntAttr(AttributeSet attrs,
Object key,
int deflt)
Convenience method for getting an integer attribute from the passed in AttributeSet. |
AccessibleHTML.ElementInfo |
getParent()
Returns the parent of this Element, or null for the root. |
int |
getRowCount()
Returns the rowspan attribute. |
protected View |
getView()
Returns the View corresponding to this ElementInfo, or null if the ElementInfo can't be validated. |
protected AttributeSet |
getViewAttributes()
Returns the AttributeSet associated with the View that is representing this Element, this will return null if the ElementInfo can't be validated. |
int |
indexOf(AccessibleHTML.ElementInfo child)
Returns the index of the specified child, or -1 if child isn't a valid child. |
protected void |
invalidate(boolean first)
Overriden to invalidate the TableRowElementInfo as well as the TableCellElementInfo. |
boolean |
isHeaderCell()
|
protected boolean |
isValid()
Returns true if this ElementInfo is valid. |
protected void |
loadChildren(Element parent)
Recreates the direct children of info . |
protected void |
validate()
Validates the receiver. |
protected boolean |
validateIfNecessary()
Validates the ElementInfo if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.accessibility.Accessible accessible
private boolean isHeaderCell
Constructor Detail |
AccessibleHTML.TableElementInfo.TableCellElementInfo(Element e, AccessibleHTML.ElementInfo parent)
AccessibleHTML.TableElementInfo.TableCellElementInfo(Element e, AccessibleHTML.ElementInfo parent, boolean isHeaderCell)
Method Detail |
public boolean isHeaderCell()
public javax.accessibility.Accessible getAccessible()
private void getAccessible(AccessibleHTML.ElementInfo elementInfo)
public int getRowCount()
public int getColumnCount()
protected void invalidate(boolean first)
invalidate
in class AccessibleHTML.ElementInfo
protected void validate()
readLock
. If this is overriden
it MUST invoke supers implementation first!
protected void loadChildren(Element parent)
info
.
public int getIndexInParent()
public Element getElement()
ElementInfo
represents.
public AccessibleHTML.ElementInfo getParent()
public int indexOf(AccessibleHTML.ElementInfo child)
child
isn't a valid child.
public AccessibleHTML.ElementInfo getChild(int index)
index
, or null
if index
isn't a valid index.
public int getChildCount()
protected void addChild(AccessibleHTML.ElementInfo child)
protected View getView()
public Rectangle getBounds()
protected boolean isValid()
protected AttributeSet getAttributes()
protected AttributeSet getViewAttributes()
protected int getIntAttr(AttributeSet attrs, Object key, int deflt)
protected boolean validateIfNecessary()
isValid
before
using one. This will reload the children and invoke
validate
if the ElementInfo is invalid and can become
valid again. This will return true if the receiver is valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |