DEF_COMPONENTNAME
MlTabPanel
DEF_SUPERCLASS
Panel
DEF_SUPERCOMPONENT

DEF_PACKAGE
plugins
microline
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY

DEF_BITMAP

DEF_THUMBNAIL_UP

DEF_THUMBNAIL_DOWN

DEF_BASE
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
DEF_ENDLIST
DEF_METHOD
public Component addTab(String name)
// Adds a tab. The name passed defines the tab's label as well as the page name of the tab. 
DEF_ENDLIST
DEF_METHOD
public Component addTab(String name, Image image)
// Adds a tab containing a label and an image. The name passed defines the tab's label as well as the
// page name of the tab. 
DEF_ENDLIST
DEF_METHOD
public Component add(String name, Component comp)
// Adds a tab managing the component comp. The name passed defines the tab's label as well as the
// page name of the tab. When the tab is selected, the given component will be shown. 
DEF_ENDLIST
DEF_METHOD
public synchronized Component add(String pageName, String tabLabel, Image tabImage,
Component comp)
// Adds a tab managing the component comp. The comp parameter may be null, in which case the tab
// will not manage any component. The pageName parmaeter defines the page name of the tab. This
// name is used to uniquely identify the tab. The tabLabel is the label to display in the tab and
// tabImage defines an Image to appear in the tab. Either of these values may be null. 
DEF_ENDLIST
DEF_METHOD
public Object getTabValue(String pageName, String name)
// Returns the value of the the tab resource for the tab with the given pageName. The type of the value
// returned is determined by the resource. Integer values will return as Integer objects, boolean values
// as Boolean objects, etc. 
DEF_ENDLIST
DEF_METHOD
public void remove(String pageName)
// Removes the tab and any component managed by the tab for the given pageName. 
DEF_ENDLIST
DEF_METHOD
public synchronized void remove(int position)
// Removes the tab and any component managed by the tab at the given position in the TabPanel. 
DEF_ENDLIST
DEF_METHOD
public void showPage(String pageName)
// Shows the page with the pageName passed. An ACTION_EVENT will be posted if the newly
// activated page is not the same as the current active page. 
DEF_ENDLIST
DEF_METHOD
public synchronized void showPage(String pageName, boolean notify)
// Shows the page with the pageName passed. If notify is true, an ACTION_EVENT will be posted
// if the newly activated page is not the same as the current active page. 
DEF_ENDLIST
DEF_METHOD
public synchronized void showPage(int position, boolean notify)
// Shows the page at the given position. If notify is true, an ACTION_EVENT will be posted if the
// newly activated page is not the same as the current active page. 
DEF_ENDLIST
DEF_ENDCOMPONENT
DEF_COMPONENTNAME
MicrolineTabs
DEF_SUPERCLASS
MlTabPanel
DEF_SUPERCOMPONENT

DEF_PACKAGE
plugins
tabs
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY
MicroLine
DEF_BITMAP
tabm.bmp
DEF_THUMBNAIL_UP
mltab.bmp
DEF_THUMBNAIL_DOWN
2-mltab.bmp
DEF_VISUAL
DEF_TOOL
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A class that produces a tabpanel.
// This component has much more functionality which is described in
// the included Microline documentation in /docs/microline.
// This third party component was created by MicroLine.  They can be contacted at:
// http://www.mlsoft.com
//  Variable Declarations
  MlResources res;      
  int numTabs;
  int place;
DEF_ENDLIST
DEF_METHOD
void initialize() {
    int i;    
    res = new MlResources();    
    setLayout(new BorderLayout());
    setBackground(new Color(192, 192, 192));
    if (place == 1)  {
      res.add("tabPlacement", "TABS_ON_TOP");  
    }
    if (place == 2)  {
      res.add("tabPlacement", "TABS_ON_BOTTOM");  
    }    
    if (place == 3)  {
      res.add("tabPlacement", "TABS_ON_LEFT");  
    }
    if (place == 4)  {
      res.add("tabPlacement", "TABS_ON_RIGHT");  
    }
    setValues(res);
    setValue("marginWidth", 4);
    for (i = 1; i <= numTabs; i++)
                add("Tab " + i, new Label("Page " + i, Label.CENTER));
    }
DEF_ENDLIST
DEF_METHOD
public void setPlacement(int aParam) {
    place = aParam;    
  }
DEF_ENDLIST
DEF_METHOD
public void setTabs(int tabsparameter) {
    numTabs = tabsparameter;     
}
DEF_ENDLIST
DEF_PROPERTY
Tabs Placement
int
setPlacement(AVALUE);
AVALUE = AVALUE;
3
DEF_ENDLIST
DEF_PROPERTY
#ofTabs
int
setTabs(AVALUE);
AVALUE = AVALUE;
3
DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
0
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
0
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
175
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
285
DEF_ENDLIST
DEF_ENDCOMPONENT
