com.infoteria.gui.property
Class DatetimeProperty
java.lang.Object
|
+--com.infoteria.gui.property.AbstractProperty
|
+--com.infoteria.gui.property.DatetimeProperty
- All Implemented Interfaces:
- java.lang.Cloneable, MetaData, Property
- Direct Known Subclasses:
- DateProperty, TimeProperty
- public class DatetimeProperty
- extends AbstractProperty
- implements MetaData
日時プロパティ
java.util.Dateを扱うためのプロパティです。
| 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 |
PROPERTY_TYPE
public static final java.lang.String PROPERTY_TYPE
DatetimeProperty
public DatetimeProperty(PropertyHolder owner,
java.lang.String name)
DatetimeProperty
public DatetimeProperty(java.lang.String name)
getType
public java.lang.String getType()
- Description copied from interface:
Property
- プロパティ型を返します。
getDefaultDatetimeFormat
public static java.lang.String getDefaultDatetimeFormat()
setDefaultDatetimeFormat
public static void setDefaultDatetimeFormat(java.lang.String s)
getDefaultDateFormat
public static java.lang.String getDefaultDateFormat()
setDefaultDateFormat
public static void setDefaultDateFormat(java.lang.String s)
getDefaultTimeFormat
public static java.lang.String getDefaultTimeFormat()
setDefaultTimeFormat
public static void setDefaultTimeFormat(java.lang.String s)
setup
public void setup(org.w3c.dom.Element el)
- Description copied from interface:
MetaData
- 定義情報のある要素から設定情報を自身に反映します。
- Specified by:
setup in interface MetaData
setDateFormat
public void setDateFormat(java.text.DateFormat format)
getDateFormat
public java.text.DateFormat getDateFormat()
getDefaultFormat
protected java.lang.String getDefaultFormat()
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
getValueAsString
public java.lang.String getValueAsString()
- Description copied from interface:
Property
- プロパティ値を文字列で返します。
- Overrides:
getValueAsString in class AbstractProperty
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Description copied from interface:
Property
- Adapterを返します。
- Overrides:
getAdapter in class AbstractProperty