com.google.gwt.widgetideas.datepicker.client.impl
Class DatePickerCell

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Label
              extended by com.google.gwt.widgetideas.datepicker.client.impl.DatePickerCell
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasText, com.google.gwt.user.client.ui.HasWordWrap, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.SourcesMouseEvents, com.google.gwt.user.client.ui.SourcesMouseWheelEvents

public class DatePickerCell
extends com.google.gwt.user.client.ui.Label

Public class DatePickerCell is being used by DatePicker class to keep the labels of controls and dates in the grid. It has the facility to attach and retrieve integer type and value fields. The type and value fields could be used by DatePicker to attach the type and specific nature of actions on click.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Field Summary
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
 
Constructor Summary
DatePickerCell()
          Default constructor.
DatePickerCell(java.lang.String text)
          Constructor of DatePickerCell.
DatePickerCell(java.lang.String text, int type, int value)
          Constructor of DatePickerCell.
 
Method Summary
 java.lang.Object clone()
          Creates a clone of the DatePickerCell object.
 void setType(int type)
          Sets type of the DatePickerCell.
 void setValue(int value)
          Sets value of the DatePickerCell.
 int type()
          Gets the type of the DatePickerCell.
 int value()
          Gets the value of the DatePickerCell.
 
Methods inherited from class com.google.gwt.user.client.ui.Label
addClickListener, addMouseListener, addMouseWheelListener, getHorizontalAlignment, getText, getWordWrap, onBrowserEvent, removeClickListener, removeMouseListener, removeMouseWheelListener, setHorizontalAlignment, setText, setWordWrap
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatePickerCell

public DatePickerCell()
Default constructor.


DatePickerCell

public DatePickerCell(java.lang.String text)
Constructor of DatePickerCell.

Parameters:
text - - string to be set to the label

DatePickerCell

public DatePickerCell(java.lang.String text,
                      int type,
                      int value)
Constructor of DatePickerCell.

Parameters:
text - - string to be set to the label
type - - type to be associated to the label
value - - value to be associated to the label
Method Detail

clone

public java.lang.Object clone()
Creates a clone of the DatePickerCell object.

Overrides:
clone in class java.lang.Object
Returns:
Object - with the text,

setType

public void setType(int type)
Sets type of the DatePickerCell.

Parameters:
type - - int indicating the type of the object

setValue

public void setValue(int value)
Sets value of the DatePickerCell.

Parameters:
value - - int indicating the value of the object

type

public int type()
Gets the type of the DatePickerCell.

Returns:
value - int indicating the type of the object

value

public int value()
Gets the value of the DatePickerCell.

Returns:
value - int indicating the value of the object