gr.bluevibe.fire.components
Class Row

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

public class Row
extends Component


Field Summary
protected  javax.microedition.lcdui.Image image
           
protected  FString label
           
protected  javax.microedition.lcdui.Image selectedImage
           
protected  FString text
           
 
Constructor Summary
Row()
           
Row(javax.microedition.lcdui.Image img)
           
Row(javax.microedition.lcdui.Image img, java.lang.String txt)
           
Row(java.lang.String txt)
           
Row(java.lang.String txt, javax.microedition.lcdui.Image img)
           
 
Method Summary
 int getAlignment()
           
 java.lang.Integer getBgColor()
           
 int getColor()
           
 java.lang.Integer getFilled()
           
 javax.microedition.lcdui.Font getFont()
           
 java.lang.Integer getForcedTextWidth()
           
 java.lang.String getId()
           
 javax.microedition.lcdui.Image getImage()
           
 int getImageHpos()
           
 int getImageVpos()
           
 int getNumberOfLines()
           
 javax.microedition.lcdui.Image getSelectedImage()
           
 java.lang.String getText()
           
 int getTextBoxConstrains()
           
 int getTextBoxSize()
           
 int getTextHpos()
           
 int getTextVpos()
           
 boolean isBorder()
           
 boolean isEditable()
           
 boolean isFullSizeHighlight()
           
 boolean isOverlay()
           
 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 setAlignment(int alignment)
           
 void setBgColor(java.lang.Integer bgColor)
           
 void setBorder(boolean border)
           
 void setColor(int color)
           
 void setEditable(boolean editable)
          Sets this row to editable (or not).
 void setFilled(java.lang.Integer filled)
           
 void setFont(javax.microedition.lcdui.Font f)
           
 void setForcedTextWidth(java.lang.Integer forcedTextWidth)
           
 void setFullSizeHighlight(boolean fullSizeHighlight)
           
 void setId(java.lang.String id)
           
 void setImage(javax.microedition.lcdui.Image image)
           
 void setImageHpos(int imageHpos)
           
 void setImageVpos(int imageVpos)
           
 void setLabel(java.lang.String labelStr, javax.microedition.lcdui.Font labelFont, java.lang.Integer width, int labelVpos)
           
 void setNumberOfLines(int numberOfLines)
          Sets the number of text lines on this row.
 void setOverlay(boolean overlay)
           
 void setSelectedImage(javax.microedition.lcdui.Image selectedImage)
           
 void setText(java.lang.String text)
           
 void setTextBoxConstrains(int textBoxConstrains)
           
 void setTextBoxSize(int textBoxSize)
           
 void setTextHpos(int textHpos)
           
 void setTextVpos(int textVpos)
           
 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
 

Field Detail

image

protected javax.microedition.lcdui.Image image

selectedImage

protected javax.microedition.lcdui.Image selectedImage

text

protected FString text

label

protected FString label
Constructor Detail

Row

public Row()

Row

public Row(java.lang.String txt,
           javax.microedition.lcdui.Image img)

Row

public Row(javax.microedition.lcdui.Image img)

Row

public Row(java.lang.String txt)

Row

public Row(javax.microedition.lcdui.Image img,
           java.lang.String txt)
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:

getImage

public javax.microedition.lcdui.Image getImage()

setImage

public void setImage(javax.microedition.lcdui.Image image)

getImageHpos

public int getImageHpos()

setImageHpos

public void setImageHpos(int imageHpos)

getImageVpos

public int getImageVpos()

setImageVpos

public void setImageVpos(int imageVpos)

isOverlay

public boolean isOverlay()

setOverlay

public void setOverlay(boolean overlay)

getSelectedImage

public javax.microedition.lcdui.Image getSelectedImage()

setSelectedImage

public void setSelectedImage(javax.microedition.lcdui.Image selectedImage)

setText

public void setText(java.lang.String text)

getText

public java.lang.String getText()

getFont

public javax.microedition.lcdui.Font getFont()

setFont

public void setFont(javax.microedition.lcdui.Font f)

getTextHpos

public int getTextHpos()

setTextHpos

public void setTextHpos(int textHpos)

getTextVpos

public int getTextVpos()

setTextVpos

public void setTextVpos(int textVpos)

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

getBgColor

public java.lang.Integer getBgColor()

setBgColor

public void setBgColor(java.lang.Integer bgColor)

getColor

public int getColor()

setColor

public void setColor(int color)

getAlignment

public int getAlignment()

setAlignment

public void setAlignment(int alignment)

isBorder

public boolean isBorder()

setBorder

public void setBorder(boolean border)

getFilled

public java.lang.Integer getFilled()

setFilled

public void setFilled(java.lang.Integer filled)

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean editable)
Sets this row to editable (or not). An editable row, acts like a text-field, and has a minimum height of 1 line (line height depends on the height of the font used).

Parameters:
editable -

getTextBoxConstrains

public int getTextBoxConstrains()

setTextBoxConstrains

public void setTextBoxConstrains(int textBoxConstrains)

getTextBoxSize

public int getTextBoxSize()

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:

setTextBoxSize

public void setTextBoxSize(int textBoxSize)

getId

public java.lang.String getId()

setLabel

public void setLabel(java.lang.String labelStr,
                     javax.microedition.lcdui.Font labelFont,
                     java.lang.Integer width,
                     int labelVpos)

setId

public void setId(java.lang.String id)

getForcedTextWidth

public java.lang.Integer getForcedTextWidth()

setForcedTextWidth

public void setForcedTextWidth(java.lang.Integer forcedTextWidth)

setNumberOfLines

public void setNumberOfLines(int numberOfLines)
Sets the number of text lines on this row. This value is for the number of lines on the main text not the label. A value <1 is interpreted as no set number of lines (there will be as many lines as needed). If the numberOfLines is less than the number of lines needed to correctly display the text, the text will not be drawn completely.

Parameters:
numberOfLines -

getNumberOfLines

public int getNumberOfLines()

isFullSizeHighlight

public boolean isFullSizeHighlight()

setFullSizeHighlight

public void setFullSizeHighlight(boolean fullSizeHighlight)