com.infoteria.asteria.flowbuilder2.property.category
Class CategoryProperty

java.lang.Object
  |
  +--com.infoteria.asteria.flowbuilder2.property.category.CategoryProperty
All Implemented Interfaces:
com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface, Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingHolder, com.infoteria.asteria.flowbuilder2.mapper.MappingHolderEx, com.infoteria.asteria.flowbuilder2.search.SearchTarget

public class CategoryProperty
extends Object
implements Cloneable, com.infoteria.asteria.flowbuilder2.mapper.MappingHolderEx, com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface, com.infoteria.asteria.flowbuilder2.search.SearchTarget

カテゴリープロパティです。


Field Summary
protected  EventListenerList _listenerList
           
 
Constructor Summary
CategoryProperty(String name)
          名前を指定してCategoryPropertyを作成します。
 
Method Summary
 UndoableEdit addItem(CategoryItem item)
          行を追加します。
 UndoableEdit addItem(CategoryItem item, int idx)
          行を挿入します。
protected  void addProperty(Property prop)
           
 UndoableEdit assign(AdditionalPropertyInterface api)
          他のCaetegoryPropertyの内容をコピーします。
 void assign(Element el)
          要素からategoryPropertyの内容を読み込んで設定します。
 void assignTo(Element el)
          このCategoryPropertyの内容を要素に出力します。
 void clearItems()
          すべての行をクリアします。
 Object clone()
           
 Component createEditorComponent()
          このCategoryPropertyを編集するエディタコンポーネントを作成します。
作成したエディタコンポーネントは使用終了後はreleaseEditorComponentメソッドで解放しなければなりません。
 CategoryItem createNewItem()
          新しいCategoryItemを作成します。
