com.infoteria.gui.property
Class PropertyGroup
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.PropertyGroup
- All Implemented Interfaces:
- java.lang.Cloneable, Property
- Direct Known Subclasses:
- PropertyGroup
- public class PropertyGroup
- extends AbstractProperty
プロパティグループ
プロパティを階層化するためのプロパティです。
プロパティグループ自体はプロパティ値を持ちません
| 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 |
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
PropertyGroup
public PropertyGroup(PropertyHolder owner,
java.lang.String name)
PropertyGroup
public PropertyGroup(java.lang.String name)
getType
public java.lang.String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
setValue
public javax.swing.undo.UndoableEdit setValue(java.lang.Object o,
boolean canUndo)
throws PropertyException
- Description copied from interface:
Property
- プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
- Overrides:
setValue in class AbstractProperty
setValueAsString
public javax.swing.undo.UndoableEdit setValueAsString(java.lang.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(java.lang.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 java.util.List getAllChilds()
getAllChildsAndSelf
public java.util.List getAllChildsAndSelf()
isDescendant
public boolean isDescendant(Property prop)
- 引数のPropertyが自分の子孫であるかどうかを返します
isVisibleDescendant
public boolean isVisibleDescendant(Property prop)
- 引数のPropertyがVisibleであるかどうかを返します
引数のPropertyは自分の子孫でなければなりません
getChildren
public java.util.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(org.w3c.dom.Element el)
- Description copied from interface:
Property
- XMLの要素からプロパティ値を設定します。
- Overrides:
assign in class AbstractProperty
assignTo
public void assignTo(org.w3c.dom.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