com.infoteria.asteria.flowbuilder2.component
Class ComponentProperty

java.lang.Object
  |
  +--com.infoteria.gui.property.PropertyDecorator
        |
        +--com.infoteria.asteria.flowbuilder2.property.FlowProperty
              |
              +--com.infoteria.asteria.flowbuilder2.component.ComponentProperty
All Implemented Interfaces:
Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingItem, Property

public class ComponentProperty
extends FlowProperty
implements com.infoteria.asteria.flowbuilder2.mapper.MappingItem

Componentの保持するPropertyのDecoratorクラスです。
Componentの定義ファイルで定義したPropertyはこのクラスでラップされます。


Fields inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem
MAPPING_BOTH, MAPPING_INPUT, MAPPING_NONE, MAPPING_OUTPUT
 
Constructor Summary
ComponentProperty(Property prop)
           
 
Method Summary
 Icon getIcon()
           
 String getId()
           
 int getMappingType()
          マッピングで使用可能かどうかの種別を返します。
返り値は以下のシンボルのいずれかです。
MAPPING_NONE - マッピング不可
MAPPING_INPUT - 入力側のみマッピング可能
MAPPING_OUTPUT - 出力側のみマッピング可能
MAPPING_BOTH - マッピング可能
 boolean isEnableMacro()
          プロパティ式が使用可能かどうかを返します。
(isEnableMappingがfalseの場合はsetEnableMacroでtrueを設定してもプロパティ式は使用可能になりません)
 boolean isEnableMapping()
          マッピングで値を設定できるかどうかを返します。
 boolean isIgnoreSerialize()
           
static String mappingTypeToStr(int n)
           
 void setEnableMacro(boolean b)
          プロパティ式が使用可能かどうかを設定します。
 void setMappingType(int n)
          マッピングで使用可能かどうかの種別を設定します。
static int strToMappingType(String s)
           
 
Methods inherited from class com.infoteria.asteria.flowbuilder2.property.FlowProperty
clone, getDefaultValue, getDifference, getLoadingDefault, getMacro, getSaveType, isDesignerOnly, isDiffTarget, isRequired, isSaveRequired, isUnknown, isUseMacro, setDefaultValue, setDesignerOnly, setDiffTarget, setLoadingDefault, setMacro, setRequired, setSaveType, setUnknown, valueEquals
 
Methods inherited from class com.infoteria.gui.property.PropertyDecorator
addPropertyChangeListener, assign, assignTo, getAdapter, getDisplayName, getEditor, getName, getOwner, getPropertyChangeListeners, getRenderer, getTooltip, getType, getValue, getValueAsString, getWrappedProperty, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValue, setValueAsString, setValueAsString, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem
getDisplayName, getName, isVisible
 

Constructor Detail

ComponentProperty

public ComponentProperty(Property prop)
Method Detail

strToMappingType

public static int strToMappingType(String s)

mappingTypeToStr

public static String mappingTypeToStr(int n)

getId

public String getId()
Specified by:
getId in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

getMappingType

public int getMappingType()
マッピングで使用可能かどうかの種別を返します。
返り値は以下のシンボルのいずれかです。
MAPPING_NONE - マッピング不可
MAPPING_INPUT - 入力側のみマッピング可能
MAPPING_OUTPUT - 出力側のみマッピング可能
MAPPING_BOTH - マッピング可能
Specified by:
getMappingType in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

setMappingType

public void setMappingType(int n)
マッピングで使用可能かどうかの種別を設定します。

setEnableMacro

public void setEnableMacro(boolean b)
プロパティ式が使用可能かどうかを設定します。

isEnableMacro

public boolean isEnableMacro()
プロパティ式が使用可能かどうかを返します。
(isEnableMappingがfalseの場合はsetEnableMacroでtrueを設定してもプロパティ式は使用可能になりません)
Overrides:
isEnableMacro in class FlowProperty

isEnableMapping

public boolean isEnableMapping()
マッピングで値を設定できるかどうかを返します。
Overrides:
isEnableMapping in class FlowProperty

isIgnoreSerialize

public boolean isIgnoreSerialize()
Specified by:
isIgnoreSerialize in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem

getIcon

public Icon getIcon()
Specified by:
getIcon in interface com.infoteria.asteria.flowbuilder2.mapper.MappingItem