LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyCanvas

java.lang.Object
  extended by leon.view.LyComponent
      extended by leon.view.LyFieldItem
          extended by leon.view.LyPanel
              extended by leon.view.LyCanvasBase
                  extended by leon.view.LyCanvas
All Implemented Interfaces:
LyGetConstraintInterface, LyGetControllerInterface, LyGetIdInterface, LyPdfInterface, LySetControllerInterface, LySetWaitingInterface, LyUpdateViewContentInterface

public class LyCanvas
extends LyCanvasBase

The LyCanvas class implements generic behavior for the CANVAS components as described in views.dt regardless of the requested target (win, swing, html...) It represents CLASS_CANVAS.

See Also:
LyComponent

Nested Class Summary
 
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
LyCanvas(java.lang.String javaName)
          Constructor with all required attributes.
 
Method Summary
 LyViewComponent getInternalView(boolean build)
          Get internal view implementation.
 void postDemand(int type, java.lang.String source, java.util.Hashtable<java.lang.String,java.lang.String> parameterValues)
          Utility method to post a demand to controller registered on this canvas.
 void postDemand(java.lang.String source)
          Utility method to post a TYPE_ACTION demand to controller registered on this canvas.
 void postDemand(java.lang.String source, java.util.Hashtable<java.lang.String,java.lang.String> parameterValues)
          Utility method to post a TYPE_ACTION demand to controller registered on this canvas.
 
Methods inherited from class leon.view.LyCanvasBase
cloneComponent, getConstraint, getController, getId, getJavaName, getTemplate, getUserData, setConstraint, setController, setId, setJavaName, setTemplate, setUserData, writeXml
 
Methods inherited from class leon.view.LyPanel
generatePdf, getLastModified, isIdle, isScrollable, print, setIdle, setLastModified, setPopupMenu, setWaiting
 
Methods inherited from class leon.view.LyFieldItem
addBeanData, buildBean, free, getBean, getBeanComponent, getBeanData, getBeanDatas, getChild, getChildCount, getErrorMessage, getFieldValue, getValue, setBean, 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, 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

LyCanvas

public LyCanvas(java.lang.String javaName)
Constructor with all required attributes.

Method Detail

getInternalView

public LyViewComponent getInternalView(boolean build)
Get internal view implementation.

Overrides:
getInternalView in class LyComponent
Parameters:
build - Indicates if this representation should be built if it doesn't exist.

postDemand

public void postDemand(int type,
                       java.lang.String source,
                       java.util.Hashtable<java.lang.String,java.lang.String> parameterValues)
Utility method to post a demand to controller registered on this canvas.

Parameters:
type - Demand type (see LyActionDemand.TYPE_XXX).
source - Id of the demand.
parameterValues - Table of parameter values.

postDemand

public final void postDemand(java.lang.String source,
                             java.util.Hashtable<java.lang.String,java.lang.String> parameterValues)
Utility method to post a TYPE_ACTION demand to controller registered on this canvas.

Parameters:
source - Id of the demand.
parameterValues - Table of parameter values.

postDemand

public final void postDemand(java.lang.String source)
Utility method to post a TYPE_ACTION demand to controller registered on this canvas.

Parameters:
source - Id of the demand.

(c) January 2013 - W4 S.A.

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