|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateChoose
Date selection model interface.
Модель, необходимая для отрисовки окна выбора даты.
Method Summary | |
---|---|
void |
addCommitListener(CommitListener listener)
Adds commit selection event listener. |
void |
addCursorMoveListener(CursorMoveListener listener)
Adds cursor move listener. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds property change listener. |
void |
addSelectionChangedListener(SelectionChangedListener listener)
Adds selection change listener. |
void |
commit()
Commits selection. |
void |
fireSelectionChange()
Fires "Selection changed" event. |
java.lang.String |
getCellCaption(int row,
int column)
Caption of the specified cell. |
java.util.Calendar |
getCellDate(int row,
int column)
Date corresponding to the specified cell. |
CellState |
getCellState(int row,
int column)
State of the specified cell. |
int |
getColsCount()
Columns count in day selection grid. |
java.util.Calendar |
getCurrent()
Get date under cursor. |
java.util.Calendar |
getDefaultDate()
Default date. |
java.lang.Iterable<Period> |
getForbidden()
Forbidden date for selection. |
java.util.Locale |
getLocale()
Locale. |
java.util.Calendar |
getMaxConstraint()
Get maximal enabled date. |
java.util.Calendar |
getMinConstraint()
Get minimal enabled date. |
int |
getRowsCount()
Rows count in day selection grid. |
java.util.Calendar |
getSelectedDate()
Get selected date. |
java.util.Calendar |
getVisibleDate()
Visible date. |
boolean |
isAutoScroll()
Is auto month scroll enabled. |
boolean |
isCursor(int row,
int column)
Is cursor in specified position. |
boolean |
isEnabled()
Is model enabled. |
boolean |
isLocked()
Is model locked (cursor is moving but no selection available). |
boolean |
isNothingAllowed()
Is null selection allowed. |
boolean |
isNothingSelected()
True if no selected dates (null selection). |
boolean |
isSelected(java.util.Calendar aDate)
Is specified date selected. |
boolean |
isShowNeighbourMonth()
Are neighbour months visible. |
void |
monthShift(int shift)
Jumps on specified months count. |
boolean |
needsFullValidation()
Model needs full reoutput. |
void |
removeCommitListener(CommitListener listener)
Removes commit selection event listener. |
void |
removeCursorMoveListener(CursorMoveListener listener)
Removes cursor move listener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes property change listener. |
void |
removeSelectionChangedListener(SelectionChangedListener listener)
Removes selection change listener. |
boolean |
select(java.util.Calendar aDate)
Selects specified date. |
boolean |
select(int row,
int column)
Selects specified cell. |
void |
selectNothing()
Selects null. |
void |
setAutoScroll(boolean autoScroll)
Sets auto month scroll enabled. |
void |
setConstraints(java.util.Calendar min,
java.util.Calendar max)
Date selection constraints. |
void |
setDefaultDate(java.util.Calendar aDate)
Sets default date. |
void |
setEnabled(boolean enabled)
Sets model enabled. |
void |
setForbidden(java.lang.Iterable<Period> forbiddenPeriods)
Sets forbiddend for selection dates. |
void |
setLocale(java.util.Locale locale)
Sets locale. |
void |
setLocked(boolean locked)
Sets lock. |
void |
setMaxConstraint(java.util.Calendar maxConstraint)
Sets maximal date. |
void |
setMinConstraint(java.util.Calendar minConstraint)
Sets minimal date. |
void |
setNothingAllowed(boolean allow)
Allows null selection. |
void |
setNothingSelected(boolean nothingSelected)
Selects nothing (null). |
void |
setSelectedDate(java.util.Calendar aDate)
Sets cursor on specified date. |
void |
setShowNeighbourMonth(boolean showNeighbourMonth)
Sets neighbour months visibility. |
void |
shift(int rowShift,
int columnShift)
Shifts cursor on specified steps count vertically and hirizontally. |
void |
showMonthYear(int month,
int year)
Shows specified month and year. |
void |
tryApplySelection()
Trying select date under cursor, must be defined in child classes. |
void |
yearShift(int shift)
Jumps on specified years count. |
Method Detail |
---|
int getRowsCount()
int getColsCount()
CellState getCellState(int row, int column)
java.lang.String getCellCaption(int row, int column)
java.util.Calendar getCellDate(int row, int column)
void setConstraints(java.util.Calendar min, java.util.Calendar max)
boolean needsFullValidation()
boolean select(int row, int column)
boolean isSelected(java.util.Calendar aDate)
java.util.Calendar getSelectedDate()
void setSelectedDate(java.util.Calendar aDate)
void showMonthYear(int month, int year)
java.util.Calendar getVisibleDate()
java.util.Calendar getDefaultDate()
void setDefaultDate(java.util.Calendar aDate) throws IncompatibleDataExeption
IncompatibleDataExeption
void shift(int rowShift, int columnShift)
void tryApplySelection()
void selectNothing()
boolean isCursor(int row, int column)
void monthShift(int shift)
shift
- На скоько месяцев переместиться.
Отрицательные значения обозначают прыжок назад.void yearShift(int shift)
shift
- На скоько лет переместиться.
Отрицательные значения обозначают прыжок назад.boolean isShowNeighbourMonth()
void setShowNeighbourMonth(boolean showNeighbourMonth)
boolean isEnabled()
void setEnabled(boolean enabled)
java.lang.Iterable<Period> getForbidden()
void setForbidden(java.lang.Iterable<Period> forbiddenPeriods)
java.util.Calendar getMaxConstraint()
java.util.Calendar getMinConstraint()
void setMaxConstraint(java.util.Calendar maxConstraint)
void setMinConstraint(java.util.Calendar minConstraint)
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
void fireSelectionChange()
void commit()
boolean isAutoScroll()
void setAutoScroll(boolean autoScroll)
boolean isLocked()
void setLocked(boolean locked)
boolean isNothingSelected()
void setNothingSelected(boolean nothingSelected)
java.util.Calendar getCurrent()
boolean select(java.util.Calendar aDate)
void setNothingAllowed(boolean allow)
boolean isNothingAllowed()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
void addCursorMoveListener(CursorMoveListener listener)
void removeCursorMoveListener(CursorMoveListener listener)
void addSelectionChangedListener(SelectionChangedListener listener)
void removeSelectionChangedListener(SelectionChangedListener listener)
void addCommitListener(CommitListener listener)
void removeCommitListener(CommitListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |