Package com.jbstrap.ui
Interface Animatable<T extends Component<?>>
- Type Parameters:
T- The component type
- All Known Implementing Classes:
ActivityStream,ActivityStreamItem,Badge,BaseLoginPage,BasePage,Blockquote,Breadcrumb,Button,CheckboxItem,CodeViewer,ColorPicker,ComboboxItem,Container,ContextMenu,DatePicker,DateRangePicker,DropDownButton,DualListBox,FileItem,FileMiniature,Form,Header,HorizontalSplitter,IBox,Image,IntegerItem,Link,ListBox,ListGrid,ListItem,LoadButton,MenuBar,ModalWindow,NavBar,NavBarItem,NumberItem,Paragraph,PasswordItem,ProgressBar,RadioButtonItem,Row,SelectorItem,Small,Span,Sparkline,StaticTextItem,SwitchItem,Tab,Table,TableCell,TableHeader,TableRow,TabPage,TextFilter,TextItem,Timeline,TimelineItem,Toolbar,Treeview,TreeviewNode,UI.RootLayout,VerticalSplitter,Wizard,WizardStep
public interface Animatable<T extends Component<?>>
Components that can have animations
The JBStrap framework offers multiple animations, that are usable by most components. Components that implement this interface, can have animations. The interface provides the placement of the animation event handler and sets the animation.
The component can be animated, by setting the animation type. After that, the component will play an animation
when it shows up, or disappears. These components can be handled by the AnimationStart
or AnimationEnd events, that will run when the animation starts and ends.
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault TAdds an animation end event handler to the component.default TAdds an animation start event handler to the component.default AnimationGets the component's animation typedefault TRemoves animation from the componentdefault TsetAnimation(Animation animation) Sets the animation type on the component
-
Method Details
-
setAnimation
Sets the animation type on the component- Parameters:
animation- The animation type. The usable animation types can be found in theAnimationenum- Returns:
- The component
-
getAnimation
Gets the component's animation type- Returns:
- The animation type that is assigned to the component
-
removeAnimation
Removes animation from the component- Returns:
- The component
-
addAnimationEndHandler
Adds an animation end event handler to the component. This handler is used, when the animation has ended.- Parameters:
handler- TheAnimationEndEventHandlerimplementation- Returns:
- The component
- See Also:
-
addAnimationStartHandler
Adds an animation start event handler to the component. This handler is used, when the animation has starts.- Parameters:
handler- TheAnimationStartEventHandlerimplementation- Returns:
- The component
- See Also:
-