M - the SlideModel classV - the SlideView classS - the SlideStep to usepublic abstract class AbstractSlideModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>,S extends SlideStep> extends DefaultModel<M,V> implements SlideModel<S>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSlideModel.SlideFlow |
| Modifier and Type | Field and Description |
|---|---|
private AbstractSlideModel.SlideFlow |
currentFlow
The current slide flow.
|
private javafx.animation.Animation |
hideAnimation
The animation used to hide the slide.
|
private javafx.animation.Animation |
showAnimation
The animation used to show the slide.
|
private Slide |
slide
The slide data object.
|
private int |
slideNumber
The slide number.
|
private List<S> |
stepList
The list of slide step.
|
private int |
stepPosition
The step position.
|
innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponentADD_BEHAVIOR, CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, COMPONENT_RELEASE_ERROR, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, USE_DEFAULT_WAVE_HANDLER, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Constructor and Description |
|---|
AbstractSlideModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bind() |
private javafx.animation.Animation |
buildAnimation(AnimationType animationType)
Build an animation.
|
protected javafx.animation.Animation |
buildHorizontalAnimation(double fromX,
double toX,
double fromY,
double toY)
Build a scaling animation.
|
private javafx.animation.Animation |
buildScaleAnimation(double from,
double to,
boolean show)
Build a scaling animation.
|
private javafx.animation.Animation |
buildSliding()
Build a sliding animation.
|
private double |
findAngle(double fromX,
double fromY,
double toX,
double toY)
Return the right angle for the given coordinate.
|
SlideContent |
getContent(SlideStep slideStep)
Return the default content or null for the given step.
|
AbstractSlideModel.SlideFlow |
getCurrentFlow() |
SlideContent |
getDefaultContent()
Return the default content or null.
|
javafx.animation.Animation |
getHideAnimation()
Get the hide animation.
|
javafx.animation.Animation |
getShowAnimation()
Get the show animation.
|
Slide |
getSlide() |
int |
getSlideNumber() |
private List<S> |
getStepList() |
int |
getStepPosition() |
boolean |
hasStep()
Returns true if the slide has at least one step.
|
private boolean |
hasStep(SlideContent slideContent)
Check if step defined in xml exist into current step list.
|
protected void |
hideView() |
protected abstract S[] |
initializeSlideStep()
Initialize the SlideStep array.
|
protected void |
initInnerComponents() |
protected void |
initModel() |
boolean |
isForwardFlow()
Return true if the slide flow is forward
|
boolean |
nextStep()
Check if the next step is available.
|
boolean |
previousStep()
Check if the previous step is available.
|
protected void |
processWave(org.jrebirth.af.api.wave.Wave wave) |
void |
setCurrentFlow(AbstractSlideModel.SlideFlow currentFlow) |
void |
setSlide(Slide slide) |
void |
setSlideNumber(int slideNumber) |
abstract void |
showSlideStep(S slideStep)
Show the step.
|
protected void |
showView() |
bindInternal, buildView, doHideView, doShowView, getView, initInternalModelfinalize, getRootNode, hideInternalView, ready, showInternalViewaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior, manageOptionalDataaddInnerComponent, attachUi, callCommand, callCommand, getInnerComponent, getRootComponent, initInternalInnerComponents, listen, listen, listen, release, returnData, sendWave, sendWave, setRootComponent, setup, unlistengetCommand, getCommand, getFirstKeyPart, getKey, getKeyPart, getListKeyPart, getLocalFacade, getModel, getModel, getSecondKeyPart, getService, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoHideView, doShowView, getRootNode, getViewaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavioraddInnerComponent, getInnerComponent, getRootComponent, listen, listen, listen, sendWave, sendWave, setRootComponent, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setupprivate Slide slide
private int stepPosition
private int slideNumber
private javafx.animation.Animation hideAnimation
private javafx.animation.Animation showAnimation
private AbstractSlideModel.SlideFlow currentFlow
public Slide getSlide()
public void setSlide(Slide slide)
slide - The slide to set.public AbstractSlideModel.SlideFlow getCurrentFlow()
public boolean isForwardFlow()
public void setCurrentFlow(AbstractSlideModel.SlideFlow currentFlow)
currentFlow - The currentFlow to set.protected void initModel()
initModel in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>protected void bind()
bind in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>protected void initInnerComponents()
initInnerComponents in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>protected void showView()
showView in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>protected void hideView()
hideView in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>protected void processWave(org.jrebirth.af.api.wave.Wave wave)
processWave in class DefaultModel<M extends AbstractSlideModel<M,V,S>,V extends AbstractSlideView<?,?,?>>public int getSlideNumber()
public void setSlideNumber(int slideNumber)
setSlideNumber in interface SlideModel<S extends SlideStep>slideNumber - The slideNumber to set.public int getStepPosition()
public boolean hasStep()
private boolean hasStep(SlideContent slideContent)
slideContent - the content to checkprotected abstract S[] initializeSlideStep()
public boolean nextStep()
nextStep in interface SlideModel<S extends SlideStep>public boolean previousStep()
previousStep in interface SlideModel<S extends SlideStep>public SlideContent getDefaultContent()
public SlideContent getContent(SlideStep slideStep)
slideStep - the step to buildpublic abstract void showSlideStep(S slideStep)
showSlideStep in interface SlideModel<S extends SlideStep>slideStep - the step to showpublic javafx.animation.Animation getShowAnimation()
getShowAnimation in interface SlideModel<S extends SlideStep>public javafx.animation.Animation getHideAnimation()
getHideAnimation in interface SlideModel<S extends SlideStep>private javafx.animation.Animation buildAnimation(AnimationType animationType)
animationType - the type of the animation to buildprivate javafx.animation.Animation buildSliding()
private javafx.animation.Animation buildScaleAnimation(double from,
double to,
boolean show)
from - scale ratio used as from valueto - scale ratio used as to valueshow - if true a fade in transition will be performed, otherwise fade outprotected javafx.animation.Animation buildHorizontalAnimation(double fromX,
double toX,
double fromY,
double toY)
fromX - the x starting point coordinatetoX - the x arrival point coordinatefromY - the y starting point coordinatetoY - the y arrival point coordinateprivate double findAngle(double fromX,
double fromY,
double toX,
double toY)
fromX - the x starting point coordinatetoX - the x arrival point coordinatefromY - the y starting point coordinatetoY - the y arrival point coordinateCopyright © 2011–2015 JRebirth OSS. All rights reserved.