synergynetframework.appsystem.contentsystem.items
Class DropDownList

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.OrthoContainer
              extended by synergynetframework.appsystem.contentsystem.items.Window
                  extended by synergynetframework.appsystem.contentsystem.items.DropDownList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IDropDownListImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, IWindowImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class DropDownList
extends Window
implements IDropDownListImplementation

The Class DropDownList.

See Also:
Serialized Form

Nested Class Summary
 class DropDownList.DropDownListItem
          The Class DropDownListItem.
static interface DropDownList.DropDownListListener
          The listener interface for receiving dropDownList events.
 
Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
DropDownList(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new drop down list.
 
Method Summary
 void addDropDownListListener(DropDownList.DropDownListListener listener)
          Adds the drop down list listener.
 void addListItem(DropDownList.DropDownListItem item)
          Adds the list item.
 void addListItem(java.lang.String title, java.lang.String value)
          Adds the list item.
 void addListItem(java.net.URL imageResource, int width, int height, java.lang.String value)
          Adds the list item.
 void addListItem(java.net.URL imageResource, java.lang.String value)
          Adds the list item.
 void clear()
          Clear.
 boolean containsValue(java.lang.String value)
          Contains value.
 int getItemHeight()
          Gets the item height.
 int getLineSpace()
          Gets the line space.
 java.util.List<DropDownList.DropDownListItem> getListItems()
          Gets the list items.
 DropDownList.DropDownListItem getSelectedItem()
          Gets the selected item.
 java.lang.String getSelectedTitle()
          Gets the selected title.
 java.lang.String getSelectedValue()
          Gets the selected value.
 void removeDropDownListListener(DropDownList.DropDownListListener listener)
          Removes the drop down list listener.
 void removeDropDownListListeners()
          Removes the drop down list listeners.
 void removeItem(DropDownList.DropDownListItem item)
          Removes the item.
 void setItemHeight(int itemHeight)
          Sets the item height.
 void setLineSpace(int lineSpace)
          Sets the line space.
 void setSelectedItem(DropDownList.DropDownListItem selectedItem)
          Sets the selected item.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.Window
getBackgroundFrame, getHeight, getWidth, makeFlickable, setHeight, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContainer
addSubItem, contains, detachSubItem, getAllItemsIncludeSystemItems, getNode, removeSubItem, removeSubItem, setBringToTopable, setRotateTranslateScalable, setScaleLimit, setTopItem, updateOrder
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, clone, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IWindowImplementation
getBackgroundFrame, setHeight, setWidth
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContainerImplementation
addSubItem, detachSubItem, getNode, removeSubItem, updateOrder
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

DropDownList

public DropDownList(ContentSystem contentSystem,
                    java.lang.String name)
Instantiates a new drop down list.

Parameters:
contentSystem - the content system
name - the name
Method Detail

addDropDownListListener

public void addDropDownListListener(DropDownList.DropDownListListener listener)
Description copied from interface: IDropDownListImplementation
Adds the drop down list listener.

Specified by:
addDropDownListListener in interface IDropDownListImplementation
Parameters:
listener - the listener

addListItem

public void addListItem(DropDownList.DropDownListItem item)
Description copied from interface: IDropDownListImplementation
Adds the list item.

Specified by:
addListItem in interface IDropDownListImplementation
Parameters:
item - the item

addListItem

public void addListItem(java.lang.String title,
                        java.lang.String value)
Adds the list item.

Parameters:
title - the title
value - the value

addListItem

public void addListItem(java.net.URL imageResource,
                        int width,
                        int height,
                        java.lang.String value)
Adds the list item.

Parameters:
imageResource - the image resource
width - the width
height - the height
value - the value

addListItem

public void addListItem(java.net.URL imageResource,
                        java.lang.String value)
Adds the list item.

Parameters:
imageResource - the image resource
value - the value

clear

public void clear()
Clear.


containsValue

public boolean containsValue(java.lang.String value)
Contains value.

Parameters:
value - the value
Returns:
true, if successful

getItemHeight

public int getItemHeight()
Gets the item height.

Returns:
the item height

getLineSpace

public int getLineSpace()
Gets the line space.

Returns:
the line space

getListItems

public java.util.List<DropDownList.DropDownListItem> getListItems()
Gets the list items.

Returns:
the list items

getSelectedItem

public DropDownList.DropDownListItem getSelectedItem()
Gets the selected item.

Returns:
the selected item

getSelectedTitle

public java.lang.String getSelectedTitle()
Gets the selected title.

Returns:
the selected title

getSelectedValue

public java.lang.String getSelectedValue()
Gets the selected value.

Returns:
the selected value

removeDropDownListListener

public void removeDropDownListListener(DropDownList.DropDownListListener listener)
Description copied from interface: IDropDownListImplementation
Removes the drop down list listener.

Specified by:
removeDropDownListListener in interface IDropDownListImplementation
Parameters:
listener - the listener

removeDropDownListListeners

public void removeDropDownListListeners()
Description copied from interface: IDropDownListImplementation
Removes the drop down list listeners.

Specified by:
removeDropDownListListeners in interface IDropDownListImplementation

removeItem

public void removeItem(DropDownList.DropDownListItem item)
Description copied from interface: IDropDownListImplementation
Removes the item.

Specified by:
removeItem in interface IDropDownListImplementation
Parameters:
item - the item

setItemHeight

public void setItemHeight(int itemHeight)
Sets the item height.

Parameters:
itemHeight - the new item height

setLineSpace

public void setLineSpace(int lineSpace)
Description copied from interface: IDropDownListImplementation
Sets the line space.

Specified by:
setLineSpace in interface IDropDownListImplementation
Parameters:
lineSpace - the new line space

setSelectedItem

public void setSelectedItem(DropDownList.DropDownListItem selectedItem)
Description copied from interface: IDropDownListImplementation
Sets the selected item.

Specified by:
setSelectedItem in interface IDropDownListImplementation
Parameters:
selectedItem - the new selected item