LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyRelation

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyRelationBase
              extended by leon.view.LyRelation
All Implemented Interfaces:
LyGetIdInterface, LyUpdateViewContentInterface

public class LyRelation
extends LyRelationBase

The LyRelation class implements generic behavior for the RELATION components as described in views.dtd regardless of the requested target (win, swing, html...). It represents a relation.

See Also:
LyRelationBase

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.view.LyComponent
LyComponent.EventType
 
Field Summary
static java.lang.String __VERSION
           
static int DEFAULT_WIDTH_EDITTABLE
          default width value in edit table.
 
Fields inherited from class leon.view.LyComponent
_nbComponents, INIT_RESOURCE_ID, INTERNAL_ID_SEP, REWRITING_MODE, SEP_ID
 
Constructor Summary
LyRelation()
          Constructor with all required attributes.
 
Method Summary
 int getListWidth()
          Returns the width of the list for this relation.
 int getMaxWidth()
          Returns the maximum width of this relation.
 int getMinWidth()
          Returns the minimum width of this relation.
 void selectLink(int i, boolean select)
           
 void selectLink(java.lang.String id, boolean select)
           
 void setFocus()
           
 void setIdle(boolean idle)
           
 void setListWidth(int width)
          Sets the width of the list for this relation.
 void setMaxWidth(int width)
          Sets the maximum width of this relation.
 void setMinWidth(int width)
          Sets the minimum width of this relation.
 
Methods inherited from class leon.view.LyRelationBase
addLink, cloneComponent, getArrowDownBig, getAutoCompletionMax, getBean, getDeselectAllImage, getDeselectImage, getDisabledColor, getEnabledColor, getFont, getFontColor, getId, getInactiveSelectedColor, getLink, getLinkCount, getMoveDownImage, getMoveUpImage, getMultiSelectorSelectImage, getMultiSelectorUnselectImage, getNCols, getNRows, getSelectAllImage, getSelectedColor, getSelectedFontColor, getSelectImage, getTemplate, insertLink, isDefaultArrowDownBig, isDefaultDeselectAllImage, isDefaultDeselectImage, isDefaultDisabledColor, isDefaultEnabledColor, isDefaultFont, isDefaultFontColor, isDefaultInactiveSelectedColor, isDefaultMoveDownImage, isDefaultMoveUpImage, isDefaultMultiSelectorSelectImage, isDefaultMultiSelectorUnselectImage, isDefaultSelectAllImage, isDefaultSelectedColor, isDefaultSelectedFontColor, isDefaultSelectImage, isMultiple, isOrdered, removeLink, setArrowDownBig, setAutoCompletionMax, setBean, setDeselectAllImage, setDeselectImage, setDisabledColor, setEnabledColor, setFont, setFontColor, setId, setInactiveSelectedColor, setMoveDownImage, setMoveUpImage, setMultiple, setMultiSelectorSelectImage, setMultiSelectorUnselectImage, setNCols, setNRows, setOrdered, setSelectAllImage, setSelectedColor, setSelectedFontColor, setSelectImage, setTemplate, writeXml
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, 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

DEFAULT_WIDTH_EDITTABLE

public static int DEFAULT_WIDTH_EDITTABLE
default width value in edit table.

Constructor Detail

LyRelation

public LyRelation()
Constructor with all required attributes.

Method Detail

selectLink

public void selectLink(java.lang.String id,
                       boolean select)

selectLink

public void selectLink(int i,
                       boolean select)

setIdle

public void setIdle(boolean idle)

setFocus

public void setFocus()

setListWidth

public void setListWidth(int width)
Sets the width of the list for this relation.

Parameters:
width - the width of the list for this relation.

getListWidth

public int getListWidth()
Returns the width of the list for this relation.

Returns:
the width of the list for this relation if set, -1 otherwise.

setMinWidth

public void setMinWidth(int width)
Sets the minimum width of this relation.

Parameters:
width - the minimum width of this relation.

getMinWidth

public int getMinWidth()
Returns the minimum width of this relation.

Returns:
the minimum width of this relation if set, the value of the LY_COMBO_MIN_WIDTH resource otherwise.

setMaxWidth

public void setMaxWidth(int width)
Sets the maximum width of this relation.

Parameters:
width - the maximum width of this relation.

getMaxWidth

public int getMaxWidth()
Returns the maximum width of this relation.

Returns:
the maximum width of this relation if set, the value of the LY_COMBO_MAX_WIDTH resource otherwise.

(c) January 2013 - W4 S.A.

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