MSection

Description

A MSection is a container corresponding to an area with a title. It can be expandable on user action.

A simple example

 1    // A MSection with a MLabel
 2    MSection section1 = new MSection(container, "Section 1");
 3    new MLabel(section1, "Content");
 4
 5    //A new column
 6    container.newColumn();
 7
 8    //Another expandable MSection with a border and a MLabel
 9    MSection section2 = new MSection(container, "Section 2");
10    section2.setBorder(true);
11    section2.setExpandable(true);
12    new MLabel(section2, "Content");

API

  • Constructors
MSection(MonoiContainer parent, int mode, String title) Constructs a new instance of this class given its parent container ,mode(column mode or row mode) and title
MSection(MonoiContainer parent, int mode, String title), String description Constructs a new instance of this class given its parent container,mode(column mode or row mode) and description(section's description)
MSection(MonoiContainer parent, int mode, String title, boolean expanded) Constructs a new instance of this class given its parent container,mode(column mode or row mode) ,title and expanded (the section is expended or not)
MSection(MonoiContainer parent, String title, boolean expanded) Constructs a new instance of this class given its parent container ,title and expanded(the section is expended or not)
MSection(MonoiContainer parent, String title) Constructs a new instance of this class given its parent container and title
  • Methods
String getTitle() Gets the title of section
int getTitleSeparator() Gets titleSeparator
Control getInternalControl() Gets the internal Control
boolean isExpandable() True if it's expandable
void setDescription(String description) Sets the section's description
void setExpanded(boolean expanded) Sets the section who is expanded
void setExpandable(boolean expandable) Sets the section who is expandable
void setSize(int width, int height) Sets the section's size
void setTitle(String title) Sets the section's title
void setTitleSeparator(int titleSeparator) Sets the titleSeparator
String toString() Gets the Component's value of String
  • See also superclasses :
    • MContainer
    • MonoiContainer, MonoiComponent and MonoiDataComponent

MSection.jpg (11 kB) Frédéric ESNAULT, 02/24/2012 04:17 pm