LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyCanvasBase

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

public abstract class LyCanvasBase
extends LyPanel
implements LyGetIdInterface, LyGetControllerInterface, LySetControllerInterface, LyGetConstraintInterface

The LyCanvasBase class is a generated Java implementation that corresponds to the element CANVAS of the descriptive grammar of the views (views.dtd). <CANVAS> : Canvas A canvas is a drawing area fully controlled by an external component. It allows a simple integration of external graphical libraries in a Application Engine application.

See Also:
LyPanel, See also tag CANVAS of grammar leon_views.dtd.

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
LyCanvasBase(java.lang.String javaName)
          Constructor with all required attributes.
 
Method Summary
 LyComponent cloneComponent()
          Method for cloning a component.
 LyConstraint getConstraint()
          Get sub-component Constraint.
 java.lang.String getController()
          Gets value of controller.
 java.lang.String getId()
          Gets value of id.
 java.lang.String getJavaName()
          Gets value of javaName.
 LyCanvas getTemplate()
          Gets value of template.
 java.lang.String getUserData()
          Gets value of userData.
 void setConstraint(LyConstraint constraint)
          Sets sub-component constraint.
 void setController(java.lang.String controller)
          Initializes attribute controller to the given value.
 void setId(java.lang.String id)
          Initializes attribute id to the given value.
 void setJavaName(java.lang.String javaName)
          Initializes attribute javaName to the given value.
 void setTemplate(LyCanvas template)
          Initializes attribute template to the given value.
 void setUserData(java.lang.String userData)
          Initializes attribute userData to the given value.
 void writeXml(java.io.PrintWriter pw, boolean debug)
          Method to rewrite XML corresponding to this component.
 
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, 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

LyCanvasBase

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

Parameters:
javaName - Java full name of the class that manages the drawing on the canvas and interactions of the end-user on this drawing area.
Method Detail

cloneComponent

public LyComponent cloneComponent()
Method for cloning a component.

Specified by:
cloneComponent in class LyComponent

getId

public java.lang.String getId()
Gets value of id.

Specified by:
getId in interface LyGetIdInterface
Overrides:
getId in class LyComponent
Returns:
value of id.

getTemplate

public LyCanvas getTemplate()
Gets value of template.

Returns:
value of template.

getJavaName

public java.lang.String getJavaName()
Gets value of javaName.

Returns:
value of javaName.

getController

public java.lang.String getController()
Gets value of controller.

Specified by:
getController in interface LyGetControllerInterface
Returns:
value of controller.

getUserData

public java.lang.String getUserData()
Gets value of userData.

Returns:
value of userData.

getConstraint

public LyConstraint getConstraint()
Get sub-component Constraint.

Specified by:
getConstraint in interface LyGetConstraintInterface
Returns:
sub-component Constraint.

setId

public void setId(java.lang.String id)
Initializes attribute id to the given value.

Parameters:
id - New value of id.

setTemplate

public void setTemplate(LyCanvas template)
Initializes attribute template to the given value.

Parameters:
template - New value of template.

setJavaName

public void setJavaName(java.lang.String javaName)
Initializes attribute javaName to the given value.

Parameters:
javaName - New value of javaName.
Throws:
java.lang.IllegalArgumentException - if javaName is null.

setController

public void setController(java.lang.String controller)
Initializes attribute controller to the given value.

Specified by:
setController in interface LySetControllerInterface
Parameters:
controller - New value of controller.
See Also:
LySetControllerInterface.setController(java.lang.String)

setUserData

public void setUserData(java.lang.String userData)
Initializes attribute userData to the given value.

Parameters:
userData - New value of userData.

setConstraint

public void setConstraint(LyConstraint constraint)
Sets sub-component constraint.

Parameters:
constraint - New value of constraint

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean debug)
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in class LyComponent
Parameters:
pw - the printWriter on which the XML is written.
debug - true if debug mode (full dump).

(c) January 2013 - W4 S.A.

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