程序包 com.tlcsdm.frame

接口 Sample

所有已知实现类:
AbstractEcmScript, AbstractEscape, AbstractU2XFamilyScript, APNMdfParse, AsciiPicTool, C1MEcmScript, CgSample, CodeStyleLength120, ColorCode, CommonSample, Compress, CsvEscape, DaliDemo, DataFormatConvert, DmaTriggerSourceCode, DtsTriggerSourceDoc, DtsTriggerSourceXml, EcmaScriptEscape, EmptySample, ExcelColNameCalculator, FileDiff, FileDiffWithWeb, FxmlDemo, GirretReview, HconvertExcel, HtmlEscape, HttpTool, IconTool, ImageSplit, JavaEscape, JsonEscape, MoneyToChinese, QeSample, RcpIconTool, RegexTester, SampleBase, ScanPortTool, SerialPortTool, SmcSample, SpecGeneralTest, TestTool, U2AEcmScript, U2CEcmScript, UrlEscape, XmlEscape

public sealed interface Sample permits EmptySample, SampleBase
组件对象.
作者:
unknowIfGuestInDream
  • 方法详细资料

    • getSampleId

      String getSampleId()
      组件id.
    • getSampleName

      String getSampleName()
      A short, most likely single-word, name to show to the user - e.g. "CheckBox".
    • getSampleDescription

      String getSampleDescription()
      A short, multiple sentence description of the sample.
    • getProjectName

      String getProjectName()
      Returns the name of the project that this sample belongs to (e.g. 'JFXtras'. or 'ControlsFX').
    • getProjectVersion

      String getProjectVersion()
      Returns the version of the project that this sample belongs to (e.g. '1.0.0').
    • getSampleVersion

      String getSampleVersion()
      sample version.
    • getSampleImageIcon

      javafx.scene.image.ImageView getSampleImageIcon()
      sample icon.
    • getPanel

      javafx.scene.Node getPanel(javafx.stage.Stage stage)
      Returns the main sample panel.
    • getControlPanel

      javafx.scene.Node getControlPanel()
      Returns the panel to display to the user that allows for manipulating the sample.
    • initialize

      void initialize()
      Note that initialize() is called after getPanel(). 实现类是FXML实现,推荐不使用此接口初始化,而是需要手动初始化
    • dispose

      void dispose()
      Provides a place to dispose of any resources when sample is deselected.
    • getControlPanelDividerPosition

      double getControlPanelDividerPosition()
      Returns divider position to use for split between main panel and control panel.
    • isVisible

      boolean isVisible()
      If true this sample is shown to users, if false it is not.
    • getOrderKey

      String getOrderKey()
      排序字段.
    • getSampleXmlPrefix

      String getSampleXmlPrefix()
      xml配置key前缀,用于导出等功能使用.
    • hasControlPanel

      boolean hasControlPanel()
      是否有右侧区域.
    • isFxml

      default boolean isFxml()
      当前实现类是否是fxml实现,如果是的话初始化需要额外处理.