Code example for Stack

Methods: push, size

0
	 */ 
	public void push(ScreenWidget screen)
	{ 
		// Do not animate the first push since this is already animated 
		// by the show of the stack screen (if shown with transition). 
		if ( 0 != m_screenStack.size() )
		{ 
			ScreenTransitions.applyScreenTransition(screen.getRootView(),
					m_pushTransitionType, m_pushTransitionDuration, true);
		} 
 
		m_screenStack.push( screen );
 
		getView( ).removeAllViews( ); 
 
		//getView( ).addView( screen.getView( ) ); 
		screen.getRootView( ).clearFocus();
		getView( ).addView( screen.getRootView( ) );
 
		// Add the screen to the children list. 
		screen.setParent( this );