kindergartenform
Class SummaryElement

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

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

SummaryElement.java

Draws a summary element in a list of main topics. The element consists of the name of the main topic and an information icon.

Pressing fire displays the summarisation of the information given in the main topic.


Field Summary
 
Fields inherited from class no.tellu.cdlc.gui.GuiElement
ANY, DECIMAL, EMAILADDR, NUMERIC, PASSWORD, PASSWORD_NUMERIC, PHONENUMBER, URL
 
Constructor Summary
SummaryElement()
          Constructor SummaryElement
 
Method Summary
 void elementLayoutManager()
          Updates the summary vector
 boolean fire(int key)
          Sets the extended information to be shown if it is not, hidden otherwise.
 boolean moveDown(int x)
          Leaves the summary element and selects the element below.
 boolean moveUp(int x)
          Leaves the summary element and selects the element above.
 void paint(javax.microedition.lcdui.Graphics g, boolean selected)
          Paints the summary 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

SummaryElement

public SummaryElement()
Constructor SummaryElement

Method Detail

elementLayoutManager

public void elementLayoutManager()
Updates the summary vector

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

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  boolean selected)
Paints the summary 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, hidden otherwise.

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

moveDown

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

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

moveUp

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

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