作成されたItemにはデフォルト値が設定されています。
 int getColumnCount()
          列数を返します。
 Object getDefaultValue(String name)
          nameに対応する列のデフォルト値を返します。
 String getDisplayName()
          表示名を返します。
 CategoryItem getItem(int idx)
          idx番目の行に対応するCategoryItemを返します。
 CategoryItem getItemByKey(Object key)
          キー列の値を指定してCategoryItemを取得します。
 List getItemList()
          行(CategoryItem)のListを返します。
 Property getKeyProperty()
          キー列に対応するPropertyを返します。
 int getMappingTypeForHelp()
           
 String getName()
          名前を返します。
 BaseObject getOwner()
          このCategoryPropertyを所持するオーナー(ComponentかFunction)を返します。
 Property getProperty(int idx)
          idx番目の列の設定に使用するPropertyを返します。
 Property getProperty(String name)
          nameに対応する列の設定に使用するPropertyを返します。
 Font getPropertyFont()
          フォントを返します。
 int getRowCount()
          行数を返します。
 Property getValueProperty()
          値列に対応するPropertyを返します。
 int indexOfProperty(Property prop)
          指定のプロパティの列位置を返します。
 boolean isDeletable()
          各行が削除可能かどうかを返します。
 boolean isEnableMacro()
           
 boolean isKeyColumn(int idx)
          idx番目の列がキー列(CategoryItem#getNameに対応する列であるかどうかを返します。
 boolean isReadOnly()
          編集可能かどうかを返します。
 boolean isSaveRequired()
          xfpファイルへの保存が必要かどうかを返します。
 boolean isVisible()
          インスペクタに表示するかどうかを返します。
 void releaseEditorComponent(Component c)
          このCategoryPropertyを編集するエディタコンポーネントを解放します。
 UndoableEdit removeItem(int idx)
          idx番目の行を削除します。
 UndoableEdit replace(Pattern pattern, String targetStr, String replaceStr)
           
 void setDeletable(boolean b)
          各行が削除可能かどうかを設定します。
 void setDisplayName(String name)
          表示名を設定します。
 void setEditable(Component c, boolean b)
          このCategoryPropertyを編集するエディタコンポーネントに対して編集可能かどうかを設定します。
 UndoableEdit setItemList(List list)
          行(CategoryItem)をListからまとめて設定します。
protected  void setKeyProperty(Property prop)
          キー列に対応するPropertyを設定します。
 void setMappingTypeForHelp(int n)
           
 void setPropertyFont(Font f)
          フォントを設定します。
 void setReadOnly(boolean b)
          編集可能かどうかを設定します。
 void setSaveRequired(boolean b)
          xfpファイルへの保存が必要かどうかを設定します。
protected  void setValueProperty(Property prop)
          値列に対応するPropertyを設定します。
 void setVisible(boolean b)
          インスペクタに表示するかどうかを設定します。
 UndoableEdit swap(int idx1, int idx2)
          行を入れ替えます。
idx1とidx2は連続した行番号でなければなりません。
 VariableList toVariableList()
          このCategoryPropertyに設定されている内容をVariableList化します。
 
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.MappingHolderEx
addMappingHolderListener, getMappingType, removeMappingHolderListener
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.mapper.MappingHolder
getMappingItem, getMappingItemCount
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface
cleanup, getDifference, getUndoManager, setUndoManager, setup, setup
 
Methods inherited from interface com.infoteria.asteria.flowbuilder2.search.SearchTarget
getTargetStrings
 

Field Detail

_listenerList

protected EventListenerList _listenerList
Constructor Detail

CategoryProperty

public CategoryProperty(String name)
名前を指定してCategoryPropertyを作成します。
Method Detail

getName

public String getName()
名前を返します。
Specified by:
getName in interface com.infoteria.asteria.flowbuilder2.mapper.MappingHolder

getPropertyFont

public Font getPropertyFont()
フォントを返します。
Specified by:
getPropertyFont in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

setPropertyFont

public void setPropertyFont(Font f)
フォントを設定します。
Specified by:
setPropertyFont in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

getDisplayName

public String getDisplayName()
表示名を返します。
Specified by:
getDisplayName in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

setDisplayName

public void setDisplayName(String name)
表示名を設定します。

isSaveRequired

public boolean isSaveRequired()
xfpファイルへの保存が必要かどうかを返します。
Specified by:
isSaveRequired in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

setSaveRequired

public void setSaveRequired(boolean b)
xfpファイルへの保存が必要かどうかを設定します。

isVisible

public boolean isVisible()
インスペクタに表示するかどうかを返します。
Specified by:
isVisible in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

setVisible

public void setVisible(boolean b)
インスペクタに表示するかどうかを設定します。
Specified by:
setVisible in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

isDeletable

public boolean isDeletable()
各行が削除可能かどうかを返します。

setDeletable

public void setDeletable(boolean b)
各行が削除可能かどうかを設定します。

addProperty

protected void addProperty(Property prop)

getDefaultValue

public Object getDefaultValue(String name)
nameに対応する列のデフォルト値を返します。

getProperty

public Property getProperty(int idx)
idx番目の列の設定に使用するPropertyを返します。

getOwner

public BaseObject getOwner()
このCategoryPropertyを所持するオーナー(ComponentかFunction)を返します。

isReadOnly

public boolean isReadOnly()
編集可能かどうかを返します。

setReadOnly

public void setReadOnly(boolean b)
編集可能かどうかを設定します。

getProperty

public Property getProperty(String name)
nameに対応する列の設定に使用するPropertyを返します。

indexOfProperty

public int indexOfProperty(Property prop)
指定のプロパティの列位置を返します。

isKeyColumn

public boolean isKeyColumn(int idx)
idx番目の列がキー列(CategoryItem#getNameに対応する列であるかどうかを返します。

getColumnCount

public int getColumnCount()
列数を返します。

getRowCount

public int getRowCount()
行数を返します。

getItem

public CategoryItem getItem(int idx)
idx番目の行に対応するCategoryItemを返します。

getItemByKey

public CategoryItem getItemByKey(Object key)
キー列の値を指定してCategoryItemを取得します。

addItem

public UndoableEdit addItem(CategoryItem item)
行を追加します。

removeItem

public UndoableEdit removeItem(int idx)
idx番目の行を削除します。

addItem

public UndoableEdit addItem(CategoryItem item,
                            int idx)
行を挿入します。

clearItems

public void clearItems()
すべての行をクリアします。

getItemList

public List getItemList()
行(CategoryItem)のListを返します。

setItemList

public UndoableEdit setItemList(List list)
行(CategoryItem)をListからまとめて設定します。

assign

public UndoableEdit assign(AdditionalPropertyInterface api)
他のCaetegoryPropertyの内容をコピーします。
Specified by:
assign in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

swap

public UndoableEdit swap(int idx1,
                         int idx2)
行を入れ替えます。
idx1とidx2は連続した行番号でなければなりません。

getKeyProperty

public Property getKeyProperty()
キー列に対応するPropertyを返します。

setKeyProperty

protected void setKeyProperty(Property prop)
キー列に対応するPropertyを設定します。

getValueProperty

public Property getValueProperty()
値列に対応するPropertyを返します。

setValueProperty

protected void setValueProperty(Property prop)
値列に対応するPropertyを設定します。

getMappingTypeForHelp

public int getMappingTypeForHelp()

setMappingTypeForHelp

public void setMappingTypeForHelp(int n)

isEnableMacro

public boolean isEnableMacro()

clone

public Object clone()
Specified by:
clone in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface
Overrides:
clone in class Object

createEditorComponent

public Component createEditorComponent()
このCategoryPropertyを編集するエディタコンポーネントを作成します。
作成したエディタコンポーネントは使用終了後はreleaseEditorComponentメソッドで解放しなければなりません。
Specified by:
createEditorComponent in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

releaseEditorComponent

public void releaseEditorComponent(Component c)
このCategoryPropertyを編集するエディタコンポーネントを解放します。
Specified by:
releaseEditorComponent in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

setEditable

public void setEditable(Component c,
                        boolean b)
このCategoryPropertyを編集するエディタコンポーネントに対して編集可能かどうかを設定します。
Specified by:
setEditable in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

createNewItem

public CategoryItem createNewItem()
新しいCategoryItemを作成します。
作成されたItemにはデフォルト値が設定されています。

assign

public void assign(Element el)
要素からategoryPropertyの内容を読み込んで設定します。
Specified by:
assign in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

assignTo

public void assignTo(Element el)
このCategoryPropertyの内容を要素に出力します。
Specified by:
assignTo in interface com.infoteria.asteria.flowbuilder2.property.AdditionalPropertyInterface

replace

public UndoableEdit replace(Pattern pattern,
                            String targetStr,
                            String replaceStr)
                     throws PropertyException,
                            PropertyChangeVetoException
Description copied from interface: com.infoteria.asteria.flowbuilder2.search.SearchTarget
プロパティ内の検索対象文字列にtargetStrと等しいものがある場合は、 その中のpatternをreplaceStrで置換する
プロパティ変更ができなかった場合はPropertyExceptionが発生し、 プロパティ変更が許可されていない場合はPropertyChangeVetoExceptionが発生する
Specified by:
replace in interface com.infoteria.asteria.flowbuilder2.search.SearchTarget

toVariableList

public VariableList toVariableList()
このCategoryPropertyに設定されている内容をVariableList化します。