Home
 
Home
Singleton Classes PDF Print E-mail
Written by admin   
Thursday, 24 July 2008 16:35

Often, there is a requirement that you would want to create only one instance of the class. To put it in other words, you do not want any one to create instance of the class if already created. This is a common requirement in many application designs. So how do we achieve this ?

This can be achieved using the singleton pattern. In this design pattern, we will declare the constructor as a 'Private' one. Private constructor !! Is that possible?

Last Updated ( Thursday, 24 July 2008 16:54 )
Read more...
 
Docking Container PDF Print E-mail
Written by mastram   
Sunday, 29 June 2008 10:25

A docking container can attach one or more areas to a screen. You can attach an area to one or more edges of the screen. The original screen is made smaller to attach this docking container. You can re-size the docking container.

Tip: The containers are attached from inside out. This means that when you attach another container, it is attached to the edge of the screen. The 1st container is pushed outwards. You can attach as many containers as you want. However, it is not recommended to attach too many containers in one screen. Generally a docking container is attached to the left of the screen.

Last Updated ( Monday, 30 June 2008 05:36 )
Read more...
 
Loop on Internal tables PDF Print E-mail
Written by Administrator   
Monday, 14 July 2008 15:27

Often loop on internal tables is expensive operation, specially when you have lots of entries in the internal table and if looping on internal tables is frequently required.

The loops on internal can be optimized to a great extent by declaring internal tables appropriately. Using SORTED tables in such cases is of great help. The following example explains the usage of SORTED tables.

Last Updated ( Monday, 14 July 2008 16:00 )
Read more...
 
Custom containers PDF Print E-mail
Written by mastram   
Saturday, 21 June 2008 06:05

In previous chapter we learned how to create a control area on the screen. In this chapter we will tell you how to create a custom container object and attach it to the control area on the screen. Before we go into creation of containers, lets understand the class hierarchy of the containers. The below diagram shows the hierarchical relationship.

Last Updated ( Saturday, 05 July 2008 03:31 )
Read more...
 

Advertisement

 

Google Search

Advertisement