|
![]() |
||||||||
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
Field Summary | |
---|---|
private PropertyChangeSupport |
changeSupport
|
private static int |
MILLIS_PER_SECOND
|
private static int |
MINUTES_PER_HOUR
|
private static int |
SECONDS_PER_MINUTE
|
private org.openpermis.policy.TimeStamp |
timeStamp
|
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. |
private void |
clearTimeOfDay(Calendar cal)
|
protected void |
firePropertyChanged(String property,
Object oldValue,
Object newValue)
Notifies listeners that a property changed its value. |
private Calendar |
getCalendar()
|
private Calendar |
getCalendar(Date date)
|
Date |
getDate()
Gets the date part of the current time stamp. |
long |
getTimeOfDay()
Gets the current time of day in milliseconds. |
private long |
getTimeOfDay(Calendar cal)
|
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. |
private void |
setDate(Date newDate,
boolean propagate)
|
void |
setTimeOfDay(long timeOfDay)
Sets the current time of day in milliseconds. |
private void |
setTimeOfDay(long timeOfDay,
boolean propagate)
|
void |
setTimeStamp(org.openpermis.policy.TimeStamp timeStamp)
Sets the current time stamp value. |
private void |
setTimeStamp(org.openpermis.policy.TimeStamp newValue,
boolean propagate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MILLIS_PER_SECOND
1000
private static final int SECONDS_PER_MINUTE
60
private static final int MINUTES_PER_HOUR
60
private final PropertyChangeSupport changeSupport
private org.openpermis.policy.TimeStamp timeStamp
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.private void setTimeStamp(org.openpermis.policy.TimeStamp newValue, boolean propagate)
public Date getDate()
private void clearTimeOfDay(Calendar cal)
public void setDate(Date date)
date
- the date to set. Its time of day will be replaced by the current time of day.private void setDate(Date newDate, boolean propagate)
public long getTimeOfDay()
private long getTimeOfDay(Calendar cal)
public void setTimeOfDay(long timeOfDay)
timeOfDay
- the number of milliseconds since midnight. Date information
will be ignored.private void setTimeOfDay(long timeOfDay, boolean propagate)
private Calendar getCalendar()
private Calendar getCalendar(Date date)
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 |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG