gr.bluevibe.fire.components
Class Panel

java.lang.Object
  extended bygr.bluevibe.fire.components.Component
      extended bygr.bluevibe.fire.components.Panel
All Implemented Interfaces:
ComponentListener
Direct Known Subclasses:
Popup

public class Panel
extends Component
implements ComponentListener


Field Summary
protected  boolean animateDown
           
protected  boolean animateUp
           
protected  FireScreen control
           
protected  int internalHeight
           
protected  int pointerPos
           
protected  java.util.Vector rows
           
protected  int scrollY
           
protected  int verticalOffset
           
protected  int viewportHeight
           
 
Constructor Summary
Panel()
           
 
Method Summary
 int add(Component cmp)
           
 void addCommand(javax.microedition.lcdui.Command c)
          Add a command to the components.
 void addCommand(javax.microedition.lcdui.Command popupCmd, Popup popup)
           
 boolean clock()
          Kitame an kapoio apo ta components pou fenonte ston panel einai animated.
 int countRows()
           
 java.lang.String getLabel()
           
 FTicker getTicker()
           
 int getViewportHeight()
           
 void internalValidateEvent(Component c)
          A components that requires (Validation) redrawing can request it from its container using this method.
 boolean isAnimated()
          If a componets states that it is animated, it will receive periodically clock events in order to update its animation.
 boolean isShowBorderDecorations()
           
 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)
           
 boolean remove(Component cmp)
           
 void remove(int pos)
           
 void removeAll()
          Removes all components from this panel.
 void removeCommands()
           
 void resetPointer()
           
 void setCommandListener(CommandListener l)
           
 void setContainerCurrent()
          A component can request that is container will be made current, using this method.
 void setCurrent(javax.microedition.lcdui.Displayable d)
          A component can request the display of a Displayable from the container using this method.
 void setLabel(java.lang.String label)
           
 void setShowBorderDecorations(boolean showBordersDecorations)
           
 void setTicker(FTicker ticker)
           
 void showAlert(java.lang.String message, javax.microedition.lcdui.Image img)
           
 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
equals, fireValidateEvent, generateEvent, getHeight, getMinHeight, getMinWidth, getWidth, isSelected, isTraversable, setHeight, setMinHeight, setMinWidth, setSelected, setWidth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

protected java.util.Vector rows

control

protected FireScreen control

internalHeight

protected int internalHeight

verticalOffset

protected int verticalOffset

pointerPos

protected int pointerPos

viewportHeight

protected int viewportHeight

scrollY

protected int scrollY

animateUp

protected boolean animateUp

animateDown

protected boolean animateDown
Constructor Detail

Panel

public Panel()
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.

getTicker

public FTicker getTicker()

setTicker

public void setTicker(FTicker ticker)

add

public int add(Component cmp)

countRows

public int countRows()

remove

public boolean remove(Component cmp)

remove

public void remove(int pos)

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:

addCommand

public void addCommand(javax.microedition.lcdui.Command c)
Description copied from class: Component
Add a command to the components. If a components has a command assosiated with it, then it is considered traversable.

Overrides:
addCommand in class Component
Parameters:
c -

removeCommands

public void removeCommands()

addCommand

public void addCommand(javax.microedition.lcdui.Command popupCmd,
                       Popup popup)

setCommandListener

public void setCommandListener(CommandListener l)
Overrides:
setCommandListener in class Component

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)

removeAll

public void removeAll()
Removes all components from this panel. Its does not remove the commands


clock

public boolean clock()
Kitame an kapoio apo ta components pou fenonte ston panel einai animated. An einai kaloume tin clock() tou kathe enos animated component kai kanoume repaint

Overrides:
clock in class Component
Returns:
true if repainting is needed after the clock event.

internalValidateEvent

public void internalValidateEvent(Component c)
Description copied from interface: ComponentListener
A components that requires (Validation) redrawing can request it from its container using this method.

Specified by:
internalValidateEvent in interface ComponentListener
Parameters:
c - the issuer of the Validate event

setCurrent

public void setCurrent(javax.microedition.lcdui.Displayable d)
Description copied from interface: ComponentListener
A component can request the display of a Displayable from the container using this method.

Specified by:
setCurrent in interface ComponentListener
Overrides:
setCurrent in class Component

setContainerCurrent

public void setContainerCurrent()
Description copied from interface: ComponentListener
A component can request that is container will be made current, using this method.

Specified by:
setContainerCurrent in interface ComponentListener
Overrides:
setContainerCurrent in class Component

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
See Also:
Component.validate()

isAnimated

public boolean isAnimated()
Description copied from class: Component
If a componets states that it is animated, it will receive periodically clock events in order to update its animation.

Overrides:
isAnimated in class Component
Returns:

showAlert

public void showAlert(java.lang.String message,
                      javax.microedition.lcdui.Image img)

resetPointer

public void resetPointer()

isShowBorderDecorations

public boolean isShowBorderDecorations()

setShowBorderDecorations

public void setShowBorderDecorations(boolean showBordersDecorations)

getViewportHeight

public int getViewportHeight()