--- accessibility/bridge/org/openoffice/java/accessibility/Window.java (revision 1501113) +++ accessibility/bridge/org/openoffice/java/accessibility/Window.java (working copy) @@ -543,5 +543,28 @@ unoAccessibleComponent.grabFocus(); } } + + /** + * Determines whether this component is displayable. A component is + * displayable when it is connected to a native screen resource. + *
+ * A component is made displayable either when it is added to + * a displayable containment hierarchy or when its containment + * hierarchy is made displayable. + * A containment hierarchy is made displayable when its ancestor + * window is either packed or made visible. + *
+ * A component is made undisplayable either when it is removed from
+ * a displayable containment hierarchy or when its containment hierarchy
+ * is made undisplayable. A containment hierarchy is made
+ * undisplayable when its ancestor window is disposed.
+ *
+ * @return true
if the component is displayable
+ */
+ @Override
+ public boolean isDisplayable() {
+ return true;
+ }
+
}
--- accessibility/bridge/org/openoffice/java/accessibility/ComboBox.java (revision 1501113)
+++ accessibility/bridge/org/openoffice/java/accessibility/ComboBox.java (working copy)
@@ -110,4 +110,16 @@
return 1;
}
}
+
+ /**
+ * Returns whether this Component can be focused.
+ *
+ * @return true
if this Component is focusable;
+ * false
otherwise.
+ * @see #setFocusable
+ * @since 1.4
+ */
+ public boolean isFocusable() {
+ return true;
+ }
}
--- accessibility/bridge/org/openoffice/java/accessibility/Frame.java (revision 1501113)
+++ accessibility/bridge/org/openoffice/java/accessibility/Frame.java (working copy)
@@ -638,5 +638,28 @@
unoAccessibleComponent.grabFocus();
}
}
+
+ /**
+ * Determines whether this component is displayable. A component is
+ * displayable when it is connected to a native screen resource.
+ *
+ * A component is made displayable either when it is added to + * a displayable containment hierarchy or when its containment + * hierarchy is made displayable. + * A containment hierarchy is made displayable when its ancestor + * window is either packed or made visible. + *
+ * A component is made undisplayable either when it is removed from
+ * a displayable containment hierarchy or when its containment hierarchy
+ * is made undisplayable. A containment hierarchy is made
+ * undisplayable when its ancestor window is disposed.
+ *
+ * @return true
if the component is displayable
+ */
+ @Override
+ public boolean isDisplayable() {
+ return true;
+ }
+
}
--- accessibility/bridge/org/openoffice/java/accessibility/Dialog.java (revision 1501113)
+++ accessibility/bridge/org/openoffice/java/accessibility/Dialog.java (working copy)
@@ -118,18 +118,39 @@
public void removeNotify() {
}
- /**
- * 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
.
- *
- * @return true if object is visible; otherwise, false
- */
+ /**
+ * 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
.
+ *
+ * @return true if object is visible; otherwise, false
+ */
public boolean isVisible(){
return visible;
}
+
+ /**
+ * Determines whether this component is displayable. A component is
+ * displayable when it is connected to a native screen resource.
+ *
+ * A component is made displayable either when it is added to + * a displayable containment hierarchy or when its containment + * hierarchy is made displayable. + * A containment hierarchy is made displayable when its ancestor + * window is either packed or made visible. + *
+ * A component is made undisplayable either when it is removed from
+ * a displayable containment hierarchy or when its containment hierarchy
+ * is made undisplayable. A containment hierarchy is made
+ * undisplayable when its ancestor window is disposed.
+ *
+ * @return true
if the component is displayable
+ */
+ public boolean isDisplayable() {
+ return true;
+ }
/**
* Shows or hides this component depending on the value of parameter