synergynetframework.appsystem.contentsystem.items
Class ListContainer

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.ListContainer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IOrthoContainerImplementation, IOrthoContentItemImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class ListContainer
extends Window

The Class ListContainer.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
ListContainer(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new list container.
 
Method Summary
 void addListEventListener(ListEventAdapter l)
          Adds the list event listener.
 void addSubItem(int index, QuadContentItem item)
          Adds the sub item.
 void addSubItem(QuadContentItem item)
          Adds the sub item.
 void addSubMenu(ListContainer subMenu, java.lang.String title)
          Adds the sub menu.
 void clear()
          Clear.
 int getItemHeight()
          Gets the item height.
 int getItemWidth()
          Gets the item width.
 int getLineSpace()
          Gets the line space.
 java.util.List<QuadContentItem> getListItems()
          Gets the list items.
 int getSpaceToBottom()
          Gets the space to bottom.
 int getSpaceToSide()
          Gets the space to side.
 int getSpaceToTop()
          Gets the space to top.
 java.util.Map<SimpleButton,ListContainer> getSubMenus()
          Gets the sub menus.
 boolean isAutoFitSize()
          Checks if is auto fit size.
 boolean isHorizontal()
          Checks if is horizontal.
 void removeListEventListener(ListEventListener l)
          Removes the list event listener.
 void removeListEventListeners()
          Removes the list event listeners.
 void removeSubItem(QuadContentItem item)
          Removes the sub item.
 void setAutoFitSize(boolean isAutoFitSize)
          Sets the auto fit size.
 void setHorizontal(boolean isHorizontal)
          Sets the horizontal.
 void setItemHeight(int itemHeight)
          Sets the item height.
 void setItemWidth(int itemWidth)
          Sets the item width.
 void setLineSpace(int lineSpace)
          Sets the line space.
 void setSpaceToBottom(int spaceToBottom)
          Sets the space to bottom.
 void setSpaceToSide(int spaceToSide)
          Sets the space to side.
 void setSpaceToTop(int spaceToTop)
          Sets the space to top.
 void setVisible(boolean isVisible)
          Sets the visible.
 
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, 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.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, 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, update, update
 

Constructor Detail

ListContainer

public ListContainer(ContentSystem contentSystem,
                     java.lang.String name)
Instantiates a new list container.

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

addListEventListener

public void addListEventListener(ListEventAdapter l)
Adds the list event listener.

Parameters:
l - the l

addSubItem

public void addSubItem(int index,
                       QuadContentItem item)
Adds the sub item.

Parameters:
index - the index
item - the item

addSubItem

public void addSubItem(QuadContentItem item)
Adds the sub item.

Parameters:
item - the item

addSubMenu

public void addSubMenu(ListContainer subMenu,
                       java.lang.String title)
Adds the sub menu.

Parameters:
subMenu - the sub menu
title - the title

clear

public void clear()
Clear.


getItemHeight

public int getItemHeight()
Gets the item height.

Returns:
the item height

getItemWidth

public int getItemWidth()
Gets the item width.

Returns:
the item width

getLineSpace

public int getLineSpace()
Gets the line space.

Returns:
the line space

getListItems

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

Returns:
the list items

getSpaceToBottom

public int getSpaceToBottom()
Gets the space to bottom.

Returns:
the space to bottom

getSpaceToSide

public int getSpaceToSide()
Gets the space to side.

Returns:
the space to side

getSpaceToTop

public int getSpaceToTop()
Gets the space to top.

Returns:
the space to top

getSubMenus

public java.util.Map<SimpleButton,ListContainer> getSubMenus()
Gets the sub menus.

Returns:
the sub menus

isAutoFitSize

public boolean isAutoFitSize()
Checks if is auto fit size.

Returns:
true, if is auto fit size

isHorizontal

public boolean isHorizontal()
Checks if is horizontal.

Returns:
true, if is horizontal

removeListEventListener

public void removeListEventListener(ListEventListener l)
Removes the list event listener.

Parameters:
l - the l

removeListEventListeners

public void removeListEventListeners()
Removes the list event listeners.


removeSubItem

public void removeSubItem(QuadContentItem item)
Removes the sub item.

Parameters:
item - the item

setAutoFitSize

public void setAutoFitSize(boolean isAutoFitSize)
Sets the auto fit size.

Parameters:
isAutoFitSize - the new auto fit size

setHorizontal

public void setHorizontal(boolean isHorizontal)
Sets the horizontal.

Parameters:
isHorizontal - the new horizontal

setItemHeight

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

Parameters:
itemHeight - the new item height

setItemWidth

public void setItemWidth(int itemWidth)
Sets the item width.

Parameters:
itemWidth - the new item width

setLineSpace

public void setLineSpace(int lineSpace)
Sets the line space.

Parameters:
lineSpace - the new line space

setSpaceToBottom

public void setSpaceToBottom(int spaceToBottom)
Sets the space to bottom.

Parameters:
spaceToBottom - the new space to bottom

setSpaceToSide

public void setSpaceToSide(int spaceToSide)
Sets the space to side.

Parameters:
spaceToSide - the new space to side

setSpaceToTop

public void setSpaceToTop(int spaceToTop)
Sets the space to top.

Parameters:
spaceToTop - the new space to top

setVisible

public void setVisible(boolean isVisible)
Description copied from interface: IContentItemImplementation
Sets the visible.

Specified by:
setVisible in interface IContentItemImplementation
Overrides:
setVisible in class ContentItem
Parameters:
isVisible - the new visible