Klasse MusicCollection

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.VBox
ui.common.C64VBox
ui.musiccollection.MusicCollection
Alle implementierten Schnittstellen:
javafx.css.Styleable, javafx.event.EventTarget, javafx.fxml.Initializable, javafx.util.Builder<Object>, UIPart

public class MusicCollection extends C64VBox implements UIPart
Common view base for HVSC and CGSC collections. Loosely based on Rhythmbox, which is probably based on iTunes. Display is divided to 2 vertical panels of identical widths - 1st shows file meta info in table, and composer's photo, scaled to 100% of width. These take the whole vertical space. - 2nd column show search bar, which is used to match song and artist name - 2nd column displays list of artists. - 2nd column displays list of songs matching search criteria and selected artist. - currently playing symbol - artist name - song name - total song length (?)
Autor:
Ken Händel, Antti Lankila
  • Eigenschaftsübersicht

    Von Klasse geerbte Eigenschaften javafx.scene.layout.VBox

    alignment, fillWidth, spacing

    Von Klasse geerbte Eigenschaften javafx.scene.layout.Region

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Von Klasse geerbte Eigenschaften javafx.scene.Parent

    needsLayout

    Von Klasse geerbte Eigenschaften javafx.scene.Node

    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
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private javafx.scene.control.Menu
     
    private javafx.scene.control.CheckBox
     
    private javafx.scene.control.TextField
     
    private javafx.scene.control.ComboBox<Enum<?>>
     
    private javafx.collections.ObservableList<Enum<?>>
     
    private javafx.scene.control.ContextMenu
     
    private javafx.event.EventHandler<javafx.stage.WindowEvent>
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.Button
     
    private javafx.beans.property.ObjectProperty<List<javafx.scene.control.TreeItem<File>>>
     
    private javax.persistence.EntityManager
     
     
    private javafx.scene.control.TreeView<File>
     
    private String
     
     
     
     
    private javafx.scene.control.TableColumn<TuneInfo,String>
     
    private javafx.scene.image.ImageView
     
    private javafx.scene.control.TitledPane
     
    private SearchCriteria<?,?>
     
    private Object
     
    private javafx.scene.control.Button
     
    private Object
     
    private javafx.scene.control.ComboBox<SearchCriteria<?,?>>
     
    private Object
     
    private boolean
     
    private javafx.scene.control.ComboBox<SearchResult>
     
    private javafx.scene.control.ComboBox<SearchScope>
     
    private SearchThread
     
    private int
     
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.MenuItem
     
    private javafx.scene.control.Button
     
    private javafx.scene.control.Button
     
     
    private final FileFilter
     
    private javafx.beans.value.ChangeListener<? super javafx.scene.control.TreeItem<File>>
     
    private javafx.collections.ObservableList<TuneInfo>
     
    private javafx.scene.control.TableView<TuneInfo>
     
     
    private javafx.beans.property.ObjectProperty<MusicCollectionType>
     
    private javafx.scene.control.TableColumn<TuneInfo,String>
     
     

    Von Klasse geerbte Felder ui.common.C64VBox

    util

    Von Klasse geerbte Felder javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Von Klasse geerbte Felder javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
    MusicCollection(C64Window window, Player player)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    private void
    addFavorite(SidPlay2Section sidPlay2Section, FavoritesSection section, File file)
     
    private void
    addFavorites(SidPlay2Section sidplay2Section, FavoritesSection section, List<File> files)
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
     
    void
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
    downloadStart(String url, int hvscVersion)
     
    private void
     
    private void
    enableSOASC(SidTuneInfo tuneInfo, File tuneFile)
     
     
    private void
     
    protected void
     
    private void
     
    private void
     
    private void
    playTune(File file)
     
    private void
     
    private void
    setRoot(File rootFile)
     
    private void
     
    private void
     
    void
     
    private void
    setViewRoot(File theRootFile)
     
    private void
    showCurrentTune(File initialRoot)
     
    private void
    showNextHit(File matchFile)
     
    private void
    showPhoto(SidTuneInfo info, File tuneFile)
     
    private void
     
    private void
    showTuneInfos(File tuneFile, SidTune tune)
     
    private void
     
    private void
     
    private void
     
    private void
     
    private void
    startSearch(boolean forceRecreate)
     

    Von Klasse geerbte Methoden ui.common.C64VBox

    initialize

    Von Klasse geerbte Methoden javafx.scene.layout.VBox

    alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, fillWidthProperty, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, getSpacing, getVgrow, isFillWidth, layoutChildren, requestLayout, setAlignment, setFillWidth, setMargin, setSpacing, setVgrow, spacingProperty

    Von Klasse geerbte Methoden javafx.scene.layout.Pane

    getChildren

    Von Klasse geerbte Methoden javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, 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

    Von Klasse geerbte Methoden javafx.scene.Parent

    getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBounds

    Von Klasse geerbte Methoden javafx.scene.Node

    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, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, 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

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Von Schnittstelle geerbte Methoden javafx.css.Styleable

    getStyleableNode

    Von Schnittstelle geerbte Methoden ui.common.UIPart

    build, getBundleName, getFxml
  • Felddetails

    • autoConfiguration

      private javafx.scene.control.CheckBox autoConfiguration
    • tuneInfoTable

      private javafx.scene.control.TableView<TuneInfo> tuneInfoTable
    • nameColumn

      private javafx.scene.control.TableColumn<TuneInfo,String> nameColumn
    • valueColumn

      private javafx.scene.control.TableColumn<TuneInfo,String> valueColumn
    • photographPane

      private javafx.scene.control.TitledPane photographPane
    • photograph

      private javafx.scene.image.ImageView photograph
    • fileBrowser

      private javafx.scene.control.TreeView<File> fileBrowser
    • searchCriteria

      private javafx.scene.control.ComboBox<SearchCriteria<?,?>> searchCriteria
    • searchScope

      private javafx.scene.control.ComboBox<SearchScope> searchScope
    • searchResult

      private javafx.scene.control.ComboBox<SearchResult> searchResult
    • startSearch

      private javafx.scene.control.Button startSearch
    • stopSearch

      private javafx.scene.control.Button stopSearch
    • resetSearch

      private javafx.scene.control.Button resetSearch
    • createSearchIndex

      private javafx.scene.control.Button createSearchIndex
    • collectionDir

      private javafx.scene.control.TextField collectionDir
    • stringTextField

      private TypeTextField stringTextField
    • integerTextField

      private TypeTextField integerTextField
    • longTextField

      private TypeTextField longTextField
    • shortTextField

      private TypeTextField shortTextField
    • localDateTextField

      private TypeTextField localDateTextField
    • combo

      private javafx.scene.control.ComboBox<Enum<?>> combo
    • contextMenu

      private javafx.scene.control.ContextMenu contextMenu
    • showStil

      private javafx.scene.control.MenuItem showStil
    • convertToPSID64

      private javafx.scene.control.MenuItem convertToPSID64
    • soasc6581R2

      private javafx.scene.control.MenuItem soasc6581R2
    • soasc6581R3

      private javafx.scene.control.MenuItem soasc6581R3
    • soasc6581R4

      private javafx.scene.control.MenuItem soasc6581R4
    • soasc8580R5

      private javafx.scene.control.MenuItem soasc8580R5
    • addToFavoritesMenu

      private javafx.scene.control.Menu addToFavoritesMenu
    • tuneFilter

      private final FileFilter tuneFilter
    • type

      private javafx.beans.property.ObjectProperty<MusicCollectionType> type
    • tuneInfos

      private javafx.collections.ObservableList<TuneInfo> tuneInfos
    • comboItems

      private javafx.collections.ObservableList<Enum<?>> comboItems
    • currentlyPlayedTreeItemsProperty

      private javafx.beans.property.ObjectProperty<List<javafx.scene.control.TreeItem<File>>> currentlyPlayedTreeItemsProperty
    • em

      private javax.persistence.EntityManager em
    • versionService

      private VersionService versionService
    • searchThread

      private SearchThread searchThread
    • savedState

      private Object savedState
    • searchForValue

      private Object searchForValue
    • recentlySearchedForValue

      private Object recentlySearchedForValue
    • recentlySearchedCriteria

      private SearchCriteria<?,?> recentlySearchedCriteria
    • searchOptionsChanged

      private boolean searchOptionsChanged
    • hvscName

      private String hvscName
    • selectedSong

      private int selectedSong
    • favoritesToAddSearchResult

      private FavoritesSection favoritesToAddSearchResult
    • tuneMatcherListener

      private PropertyChangeListener tuneMatcherListener
    • tuneInfoListener

      private javafx.beans.value.ChangeListener<? super javafx.scene.control.TreeItem<File>> tuneInfoListener
    • contextMenuEvent

      private javafx.event.EventHandler<javafx.stage.WindowEvent> contextMenuEvent
  • Konstruktordetails

    • MusicCollection

      public MusicCollection()
    • MusicCollection

      public MusicCollection(C64Window window, Player player)
  • Methodendetails

    • getType

      public MusicCollectionType getType()
    • setType

      public void setType(MusicCollectionType type)
    • initialize

      protected void initialize()
      Angegeben von:
      initialize in Klasse C64VBox
    • showCurrentTune

      private void showCurrentTune(File initialRoot)
    • doClose

      public void doClose()
      Angegeben von:
      doClose in Schnittstelle UIPart
    • closeDatabase

      private void closeDatabase()
    • showSTIL

      private void showSTIL()
    • convertToPSID64

      private void convertToPSID64()
    • startDownload6581R2

      private void startDownload6581R2()
    • startDownload6581R3

      private void startDownload6581R3()
    • startDownload6581R4

      private void startDownload6581R4()
    • startDownload8580R5

      private void startDownload8580R5()
    • doAutoConfiguration

      private void doAutoConfiguration()
    • searchCategory

      private void searchCategory()
    • doStartSearch

      private void doStartSearch()
    • doStopSearch

      private void doStopSearch()
    • doResetSearch

      private void doResetSearch()
    • doCreateSearchIndex

      private void doCreateSearchIndex()
    • doBrowse

      private void doBrowse()
    • gotoURL

      private void gotoURL()
    • doSetValue

      private void doSetValue()
    • setSearchEditorVisible

      private void setSearchEditorVisible()
    • setSearchValue

      private void setSearchValue()
    • setRoot

      private void setRoot(File rootFile)
    • openErrorDialog

      private void openErrorDialog(String msg, MusicCollectionType type)
    • setViewRoot

      private void setViewRoot(File theRootFile)
    • startSearch

      private void startSearch(boolean forceRecreate)
    • disableSearch

      private void disableSearch()
    • enableSearch

      private void enableSearch()
    • showNextHit

      private void showNextHit(File matchFile)
    • createNewFavoritesTab

      private void createNewFavoritesTab()
    • downloadStart

      private void downloadStart(String url, int hvscVersion)
    • enableSOASC

      private void enableSOASC(SidTuneInfo tuneInfo, File tuneFile)
    • showPhoto

      private void showPhoto(SidTuneInfo info, File tuneFile)
    • showTuneInfos

      private void showTuneInfos(File tuneFile, SidTune tune)
    • addFavorites

      private void addFavorites(SidPlay2Section sidplay2Section, FavoritesSection section, List<File> files)
    • addFavorite

      private void addFavorite(SidPlay2Section sidPlay2Section, FavoritesSection section, File file)
    • playSelected

      private void playSelected()
    • playTune

      private void playTune(File file)