Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar.data
Class CalendarTableCellInfo

java.lang.Object
  extended bycom.imagine.component.calendar.data.CalendarTableCellInfo

public class CalendarTableCellInfo
extends java.lang.Object

Contains informations about a calendar table cell.


Constructor Summary
CalendarTableCellInfo()
           
 
Method Summary
 int getColumn()
          Get the column of the cell.
 int getDayOfMonth()
          Get the day of month.
 int getDayOfWeek()
          Returns the day of week.
 int getDayOfYear()
          Returns the day of year.
 int getHeight()
          Returns the height of the cell.
 int getMonth()
          Get the month.
 CalendarMonthType getMonthType()
          Get the type of the month described by this object.
 int getMouseX()
           
 int getMouseY()
           
 int getRow()
          Get the row of the cell.
 java.lang.Object getValue()
          Returns the value in the cell.
 int getWeekOfMonth()
          Get the week of month.
 int getWeekOfYear()
          Returns the week of year.
 int getWidth()
          Returns the width of the cell.
 int getYear()
          Get the year.
 boolean isDisabled()
          true if the cell is disabled.
 boolean isFromWeekend()
          Returns true if the date associated with the cell is from weekend.
 boolean isHovered()
           
 boolean isOnHoveredColumn()
          Returns true if this cell is on the hovered column.
 boolean isOnHoveredRow()
          Returns true if this cell is on the hovered row.
 boolean isSelected()
          true if the cell is selected.
 boolean isToday()
          Returns true if the cell contains the today date.
 void setColumn(int column)
          Set the column of the cell.
 void setDayOfMonth(int dayOfMonth)
          Set the day of month.
 void setDayOfWeek(int dayOfWeek)
          Set the day of week.
 void setDayOfYear(int dayOfYear)
          Set the day of year.
 void setDisabled(boolean disabled)
          true if the cell is disabled.
 void setHeight(int height)
          Set the height of the cell.
 void setMonth(int month)
          Set the month.
 void setMonthType(CalendarMonthType monthType)
          Set the type of the month described by this object.
 void setMouseX(int mousex)
           
 void setMouseY(int mousey)
           
 void setOnHoveredColumn(boolean onHoveredColumn)
          Set to true if this cell is on the hovered column.
 void setOnHoveredRow(boolean onHoveredRow)
          Set to true if this cell is on the hovered row.
 void setRow(int row)
          Set the row of the cell.
 void setSelected(boolean selected)
          true if the cell is selected.
 void setToday(boolean today)
          true if the cell contains the today date.
 void setValue(java.lang.Object value)
          Set the value in the cell.
 void setWeekOfMonth(int weekOfMonth)
          Set the week of month
 void setWeekOfYear(int weekOfYear)
          Set the week of year.
 void setWidth(int width)
          Set the width of the cell.
 void setYear(int year)
          Set the year.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarTableCellInfo

public CalendarTableCellInfo()
Method Detail

getMouseX

public int getMouseX()
Returns:
Returns the mousex.

setMouseX

public void setMouseX(int mousex)
Parameters:
mousex - The mousex to set.

getMouseY

public int getMouseY()
Returns:
Returns the mousey.

setMouseY

public void setMouseY(int mousey)
Parameters:
mousey - The mousey to set.

isHovered

public boolean isHovered()
Returns:
Returns true if the status panel is hovered. False otherwise.

getValue

public java.lang.Object getValue()
Returns the value in the cell.

Returns:
Returns the value.

setValue

public void setValue(java.lang.Object value)
Set the value in the cell.

Parameters:
value - The value to set.

getWidth

public int getWidth()
Returns the width of the cell.

Returns:
Returns the width of the cell.

setWidth

public void setWidth(int width)
Set the width of the cell.

Parameters:
width - The width of the cell.

getHeight

public int getHeight()
Returns the height of the cell.

Returns:
Returns the height.

setHeight

public void setHeight(int height)
Set the height of the cell.

Parameters:
height - The height to set.

isFromWeekend

