com.infoteria.gui.property
Class DatetimeProperty

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

public class DatetimeProperty
extends AbstractProperty
implements MetaData

日時プロパティ
java.util.Dateを扱うためのプロパティです。


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
DatetimeProperty(PropertyHolder owner, String name)
           
DatetimeProperty(String name)
           
 
Method Summary
 Object getAdapter(Class clazz)
           
 DateFormat getDateFormat()
           
static String getDefaultDateFormat()
           
static String getDefaultDatetimeFormat()
           
protected  String getDefaultFormat()
           
static String getDefaultTimeFormat()
           
 String getType()
           
 String getValueAsString()
           
 void setDateFormat(DateFormat format)
           
static void setDefaultDateFormat(String s)
           
static void setDefaultDatetimeFormat(String s)
           
static void setDefaultTimeFormat(String s)
           
 void setup(Element el)
           
 UndoableEdit setValue(Object o, boolean canUndo)
           
 UndoableEdit setValueAsString(String o, boolean canUndo)
           
 
Methods inherited from class com.infoteria.gui.property.AbstractProperty
addPropertyChangeListener, assign, assignTo, clone, createUndoableEdit, doClone, doGetDifference, doSetValue, getDifference, getDisplayName, getEditor, getName, getOwner, getPropertyChangeListeners, getRenderer, getTooltip, getValue, isEditable, isVisible, removePropertyChangeListener, setDisplayName, setEditable, setEditor, setOwner, setRenderer, setTooltip, setValue, setValueAsString, setVisible, valueEquals
 
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
 

Field Detail

PROPERTY_TYPE

public static final String PROPERTY_TYPE
Constructor Detail

DatetimeProperty

public DatetimeProperty(PropertyHolder owner,
                        String name)

DatetimeProperty

public DatetimeProperty(String name)
Method Detail

getType

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

getDefaultDatetimeFormat

public static String getDefaultDatetimeFormat()

setDefaultDatetimeFormat

public static void setDefaultDatetimeFormat(String s)

getDefaultDateFormat

public static String getDefaultDateFormat()

setDefaultDateFormat

public static void setDefaultDateFormat(String s)

getDefaultTimeFormat

public static String getDefaultTimeFormat()

setDefaultTimeFormat

public static void setDefaultTimeFormat(String s)

setup

public void setup(Element el)
Description copied from interface: MetaData
定義情報のある要素から設定情報を自身に反映します。
Specified by:
setup in interface MetaData

setDateFormat

public void setDateFormat(DateFormat format)

getDateFormat

public DateFormat getDateFormat()

getDefaultFormat

protected String getDefaultFormat()

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

getValueAsString

public String getValueAsString()
Description copied from interface: Property
プロパティ値を文字列で返します。
Overrides:
getValueAsString in class AbstractProperty

getAdapter

public Object getAdapter(Class clazz)
Description copied from interface: Property
Adapterを返します。
Overrides:
getAdapter in class AbstractProperty