kindergartenform
Class FormGroupElement

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

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

FormGroupElement.java

Created to support functionality that GroupElement doesn't. This functionality is moving left and right within a RadioButtonElement, drawing elements in a grid layout, and, if a GroupElement has several selectable GUI elements, only marking one of them as selected.


Field Summary
 
Fields inherited from class no.tellu.cdlc.gui.GuiElement
ANY, DECIMAL, EMAILADDR, NUMERIC, PASSWORD, PASSWORD_NUMERIC, PHONENUMBER, URL
 
Constructor Summary
FormGroupElement()
          Constructor FormGroupElement
FormGroupElement(java.lang.String elementId)
          Constructor FormGroupElement
 
Method Summary
 void elementLayoutManager()
          Handles the layout of the FormGroupElement.
 boolean moveLeft(int x)
          Allows moving left within a FormGroupElement.
 boolean moveRight(int x)
          Allows moving right within a FormGroupElement.
 void paint(javax.microedition.lcdui.Graphics g, boolean selected)
          Paints the group element.
 
Methods inherited from class no.tellu.cdlc.gui.GroupElement
addtoGroup, addtoGroup, charPressed, clearButton, drawBackground, fire, getCurrFieldNo, getCurrGuiElement, getGroup, getGroupElelemnt, getHorizontalSpace, getValue, getValue, getVerticalSpace, isAllElementsComplete, isInputValidated, moveDown, moveUp, 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

FormGroupElement

public FormGroupElement()
Constructor FormGroupElement


FormGroupElement

public FormGroupElement(java.lang.String elementId)
Constructor FormGroupElement

Parameters:
elementId - the ID of the object of this class
Method Detail

elementLayoutManager

public void elementLayoutManager()
Handles the layout of the FormGroupElement.

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

paint

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

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

moveLeft

public boolean moveLeft(int x)
Allows moving left within a FormGroupElement.

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

moveRight

public boolean moveRight(int x)
Allows moving right within a FormGroupElement.

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