public boolean isFromWeekend()
Returns true if the date associated with the cell is from weekend. False otherwise.

Returns:
true If the date associated with the cell is from weekend. False otherwise.

isToday

public boolean isToday()
Returns true if the cell contains the today date.

Returns:
true if the cell contains the today date. False otherwise.

setToday

public void setToday(boolean today)
true if the cell contains the today date. False otherwise.

Parameters:
today - true if the cell contains the today date. False otherwise.

isSelected

public boolean isSelected()
true if the cell is selected. False otherwise.

Returns:
true if the cell is selected. False otherwise.

setSelected

public void setSelected(boolean selected)
true if the cell is selected. False otherwise.

Parameters:
selected - true if the cell is selected. False otherwise.

isDisabled

public boolean isDisabled()
true if the cell is disabled. False otherwise.

Returns:
true if the cell is disabled. False otherwise.

setDisabled

public void setDisabled(boolean disabled)
true if the cell is disabled. False otherwise.

Parameters:
disabled - true if the cell is disabled. False otherwise.

toString

public java.lang.String toString()

getMonthType

public CalendarMonthType getMonthType()
Get the type of the month described by this object.

Returns:
the type of the month described by this object.

setMonthType

public void setMonthType(CalendarMonthType monthType)
Set the type of the month described by this object.

Parameters:
monthType - the type of the month described by this object.

getColumn

public int getColumn()
Get the column of the cell.

Returns:
the column of the cell.

setColumn

public void setColumn(int column)
Set the column of the cell.

Parameters:
column - the column of the cell.

getRow

public int getRow()
Get the row of the cell.

Returns:
the row of the cell.

setRow

public void setRow(int row)
Set the row of the cell.

Parameters:
row - the row of the cell.

getDayOfMonth

public int getDayOfMonth()
Get the day of month.

Returns:
The day of month.

setDayOfMonth

public void setDayOfMonth(int dayOfMonth)
Set the day of month.

Parameters:
dayOfMonth - The day of month.

getMonth

public int getMonth()
Get the month.

Returns:
The month.

setMonth

public void setMonth(int month)
Set the month.

Parameters:
month - The month.

getYear

public int getYear()
Get the year.

Returns:
The year.

setYear

public void setYear(int year)
Set the year.

Parameters:
year - The year.

getDayOfWeek

public int getDayOfWeek()
Returns the day of week.

Returns:
The day of week.

setDayOfWeek

public void setDayOfWeek(int dayOfWeek)
Set the day of week.

Parameters:
dayOfWeek - The day of week.

getDayOfYear

public int getDayOfYear()
Returns the day of year.

Returns:
Returns the day of year.

setDayOfYear

public void setDayOfYear(int dayOfYear)
Set the day of year.

Parameters:
dayOfYear - The day of year to set.

getWeekOfMonth

public int getWeekOfMonth()
Get the week of month.

Returns:
Returns the week of month.

setWeekOfMonth

public void setWeekOfMonth(int weekOfMonth)
Set the week of month

Parameters:
weekOfMonth - The wek of month to set.

getWeekOfYear

public int getWeekOfYear()
Returns the week of year.

Returns:
Returns the week of year.

setWeekOfYear

public void setWeekOfYear(int weekOfYear)
Set the week of year.

Parameters:
weekOfYear - The week of year to set.

isOnHoveredColumn

public boolean isOnHoveredColumn()
Returns true if this cell is on the hovered column.

Returns:
true if this cell is on the hovered column.

setOnHoveredColumn

public void setOnHoveredColumn(boolean onHoveredColumn)
Set to true if this cell is on the hovered column.

Parameters:
onHoveredColumn - true if this cell is on the hovered column.

isOnHoveredRow

public boolean isOnHoveredRow()
Returns true if this cell is on the hovered row.

Returns:
true if this cell is on the hovered row.

setOnHoveredRow

public void setOnHoveredRow(boolean onHoveredRow)
Set to true if this cell is on the hovered row.

Parameters:
onHoveredRow - true if this cell is on the hovered row.

Java Calendar Component v3.1
www.java-calendar.com