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を扱うためのプロパティです。
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 interface com.infoteria.gui.util.MetaData |
clone |
PROPERTY_TYPE
public static final String PROPERTY_TYPE
DatetimeProperty
public DatetimeProperty(PropertyHolder owner,
String name)
DatetimeProperty
public DatetimeProperty(String name)
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