< prev index next >
modules/web/src/main/java/javafx/scene/web/WebView.java
Print this page
*** 308,318 ****
@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();
}
}
/**
* Called during layout to determine the minimum width for this node.
--- 308,318 ----
@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);
! NodeHelper.geomChanged(this);
}
}
/**
* Called during layout to determine the minimum width for this node.
*** 969,979 ****
return false;
}
boolean iconified = (window instanceof Stage) ? ((Stage)window).isIconified() : false;
! return impl_isTreeVisible()
&& window.isShowing()
&& window.getWidth() > 0
&& window.getHeight() > 0
&& !iconified;
}
--- 969,979 ----
return false;
}
boolean iconified = (window instanceof Stage) ? ((Stage)window).isIconified() : false;
! return NodeHelper.isTreeVisible(this)
&& window.isShowing()
&& window.getWidth() > 0
&& window.getHeight() > 0
&& !iconified;
}
*** 1247,1263 ****
});
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
*/
! @Deprecated
! @Override protected void impl_pickNodeLocal(PickRay pickRay, PickResultChooser result) {
! impl_intersects(pickRay, result);
}
@Override protected ObservableList<Node> getChildren() {
return super.getChildren();
}
--- 1247,1261 ----
});
setInputMethodRequests(getInputMethodClient());
}
! /*
! * Note: This method MUST only be called via its accessor method.
*/
! private void doPickNodeLocal(PickRay pickRay, PickResultChooser result) {
! NodeHelper.intersects(this, pickRay, result);
}
@Override protected ObservableList<Node> getChildren() {
return super.getChildren();
}
*** 1269,1295 ****
*/
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
*/
! @Deprecated
! @Override public BaseBounds impl_computeGeomBounds(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
*/
! @Deprecated
! @Override protected boolean impl_computeContains(double localX, double localY) {
// Note: Local bounds contain test is already done by the caller. (Node.contains()).
return true;
}
/*
--- 1267,1295 ----
*/
private NGNode doCreatePeer() {
return new NGWebView();
}
! /*
! * Note: This method MUST only be called via its accessor method.
*/
! private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) {
bounds.deriveWithNewBounds(0, 0, 0, (float) getWidth(), (float)getHeight(), 0);
tx.transform(bounds, bounds);
return bounds;
}
! /*
! * 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.
*/
! private boolean doComputeContains(double localX, double localY) {
// Note: Local bounds contain test is already done by the caller. (Node.contains()).
return true;
}
/*
*** 1318,1327 ****
--- 1318,1349 ----
@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 >