kindergartenform
Class ActivityElement

java.lang.Object
  extended by no.tellu.cdlc.gui.GuiElement
      extended by no.tellu.cdlc.gui.GroupElement
          extended by kindergartenform.ActivityElement
All Implemented Interfaces:
no.tellu.cdlc.gui.ElementListner

public class ActivityElement
extends no.tellu.cdlc.gui.GroupElement

ActivityElement.java

Draws an activity element in a list of activities (ActivityPanelElement). The element consists of a clock icon or time string, name of the activity and, if the activity has a description, an information icon.

If the activity has extended information, pressing fire displays a description of the activity.


Field Summary
 
Fields inherited from class no.tellu.cdlc.gui.GuiElement
ANY, DECIMAL, EMAILADDR, NUMERIC, PASSWORD, PASSWORD_NUMERIC, PHONENUMBER, URL
 
Constructor Summary
ActivityElement()
          Constructor ActivityElement
 
Method Summary
 void elementLayoutManager()
          Updates the layout of the extended information object
 boolean fire(int key)
          Sets the extended information to be shown if it is not, hides it if it is already shown.
 boolean moveDown(int x)
          Leaves the activity element and selects the element below.
 boolean moveUp(int x)
          Leaves the activity element and selects the element above.
 void paint(javax.microedition.lcdui.Graphics g, boolean selected)
          Paints the activity element
 
Methods inherited from class no.tellu.cdlc.gui.GroupElement
addtoGroup, addtoGroup, charPressed, clearButton, drawBackground, getCurrFieldNo, getCurrGuiElement, getGroup, getGroupElelemnt, getHorizontalSpace, getValue, getValue, getVerticalSpace, isAllElementsComplete, isInputValidated, moveLeft, moveRight, numberPressed, poundPressed, removeFromGroup, selectNextSelectableField, selectPreviousSelectableField, setCurrentElement, setCurrFieldNo, setDrawBackgroud, setDrawFrame, setDrawRectangle, setFocused, setFont, setFont, setHorizontalSpace, setValue, setVerticalSpace, starPressed
 
Methods inherited from class no.tellu.cdlc.gui.GuiElement
backPressed, callbackAction, changeFont, clearFields, contains, countCharactersToWidth, countCharactersToWidth, drawBorder, drawBorder, drawString, drawString, getComponentAt, getElement, getElementId, getFieldColour, getFieldType, getFont, getFontColour, getHeight, getHelpString, getInnerheight, getInnerWidth, getInsetBottom, getInsetLeft, getInsetRight, getInsetTop, getLabel, getLineColour, getMaxCharacters, getMaxHeight, getMaxWidth, getMinCharacters, getParent, getPreferredHeight, getPreferredWidth, getSoundFileName, getWidth, getWidtOfString, getWidtOfString, getX, getY, init, isBorderVisible, isEditable, isFocused, isHidden, isLayoutNeeded, isMaximumSizeSet, isPreferredHeightSizeSet, isPreferredSizeSet, isPreferredWidhtSizeSet, isSelectable, isVisible, moveToShow, paint, paint, remove, replaceTabInString, setAutoLayout, setBorderVisible, setBounds, setDrawBackground, setEditable, setElementId, setElementListner, setElementPosition, setFieldType, setFrameSize, setGroupElement, setHeight, setHelpString, setHidden, setInsetBottom, setInsetLeft, setInsetRight, setInsets, setInsetTop, setLabel, setLayoutNeeded, setLayoutNeeded, setMaxCharacters, setMaximumSize, setMinCharacters, setParent, setPreferredSize, setSelectable, setSize, setSoundFileName, setWidth, setX, setY, truncate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityElement

public ActivityElement()
Constructor ActivityElement

Method Detail

elementLayoutManager

public void elementLayoutManager()
Updates the layout of the extended information object

Overrides:
elementLayoutManager in class no.tellu.cdlc.gui.GroupElement

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  boolean selected)
Paints the activity element

Overrides:
paint in class no.tellu.cdlc.gui.GroupElement

fire

public boolean fire(int key)
Sets the extended information to be shown if it is not, hides it if it is already shown.

Overrides:
fire in class no.tellu.cdlc.gui.GroupElement

moveDown

public boolean moveDown(int x)
Leaves the activity element and selects the element below.

Overrides:
moveDown in class no.tellu.cdlc.gui.GroupElement

moveUp

public boolean moveUp(int x)
Leaves the activity element and selects the element above.

Overrides:
moveUp in class no.tellu.cdlc.gui.GroupElement