|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlu.tudor.santec.jtimechooser.TimeChooserModel
public class TimeChooserModel
| Constructor Summary | |
|---|---|
TimeChooserModel(JTimeChooser timeChooser)
|
|
| Method Summary | |
|---|---|
void |
addTimeChangedListener(TimeChangedListener listener)
Adds the listener to the list of listener. |
void |
callListener(int reason)
Calls the timeChanged-method of all listener. |
java.text.DateFormat |
getFormat()
|
javax.swing.text.Highlighter.HighlightPainter |
getPainter()
|
java.util.regex.Pattern |
getPattern()
|
int |
getPixelPerHour()
|
int |
getPixelPerMinute()
|
int |
getPixelPerSecond()
|
int |
getScrollsPerHour()
|
int |
getScrollsPerMinute()
|
int |
getScrollsPerSecond()
|
java.util.Calendar |
getTime()
|
int |
getTime(int field)
Like the method get(int) of the class Calendar. |
TimeUnit |
getTimeUnit()
|
void |
removeTimeChangedListener(TimeChangedListener listener)
Removes the listener of the list of listener |
void |
setFormat()
If the format was changed or needs to be initialised, call this method. |
void |
setPainter(javax.swing.text.Highlighter.HighlightPainter painter)
|
void |
setPixelPerHour(int pixelPerHour)
Sets how many pixels must be dragged to change the hours by 1. |
void |
setPixelPerMinute(int pixelPerMinute)
Sets how many pixels must be dragged to change the minutes by 1. |
void |
setPixelPerSecond(int pixelPerSecond)
Sets how many pixels must be dragged to change the seconds by 1. |
void |
setScrollsPerHour(int scrollsPerHour)
|
void |
setScrollsPerMinute(int scrollsPerMinute)
|
void |
setScrollsPerSecond(int scrollsPerSecond)
|
void |
setTime(java.util.Date time)
You can manually set a new date / time |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeChooserModel(JTimeChooser timeChooser)
| Method Detail |
|---|
public TimeUnit getTimeUnit()
public java.util.Calendar getTime()
public int getTime(int field)
field - A field of the class Calendar.public void setTime(java.util.Date time)
time - The new datepublic int getPixelPerHour()
public void setPixelPerHour(int pixelPerHour)
pixelPerHour - public int getPixelPerMinute()
public void setPixelPerMinute(int pixelPerMinute)
pixelPerMinute - public int getPixelPerSecond()
public void setPixelPerSecond(int pixelPerSecond)
pixelPerSecond - public int getScrollsPerHour()
public void setScrollsPerHour(int scrollsPerHour)
scrollsPerHour - The value the hours are in- / decreased,
if the mouse wheel is rotated.public int getScrollsPerMinute()
public void setScrollsPerMinute(int scrollsPerMinute)
scrollsPerMinute - The value the minutes are in- / decreased,
if the mouse wheel is rotated.public int getScrollsPerSecond()
public void setScrollsPerSecond(int scrollsPerSecond)
scrollsPerSecond - The value the seconds are in- / decreased,
if the mouse wheel is rotated.public java.util.regex.Pattern getPattern()
public java.text.DateFormat getFormat()
public void setFormat()
public javax.swing.text.Highlighter.HighlightPainter getPainter()
public void setPainter(javax.swing.text.Highlighter.HighlightPainter painter)
painter - The Painter that defines the highlighting colour.public void addTimeChangedListener(TimeChangedListener listener)
listener - The TimeChangedListenerpublic void removeTimeChangedListener(TimeChangedListener listener)
listener - public void callListener(int reason)
reason - The reason, why the listener are called.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||