LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsDictionary

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.LyWebPageWriter
              extended by leon.view.web.struts.LyStrutsDictionary
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalDictionary, LyGraphicalFieldItem, LyViewComponent, LyFreeInterface, LySetEntryInterface, LyWebComponent

public class LyStrutsDictionary
extends LyWebPageWriter
implements LyGraphicalDictionary

This class implements the Dictionary object (as described in the dtd) for web viewer.

DICTIONARY: Input Field of Dictionary Type
An input field of dictionary type allows to display a graphical component containing a combo with a tree.

See Also:
LyDictionary

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.web.LyWebPageWriter
FORCE_AJAX, MAIN_BUFFER
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsDictionary(LyDictionary dictionary)
          Class constructor of a Dictionary object for the struts target.
 
Method Summary
 boolean canDisabled()
          Indicates if the Web browser can disabled its elements.
 java.lang.String getBackgroundColor(java.lang.String frame)
          (non-Javadoc).
 LyForm getForm()
          Gets the dictionary's form.
 java.lang.String getFormName()
          Gets the dictionary's form name.
 java.lang.String getFormName(LyWebPageWriter pw)
          Deprecated. replaced by getFormName() because the parameter pw is not used.
 LyStrutsForm getHtmlForm()
          Gets the Struts dictionary's form .
 java.util.Vector<LyWebPageWriter> getPageWriters()
          (non-Javadoc).
 java.lang.String getRedirect(java.lang.String frame)
          (non-Javadoc).
 void init()
          (non-Javadoc).
 boolean isEditable()
          Indicates if the dictionary is editable.
 boolean isNetscape()
          Indicates if the Web browser used is Netscape.
 boolean isOptional()
          Indicates if the dictionary is optional.
 boolean needCheck()
          Indicates if the dictionary needs check.
 void preparePage(java.lang.String frame, java.lang.String targetWindow)
          (non-Javadoc).
 void setEntry(LyEntry entry)
          (non-Javadoc).
 void writeBeginPage(java.io.Writer pw, java.lang.String frame)
          (non-Javadoc).
 void writeEndPage(java.io.Writer pw, java.lang.String frame)
          (non-Javadoc).
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
Methods inherited from class leon.view.web.LyWebPageWriter
addBeginScript, addCssScript, addEndScript, addEndScript, append, clearBeginScripts, clearBeginScripts, clearBuffer, clearCssScripts, clearCssScripts, clearEndScripts, clearEndScripts, copyScriptsTo, endComponent, free, getActionUrl, getActiveFormId, getActiveName, getAttachmentDirectory, getAttachmentHandler, getBackground, getBeginScriptsAsHtml, getBuffer, getCssFileAsHtml, getCssScriptsAsHtml, getEndScriptsAsHtml, getForceReloadState, getFormId, getFrameName, getId, getLastReloadTime, getNextJavaScriptId, getOldIds, getOpenFormContent, getOpenFormContent, getProperty, getScriptRoot, getTarget, getWindowName, isFrameSet, isInnerView, isNoFrames, isPrintMode, isVisible, setActiveBuffer, setAttachmentDirectory, setAttachmentDirectory, setAttachmentHandler, setAttachmentHandler, setBackground, setBackgroundColor, setBodyClassName, setForceReloadState, setFormId, setFrameName, setInnerView, setLastModified, setNoFrames, setPrintMode, setProperty, setTitle, setVisible, setWindowName, setWriteDivOnly, startComponent, writeBeginScripts, writeCssScripts, writeDivOnly, writeEndScripts, writeHtml, writePageContent
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, 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, getController, 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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyStrutsDictionary

public LyStrutsDictionary(LyDictionary dictionary)
Class constructor of a Dictionary object for the struts target.

Parameters:
dictionary - the generic Dictionary defined for every type of view targets
Method Detail

init

public void init()
(non-Javadoc).

Overrides:
init in class LyWebPageWriter
See Also:
leon.view.web.LyWebPage#init()

getPageWriters

public java.util.Vector<LyWebPageWriter> getPageWriters()
(non-Javadoc).

Specified by:
getPageWriters in class LyWebPageWriter
See Also:
LyWebPageWriter.getPageWriters()

getRedirect

public java.lang.String getRedirect(java.lang.String frame)
(non-Javadoc).

Specified by:
getRedirect in class LyWebPageWriter
Parameters:
frame - the frame to redirect
Returns:
the URL of the alternate Web page
See Also:
LyWebPageWriter.getRedirect(java.lang.String)

isNetscape

public boolean isNetscape()
Indicates if the Web browser used is Netscape.

Returns:
true if it is Netscape, false otherwise

canDisabled

public boolean canDisabled()
Indicates if the Web browser can disabled its elements.

Returns:
true if it can, false otherwise

isEditable

public boolean isEditable()
Indicates if the dictionary is editable.

Returns:
true if it is editable, false otherwise

isOptional

public boolean isOptional()
Indicates if the dictionary is optional.

Returns:
true if it is optional, false otherwise

needCheck

public boolean needCheck()
Indicates if the dictionary needs check.

Returns:
true if it needs check, false otherwise

getFormName

public java.lang.String getFormName(LyWebPageWriter pw)
Deprecated. replaced by getFormName() because the parameter pw is not used.

Gets the dictionary's form name.

Parameters:
pw - the page writer
Returns:
the parent from name

getFormName

public java.lang.String getFormName()
Gets the dictionary's form name.

Returns:
the parent from name
Since:
leonardi V4.0, replace getFormName(LyWebPageWriter) where the attribute was not used.

getForm

public LyForm getForm()
Gets the dictionary's form.

Returns:
the dictionary's form

getHtmlForm

public LyStrutsForm getHtmlForm()
Gets the Struts dictionary's form .

Returns:
the struts dictionary's form

writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

writeBeginPage

public void writeBeginPage(java.io.Writer pw,
                           java.lang.String frame)
                    throws java.io.IOException
(non-Javadoc).

Overrides:
writeBeginPage in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the frame where the page is written
Throws:
java.io.IOException - if something is wrong during page writing
See Also:
leon.view.web.LyWebPage#writeBeginPage(java.io.Writer, java.lang.String)

getBackgroundColor

public java.lang.String getBackgroundColor(java.lang.String frame)
(non-Javadoc).

Overrides:
getBackgroundColor in class LyWebPageWriter
Parameters:
frame - the frame
Returns:
the background color of the given frame
See Also:
leon.view.web.LyWebPage#getBackgroundColor(java.lang.String)

writeEndPage

public void writeEndPage(java.io.Writer pw,
                         java.lang.String frame)
                  throws java.io.IOException
(non-Javadoc).

Overrides:
writeEndPage in class LyWebPageWriter
Parameters:
pw - the page writer
frame - the frame where the page is written
Throws:
java.io.IOException - if something is wrong during end page writes
See Also:
leon.view.web.LyWebPage#writeEndPage(java.io.Writer, java.lang.String)

preparePage

public void preparePage(java.lang.String frame,
                        java.lang.String targetWindow)
(non-Javadoc).

Overrides:
preparePage in class LyWebPageWriter
See Also:
LyWebPageWriter.preparePage(java.lang.String, java.lang.String)

setEntry

public void setEntry(LyEntry entry)
(non-Javadoc).

Specified by:
setEntry in interface LyGraphicalDictionary
Specified by:
setEntry in interface LySetEntryInterface
Parameters:
entry - New value of entry
See Also:
LySetEntryInterface.setEntry(leon.view.LyEntry)

(c) January 2013 - W4 S.A.

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