LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyTabs

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyContainer
                  extended by leon.view.LyTabs
All Implemented Interfaces:
LyGetConstraintInterface, LyGetIdInterface, LyPdfInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyTabs
extends LyContainer
implements LyGetIdInterface, LyGetConstraintInterface

The LyTabs class is a generated Java implementation that corresponds to the element TABS of the descriptive grammar of the views (views.dtd). <TABS> : Tabs list A container of tab type allows displaying different panels in the same graphical area, only one panel being visible at once. Each panel is actually contained in a tab, the container being made up of a set of tabs. The displaying that corresponds to a container of tab type must present two areas: a first one that shows names of the different tabs and a second one that allows displaying the panels.

See Also:
See also tag TABS of grammar leon_views.dtd.

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyTabs()
          Default constructor.
 
Method Summary
 void addTab(LyTab tab)
          Adds a sub-component tab.
 LyComponent cloneComponent()
          Method for cloning a component.
 java.lang.String getColor()
          Gets value of color.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getFont()
          Gets value of font.
 java.lang.String getFontColor()
          Gets value of fontColor.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getSelectedColor()
          Gets value of selectedColor.
 java.lang.String getSelectedTab()
          Gets value of selectedTab.
 LyTab getTab(int i)
          Get sub-component Tab of index i.
 int getTabCount()
          Get sub-component Tab count.
 LyTabs getTemplate()
          Gets value of template.
 void insertTab(LyTab tab, int pos)
          Inserts a sub-component tab at given position.
 boolean isClosable()
          Checks if value of attribute closable is set.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isDefaultFont()
          Checks whether the font attribute is valuated to the default value.
 boolean isDefaultFontColor()
          Checks whether the fontColor attribute is valuated to the default value.
 boolean isDefaultSelectedColor()
          Checks whether the selectedColor attribute is valuated to the default value.
 void removeTab(LyTab tab)
          Removes a sub-component tab.
 void setClosable(boolean closable)
          Initializes attribute closable to the given value.
 void setColor(java.lang.String color)
          Initializes attribute color to the given value.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setFont(java.lang.String font)
          Initializes attribute font to the given value.
 void setFontColor(java.lang.String fontColor)
          Initializes attribute fontColor to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setSelectedColor(java.lang.String selectedColor)
          Initializes attribute selectedColor to the given value.
 void setSelectedTab(java.lang.String selectedTab)
          Sets attribute selectedTab to the given value.
 void setTemplate(LyTabs template)
          Initializes attribute template to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.view.LyPanel
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, setBeanComponent, setBeanDatas, setFieldValue, setLabel, updateViewContent, validateInput
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, freeze, getBounds, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyTabs

public LyTabs()
Default constructor.

Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyTabs getTemplate()
Gets value of template.

Returns:
value of template.

getSelectedTab

public java.lang.String getSelectedTab()
Gets value of selectedTab.

Returns:
value of selectedTab.

isClosable

public boolean isClosable()
Checks if value of attribute closable is set.

Returns:
true if closable is set, false otherwise.

getFont

public java.lang.String getFont()
Gets value of font.

Returns:
value of font.

isDefaultFont

public boolean isDefaultFont()
Checks whether the font attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getColor

public java.lang.String getColor()
Gets value of color.

Returns:
value of color.

isDefaultColor

public boolean isDefaultColor()
Checks whether the color attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getFontColor

public java.lang.String getFontColor()
Gets value of fontColor.

Returns:
value of fontColor.

isDefaultFontColor

public boolean isDefaultFontColor()
Checks whether the fontColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSelectedColor

public java.lang.String getSelectedColor()
Gets value of selectedColor.

Returns:
value of selectedColor.

isDefaultSelectedColor

public boolean isDefaultSelectedColor()
Checks whether the selectedColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getTab

public LyTab getTab(int i)
Get sub-component Tab of index i.

Parameters:
i - the index of the Tab to get.
Returns:
sub-component Tab of index i.

getTabCount

public int getTabCount()
Get sub-component Tab count.

Returns:
sub-component Tab count.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyTabs template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setSelectedTab

public void setSelectedTab(java.lang.String selectedTab)
Sets attribute selectedTab to the given value.

Parameters:
selectedTab - New value of selectedTab.

setClosable

public void setClosable(boolean closable)
Initializes attribute closable to the given value.

Parameters:
closable - Boolean indicating if attribute closable is set or unset.

setFont

public void setFont(java.lang.String font)
Initializes attribute font to the given value.

Parameters:
font - New value of font.

setColor

public void setColor(java.lang.String color)
Initializes attribute color to the given value.

Parameters:
color - New value of color.

setFontColor

public void setFontColor(java.lang.String fontColor)
Initializes attribute fontColor to the given value.

Parameters:
fontColor - New value of fontColor.

setSelectedColor

public void setSelectedColor(java.lang.String selectedColor)
Initializes attribute selectedColor to the given value.

Parameters:
selectedColor - New value of selectedColor.

addTab

public void addTab(LyTab tab)
Adds a sub-component tab.

Parameters:
tab - The tab to add to tabs list.

insertTab

public void insertTab(LyTab tab,
                      int pos)
Inserts a sub-component tab at given position.

Parameters:
tab - The tab to add to tabs list.
pos - Position where the sub-component is inserted.

removeTab

public void removeTab(LyTab tab)
Removes a sub-component tab.

Parameters:
tab - The tab to remove to tabs list.
Throws:
java.lang.IllegalStateException - if tabs list is empty.
java.lang.IllegalArgumentException - if tabs list doesn't contain tab.

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com