M - the template model classN - the layout nodeC - the template controller classpublic abstract class AbstractTemplateView<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>> extends AbstractSlideView<M,N,C>
| Modifier and Type | Field and Description |
|---|---|
private javafx.scene.shape.Circle |
circle
The circle shape used in the top left corner.
|
private javafx.scene.Node |
currentSubSlide
The current subslide node displayed.
|
private static String |
ITEM_CLASS_PREFIX
Prefix used for css class.
|
private javafx.scene.control.Label |
pageLabel
The label that display the number of the page.
|
private javafx.scene.shape.Rectangle |
rectangle
The rectangle shape used to underline the slide title.
|
private javafx.scene.control.Label |
secondaryTitle
The sub title of this slide.
|
private javafx.scene.layout.StackPane |
slideContent
The pane that hold the content.
|
private List<javafx.scene.Node> |
subSlides
The list of nodes that represent each sub slide.
|
| Constructor and Description |
|---|
AbstractTemplateView(M model)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSlideItem(javafx.scene.layout.VBox vbox,
SlideItem item)
Add a slide item by managing level.
|
private void |
addSubSlide(javafx.scene.Node defaultSubSlide)
Add a subslide node.
|
protected javafx.beans.binding.NumberBinding |
bindHeight()
Returns the height ratio.
|
protected void |
bindNode(javafx.scene.Node node)
Bind node's scale properties to stage size.
|
protected javafx.beans.binding.NumberBinding |
bindWidth()
Returns the width ratio.
|
protected javafx.scene.layout.VBox |
buildDefaultContent(SlideContent slideContent)
Build the default content slide.
|
protected abstract javafx.scene.Node |
getContentPanel()
Build and return the content panel.
|
protected javafx.scene.Node |
getFooterPanel()
Build and return the footer panel.
|
protected javafx.scene.Node |
getHeaderPanel()
Build and return the header panel.
|
protected javafx.scene.layout.StackPane |
getSlideContent() |
protected javafx.scene.control.Label |
getSubTitle() |
protected void |
initView() |
private void |
performStepAnimation(javafx.scene.Node nextSlide)
Create an Launch the animation between two sub slides.
|
void |
reload() |
protected void |
showCustomSlideStep(javafx.scene.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() |
isSlideLocked, setSlideLockedhidebuildController, buildRootNode, finalize, getController, getErrorNode, getModel, getRootNode, initInternalView, prepareprivate static final String ITEM_CLASS_PREFIX
private javafx.scene.control.Label secondaryTitle
private javafx.scene.control.Label pageLabel
private javafx.scene.layout.StackPane slideContent
private final List<javafx.scene.Node> subSlides
private javafx.scene.Node currentSubSlide
private javafx.scene.shape.Circle circle
private javafx.scene.shape.Rectangle rectangle
public AbstractTemplateView(M model) throws org.jrebirth.af.api.exception.CoreException
model - the controls view modelorg.jrebirth.af.api.exception.CoreException - if build failsprotected javafx.scene.control.Label getSubTitle()
protected void initView()
initView in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>>protected void showEmptySlide()
private void addSubSlide(javafx.scene.Node defaultSubSlide)
defaultSubSlide - the subslide nodepublic void start()
start in interface org.jrebirth.af.api.ui.View<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>>start in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>>public void reload()
reload in interface org.jrebirth.af.api.ui.View<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>>reload in class DefaultView<M extends AbstractTemplateModel<?,?,?>,N extends javafx.scene.layout.AnchorPane,C extends AbstractTemplateController<?,?>>protected javafx.scene.Node getHeaderPanel()
protected void bindNode(javafx.scene.Node node)
node - the bound nodeprotected javafx.beans.binding.NumberBinding bindHeight()
protected javafx.beans.binding.NumberBinding bindWidth()
protected abstract javafx.scene.Node getContentPanel()
protected javafx.scene.Node getFooterPanel()
protected javafx.scene.layout.VBox buildDefaultContent(SlideContent slideContent)
slideContent - the content of the slide to buildprotected void addSlideItem(javafx.scene.layout.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(javafx.scene.Node node)
node - the node built programmaticallyprivate void performStepAnimation(javafx.scene.Node nextSlide)
nextSlide - the next subSlide to showprotected javafx.scene.layout.StackPane getSlideContent()
Copyright © 2011–2015 JRebirth OSS. All rights reserved.