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
-
嵌套类概要
从类继承的嵌套类/接口 javafx.application.Application
javafx.application.Application.Parameters -
字段概要
字段从类继承的字段 javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidManually call the current method after the function completes.protected void在生成userData前设置id和version.static javafx.scene.NodebuildSample(Sample sample, javafx.stage.Stage stage) Utility method to create the default look for samples.voiddispose()Provides a place to dispose of any resources when sample is deselected.javafx.scene.NodeReturns the panel to display to the user that allows for manipulating the sample.doubleReturns divider position to use for split between main panel and control panel.Returns the name of the project that this sample belongs to (e.g.A short, multiple sentence description of the sample.javafx.scene.image.ImageViewsample icon.xml配置key前缀,用于导出等功能使用.boolean是否有右侧区域.voidNote that initialize() is called after getPanel().protected void将在getPanel要设置的binding提取出来.protected voidBecause initialize() is called after getPanel() so userData needs to be initialized before this func.protected void将在getPanel要设置的userData binding提取出来.booleanIf true this sample is shown to users, if false it is not.voidstart(javafx.stage.Stage primaryStage) protected void版本升级后初始化对用户数据的更新, 默认为不进行修改, 由各个组件自己实现.从类继承的方法 javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.tlcsdm.frame.Sample
getOrderKey, getPanel, getProjectVersion, getSampleId, getSampleName, getSampleVersion, isFxml
-
字段详细资料
-
userData
-
aesSeed
-
-
构造器详细资料
-
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. -
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
A short, multiple sentence description of the sample.- 指定者:
getSampleDescription在接口中Sample
-
getSampleImageIcon
public javafx.scene.image.ImageView getSampleImageIcon()从接口复制的说明:Samplesample icon.- 指定者:
getSampleImageIcon在接口中Sample
-
getProjectName
Returns the name of the project that this sample belongs to (e.g. 'JFXtras'. or 'ControlsFX').- 指定者:
getProjectName在接口中Sample
-
initialize
public void initialize()从接口复制的说明:SampleNote 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
从接口复制的说明:Samplexml配置key前缀,用于导出等功能使用.- 指定者:
getSampleXmlPrefix在接口中Sample
-
buildSample
Utility method to create the default look for samples. -
hasControlPanel
public boolean hasControlPanel()从接口复制的说明:Sample是否有右侧区域.- 指定者:
hasControlPanel在接口中Sample
-
dispose
public void dispose()从接口复制的说明:SampleProvides a place to dispose of any resources when sample is deselected.
-