Package org.socialmusicdiscovery.server.business.model.core

Examples of org.socialmusicdiscovery.server.business.model.core.Work


        if (track.getNumber() != null) {
            trackNumberTextInput.setText(track.getNumber().toString());
        }
        recordingNameTextInput.setText(track.getRecording().getName()!=null?track.getRecording().getName():"");
        Work work = null;
        if (track.getRecording().getWorks() != null && track.getRecording().getWorks().size()>0) {
            work = track.getRecording().getWorks().iterator().next();
        }
        if (work != null) {
            workNameTextInput.setText(work.getName());
        }
        if (track.getRecording().getDate() != null) {
            recordingYearTextInput.setText(DATE_FORMAT_DATE.format(this.track.getRecording().getDate()));
        }

        Set<Contributor> contributors = new HashSet<Contributor>(track.getRecording().getContributors());
        if (work != null) {
            contributors.addAll(work.getContributors());
        }
        updateContributors(contributors);

        // Add a suggestion popup on the work name field
        workNameTextInput.getTextInputContentListeners().add(new TextInputContentListener.Adapter() {
View Full Code Here


        // Selection changes in work results should trigger refresh of artists and releases
        workResultsTableView.getTableViewSelectionListeners().add(new TableViewSelectionListener.Adapter() {
            @Override
            public void selectedRangesChanged(TableView tableView, Sequence<Span> spanSequence) {
                Work work = (Work) tableView.getSelectedRow();
                if(work!=null) {
                    searchTextInput.setText("");
                    searchReleases(null, null, work.getId());
                    searchArtists(null, work.getId(), null);
                }
            }
        });

        // Double click handler for releases
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.model.core.Work

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.