LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LySplitter

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.LySplitter
All Implemented Interfaces:
LyGetConstraintInterface, LyGetIdInterface, LyPdfInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LySplitter
extends LyContainer
implements LyGetIdInterface, LyGetConstraintInterface

The LySplitter class is a generated Java implementation that corresponds to the element SPLITTER of the descriptive grammar of the views (views.dtd). <SPLITTER> : Panels splitter A container of panel type with splitter allows displaying different panels that are splitted by vertical or horizontal separation bars. These bars can be moved so as to allocating more or less place to each of the panels. The minimum number of panels that is required is two panels. There is no constraint on the maximum number of panels allowed in such a container. Including such containers in containers of same type allows getting windows combining vertical and horizontal separators.

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

Nested Class Summary
static class LySplitter.ActivePart
          Possible values for attribute 'activePart'.
static class LySplitter.Style
          Possible values for attribute 'style'.
 
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
LySplitter()
          Default constructor.
 
Method Summary
 void addPanel(LyPanel panel)
          Adds a sub-component panel.
 LyComponent cloneComponent()
          Method for cloning a component.
 LySplitter.ActivePart getActivePart()
          Gets value of activePart.
static LySplitter.ActivePart getActivePart(java.lang.String token)
          Utility method to get activePart value from a string.
 java.lang.String getColor()
          Gets value of color.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getFirstTooltip()
          Gets value of firstTooltip.
 java.lang.String getId()
          Gets value of id.
 LyPanel getPanel(int i)
          Get sub-component Panel of index i.
 int getPanelCount()
          Get sub-component Panel count.
 java.lang.String getSecondTooltip()
          Gets value of secondTooltip.
 java.lang.String getSizes()
          Gets value of sizes.
 LySplitter.Style getStyle()
          Gets value of style.
static LySplitter.Style getStyle(java.lang.String token)
          Utility method to get style value from a string.
 LySplitter getTemplate()
          Gets value of template.
 void insertPanel(LyPanel panel, int pos)
          Inserts a sub-component panel at given position.
 boolean isDefaultColor()
          Checks whether the color attribute is valuated to the default value.
 boolean isResizable()
          Checks if value of attribute resizable is set.
 void setActivePart(LySplitter.ActivePart activePart)
          Sets attribute activePart 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 setFirstTooltip(java.lang.String firstTooltip)
          Initializes attribute firstTooltip to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setResizable(boolean resizable)
          Initializes attribute resizable to the given value.
 void setSecondTooltip(java.lang.String secondTooltip)
          Initializes attribute secondTooltip to the given value.
 void setSizes(java.lang.String sizes)
          Sets attribute sizes to the given value.
 void setStyle(LySplitter.Style style)
          Initializes attribute style to the given value.
 void setTemplate(LySplitter 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

LySplitter

public LySplitter()
Default constructor.

Method Detail

getStyle

public static final LySplitter.Style getStyle(java.lang.String token)
Utility method to get style value from a string.

Parameters:
token - Token string
Returns:
Style value corresponding to this token

getActivePart

public static final LySplitter.ActivePart getActivePart(java.lang.String token)
Utility method to get activePart value from a string.

Parameters:
token - Token string
Returns:
ActivePart value corresponding to this token

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 LySplitter getTemplate()
Gets value of template.

Returns:
value of template.

getStyle

public LySplitter.Style getStyle()
Gets value of style.

Returns:
value of style.

getActivePart

public LySplitter.ActivePart getActivePart()
Gets value of activePart.

Returns:
value of activePart.

getSizes

public java.lang.String getSizes()
Gets value of sizes.

Returns:
value of sizes.

isResizable

public boolean isResizable()
Checks if value of attribute resizable is set.

Returns:
true if resizable is set, 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.

getFirstTooltip

public java.lang.String getFirstTooltip()
Gets value of firstTooltip.

Returns:
value of firstTooltip.

getSecondTooltip

public java.lang.String getSecondTooltip()
Gets value of secondTooltip.

Returns:
value of secondTooltip.

getPanel

public LyPanel getPanel(int i)
Get sub-component Panel of index i.

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

getPanelCount

public int getPanelCount()
Get sub-component Panel count.

Returns:
sub-component Panel 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(LySplitter template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setStyle

public void setStyle(LySplitter.Style style)
Initializes attribute style to the given value.

Parameters:
style - New value of style.
Throws:
java.lang.IllegalArgumentException - if style parameter is null.

setActivePart

public void setActivePart(LySplitter.ActivePart activePart)
Sets attribute activePart to the given value.

Parameters:
activePart - New value of activePart.
Throws:
java.lang.IllegalArgumentException - if activePart parameter is null.

setSizes

public void setSizes(java.lang.String sizes)
Sets attribute sizes to the given value.

Parameters:
sizes - New value of sizes.

setResizable

public void setResizable(boolean resizable)
Initializes attribute resizable to the given value.

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

setColor

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

Parameters:
color - New value of color.

setFirstTooltip

public void setFirstTooltip(java.lang.String firstTooltip)
Initializes attribute firstTooltip to the given value.

Parameters:
firstTooltip - New value of firstTooltip.

setSecondTooltip

public void setSecondTooltip(java.lang.String secondTooltip)
Initializes attribute secondTooltip to the given value.

Parameters:
secondTooltip - New value of secondTooltip.

addPanel

public void addPanel(LyPanel panel)
Adds a sub-component panel.

Parameters:
panel - The panel to add to panels list.

insertPanel

public void insertPanel(LyPanel panel,
                        int pos)
Inserts a sub-component panel at given position.

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

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