M
- the template model classN
- the layout nodeC
- the template controller classpublic abstract class AbstractTemplateView<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>> extends AbstractSlideView<M,N,C>
Constructor and Description |
---|
AbstractTemplateView(M model)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSlideItem(VBox vbox,
SlideItem item)
Add a slide item by managing level.
|
protected NumberBinding |
bindHeight()
Returns the height ratio.
|
protected void |
bindNode(Node node)
Bind node's scale properties to stage size.
|
protected NumberBinding |
bindWidth()
Returns the width ratio.
|
protected VBox |
buildDefaultContent(SlideContent slideContent)
Build the default content slide.
|
protected abstract Node |
getContentPanel()
Build and return the content panel.
|
protected Node |
getFooterPanel()
Build and return the footer panel.
|
protected Node |
getHeaderPanel()
Build and return the header panel.
|
protected StackPane |
getSlideContent() |
protected Label |
getSubTitle() |
protected void |
initView()
Custom method used to initialize components.
|
boolean |
isReadyForSlidesStepUpdate(boolean isReverse) |
void |
reload()
Handle custom tasks to do at each rendering of the view (re-display).
|
protected void |
showCustomSlideStep(Node node)
Show a programmatic built node as a sub slide.
|
protected void |
showEmptySlide()
Show en aempty slide.
|
void |
showSlideStep(SlideStep slideStep)
Show the slide step store which match with XML file.
|
void |
start()
Handle custom tasks to do the first time after creation of the view.
|
hide
buildController, buildRootNode, controller, errorNode, finalize, initInternalView, model, node, pane, prepare
public AbstractTemplateView(M model) throws CoreException
model
- the controls view modelCoreException
- if build failsprotected Label getSubTitle()
protected void initView()
initView
in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
protected void showEmptySlide()
public void start()
start
in interface View<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
start
in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
public void reload()
reload
in interface View<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
reload
in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
protected Node getHeaderPanel()
protected void bindNode(Node node)
node
- the bound nodeprotected NumberBinding bindHeight()
protected NumberBinding bindWidth()
protected abstract Node getContentPanel()
protected Node getFooterPanel()
protected VBox buildDefaultContent(SlideContent slideContent)
slideContent
- the content of the slide to buildprotected void addSlideItem(VBox vbox, SlideItem item)
vbox
- the layout nodeitem
- the slide item to addpublic void showSlideStep(SlideStep slideStep)
slideStep
- the slide step to showprotected void showCustomSlideStep(Node node)
node
- the node built programmaticallypublic boolean isReadyForSlidesStepUpdate(boolean isReverse)
isReadyForSlidesStepUpdate
in class AbstractSlideView<M extends AbstractTemplateModel<?,?,?>,N extends AnchorPane,C extends AbstractTemplateController<?,?>>
protected StackPane getSlideContent()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.