< prev index next >
modules/web/src/main/java/javafx/scene/web/WebView.java
Print this page
@@ -308,11 +308,11 @@
@Override public void resize(double width, double height) {
if ((width != this.width.get()) || (height != this.height.get())) {
this.width.set(width);
this.height.set(height);
NodeHelper.markDirty(this, DirtyBits.NODE_GEOMETRY);
- impl_geomChanged();
+ NodeHelper.geomChanged(this);
}
}
/**
* Called during layout to determine the minimum width for this node.
@@ -969,11 +969,11 @@
return false;
}
boolean iconified = (window instanceof Stage) ? ((Stage)window).isIconified() : false;
- return impl_isTreeVisible()
+ return NodeHelper.isTreeVisible(this)
&& window.isShowing()
&& window.getWidth() > 0
&& window.getHeight() > 0
&& !iconified;
}
@@ -1247,17 +1247,15 @@
});
setInputMethodRequests(getInputMethodClient());
}
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+ /*
+ * Note: This method MUST only be called via its accessor method.
*/
- @Deprecated
- @Override protected void impl_pickNodeLocal(PickRay pickRay, PickResultChooser result) {
- impl_intersects(pickRay, result);
+ private void doPickNodeLocal(PickRay pickRay, PickResultChooser result) {
+ NodeHelper.intersects(this, pickRay, result);
}
@Override protected ObservableList<Node> getChildren() {
return super.getChildren();
}
@@ -1269,27 +1267,29 @@
*/
private NGNode doCreatePeer() {
return new NGWebView();
}
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+ /*
+ * Note: This method MUST only be called via its accessor method.
*/
- @Deprecated
- @Override public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx) {
+ private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) {
bounds.deriveWithNewBounds(0, 0, 0, (float) getWidth(), (float)getHeight(), 0);
tx.transform(bounds, bounds);
return bounds;
}
- /**
- * @treatAsPrivate implementation detail
- * @deprecated This is an internal API that is not intended for use and will be removed in the next version
+ /*
+ * Note: This method MUST only be called via its accessor method.
+ */
+ private void doTransformsChanged() {
+ }
+
+ /*
+ * Note: This method MUST only be called via its accessor method.
*/
- @Deprecated
- @Override protected boolean impl_computeContains(double localX, double localY) {
+ private boolean doComputeContains(double localX, double localY) {
// Note: Local bounds contain test is already done by the caller. (Node.contains()).
return true;
}
/*
@@ -1318,10 +1318,32 @@
@Override
public void doUpdatePeer(Node node) {
((WebView) node).doUpdatePeer();
}
+
+ @Override
+ public void doTransformsChanged(Node node) {
+ ((WebView) node).doTransformsChanged();
+ }
+
+ @Override
+ public BaseBounds doComputeGeomBounds(Node node,
+ BaseBounds bounds, BaseTransform tx) {
+ return ((WebView) node).doComputeGeomBounds(bounds, tx);
+ }
+
+ @Override
+ public boolean doComputeContains(Node node, double localX, double localY) {
+ return ((WebView) node).doComputeContains(localX, localY);
+ }
+
+ @Override
+ public void doPickNodeLocal(Node node, PickRay localPickRay,
+ PickResultChooser result) {
+ ((WebView) node).doPickNodeLocal(localPickRay, result);
+ }
});
idMap.put(MouseButton.NONE, WCMouseEvent.NOBUTTON);
idMap.put(MouseButton.PRIMARY, WCMouseEvent.BUTTON1);
idMap.put(MouseButton.MIDDLE, WCMouseEvent.BUTTON2);
< prev index next >