|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.component.TimeStampModel
public class TimeStampModel
Constructor Summary | |
---|---|
TimeStampModel(org.openpermis.policy.TimeStamp timeStamp)
Creates a model for a time stamp. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(String property,
PropertyChangeListener listener)
Registers a property change listener on this model. |
protected void |
firePropertyChanged(String property,
Object oldValue,
Object newValue)
Notifies listeners that a property changed its value. |
Date |
getDate()
Gets the date part of the current time stamp. |
long |
getTimeOfDay()
Gets the current time of day in milliseconds. |
org.openpermis.policy.TimeStamp |
getTimeStamp()
Gets the current time stamp value. |
void |
removePropertyChangeListener(String property,
PropertyChangeListener listener)
Deregisters a property change listener on this model. |
void |
setDate(Date date)
Sets the date part of the current time stamp. |
void |
setTimeOfDay(long timeOfDay)
Sets the current time of day in milliseconds. |
void |
setTimeStamp(org.openpermis.policy.TimeStamp timeStamp)
Sets the current time stamp value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeStampModel(org.openpermis.policy.TimeStamp timeStamp)
timeStamp
- the initial time stamp value for the model.Method Detail |
---|
public org.openpermis.policy.TimeStamp getTimeStamp()
public void setTimeStamp(org.openpermis.policy.TimeStamp timeStamp)
timeStamp
- the new time stamp value.public Date getDate()
public void setDate(Date date)
date
- the date to set. Its time of day will be replaced by the current time of day.public long getTimeOfDay()
public void setTimeOfDay(long timeOfDay)
timeOfDay
- the number of milliseconds since midnight. Date information
will be ignored.public void addPropertyChangeListener(String property, PropertyChangeListener listener)
property
- the property whose changes to observe.listener
- the listener to register.public void removePropertyChangeListener(String property, PropertyChangeListener listener)
property
- the property whose changes to no longer observe.listener
- the listener to deregister.protected void firePropertyChanged(String property, Object oldValue, Object newValue)
property
- the property whose value was changed.oldValue
- the previous value of the property.newValue
- the new value of the property.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG