程序包 com.tlcsdm.frame

类 SampleBase

java.lang.Object
javafx.application.Application
com.tlcsdm.frame.SampleBase
所有已实现的接口:
Sample
直接已知子类:
CgSample, CommonSample, QeSample, SmcSample

public abstract non-sealed class SampleBase extends javafx.application.Application implements Sample
A base class for samples - it is recommended that they extend this class rather than Application, as then the samples can be run either standalone or within FXSampler.
作者:
unknowIfGuestInDream
  • 字段详细资料

  • 构造器详细资料

    • SampleBase

      public SampleBase()
  • 方法详细资料

    • start

      public void start(javafx.stage.Stage primaryStage)
      指定者:
      start 在类中 javafx.application.Application
    • isVisible

      public boolean isVisible()
      If true this sample is shown to users, if false it is not.
      指定者:
      isVisible 在接口中 Sample
    • getControlPanel

      public javafx.scene.Node getControlPanel()
      Returns the panel to display to the user that allows for manipulating the sample.
      指定者:
      getControlPanel 在接口中 Sample
    • getControlPanelDividerPosition

      public double getControlPanelDividerPosition()
      Returns divider position to use for split between main panel and control panel.
      指定者:
      getControlPanelDividerPosition 在接口中 Sample
    • getSampleDescription

      public String getSampleDescription()
      A short, multiple sentence description of the sample.
      指定者:
      getSampleDescription 在接口中 Sample
    • getSampleImageIcon

      public javafx.scene.image.ImageView getSampleImageIcon()
      从接口复制的说明: Sample
      sample icon.
      指定者:
      getSampleImageIcon 在接口中 Sample
    • getProjectName

      public String getProjectName()
      Returns the name of the project that this sample belongs to (e.g. 'JFXtras'. or 'ControlsFX').
      指定者:
      getProjectName 在接口中 Sample
    • initialize

      public void initialize()
      从接口复制的说明: Sample
      Note that initialize() is called after getPanel(). 实现类是FXML实现,推荐不使用此接口初始化,而是需要手动初始化
      指定者:
      initialize 在接口中 Sample
    • initializeBindings

      protected void initializeBindings()
      将在getPanel要设置的binding提取出来.
    • initializeUserDataBindings

      protected void initializeUserDataBindings()
      将在getPanel要设置的userData binding提取出来.
    • initializeUserData

      protected void initializeUserData()
      Because initialize() is called after getPanel() so userData needs to be initialized before this func.
    • bindUserData

      protected void bindUserData()
      Manually call the current method after the function completes. For example manually calling the current method after clicking the generate button
    • bindUserDataBefore

      protected void bindUserDataBefore()
      在生成userData前设置id和version.
    • updateForVersionUpgrade

      protected void updateForVersionUpgrade()
      版本升级后初始化对用户数据的更新, 默认为不进行修改, 由各个组件自己实现.
    • getSampleXmlPrefix

      public String getSampleXmlPrefix()
      从接口复制的说明: Sample
      xml配置key前缀,用于导出等功能使用.
      指定者:
      getSampleXmlPrefix 在接口中 Sample
    • buildSample

      public static javafx.scene.Node buildSample(Sample sample, javafx.stage.Stage stage)
      Utility method to create the default look for samples.
    • hasControlPanel

      public boolean hasControlPanel()
      从接口复制的说明: Sample
      是否有右侧区域.
      指定者:
      hasControlPanel 在接口中 Sample
    • dispose

      public void dispose()
      从接口复制的说明: Sample
      Provides a place to dispose of any resources when sample is deselected.
      指定者:
      dispose 在接口中 Sample