com.infoteria.gui.property
クラス XMLDocumentProperty

java.lang.Object
  |
  +--com.infoteria.gui.property.AbstractProperty
        |
        +--com.infoteria.gui.property.XMLDocumentProperty
すべての実装インタフェース:
Cloneable, MetaData, Property

public class XMLDocumentProperty
extends AbstractProperty
implements MetaData

XMLDocumentプロパティ
org.w3c.dom.Documentを扱うためのプロパティです。


フィールドの概要
static String PROPERTY_TYPE
           
 
クラス com.infoteria.gui.property.AbstractProperty から継承したフィールド
_listenerList, ATTR_DISPLAY_NAME, ATTR_NAME, ATTR_READONLY, ATTR_TYPE, ATTR_VISIBLE, ELEM_PROPERTY, PROPERTY_NSURI
 
コンストラクタの概要
XMLDocumentProperty(PropertyHolder owner, String name)
           
XMLDocumentProperty(String name)
           
 
メソッドの概要
 void assign(Element el)
           
 void assignTo(Element el)
           
protected  void doClone(AbstractProperty prop)
           
 Document getDocument()
          プロパティ値として設定されているDocumentを返します。
 String getType()
           
 String getValueAsString()
           
 boolean isNormalizeWhitespace()
          Documentの設定の際に不要なSpaceが削除されるかどうかを取得します。
 UndoableEdit loadFromFile(File f)
          XMLファイルを読み込んでDocumentをプロパティ値に設定します。
 void saveToFile(File f, boolean bIndent)
          プロパティ値として設定されているDocumentをファイルに保存します。
 void setNormalizeWhitespace(boolean b)
          Documentの設定の際に不要なSpaceが削除されるかどうかを設定します。
 void setup(Element el)
           
 UndoableEdit setValue(Object o, boolean canUndo)
           
 UndoableEdit setValueAsString(String o, boolean canUndo)
           
 
クラス com.infoteria.gui.property.AbstractProperty から継承したメソッド
addPropertyChangeListener, clone, createUndoableEdit, doSetValue, getAdapter, getDisplayName, getEditor, getName, getOwner, getRenderer, getTooltip, getValue, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValueAsString, setVisible
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース com.infoteria.gui.util.MetaData から継承したメソッド
clone
 

フィールドの詳細

PROPERTY_TYPE

public static final String PROPERTY_TYPE
コンストラクタの詳細

XMLDocumentProperty

public XMLDocumentProperty(PropertyHolder owner,
                           String name)

XMLDocumentProperty

public XMLDocumentProperty(String name)
メソッドの詳細

getType

public String getType()
インタフェース Property の記述:
プロパティ型を返します。

isNormalizeWhitespace

public boolean isNormalizeWhitespace()
Documentの設定の際に不要なSpaceが削除されるかどうかを取得します。

setNormalizeWhitespace

public void setNormalizeWhitespace(boolean b)
Documentの設定の際に不要なSpaceが削除されるかどうかを設定します。

setValue

public UndoableEdit setValue(Object o,
                             boolean canUndo)
                      throws PropertyException
インタフェース Property の記述:
プロパティ値を設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
オーバーライド:
クラス AbstractProperty 内の setValue

setValueAsString

public UndoableEdit setValueAsString(String o,
                                     boolean canUndo)
                              throws PropertyException
インタフェース Property の記述:
プロパティ値を文字列で設定します。
Undo情報を返す必要がない場合はcanUndoにfalseを指定します。
オーバーライド:
クラス AbstractProperty 内の setValueAsString

getDocument

public Document getDocument()
プロパティ値として設定されているDocumentを返します。

getValueAsString

public String getValueAsString()
インタフェース Property の記述:
プロパティ値を文字列で返します。
オーバーライド:
クラス AbstractProperty 内の getValueAsString

doClone

protected void doClone(AbstractProperty prop)
クラス AbstractProperty の記述:
cloneメソッドの実装部分 DeepCopyが必要な場合はオーバーライドしてください。
オーバーライド:
クラス AbstractProperty 内の doClone

assign

public void assign(Element el)
インタフェース Property の記述:
XMLの要素からプロパティ値を設定します。
オーバーライド:
クラス AbstractProperty 内の assign

assignTo

public void assignTo(Element el)
インタフェース Property の記述:
XMLの要素にプロパティ値を設定します。
オーバーライド:
クラス AbstractProperty 内の assignTo

setup

public void setup(Element el)
インタフェース MetaData の記述:
定義情報のある要素から設定情報を自身に反映します。
定義:
インタフェース MetaData 内の setup

saveToFile

public void saveToFile(File f,
                       boolean bIndent)
                throws IOException
プロパティ値として設定されているDocumentをファイルに保存します。

loadFromFile

public UndoableEdit loadFromFile(File f)
                          throws IOException
XMLファイルを読み込んでDocumentをプロパティ値に設定します。