|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.info.LyTag
leon.info.misc.LyFormat
public class LyFormat
This class is used to store a format on a unit. A parameter is composed of a value, an editable property, a size and a java name (name of a java class that implements LyFormatterInterface).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyFormat(java.lang.String value,
boolean editable,
int nCols,
java.lang.String javaName)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
completeValue(LyFieldInfo fieldInfo,
java.lang.String value,
LyUnit unit)
Methode to complete the given partial value. |
java.lang.String |
getJavaName()
Accessor for javaName property. |
int |
getNCols()
Accessor for nCols property. |
java.lang.String |
getValue()
Accessor for value. |
boolean |
isEditable()
Accessor for editable property. |
java.lang.Object |
parse(LyFieldInfo fieldInfo,
java.lang.String value,
LyUnit unit)
Method to parse a string value with a given unit. |
java.lang.String |
toName(LyFieldInfo fieldInfo,
java.lang.Object value,
LyUnit unit)
Method to format a value to a displayable string with the given unit. |
java.lang.String |
toShortName(LyFieldInfo fieldInfo,
java.lang.Object value,
LyUnit unit)
Method to format a value to a short displayable string with the given unit. |
java.lang.String |
toString(LyFieldInfo fieldInfo,
java.lang.Object value,
LyUnit unit)
Method to format a value to a string with the given unit. |
Methods inherited from class leon.info.LyTag |
---|
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyFormat(java.lang.String value, boolean editable, int nCols, java.lang.String javaName)
Method Detail |
---|
public java.lang.String getValue()
public boolean isEditable()
public int getNCols()
public java.lang.String getJavaName()
public java.lang.String toString(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
fieldInfo
- the fieldInfo for which a value is formattedvalue
- the value to formatunit
- the destination unit of the string value
public java.lang.String toName(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
fieldInfo
- the fieldInfo for which a value is formattedvalue
- the value to formatunit
- the destination unit of the string value
public java.lang.String toShortName(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
fieldInfo
- the fieldInfo for which a value is formattedvalue
- the value to formatunit
- the destination unit of the string value
public java.lang.Object parse(LyFieldInfo fieldInfo, java.lang.String value, LyUnit unit)
fieldInfo
- the fieldInfo for which the string value is parsed.value
- the string value to parsesource
- the unit of the string value
public java.lang.String completeValue(LyFieldInfo fieldInfo, java.lang.String value, LyUnit unit)
fieldInfo
- the fieldInfo for which the string value is completed.value
- the string value to completeunit
- the unit of the string value
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |