gr.bluevibe.fire.components
Class DateTimeRow

java.lang.Object
  extended bygr.bluevibe.fire.components.Component
      extended bygr.bluevibe.fire.components.DateTimeRow

public class DateTimeRow
extends Component


Constructor Summary
DateTimeRow(java.util.Calendar date, boolean showTime)
           
 
Method Summary
 java.util.Calendar getDate()
           
 java.lang.String getLabel()
           
 boolean isShowTime()
           
 boolean isTraversable()
          If a component is traversable it can have commands associated with it and receive key and tap events (and vice versa).
 boolean keyEvent(int key)
          Key events are propagated from FireScreen down to the components of the panel or the popup that contains them.
 void paint(javax.microedition.lcdui.Graphics g)
          Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).
 boolean pointerEvent(int x, int y)
           
 void setDate(java.util.Calendar date)
           
 void setLabel(java.lang.String label)
           
 void setShowTime(boolean showTime)
           
 void validate()
          A validate event requests from the component to recalculate its internal properties suck as width/height etc.
 
Methods inherited from class gr.bluevibe.fire.components.Component
addCommand, clock, equals, fireValidateEvent, generateEvent, getHeight, getMinHeight, getMinWidth, getWidth, isAnimated, isSelected, setCommandListener, setContainerCurrent, setCurrent, setHeight, setMinHeight, setMinWidth, setSelected, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeRow

public DateTimeRow(java.util.Calendar date,
                   boolean showTime)
Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g)
Description copied from class: Component
Paint is called by the container of the component to allow it to draw itself on Graphics g The drawable area on g is (0,0,width,height).

Overrides:
paint in class Component
Parameters:
g - the area on witch the component will draw it self.

pointerEvent

public boolean pointerEvent(int x,
                            int y)
Overrides:
pointerEvent in class Component

keyEvent

public boolean keyEvent(int key)
Description copied from class: Component
Key events are propagated from FireScreen down to the components of the panel or the popup that contains them. If a component if not traversable it will not recieve key events.

Overrides:
keyEvent in class Component
Parameters:
key -
Returns:

validate

public void validate()
Description copied from class: Component
A validate event requests from the component to recalculate its internal properties suck as width/height etc.

Overrides:
validate in class Component

isTraversable

public boolean isTraversable()
Description copied from class: Component
If a component is traversable it can have commands associated with it and receive key and tap events (and vice versa).

Overrides:
isTraversable in class Component
Returns:

getDate

public java.util.Calendar getDate()

setDate

public void setDate(java.util.Calendar date)

isShowTime

public boolean isShowTime()

setShowTime

public void setShowTime(boolean showTime)

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)