本文整理了Java中javafx.scene.control.Tab.getTabPane()
方法的一些代码示例,展示了Tab.getTabPane()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tab.getTabPane()
方法的具体详情如下:
包路径:javafx.scene.control.Tab
类名称:Tab
方法名:getTabPane
暂无
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
@Override
public GenericTabPane getOwner() {
TabPane tabPane = this.t.getTabPane();
if (tabPane == null) {
return null;
}
return FXTabPaneWrapper.wrap(tabPane);
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
@Override
public GenericTabPane getOwner() {
TabPane tabPane = this.t.getTabPane();
if (tabPane == null) {
return null;
}
return FXTabPaneWrapper.wrap(tabPane);
}
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
@Nullable
public static Window getWindowAncestor(@Nonnull Object node) {
requireNonNull(node, ERROR_NODE_NULL);
if (node instanceof Window) {
return (Window) node;
} else if (node instanceof Scene) {
return ((Scene) node).getWindow();
} else if (node instanceof Node) {
Scene scene = ((Node) node).getScene();
if (scene != null) {
return scene.getWindow();
}
} else if (node instanceof Tab) {
TabPane tabPane = ((Tab) node).getTabPane();
if (tabPane != null) {
return getWindowAncestor(tabPane);
}
}
return null;
}
代码示例来源:origin: org.gillius/jfxutils
@Override
public void handle( DragEvent event ) {
if ( event.getDragboard().hasContent( TAB_TYPE ) ) {
Tab tab = dndTab.get();
if ( tab != null && tab.getTabPane() != tabPane ) {// && different from source location
tab.getTabPane().getTabs().remove( tab );
tabPane.getTabs().add( tab );
event.setDropCompleted( true );
event.consume();
}
dndTab = null;
}
}
} );
代码示例来源:origin: org.gillius/jfxutils
@Override
public void handle( DragEvent event ) {
if ( event.getDragboard().hasContent( TAB_TYPE ) ) {
Tab tab = dndTab.get();
if ( tab != null && tab.getTabPane() != tabPane ) {// && different from source location
event.acceptTransferModes( TransferMode.MOVE );
event.consume();
}
}
}
} );
内容来源于网络,如有侵权,请联系作者删除!