Package com.easydesk.attribute
Class OptionAttribute
java.lang.Object
com.easydesk.om.BaseAttributeValue
com.easydesk.om.AttributeValue
com.easydesk.attribute.FreeFormAttribute
com.easydesk.attribute.OptionAttribute
- All Implemented Interfaces:
Viewable,Cacheable,Observed,Retrievable,Serializable,ColumnAccessByName,ObjectModel,Persistent
- Direct Known Subclasses:
MultiOptionValueAttribute,SelectOneAttribute
this is a superclass for attributes which use option lists (SelectOne, Voted) Default Behavior 로 AttributeValue 의 값은
여러개를 허용한다.
- Version:
- $Revision: 1.38 $ $Date: 2008/12/25 04:03:44 $
- Author:
- Youngho Cho
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.easydesk.om.AttributeValue
AttributeValue.AccessEnum -
Field Summary
Fields inherited from class com.easydesk.om.AttributeValue
activitySet, chainedFields inherited from interface com.easydesk.validator.Retrievable
KEY_SEPERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayedValue(String type) 기본 locale(아이템의 locale)로 화면에 표시할 값을 구한다.getDisplayedValue(String type, Locale locale) 지정한 locale 로 화면에 표시할 값을 구한다.getFormatter(Locale locale) default same as valuebooleanDOCUMENT ME!loadResources(ActivitySet activitySet) Returns nullvoidsetOption(ModuleOption option) DOCUMENT ME!voidsetResources(Object resources) this method is used by an Attribute instance to obtain specific resources such as option list for SelectOneAttribute.Methods inherited from class com.easydesk.attribute.FreeFormAttribute
initMethods inherited from class com.easydesk.om.AttributeValue
alwaysNeedActivity, clear, copy, copy, endActivitySet, getActivity, getActivityDescription, getAttachment, getChainedValue, getChainedValue, getChainedValue, getInputValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValue, getLocalizedValues, getLocalizedValues, getMethodCache, getModuleAttribute, getNewInstance, getNewInstance, getNumericValues, getNumericValues, getNumericValuesAsString, getNumericValuesAsString, getObserverOption, getOptionIdAsString, getOptionIds, getOptionIds, getOptionIdsAsString, getOptionIdsAsString, getOptionValues, getPossibleTransitionCount, getPossibleTransitionCount, getPrimitiveOptionIds, getPrimitiveUserIds, getQueryKey, getRelativePath, getRelativePath, getRepository, getResource, getTransactionId, getUser, getUserIds, getValueList, getValueList, getValues, getValues, getValuesAsString, getValuesAsString, hasAlreadyChained, isModified, isQuickSearchAttribute, isSet, isSetOnly, needActivity, performAfter, performBefore, register, save, setActivity, setActivityDescription, setAttachment, setChainedValue, setInputValue, setNumericValue, setNumericValueOnly, setNumericValues, setOptionId, setOptionIdOnly, setOptionIds, setOptionValues, setPrimitiveOptionIds, setPrimitiveUserIds, setProperties, setTransactionId, setUser, setUserId, setUserIdOnly, setUserIds, setValue, setValueOnly, setValues, startActivitySet, toStringMethods inherited from class com.easydesk.om.BaseAttributeValue
copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getAttribute, getAttribute, getAttributeId, getAttributeOption, getAttributeOption, getByName, getByPeerName, getByPosition, getDepend, getDepend, getDependId, getEasyDeskUserImpl, getEasyDeskUserImpl, getFieldNames, getForeignKeyForAttribute, getForeignKeyForAttributeOption, getForeignKeyForDepend, getForeignKeyForEasyDeskUserImpl, getForeignKeyForItem, getItem, getItem, getItemId, getNumericValue, getOptionId, getPeer, getPrimaryKey, getTableMap, getUserId, getValue, getValueId, hashCode, isCacheOnSave, isDeleted, isLoading, isModified, isNew, isRemoved, isSaving, resetModified, save, save, setAttribute, setAttributeId, setAttributeKey, setAttributeOption, setAttributeOptionKey, setByName, setByPeerName, setByPosition, setDeleted, setDepend, setDependId, setDependKey, setEasyDeskUserImpl, setEasyDeskUserImplKey, setItem, setItemId, setItemKey, setLoading, setModified, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setValueId, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.easydesk.attribute.Viewable
getComponentName
-
Constructor Details
-
OptionAttribute
protected OptionAttribute()Creates a new OptionAttribute object.
-
-
Method Details
-
setOption
DOCUMENT ME!- Parameters:
option- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
setResources
this method is used by an Attribute instance to obtain specific resources such as option list for SelectOneAttribute. It may, for example put them into instance variables. Attribute may use common resources as-is or create it's own resources based on common, it should not, however, modify common resources since they will be used by other Attribute instances.- Overrides:
setResourcesin classFreeFormAttribute- Parameters:
resources- Resources common for Attributes with the specified id.
-
loadResources
Returns null- Overrides:
loadResourcesin classFreeFormAttribute- Parameters:
activitySet- specific activitySet- Returns:
- Object containing Attribute resources which will be used in setResources.
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
hasValue
DOCUMENT ME!- Specified by:
hasValuein classAttributeValue- Parameters:
checkValue- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getDisplayedValue
기본 locale(아이템의 locale)로 화면에 표시할 값을 구한다.- Overrides:
getDisplayedValuein classFreeFormAttribute- Parameters:
type- 표시 형식- Returns:
- 화면에 표시할 값
- Throws:
Exception- 값을 구하는 중 오류가 발생한 경우
-
getDisplayedValue
지정한 locale 로 화면에 표시할 값을 구한다. 현재는 저장된 값을 그대로 반환한다.- Overrides:
getDisplayedValuein classFreeFormAttribute- Parameters:
type- 표시 형식locale- 표시에 사용할 locale- Returns:
- 화면에 표시할 값
- Throws:
Exception- 값을 구하는 중 오류가 발생한 경우
-
getFormatter
default same as value- Overrides:
getFormatterin classFreeFormAttribute- Parameters:
locale- 표시에 사용할 locale- Returns:
- object
- Throws:
Exception- 값을 구하는 중 오류가 발생한 경우
-