LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyHeaders

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyHeadersBase
          extended by leon.view.LyHeaders
All Implemented Interfaces:
LyGetIdInterface, LyGetLabelInterface

public class LyHeaders
extends LyHeadersBase

The LyHeaders class implements generic behavior for the HEADERS components as described in views.dtd regardless of the requested target (win, swing, html...). It represents headers.

See Also:
LyComponent

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
LyHeaders()
          Constructor with all required attributes.
 
Method Summary
 LyHeader getHeader(int i)
          Return sub-header at given position.
 int getHeaderCount()
          The total number of sub-header.
 LyHeaders getHeaders(int i)
          Return sub-headers at given position.
 int getHeadersCount()
          The total number of sub-headers.
 java.util.Vector<LyHeaders> getParentHeadersList()
          Return the parent headers list.
 LyTable getParentTable()
          Return the parent table.
 void insertHeader(LyHeader header, int pos)
          Inserts a sub-component header at given position.
 void insertHeaders(LyHeaders headers, int pos)
          Inserts a sub-component headers at given position.
 boolean isHierarchical()
          Indicates if the headers component has sub-headers components.
 boolean isReorderingAllowed()
          Indicates whether headers may be reordered.
 void setReorderingAllowed(boolean reorder)
          Sets whether headers may be reordered.
 
Methods inherited from class leon.view.LyHeadersBase
addHeader, addHeaders, cloneComponent, getAlign, getColor, getComponent, getComponentCount, getFont, getFontColor, getId, getLabel, getOverview, getSortableFont, getTemplate, getTooltip, isDefaultColor, isDefaultFont, isDefaultFontColor, isDefaultSortableFont, setAlign, setColor, setFont, setFontColor, setId, setLabel, setOverview, setSortableFont, setTemplate, setTooltip, writeXml
 
Methods inherited from class leon.view.LyComponent
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getBounds, getChild, getChildCount, 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

LyHeaders

public LyHeaders()
Constructor with all required attributes.

Method Detail

insertHeader

public void insertHeader(LyHeader header,
                         int pos)
Inserts a sub-component header at given position.

Overrides:
insertHeader in class LyHeadersBase
Parameters:
header - The header to add to components list.
pos - Position where the sub-component is inserted.

insertHeaders

public void insertHeaders(LyHeaders headers,
                          int pos)
Inserts a sub-component headers at given position.

Overrides:
insertHeaders in class LyHeadersBase
Parameters:
headers - The headers to add to components list.
pos - Position where the sub-component is inserted.

getParentHeadersList

public java.util.Vector<LyHeaders> getParentHeadersList()
Return the parent headers list.

Returns:
the parent headers list

getParentTable

public LyTable getParentTable()
Return the parent table.

Returns:
the parent table

getHeader

public LyHeader getHeader(int i)
Return sub-header at given position.

Parameters:
i - the position of the sub-header
Returns:
the sub-header at the given position

getHeaders

public LyHeaders getHeaders(int i)
Return sub-headers at given position.

Parameters:
i - the position of the sub-header
Returns:
the sub-header at the given position

getHeaderCount

public int getHeaderCount()
The total number of sub-header.

Returns:
the total number of sub-header

getHeadersCount

public int getHeadersCount()
The total number of sub-headers.

Returns:
the total number of sub-headers

isHierarchical

public boolean isHierarchical()
Indicates if the headers component has sub-headers components.

Returns:
true if headers is hierarchical, false otherwise

setReorderingAllowed

public void setReorderingAllowed(boolean reorder)
Sets whether headers may be reordered.

Parameters:
reorder - true if headers may be reordered, false otherwise.

isReorderingAllowed

public boolean isReorderingAllowed()
Indicates whether headers may be reordered.

Returns:
true if headers may be reordered, false otherwise.

(c) January 2013 - W4 S.A.

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