|
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.app.behavior.LyLabelBehavior
public class LyLabelBehavior
This class implements the default behavior for customizing labels.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyLabelBehavior()
Construct a label behavior. |
Method Summary | |
---|---|
LyInfoLabel |
getInfoLabel(LyAreaController areaController,
LyClassInfo classInfo,
LyInfoLabel.Type type)
Gets info label of the given type for the given class info in the context of the given area controller. |
LyInfoLabel |
getInfoLabel(LyAreaController areaController,
LyFieldInfo fieldInfo,
LyInfoLabel.Type type)
Gets info label of the given type for the given field info in the context of the given area controller. |
java.lang.String |
getLabel(LyAreaController areaController,
LyObject object,
LyFieldInfo fieldInfo,
java.lang.Object fieldValue)
Gets the given object label, for the given field info and the given value in the context of the given area controller. |
java.lang.String |
getName(LyAreaController areaController,
LyObject object)
Gets the name of the object in the context of the given area controller. |
java.lang.String |
getShortLabel(LyAreaController areaController,
LyObject object,
LyFieldInfo fieldInfo,
java.lang.Object fieldValue)
Gets the given object short label, for the given field info and the given value in the context of the given area controller. |
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 LyLabelBehavior()
Method Detail |
---|
public LyInfoLabel getInfoLabel(LyAreaController areaController, LyClassInfo classInfo, LyInfoLabel.Type type)
getInfoLabel
in interface LyLabelBehaviorInterface
areaController
- the current controller instanceclassInfo
- the class infotype
- Type of searched label. Possible values are LyInfoLabel.Type#GRAMMATICAL
, LyInfoLabel.Type#ID
, LyInfoLabel.Type#NAME
LyInfoLabel.Type#SEMANTIC
LyInfoLabel.Type#SHORT_VALUE
LyInfoLabel.Type#USER
, LyInfoLabel.Type#VALUE
public LyInfoLabel getInfoLabel(LyAreaController areaController, LyFieldInfo fieldInfo, LyInfoLabel.Type type)
getInfoLabel
in interface LyLabelBehaviorInterface
areaController
- the current controller instancefieldInfo
- the field infotype
- Type of searched label. Possible values are LyInfoLabel.Type#GRAMMATICAL
, LyInfoLabel.Type#ID
, LyInfoLabel.Type#NAME
LyInfoLabel.Type#SEMANTIC
LyInfoLabel.Type#SHORT_VALUE
LyInfoLabel.Type#USER
, LyInfoLabel.Type#VALUE
public java.lang.String getName(LyAreaController areaController, LyObject object)
getName
in interface LyLabelBehaviorInterface
areaController
- the current controller instanceobject
- Object whose the name is required.
public java.lang.String getLabel(LyAreaController areaController, LyObject object, LyFieldInfo fieldInfo, java.lang.Object fieldValue)
getLabel
in interface LyLabelBehaviorInterface
areaController
- the current controller instanceobject
- the object for which a label is required.fieldInfo
- field info.fieldValue
- value of the field.
public java.lang.String getShortLabel(LyAreaController areaController, LyObject object, LyFieldInfo fieldInfo, java.lang.Object fieldValue)
getShortLabel
in interface LyLabelBehaviorInterface
areaController
- the current controller instanceobject
- Object for which a short label is required.fieldInfo
- field info.fieldValue
- value of the field.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |