LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.jquery.component.form.field.text
Class LyJQText

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.text.LyJQText
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalText, LyViewComponent, LyFreeInterface, LySetLabelInterface, LyWebComponent

public class LyJQText
extends LyJQFieldItem
implements LyGraphicalText

LyWeb2Text


Field Summary
static boolean USE_LABEL_FOR_NON_EDITABLE_TEXT
          Indicates whether non editable text must be displayed as labels.
 
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.LyGraphicalText
__VERSION
 
Constructor Summary
LyJQText(LyText text)
          Class constructor of a Text object for the struts target.
 
Method Summary
 java.lang.String[] getAutoCompletionItems()
          Gets a auto completion items
 int getAutoCompletionMaxItems()
          Gets a auto completion max items
 java.lang.String getFile()
           
 java.lang.String getFormattedRichText(java.lang.String label)
           
 int getNbCols()
          Gets a text number of columns
 java.lang.String getSecretLabel(java.lang.String label)
          Gets the secret correspondance of a label
 int getTextHeight()
          Returns the height of the text component.
 int getTextWidth()
          Returns the width of the text component.
 int getTextWidth(int nCols)
          Returns the CSS style to be used for date input.
 java.lang.String getUrl(java.lang.String label)
          Gets url from a label
 java.lang.String getWidthStyle()
          Gets width style
 boolean isAutoCompletion()
          Check if text has autoCompletion property
 boolean isEditable()
          Check if parent form is editable
 boolean isEditableText()
           
 boolean isEnabled()
          Check if field is enabled
 boolean isParentForm()
          Check if field parent is a form
 boolean isRichText()
          Check if text is a rich text
 boolean isText()
           
 void setLabel(java.lang.String label)
          Sets the label of the component.
 
Methods inherited from class leon.view.web.jquery.component.fieldItem.LyJQFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getReloadScript, getTarget, isLabelInstance, isMail, isNetscape, isOptional, isPrintMode, isUrl, isUrlRecurse, needCheck, 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, 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
 

Field Detail

USE_LABEL_FOR_NON_EDITABLE_TEXT

public static boolean USE_LABEL_FOR_NON_EDITABLE_TEXT
Indicates whether non editable text must be displayed as labels.

Constructor Detail

LyJQText

public LyJQText(LyText text)
Class constructor of a Text object for the struts target.

Parameters:
text - the generic Text defined for every type of view targets
Method Detail

isEnabled

public boolean isEnabled()
Check if field is enabled

Overrides:
isEnabled in class LyJQFieldItem
Parameters:
text -
Returns:

isEditable

public boolean isEditable()
Check if parent form is editable

Overrides:
isEditable in class LyJQFieldItem
Parameters:
text -
Returns:

isRichText

public boolean isRichText()
Check if text is a rich text

Parameters:
text -
Returns:

isEditableText

public boolean isEditableText()

getFile

public java.lang.String getFile()

getTextWidth

public int getTextWidth()
Returns the width of the text component. If a fixed width must be used, result is a positive integer. If a minimum width must be used, result is a negative integer.


getTextWidth

public int getTextWidth(int nCols)
Returns the CSS style to be used for date input.


getTextHeight

public int getTextHeight()
Returns the height of the text component.


getWidthStyle

public java.lang.String getWidthStyle()
Gets width style

Parameters:
text -
Returns:

isAutoCompletion

public boolean isAutoCompletion()
Check if text has autoCompletion property

Returns:

getAutoCompletionItems

public java.lang.String[] getAutoCompletionItems()
Gets a auto completion items

Returns:
completion items

getAutoCompletionMaxItems

public int getAutoCompletionMaxItems()
Gets a auto completion max items

Returns:
completion items

getNbCols

public int getNbCols()
Gets a text number of columns

Parameters:
text -
Returns:

getSecretLabel

public java.lang.String getSecretLabel(java.lang.String label)
Gets the secret correspondance of a label

Parameters:
label -
Returns:

isParentForm

public boolean isParentForm()
Check if field parent is a form

Parameters:
text -
Returns:

getUrl

public java.lang.String getUrl(java.lang.String label)
Gets url from a label

Overrides:
getUrl in class LyWebObject
Parameters:
label - The ressource name (key) of the url
Returns:
A reference to the requested url, or null if it could not be found.
See Also:
LyEnvironment.getUrl(String)

isText

public boolean isText()

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: LySetLabelInterface
Sets the label of the component.

Specified by:
setLabel in interface LyGraphicalText
Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyJQFieldItem
Parameters:
label - new label

getFormattedRichText

public java.lang.String getFormattedRichText(java.lang.String label)

(c) January 2013 - W4 S.A.

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