MTab

Description

MTab is a tab container. Its parent must be a MTabFolder.

A simple example

 1    //MTab's parent, MTabFolder
 2    MTabFolder folder = new MTabFolder(container);
 3
 4    /The first tab in column mode    
 5    MTab tab1 = new MTab(folder, "Tab 1");
 6    new MLabel(tab1, "content");
 7    new MLabel(tab1, "content");
 8    new MLabel(tab1, "content...");
 9
10    //The second tab in row mode    
11    MTab tab2 = new MTab(folder, MContainer.ROW_MODE, "Tab 2");
12    new MLabel(tab2, "content");
13    new MLabel(tab2, "content");
14    new MLabel(tab2, "content...");

API

  • Constructors
MTab(MTabFolder parent, int mode, String title) Constructs a new instance of this class given its parent container,mode(Column mode or Row mode) and title
MTab(MTabFolder parent, String title) Constructs a new instance of this class given its parent container and title
  • Methods
String getTitle() Gets the Mtab's title
void setTitle(String title) Sets the Mtab's title
  • See also superclasses :
    • MContainer
    • MonoiContainer, MonoiComponent and MonoiDataComponent

MTab.jpg (19.3 kB) Frédéric ESNAULT, 02/24/2012 04:33 pm