Code example for Stack

Methods: empty, get, peek, size

0
		screen.setParent( this );
		m_children.add( m_children.size( ), screen );
	} 
 
	private void sendPopEvent() { 
		if( m_screenStack.empty( ) )
		{ 
			return; 
		} 
 
		// Only pop and send events if the stack is not empty 
		int poppedToScreenHandle = getHandle( );
		if( m_screenStack.size( ) >= 2 )
		{ 
			// Get the previous screen before the last one. 
			poppedToScreenHandle = m_screenStack.get(m_screenStack.size()-2).getHandle();
		} 
 
		EventQueue.getDefault( ).postWidgetStackScreenPoppedEvent( 
				getHandle(), 
				m_screenStack.peek( ).getHandle( ),
				poppedToScreenHandle );
	} 
 
	/** 
	 * Pops a screen from the screen stack, and displays