public class CalendarDayCell extends CalendarCell
BOTTOM, CENTER, CENTER_HORIZONTAL, CENTER_VERTICAL, LEFT, RIGHT, TOP
Constructor and Description |
---|
CalendarDayCell(RadCalendarView owner)
Initializes a new instance of the
CalendarCell class. |
Modifier and Type | Method and Description |
---|---|
void |
arrange(int left,
int top,
int right,
int bottom)
Used to arrange the current element instance according to the given dimensions.
|
List<Event> |
getEvents()
Gets the events related for the date presented by the current CalendarCell.
|
boolean |
getIsFromCurrentMonth()
Gets a
boolean
value that specifies whether this CalendarCell is part from the month
that is currently visualized. |
String |
getSecondaryText()
Gets a
String
value which represents a secondary text information contained in the
current CalendarCell. |
int |
getSecondaryTextColorDisabled()
Gets the color to be used for the secondary text when the cell is enabled.
|
int |
getSecondaryTextColorEnabled()
Gets the color to be used for the secondary text when the cell is enabled.
|
int |
getSecondaryTextPosition()
Gets the current secondary text position.
|
float |
getSecondaryTextSize()
Gets the current secondary text size.
|
boolean |
isSelectable()
Gets a value that states whether the cell can be selected or not.
|
boolean |
isSelected()
Gets a
boolean
value that specifies whether this CalendarCell is currently selected. |
void |
render(Canvas canvas)
This method is called at onDraw() call from the main calendar view instance and is used for drawing all custom elements building the calendar structure.
|
Paint |
secondaryTextPaint()
Provides access to the
Paint
object which is used to render secondary text information
contained in the current CalendarCell. |
void |
setEnabled(boolean enabled)
Sets a value determining whether the current element is enabled.
|
void |
setEvents(List<Event> events)
Sets the events related for the date presented by the current CalendarCell.
|
void |
setIsFromCurrentMonth(boolean value)
Sets a
boolean
value that specifies whether this CalendarCell is part
from the currently displayed month. |
void |
setSecondaryText(String value)
Sets a
String
value that specifies additional information that is contained in the
current CalendarCell. |
void |
setSecondaryTextColor(int colorEnabled,
int colorDisabled)
Sets the color for the secondary text for both enabled and disabled state.
|
void |
setSecondaryTextPosition(int secondaryTextPosition)
Sets the current secondary text position.
|
void |
setSecondaryTextSize(float secondaryTextSize)
Sets the current secondary text size.
|
void |
setSelectable(boolean selectable)
Sets a value that states whether the cell can be selected or not.
|
void |
setSelected(boolean value)
Sets a
boolean
value that specifies whether this CalendarCell is currently selected. |
void |
setVisibility(ElementVisibility visibility) |
getBorderColor, getBorderWidth, getCellType, getDate, getRow, isDrawBorderInsideCell, isLastCellInRow, isToday, isWeekend, postRender, setAsToday, setBorderColor, setBorderWidth, setCellType, setDate, setDrawBorderInsideCell, setLastCellInRow, setRow
getText, getTextColor, getTextColorDisabled, getTextColorEnabled, getTextPaint, getTextPosition, getTextSize, getTypeface, setPadding, setText, setTextColor, setTextColor, setTextColorDisabled, setTextColorEnabled, setTextPaint, setTextPosition, setTextSize, setTypeface, textPositionX, textPositionY
calcBorderRect, getAlpha, getBackgroundColorDisabled, getBackgroundColorEnabled, getBitmap, getBitmapPosition, getBottom, getHeight, getLeft, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getRight, getTop, getVirtualOffsetX, getVirtualOffsetY, getVisibility, getWidth, isEnabled, pointIsInsideElement, setAlpha, setBackgroundColor, setBackgroundColorDisabled, setBackgroundColorEnabled, setBitmap, setBitmapPosition, setPaddingHorizontal, setPaddingVertical, setParent, setVirtualOffsets, setVirtualOffsetX, setVirtualOffsetY, translate, virtualBottom, virtualLeft, virtualRight, virtualTop, virtualTranslate
public CalendarDayCell(RadCalendarView owner)
CalendarCell
class.owner
- the calendar instance owning this cell.public boolean isSelectable()
true
if the cell can be selected, false
otherwise.public void setSelectable(boolean selectable)
selectable
- the new selectable state.public void setVisibility(ElementVisibility visibility)
setVisibility
in class CalendarElement
public boolean getIsFromCurrentMonth()
boolean
value that specifies whether this CalendarCell is part from the month
that is currently visualized.public void setIsFromCurrentMonth(boolean value)
boolean
value that specifies whether this CalendarCell is part
from the currently displayed month.value
- the value that specifies whether this button is from current monthpublic String getSecondaryText()
String
value which represents a secondary text information contained in the
current CalendarCell.public void setSecondaryText(String value)
String
value that specifies additional information that is contained in the
current CalendarCell.value
- the value that specifies the secondary textpublic Paint secondaryTextPaint()
Paint
object which is used to render secondary text information
contained in the current CalendarCell.public List<Event> getEvents()
public void setEvents(List<Event> events)
events
- the events for the current cellpublic boolean isSelected()
boolean
value that specifies whether this CalendarCell is currently selected.public void setSelected(boolean value)
boolean
value that specifies whether this CalendarCell is currently selected.value
- the value that specifies whether this button is selectedpublic int getSecondaryTextColorEnabled()
public int getSecondaryTextColorDisabled()
public void setSecondaryTextColor(int colorEnabled, int colorDisabled)
colorEnabled
- the secondary color for enabled state.colorDisabled
- the secondary color for disabled state.public void render(Canvas canvas)
CalendarElement
render
in class CalendarTextElement
canvas
- the canvas of the main calendar view instance.public void arrange(int left, int top, int right, int bottom)
CalendarElement
arrange
in class CalendarTextElement
left
- the left border.top
- the top border.right
- the right border.bottom
- the bottom border.public float getSecondaryTextSize()
public void setSecondaryTextSize(float secondaryTextSize)
secondaryTextSize
- new secondary text size.public int getSecondaryTextPosition()
CalendarTextElement
class.public void setSecondaryTextPosition(int secondaryTextPosition)
CalendarTextElement
class.secondaryTextPosition
- the new secondary text position.public void setEnabled(boolean enabled)
CalendarElement
setEnabled
in class CalendarTextElement
enabled
- the new enabled state.