com.infoteria.gui.property
Class XMLDocumentProperty
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.XMLDocumentProperty
- All Implemented Interfaces:
- java.lang.Cloneable, MetaData, Property
- public class XMLDocumentProperty
- extends AbstractProperty
- implements MetaData
XMLDocumentプロパティ
org.w3c.dom.Documentを扱うためのプロパティです。
| Methods inherited from class com.infoteria.gui.property.AbstractProperty |
addPropertyChangeListener, clone, createUndoableEdit, doSetValue, getAdapter, getDifference, getDisplayName, getEditor, getName, getOwner, getPropertyChangeListeners, getRenderer, getTooltip, getValue, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, 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.gui.util.MetaData |
clone |
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
XMLDocumentProperty
public XMLDocumentProperty(PropertyHolder owner,
java.lang.String name)
XMLDocumentProperty
public XMLDocumentProperty(java.lang.String name)
getType
public java.lang.String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
isNormalizeWhitespace
public boolean isNormalizeWhitespace()
- Documentの設定の際に不要なSpaceが削除されるかどうかを取得します。
setNormalizeWhitespace
public void setNormalizeWhitespace(boolean b)
- Documentの設定の際に不要なSpaceが削除されるかどうかを設定します。
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
getDocument
public org.w3c.dom.Document getDocument()
- プロパティ値として設定されているDocumentを返します。
getValueAsString
public java.lang.String getValueAsString()
- Description copied from interface:
Property
- プロパティ値を文字列で返します。
- Overrides:
getValueAsString in class AbstractProperty
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
setup
public void setup(org.w3c.dom.Element el)
- Description copied from interface:
MetaData
- 定義情報のある要素から設定情報を自身に反映します。
- Specified by:
setup in interface MetaData
saveToFile
public void saveToFile(java.io.File f,
boolean bIndent)
throws java.io.IOException
- プロパティ値として設定されているDocumentをファイルに保存します。
loadFromFile
public javax.swing.undo.UndoableEdit loadFromFile(java.io.File f)
throws java.io.IOException
- XMLファイルを読み込んでDocumentをプロパティ値に設定します。
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