|
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.LyInfo
leon.info.LyChoiceOption
public final class LyChoiceOption
This class implements the description of an option stored in an instance of LyChoiceFieldInfo.
One option is a possible choice in an enumerated fieldInfo.
An option has the following attributes :
LyChoiceFieldInfo
,
LyRule
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__version
|
Fields inherited from class leon.info.LyInfo |
---|
__VERSION |
Method Summary | |
---|---|
java.lang.String |
getAlias()
Accessor for alias (shortname) of this instance. |
java.lang.String |
getInternalAlias()
Accessor for alias (shortname) of this instance. |
LyInfoLabel |
getLabel(int index)
Returns the label of this option at the given index. |
LyInfoLabel |
getLabel(LyInfoLabel.Type type)
Returns the the label of this option for the specified type. |
int |
getLabelCount()
Returns the number of labels of this option. |
java.lang.String |
getName()
Accessor to the name of this option. |
LyRule |
getRule(short index)
Gets a rule from the rules list at a given position. |
short |
getRuleCount()
Gets rules count. |
LyInfoList<LyRule> |
getRules()
Returns the list of rules defined on this option; |
short |
getShortValue()
Gets the short value corresponding to the internal value. |
LyInfoLabel |
getUserLabel(int i)
Returns the user label at the given position. |
LyInfoLabel |
getUserLabel(java.lang.String subType)
Returns the user label for the given subType. |
int |
getUserLabelCount()
Returns the number of labels of this option. |
java.lang.Object |
getValue()
Gets the internal value (value transmitted to the data provider when this option is chosen). |
boolean |
hasRule()
Tests is this option has one or more rules |
boolean |
hasTableMark()
Tests is this option is shown as column in edit tables. |
boolean |
isDefault()
Tests is this option is a default one. |
boolean |
isDisable()
Sets if this option is disabled or not. |
boolean |
isUnknown()
Tests is this option is used to redirect unknown values when reading datas. |
Methods inherited from class leon.info.LyInfo |
---|
getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString |
Methods inherited from class leon.info.LyTag |
---|
clone, getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.info.LyChoiceItem |
---|
getId |
Methods inherited from interface leon.parser.LyCommentInterface |
---|
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart |
Field Detail |
---|
public static final java.lang.String __version
Method Detail |
---|
public java.lang.String getName()
getName
in interface LyChoiceItem
getName
in class LyInfo
public final java.lang.String getAlias()
getAlias
in interface LyChoiceItem
getAlias
in class LyInfo
public final java.lang.String getInternalAlias()
public java.lang.Object getValue()
getValue
in interface LyChoiceItem
public boolean isDefault()
public boolean isDisable()
public boolean isUnknown()
public boolean hasTableMark()
public boolean hasRule()
public LyRule getRule(short index)
index
- Position of the searched rule. If index is negative (-1) return null
public short getRuleCount()
public LyInfoList<LyRule> getRules()
public short getShortValue()
getShortValue
in interface LyChoiceItem
public int getLabelCount()
public LyInfoLabel getLabel(LyInfoLabel.Type type)
public LyInfoLabel getLabel(int index)
public int getUserLabelCount()
public LyInfoLabel getUserLabel(int i)
public LyInfoLabel getUserLabel(java.lang.String subType)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |