Class MainViewController

java.lang.Object
de.spiritscorp.datasync.controller.MainViewController
All Implemented Interfaces:
ViewController

public class MainViewController extends Object implements ViewController
Central controller implementation executing operational state translations and business action flows. * @author Tom Spirit
  • Constructor Details

    • MainViewController

      public MainViewController(Gui gui)
      Allocates a new controller instance tied directly to the display engine layer hook.
      Parameters:
      gui - The global display manager orchestrator application shell instance.
  • Method Details

    • registerNativeShutdownHook

      public void registerNativeShutdownHook()
      Description copied from interface: ViewController
      Registers a native host operating system runtime shutdown hook to capture external termination signals.
      Specified by:
      registerNativeShutdownHook in interface ViewController
    • handleNavigate

      public void handleNavigate(Gui.ViewState state)
      Description copied from interface: ViewController
      Handles switching between different primary view layers within the main viewport.
      Specified by:
      handleNavigate in interface ViewController
      Parameters:
      state - The target structural navigation layer.
    • handleApplicationShutdown

      public void handleApplicationShutdown()
      Description copied from interface: ViewController
      Requests termination of the entire application environment, safely stopping background hooks.
      Specified by:
      handleApplicationShutdown in interface ViewController
    • handleCreateNewJob

      public void handleCreateNewJob()
      Description copied from interface: ViewController
      Handles the creation and append workflow for a new managed task synchronization context instance.
      Specified by:
      handleCreateNewJob in interface ViewController
    • handleRenameJob

      public void handleRenameJob(javafx.scene.control.ListCell<SyncJobContext> cell)
      Description copied from interface: ViewController
      Triggers the specialized configuration context dialog to change a job instance identification label.
      Specified by:
      handleRenameJob in interface ViewController
      Parameters:
      cell - The graphical ListCell context container hosting the target model entity.
    • handleDuplicateJob

      public void handleDuplicateJob(SyncJobContext job)
      Description copied from interface: ViewController
      Creates an independent copy of the currently selected task parameters profile mapping.
      Specified by:
      handleDuplicateJob in interface ViewController
      Parameters:
      job - The source configuration instance payload.
    • handleDeleteJob

      public void handleDeleteJob(SyncJobContext job)
      Description copied from interface: ViewController
      Permanently removes a task entity context from the global orchestrator matrix tracking layer.
      Specified by:
      handleDeleteJob in interface ViewController
      Parameters:
      job - The target configuration instance to wipe.
    • handleExecuteTask

      public void handleExecuteTask(SyncJobContext job)
      Description copied from interface: ViewController
      Initiates execution of processing operations based on active configuration parameters.
      Specified by:
      handleExecuteTask in interface ViewController
      Parameters:
      job - The active task configuration processing target.
    • handleStopTask

      public void handleStopTask(SyncJobContext job)
      Description copied from interface: ViewController
      Stop execution of processing operations based on active configuration parameters.
      Specified by:
      handleStopTask in interface ViewController
      Parameters:
      job - The active task configuration processing target.
    • handleSaveSettings

      public void handleSaveSettings(Preference localPreferences, AppTheme targetTheme)
      Description copied from interface: ViewController
      Commits altered orchestration state variables using the encapsulated properties entity carrier.
      Specified by:
      handleSaveSettings in interface ViewController
      Parameters:
      localPreferences - Altered context data parameters container reference.
      targetTheme - Visual presentation theme strategy selection.
    • runInBackground

      public void runInBackground(boolean firstStart)
      Specified by:
      runInBackground in interface ViewController
    • deleteSelectedDuplicates

      public void deleteSelectedDuplicates(SyncJobContext jobContext)
      Specified by:
      deleteSelectedDuplicates in interface ViewController