LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form.field.relation
Class LyJQRelation

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.jquery.component.LyJQInternalView
              extended by leon.view.web.jquery.component.fieldItem.LyJQFieldItem
                  extended by leon.view.web.jquery.component.form.field.relation.LyJQRelation
All Implemented Interfaces:
LyGetValueInterface, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalRelation, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetLinksInterface, LyWebComponent

public class LyJQRelation
extends LyJQFieldItem
implements LyGraphicalRelation, LyGetValueInterface

This class implements the Relation object (as described in the DTD) for web2 viewer.

RELATION: Input Field of Relation Type
An input field of Relation type allows to choose one or more values among a list of values. This list offers generally application objects belonging to a same class and is used to establish a relation between an object and one or more objects of this class. It is possible to specify if the relation is multiple or not.

See Also:
LyRelation

Field Summary
 
Fields inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
__VERSION
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Fields inherited from interface leon.view.graphic.LyGraphicalRelation
__VERSION
 
Fields inherited from interface leon.view.getinterface.LyGetValueInterface
__VERSION
 
Constructor Summary
LyJQRelation(LyRelation relation)
           
 
Method Summary
 void addLink(LyLink link, int pos)
          (non-Javadoc)
 int getHeight()
           
 java.lang.String getInitialName()
           
 java.lang.String getLeftHeaderLabel()
           
 java.util.List<LyLink> getLinksList()
          Collect the links of the relation in a list.
 int getMaxWidth()
          Return the maximum width of the relation in pixels.
 int getMinWidth()
          Return the minimum width of the relation in pixels.
 java.lang.String getReloadScript()
          (non-Javadoc)
 java.lang.String getRightHeaderLabel()
           
 java.lang.String getSelectAllLabel()
           
 int getSize()
           
 java.lang.String getUnselectAllLabel()
           
 java.lang.String getValue()
          (non-Javadoc)
 int getWidth()
          Return the width of the relation in pixels.
 boolean isAutoCompletion()
          Check if relation has autoCompletion
 boolean isRelation()
           
 void removeLink(LyLink link)
          (non-Javadoc)
 
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getTarget, isEditable, isEnabled, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, setLabel, writeHtml
 
Methods inherited from class leon.view.web.jquery.component.LyJQInternalView
getConvertedHTML, getEncoding, getId, getJavascriptStrId, getJSWithoutTranslateString, getTreatedInternalId, isIE, setProperty
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, refresh, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Constructor Detail

LyJQRelation

public LyJQRelation(LyRelation relation)
Method Detail

getValue

public java.lang.String getValue()
(non-Javadoc)

Specified by:
getValue in interface LyGetValueInterface
See Also:
LyGetValueInterface.getValue()

getInitialName

public java.lang.String getInitialName()

isAutoCompletion

public boolean isAutoCompletion()
Check if relation has autoCompletion

Returns:

addLink

public void addLink(LyLink link,
                    int pos)
(non-Javadoc)

Specified by:
addLink in interface LyGraphicalRelation
Specified by:
addLink in interface LySetLinksInterface
Parameters:
link - The links to add to links list.
pos - Position where the sub-component is inserted.
See Also:
LyGraphicalRelation.addLink(leon.view.LyLink, int)

removeLink

public void removeLink(LyLink link)
(non-Javadoc)

Specified by:
removeLink in interface LyGraphicalRelation
Specified by:
removeLink in interface LySetLinksInterface
Parameters:
link - The links to remove to links list.
See Also:
LyGraphicalRelation.removeLink(leon.view.LyLink)

getReloadScript

public java.lang.String getReloadScript()
(non-Javadoc)

Overrides:
getReloadScript in class LyJQFieldItem
Returns:
reload component script
See Also:
LyJQFieldItem.getReloadScript()

getLinksList

public java.util.List<LyLink> getLinksList()
Collect the links of the relation in a list.

Returns:
list of links.

getHeight

public int getHeight()

getWidth

public int getWidth()
Return the width of the relation in pixels.


getMinWidth

public int getMinWidth()
Return the minimum width of the relation in pixels.


getMaxWidth

public int getMaxWidth()
Return the maximum width of the relation in pixels.


getSize

public int getSize()
Returns:
relation size

getSelectAllLabel

public java.lang.String getSelectAllLabel()

getUnselectAllLabel

public java.lang.String getUnselectAllLabel()

getLeftHeaderLabel

public java.lang.String getLeftHeaderLabel()

getRightHeaderLabel

public java.lang.String getRightHeaderLabel()

isRelation

public boolean isRelation()

(c) January 2013 - W4 S.A.

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