LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyHeader

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

public class LyHeader
extends LyComponent
implements LyGetIdInterface, LyGetLabelInterface

The LyHeader class is a generated Java implementation that corresponds to the element HEADER of the descriptive grammar of the views (views.dtd). <HEADER> : Header cell A header is the top label of column in a table.

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

Nested Class Summary
static class LyHeader.Align
          Possible values for attribute 'align'.
 
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
LyHeader()
          Default constructor.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 LyHeader.Align getAlign()
          Gets value of align.
static LyHeader.Align getAlign(java.lang.String token)
          Utility method to get align value from a string.
 java.lang.String getBorderColor()
          Gets value of borderColor.
 int getBorderWidth()
          Gets value of borderWidth.
 double getColumnWidth()
          Gets value of columnWidth.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getImage()
          Gets value of image.
 java.lang.String getLabel()
          Gets value of label.
 java.lang.String getOverview()
          Gets value of overview.
 int getSort()
          Gets value of sort.
 LyHeader getTemplate()
          Gets value of template.
 java.lang.String getTooltip()
          Gets value of tooltip.
 boolean isDefaultBorderColor()
          Checks whether the borderColor attribute is valuated to the default value.
 boolean isDefaultImage()
          Checks whether the image attribute is valuated to the default value.
 boolean isFixed()
          Checks if value of attribute fixed is set.
 boolean isHidden()
          Checks if value of attribute hidden is set.
 boolean isIncreasing()
          Checks if value of attribute increasing is set.
 boolean isResizable()
          Checks if value of attribute resizable is set.
 boolean isSortable()
          Checks if value of attribute sortable is set.
 boolean isWrap()
          Checks if value of attribute wrap is set.
 void setAlign(LyHeader.Align align)
          Initializes attribute align to the given value.
 void setBorderColor(java.lang.String borderColor)
          Sets attribute borderColor to the given value.
 void setBorderWidth(int borderWidth)
          Sets attribute borderWidth to the given value.
 void setColumnWidth(double columnWidth)
          Sets attribute columnWidth to the given value.
 void setFixed(boolean fixed)
          Sets attribute fixed to the given value.
 void setHidden(boolean hidden)
          Initializes attribute hidden to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setImage(java.lang.String image)
          Initializes attribute image to the given value.
 void setIncreasing(boolean increasing)
          Sets attribute increasing to the given value.
 void setLabel(java.lang.String label)
          Initializes attribute label to the given value.
 void setOverview(java.lang.String overview)
          Initializes attribute overview to the given value.
 void setResizable(boolean resizable)
          Initializes attribute resizable to the given value.
 void setSort(int sort)
          Sets attribute sort to the given value.
 void setSortable(boolean sortable)
          Initializes attribute sortable to the given value.
 void setTemplate(LyHeader template)
          Initializes attribute template to the given value.
 void setTooltip(java.lang.String tooltip)
          Initializes attribute tooltip to the given value.
 void setWrap(boolean wrap)
          Initializes attribute wrap 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.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

LyHeader

public LyHeader()
Default constructor.

Method Detail

getAlign

public static final LyHeader.Align getAlign(java.lang.String token)
Utility method to get align value from a string.

Parameters:
token - Token string
Returns:
Align 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 LyHeader getTemplate()
Gets value of template.

Returns:
value of template.

getLabel

public java.lang.String getLabel()
Gets value of label.

Specified by:
getLabel in interface LyGetLabelInterface
Returns:
value of label.

getImage

public java.lang.String getImage()
Gets value of image.

Returns:
value of image.

isDefaultImage

public boolean isDefaultImage()
Checks whether the image attribute is valuated to the default value.

Returns:
True if default, false otherwise.

getSort

public int getSort()
Gets value of sort.

Returns:
value of sort.

isIncreasing

public boolean isIncreasing()
Checks if value of attribute increasing is set.

Returns:
true if increasing is set, false otherwise.

isSortable

public boolean isSortable()
Checks if value of attribute sortable is set.

Returns:
true if sortable is set, false otherwise.

isResizable

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

Returns:
true if resizable is set, false otherwise.

isFixed

public boolean isFixed()
Checks if value of attribute fixed is set.

Returns:
true if fixed is set, false otherwise.

isWrap

public boolean isWrap()
Checks if value of attribute wrap is set.

Returns:
true if wrap is set, false otherwise.

isHidden

public boolean isHidden()
Checks if value of attribute hidden is set.

Returns:
true if hidden is set, false otherwise.

getAlign

public LyHeader.Align getAlign()
Gets value of align.

Returns:
value of align.

getTooltip

public java.lang.String getTooltip()
Gets value of tooltip.

Returns:
value of tooltip.

getOverview

public java.lang.String getOverview()
Gets value of overview.

Returns:
value of overview.

getColumnWidth

public double getColumnWidth()
Gets value of columnWidth.

Returns:
value of columnWidth.

getBorderWidth

public int getBorderWidth()
Gets value of borderWidth.

Returns:
value of borderWidth.

getBorderColor

public java.lang.String getBorderColor()
Gets value of borderColor.

Returns:
value of borderColor.

isDefaultBorderColor

public boolean isDefaultBorderColor()
Checks whether the borderColor attribute is valuated to the default value.

Returns:
True if default, false otherwise.

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(LyHeader template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setLabel

public void setLabel(java.lang.String label)
Initializes attribute label to the given value.

Parameters:
label - New value of label.

setImage

public void setImage(java.lang.String image)
Initializes attribute image to the given value.

Parameters:
image - New value of image.

setSort

public void setSort(int sort)
Sets attribute sort to the given value.

Parameters:
sort - New value of sort.

setIncreasing

public void setIncreasing(boolean increasing)
Sets attribute increasing to the given value.

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

setSortable

public void setSortable(boolean sortable)
Initializes attribute sortable to the given value.

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

setResizable

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

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

setFixed

public void setFixed(boolean fixed)
Sets attribute fixed to the given value.

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

setWrap

public void setWrap(boolean wrap)
Initializes attribute wrap to the given value.

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

setHidden

public void setHidden(boolean hidden)
Initializes attribute hidden to the given value.

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

setAlign

public void setAlign(LyHeader.Align align)
Initializes attribute align to the given value.

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

setTooltip

public void setTooltip(java.lang.String tooltip)
Initializes attribute tooltip to the given value.

Parameters:
tooltip - New value of tooltip.

setOverview

public void setOverview(java.lang.String overview)
Initializes attribute overview to the given value.

Parameters:
overview - New value of overview.

setColumnWidth

public void setColumnWidth(double columnWidth)
Sets attribute columnWidth to the given value.

Parameters:
columnWidth - New value of columnWidth.

setBorderWidth

public void setBorderWidth(int borderWidth)
Sets attribute borderWidth to the given value.

Parameters:
borderWidth - New value of borderWidth.

setBorderColor

public void setBorderColor(java.lang.String borderColor)
Sets attribute borderColor to the given value.

Parameters:
borderColor - New value of borderColor.

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