com.infoteria.gui.property
Class PropertyGroup

java.lang.Object
  |
  +--com.infoteria.gui.property.AbstractProperty
        |
        +--com.infoteria.gui.property.PropertyGroup
All Implemented Interfaces:
Cloneable, Property
Direct Known Subclasses:
PropertyGroup

public class PropertyGroup
extends AbstractProperty

プロパティグループ
プロパティを階層化するためのプロパティです。
プロパティグループ自体はプロパティ値を持ちません


Field Summary
static String PROPERTY_TYPE
           
 
Fields inherited from class com.infoteria.gui.property.AbstractProperty
_listenerList, ATTR_DISPLAY_NAME, ATTR_NAME, ATTR_READONLY, ATTR_TYPE, ATTR_VISIBLE, ELEM_PROPERTY, PROPERTY_NSURI
 
Constructor Summary
PropertyGroup(PropertyHolder owner, String name)
           
PropertyGroup(String name)
           
 
Method Summary
 void addChild(Property prop)
           
 void addPropertyGroupListener(PropertyGroupListener l)
           
 void assign(Element el)
           
 void assignTo(Element el)
           
 void clear()
           
 void collapse()
           
protected  void doClone(AbstractProperty prop)
           
protected  com.infoteria.gui.diff.Difference doGetDifference(Property prop)
           
 void expand()
           
 List getAllChilds()
           
 List getAllChildsAndSelf()
           
 Property getChild(int idx)
           
 Property getChild(String name)
           
 int getChildCount()
           
 List getChildren()
           
 String getType()
           
 boolean isDescendant(Property prop)
          引数のPropertyが自分の子孫であるかどうかを返します
 boolean isEditable()
           
 boolean isExpand()
           
 boolean isVisibleDescendant(Property prop)
          引数のPropertyがVisibleであるかどうかを返します 引数のPropertyは自分の子孫でなければなりません
 void removeChild(Property prop)
           
 void removePropertyGroupListener(PropertyGroupListener l)
           
 void setExpand(boolean b)
           
 void setOwner(PropertyHolder owner)
           
 UndoableEdit setValue(Object o, boolean canUndo)
           
 UndoableEdit setValueAsString(String o, boolean canUndo)
           
 boolean valueEquals(Property prop)
           
 
Methods inherited from class com.infoteria.gui.property.AbstractProperty
addPropertyChangeListener, clone, createUndoableEdit, doSetValue, getAdapter, getDifference, getDisplayName, getEditor, getName, getOwner, getPropertyChangeListeners, getRenderer, getTooltip, getValue, getValueAsString, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setRenderer, setTooltip, setValue, setValueAsString, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_TYPE

public static final String PROPERTY_TYPE
Constructor Detail

PropertyGroup

public PropertyGroup(PropertyHolder owner,
                     String name)

PropertyGroup

public PropertyGroup(String name)
Method Detail

getType

public String getType()
Description copied from interface: Property
プロパティ型を返します。

setValue

public UndoableEdit setValue(Object o,
                             boolean canUndo)
                      throws PropertyException
Description copied from interface: Property
プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
Overrides:
setValue in class AbstractProperty

setValueAsString

public UndoableEdit setValueAsString(String o,
                                     boolean canUndo)
                              throws PropertyException
Description copied from interface: Property
プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
Overrides:
setValueAsString in class AbstractProperty

isEditable

public boolean isEditable()
Description copied from interface: Property
プロパティが編集可能であるかどうかを返します。
Overrides:
isEditable in class AbstractProperty

addChild

public void addChild(Property prop)

removeChild

public void removeChild(Property prop)

clear

public void clear()

getChildCount

public int getChildCount()

getChild

public Property getChild(String name)

getChild

public Property getChild(int idx)

setOwner

public void setOwner(PropertyHolder owner)
Description copied from interface: Property
プロパティのオーナーを設定します。
Overrides:
setOwner in class AbstractProperty

getAllChilds

public List getAllChilds()

getAllChildsAndSelf

public List getAllChildsAndSelf()

isDescendant

public boolean isDescendant(Property prop)
引数のPropertyが自分の子孫であるかどうかを返します

isVisibleDescendant

public boolean isVisibleDescendant(Property prop)
引数のPropertyがVisibleであるかどうかを返します 引数のPropertyは自分の子孫でなければなりません

getChildren

public List getChildren()

expand

public void expand()

collapse

public void collapse()

isExpand

public boolean isExpand()

setExpand

public void setExpand(boolean b)

addPropertyGroupListener

public void addPropertyGroupListener(PropertyGroupListener l)

removePropertyGroupListener

public void removePropertyGroupListener(PropertyGroupListener l)

doClone

protected void doClone(AbstractProperty prop)
Description copied from class: AbstractProperty
cloneメソッドの実装部分 DeepCopyが必要な場合はオーバーライドしてください。
Overrides:
doClone in class AbstractProperty

assign

public void assign(Element el)
Description copied from interface: Property
XMLの要素からプロパティ値を設定します。
Overrides:
assign in class AbstractProperty

assignTo

public void assignTo(Element el)
Description copied from interface: Property
XMLの要素にプロパティ値を設定します。
Overrides:
assignTo in class AbstractProperty

valueEquals

public boolean valueEquals(Property prop)
Description copied from interface: Property
プロパティの設定値を比較します
Overrides:
valueEquals in class AbstractProperty

doGetDifference

protected com.infoteria.gui.diff.Difference doGetDifference(Property prop)
Overrides:
doGetDifference in class AbstractProperty