| <!DOCTYPE HTML> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (19) --> |
| <title>ResourceTree (Apache SIS 1.3 API)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: package: org.apache.sis.gui.dataset, class: ResourceTree"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <meta name="keywords" content="org.apache.sis.gui.dataset.ResourceTree class"> |
| <meta name="keywords" content="onResourceLoaded"> |
| <meta name="keywords" content="onResourceClosed"> |
| <meta name="keywords" content="getResource()"> |
| <meta name="keywords" content="setResource()"> |
| <meta name="keywords" content="addResource()"> |
| <meta name="keywords" content="loadResource()"> |
| <meta name="keywords" content="removeAndClose()"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../sis.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-3.6.0.min.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var pathtoroot = "../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> |
| <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> |
| <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">Class</li> |
| <li><a href="class-use/ResourceTree.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html#class">Help</a></li> |
| </ul> |
| <ul class="sub-nav-list-small"> |
| <li> |
| <p>Summary:</p> |
| <ul> |
| <li><a href="#nested-class-summary">Nested</a></li> |
| <li><a href="#field-summary">Field</a></li> |
| <li><a href="#constructor-summary">Constr</a></li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| </li> |
| <li> |
| <p>Detail:</p> |
| <ul> |
| <li><a href="#field-detail">Field</a></li> |
| <li><a href="#constructor-detail">Constr</a></li> |
| <li><a href="#method-detail">Method</a></li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div id="navbar-sub-list"> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li><a href="#nested-class-summary">Nested</a> | </li> |
| <li><a href="#field-summary">Field</a> | </li> |
| <li><a href="#constructor-summary">Constr</a> | </li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li><a href="#field-detail">Field</a> | </li> |
| <li><a href="#constructor-detail">Constr</a> | </li> |
| <li><a href="#method-detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><a href="../../../../../search.html">SEARCH</a> |
| <input type="text" id="search-input" disabled placeholder="Search"> |
| <input type="reset" id="reset-button" disabled value="reset"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip-navbar-top"></span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.apache.sis.gui.dataset</a></div> |
| <h1 title="Class ResourceTree" class="title">Class ResourceTree</h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a> |
| <div class="inheritance">Node |
| <div class="inheritance">Parent |
| <div class="inheritance">Region |
| <div class="inheritance">Control |
| <div class="inheritance">TreeView<<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a>> |
| <div class="inheritance">ResourceTree</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <section class="class-description" id="class-description"> |
| <dl class="notes"> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code>Styleable</code>, <code>EventTarget</code>, <code>Skinnable</code></dd> |
| </dl> |
| <hr> |
| <div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">ResourceTree</span> |
| <span class="extends-implements">extends TreeView<<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a>></span></div> |
| <div class="block">A view of data <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a>s organized as a tree. |
| This view can be used for showing the content of one or many <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a>s. |
| A resource can be added by a call to <a href="#addResource(org.apache.sis.storage.Resource)"><code>addResource(Resource)</code></a> or loaded from |
| a file by <a href="#loadResource(java.lang.Object)"><code>loadResource(Object)</code></a>. |
| |
| <p><code>ResourceTree</code> registers the necessarily handlers for making this view a target |
| of "drag and drop" events. Users can drop files or URLs for opening data files.</p> |
| |
| <h2>Limitations</h2> |
| <ul> |
| <li>The <code>rootProperty</code> should be considered read-only. |
| For changing content, use the <a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a> instead.</li> |
| <li>If the user selects "close" in the contextual menu, the resource is unconditionally closed |
| (if it is an instance of <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a>). There is not yet a mechanism for keeping it open |
| if the resource is shared by another <a href="ResourceTree.html" title="class in org.apache.sis.gui.dataset"><code>ResourceTree</code></a> instance.</li> |
| </ul></div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>1.1</dd> |
| |
| <p><font size="-1">Defined in the <code>sis-javafx</code> module</font></p> |
| </dl> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- =========== PROPERTY SUMMARY =========== --> |
| <li> |
| <section class="property-summary" id="property-summary"> |
| <h2>Property Summary</h2> |
| <div class="inherited-list"> |
| <h3 id="properties-inherited-from-class-TreeView">Properties inherited from class TreeView</h3> |
| <code>cellFactory, editable, editingItem, expandedItemCount, fixedCellSize, focusModel, onEditCancel, onEditCommit, onEditStart, onScrollTo, root, selectionModel, showRoot</code></div> |
| <div class="inherited-list"> |
| <h3 id="properties-inherited-from-class-Control">Properties inherited from class Control</h3> |
| <code>contextMenu, skin, tooltip</code></div> |
| <div class="inherited-list"> |
| <h3 id="properties-inherited-from-class-Region">Properties inherited from class Region</h3> |
| <code>background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width</code></div> |
| <div class="inherited-list"> |
| <h3 id="properties-inherited-from-class-Parent">Properties inherited from class Parent</h3> |
| <code>needsLayout</code></div> |
| <div class="inherited-list"> |
| <h3 id="properties-inherited-from-class-Node">Properties inherited from class Node</h3> |
| <code>accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible</code></div> |
| </section> |
| </li> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <li> |
| <section class="nested-class-summary" id="nested-class-summary"> |
| <h2>Nested Class Summary</h2> |
| <div class="inherited-list"> |
| <h2 id="nested-classes-inherited-from-class-javafx.scene.control.TreeView">Nested classes/interfaces inherited from class TreeView</h2> |
| <code>TreeView.EditEvent<T></code></div> |
| </section> |
| </li> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li> |
| <section class="field-summary" id="field-summary"> |
| <h2>Field Summary</h2> |
| <div class="caption"><span>Fields</span></div> |
| <div class="summary-table three-column-summary"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Field</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color"><code>final ObjectProperty<EventHandler<<a href="ResourceEvent.html" title="class in org.apache.sis.gui.dataset">ResourceEvent</a>>></code></div> |
| <div class="col-second even-row-color"><code><a href="#onResourceClosed" class="member-name-link">onResourceClosed</a></code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Function to be called after a resource has been closed from a file or URL.</div> |
| </div> |
| <div class="col-first odd-row-color"><code>final ObjectProperty<EventHandler<<a href="ResourceEvent.html" title="class in org.apache.sis.gui.dataset">ResourceEvent</a>>></code></div> |
| <div class="col-second odd-row-color"><code><a href="#onResourceLoaded" class="member-name-link">onResourceLoaded</a></code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Function to be called after a resource has been loaded from a file or URL.</div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="fields-inherited-from-class-Region">Fields inherited from class Region</h3> |
| <code>USE_COMPUTED_SIZE, USE_PREF_SIZE</code></div> |
| <div class="inherited-list"> |
| <h3 id="fields-inherited-from-class-Node">Fields inherited from class Node</h3> |
| <code>BASELINE_OFFSET_SAME_AS_HEIGHT</code></div> |
| </section> |
| </li> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <li> |
| <section class="constructor-summary" id="constructor-summary"> |
| <h2>Constructor Summary</h2> |
| <div class="caption"><span>Constructors</span></div> |
| <div class="summary-table two-column-summary"> |
| <div class="table-header col-first">Constructor</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">ResourceTree</a>()</code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Creates a new tree of resources with initially no resource to show.</div> |
| </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method-summary"> |
| <h2>Method Summary</h2> |
| <div id="method-summary-table"> |
| <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> |
| <div id="method-summary-table.tabpanel" role="tabpanel"> |
| <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Method</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#addResource(org.apache.sis.storage.Resource)" class="member-name-link">addResource</a><wbr>(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Adds a resource in this tree below previously added resources.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getResource()" class="member-name-link">getResource</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the root <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a> of this tree.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#loadResource(java.lang.Object)" class="member-name-link">loadResource</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a> source)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Loads in a background thread the resources from the given source, |
| then <a href="#addResource(org.apache.sis.storage.Resource)">adds the resource</a> to this tree.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeAndClose(org.apache.sis.storage.Resource)" class="member-name-link">removeAndClose</a><wbr>(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Removes the given resource from this tree and closes the resource if it is a <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a> instance.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setResource(org.apache.sis.storage.Resource)" class="member-name-link">setResource</a><wbr>(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sets the root <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a> of this tree.</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-TreeView">Methods inherited from class TreeView</h3> |
| <code>cellFactoryProperty, createDefaultSkin, edit, editableProperty, editAnyEvent, editCancelEvent, editCommitEvent, editingItemProperty, editStartEvent, expandedItemCountProperty, fixedCellSizeProperty, focusModelProperty, getCellFactory, getClassCssMetaData, getControlCssMetaData, getEditingItem, getExpandedItemCount, getFixedCellSize, getFocusModel, getNodeLevel, getOnEditCancel, getOnEditCommit, getOnEditStart, getOnScrollTo, getRoot, getRow, getSelectionModel, getTreeItem, getTreeItemLevel, isEditable, isShowRoot, layoutChildren, onEditCancelProperty, onEditCommitProperty, onEditStartProperty, onScrollToProperty, queryAccessibleAttribute, refresh, rootProperty, scrollTo, selectionModelProperty, setCellFactory, setEditable, setFixedCellSize, setFocusModel, setOnEditCancel, setOnEditCommit, setOnEditStart, setOnScrollTo, setRoot, setSelectionModel, setShowRoot, showRootProperty</code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Control">Methods inherited from class Control</h3> |
| <code>computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty</code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Region">Methods inherited from class Region</h3> |
| <code>backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty</code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Parent">Methods inherited from class Parent</h3> |
| <code>getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds</code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Node">Methods inherited from class Node</h3> |
| <code>accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty</code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-Styleable">Methods inherited from interface Styleable</h3> |
| <code>getStyleableNode</code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <li> |
| <section class="field-details" id="field-detail"> |
| <h2>Field Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="onResourceLoaded"> |
| <h3>onResourceLoaded</h3> |
| <div class="member-signature"><span class="modifiers">public final</span> <span class="return-type">ObjectProperty<EventHandler<<a href="ResourceEvent.html" title="class in org.apache.sis.gui.dataset">ResourceEvent</a>>></span> <span class="element-name">onResourceLoaded</span></div> |
| <div class="block">Function to be called after a resource has been loaded from a file or URL. |
| The default value is <code>null</code>.</div> |
| <dl class="notes"> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="#loadResource(java.lang.Object)"><code>loadResource(Object)</code></a></li> |
| <li><code>ResourceEvent.LOADED</code></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="onResourceClosed"> |
| <h3>onResourceClosed</h3> |
| <div class="member-signature"><span class="modifiers">public final</span> <span class="return-type">ObjectProperty<EventHandler<<a href="ResourceEvent.html" title="class in org.apache.sis.gui.dataset">ResourceEvent</a>>></span> <span class="element-name">onResourceClosed</span></div> |
| <div class="block">Function to be called after a resource has been closed from a file or URL. |
| The default value is <code>null</code>.</div> |
| <dl class="notes"> |
| <dt>Since:</dt> |
| <dd>1.2</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="#removeAndClose(org.apache.sis.storage.Resource)"><code>removeAndClose(Resource)</code></a></li> |
| <li><code>ResourceEvent.CLOSED</code></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <li> |
| <section class="constructor-details" id="constructor-detail"> |
| <h2>Constructor Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="<init>()"> |
| <h3>ResourceTree</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name">ResourceTree</span>()</div> |
| <div class="block">Creates a new tree of resources with initially no resource to show. |
| For showing a resource, invoke <a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a> after construction.</div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li> |
| <section class="method-details" id="method-detail"> |
| <h2>Method Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="getResource()"> |
| <h3>getResource</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a></span> <span class="element-name">getResource</span>()</div> |
| <div class="block">Returns the root <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a> of this tree. |
| The returned value depends on how the resource was set: |
| |
| <ul> |
| <li>If the resource was specified by <a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a>, |
| then this method returns that resource. |
| This is often (but not necessarily) a <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a>.</li> |
| <li>If one or more resources were specified by <a href="#addResource(org.apache.sis.storage.Resource)"><code>addResource(Resource)</code></a>, |
| then this method returns an <a href="../../storage/Aggregate.html" title="interface in org.apache.sis.storage"><code>Aggregate</code></a> of all added resources.</li> |
| </ul></div> |
| <dl class="notes"> |
| <dt>Returns:</dt> |
| <dd>root <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a>, or <code>null</code> if none.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="setResource(org.apache.sis.storage.Resource)"> |
| <h3>setResource</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setResource</span><wbr><span class="parameters">(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</span></div> |
| <div class="block">Sets the root <a href="../../storage/Resource.html" title="interface in org.apache.sis.storage"><code>Resource</code></a> of this tree. |
| The root resource is typically, but not necessarily, a <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a> instance. |
| If another root resource existed before this method call, it is discarded without being closed. |
| Closing the previous resource is caller's responsibility. |
| |
| <h4>Modified tree view properties</h4> |
| This method updates the <code>root</code> and <code>showRoot</code> |
| properties of <code>TreeView</code> in an implementation-dependent way.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>resource</code> - the root resource to show, or <code>null</code> if none.</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="#addResource(org.apache.sis.storage.Resource)"><code>addResource(Resource)</code></a></li> |
| <li><a href="#removeAndClose(org.apache.sis.storage.Resource)"><code>removeAndClose(Resource)</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="addResource(org.apache.sis.storage.Resource)"> |
| <h3>addResource</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">addResource</span><wbr><span class="parameters">(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</span></div> |
| <div class="block">Adds a resource in this tree below previously added resources. |
| This method does nothing if the given resource is already present in this tree. |
| |
| <h4>Modified tree view properties</h4> |
| This method updates the <code>root</code> and <code>showRoot</code> |
| properties of <code>TreeView</code> in an implementation-dependent way.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>resource</code> - the root resource to add, or <code>null</code> if none.</dd> |
| <dt>Returns:</dt> |
| <dd><code>true</code> if the given resource has been added, or <code>false</code> |
| if it was already presents or if the given resource is <code>null</code>.</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list"> |
| <li><a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a></li> |
| <li><a href="#removeAndClose(org.apache.sis.storage.Resource)"><code>removeAndClose(Resource)</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="loadResource(java.lang.Object)"> |
| <h3>loadResource</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">loadResource</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a> source)</span></div> |
| <div class="block">Loads in a background thread the resources from the given source, |
| then <a href="#addResource(org.apache.sis.storage.Resource)">adds the resource</a> to this tree. |
| If the resource has already been loaded, then this method will use the |
| existing instance instead of loading the data again. |
| |
| <h4>Notifications</h4> |
| If <a href="#onResourceLoaded"><code>onResourceLoaded</code></a> has a non-null value, the <code>EventHandler</code> will be |
| notified in JavaFX thread after the background thread finished to open the resource. |
| If an exception occurs while opening the resource, then <code>EventHandler</code> is not |
| notified and the error is reported in a dialog box instead.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>source</code> - the source of the resource to load. This is usually |
| a <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link"><code>File</code></a> or <a href="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/file/Path.html" title="class or interface in java.nio.file" class="external-link"><code>Path</code></a>.</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list-long"> |
| <li><a href="ResourceExplorer.html#loadResources(java.util.Collection)"><code>ResourceExplorer.loadResources(Collection)</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="removeAndClose(org.apache.sis.storage.Resource)"> |
| <h3>removeAndClose</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">removeAndClose</span><wbr><span class="parameters">(<a href="../../storage/Resource.html" title="interface in org.apache.sis.storage">Resource</a> resource)</span></div> |
| <div class="block">Removes the given resource from this tree and closes the resource if it is a <a href="../../storage/DataStore.html" title="class in org.apache.sis.storage"><code>DataStore</code></a> instance. |
| It is caller's responsibility to ensure that the given resource is not used anymore. |
| |
| <p>Only the "root" resources (such as the resources given to <a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a> or |
| <a href="#addResource(org.apache.sis.storage.Resource)"><code>addResource(Resource)</code></a> methods) can be removed. |
| Children of <a href="../../storage/Aggregate.html" title="interface in org.apache.sis.storage"><code>Aggregate</code></a> resource are not scanned. |
| If the given resource cannot be removed, then this method does nothing.</p> |
| |
| <h4>Notifications</h4> |
| If <a href="#onResourceClosed"><code>onResourceClosed</code></a> has a non-null value, the <code>EventHandler</code> will be notified. |
| The notification may happen in same time that the resource is closing in a background thread. |
| If an exception occurs while closing the resource, the error is reported in a dialog box.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>resource</code> - the resource to remove. Null values are ignored.</dd> |
| <dt>See Also:</dt> |
| <dd> |
| <ul class="see-list-long"> |
| <li><a href="#setResource(org.apache.sis.storage.Resource)"><code>setResource(Resource)</code></a></li> |
| <li><a href="#addResource(org.apache.sis.storage.Resource)"><code>addResource(Resource)</code></a></li> |
| <li><a href="ResourceExplorer.html#removeAndClose(org.apache.sis.storage.Resource)"><code>ResourceExplorer.removeAndClose(Resource)</code></a></li> |
| </ul> |
| </dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small>Copyright © 2010–2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |