WIP desktop client for Chatto reimplemented in ScalaFX and Sapphire Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
892 B

package wow.doge.chatto.controller
import com.sfxcode.sapphire.core.controller.ViewController
import com.typesafe.scalalogging.LazyLogging
import wow.doge.chatto.ApplicationController
abstract class AbstractViewController extends ViewController with LazyLogging {
override def didGainVisibility(): Unit = {
statusBarController.statusLabel.setText(
"%s loaded".format(getClass.getSimpleName)
)
}
def applicationController: ApplicationController = {
getBean[ApplicationController]()
}
def mainViewController: MainViewController =
applicationController.mainViewController
/**
*
* @return
*/
def statusBarController = getBean[StatusBarController]()
/**
*
* @return workspace manager resolved by parent
*/
def workspaceManager = mainViewController.workspaceManager
// def loginManager = mainViewController.loginManager
}