org.xith3d.ui.hud.menusystem
Class ButtonsLeftMenusCenterMenuGroupWidget

java.lang.Object
  extended by org.xith3d.ui.hud.base.WidgetBase
      extended by org.xith3d.ui.hud.base.RectangularWidget
          extended by org.xith3d.ui.hud.base.WidgetContainerBase
              extended by org.xith3d.ui.hud.widgets.Panel
                  extended by org.xith3d.ui.hud.menusystem.ButtonsLeftMenusCenterMenuGroupWidget
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.types.twodee.Positioned2f, org.openmali.types.twodee.Positioned2fRO, org.openmali.types.twodee.Sized2f, org.openmali.types.twodee.Sized2fRO, BackgroundSettable, BackgroundSettableWidget, BorderSettable, PaddingSettable, Widget, WidgetContainer, ScrollbarListener, MenuGroupWidget

public class ButtonsLeftMenusCenterMenuGroupWidget
extends Panel
implements MenuGroupWidget

This is a MenuGroupWidget implementation, that places the accessor Buttons in the WEST area of a BorderLayout and the Menus in the CENTER area.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.ui.hud.widgets.Panel
Panel.Description
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.WidgetContainer
WidgetContainer.FocusMoveDirection
 
Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget
Widget.DescriptionBase
 
Field Summary
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetContainerBase
childrenTG
 
Fields inherited from class org.xith3d.ui.hud.base.WidgetBase
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER
 
Constructor Summary
ButtonsLeftMenusCenterMenuGroupWidget(org.openmali.types.twodee.Sized2fRO size, org.openmali.vecmath2.Tuple2f resolution, ListLayout.Alignment buttonsAlignment, boolean withSaveButton)
           
 
Method Summary
 Button addAccessorWidget(java.lang.String caption, Button.Description buttonDesc)
          
 void addMenu(MenuSystem menuSystem, java.lang.String caption, Menu menu)
          
protected  LayoutManager createAccessorLayout(ListLayout.Alignment buttonsAlignment, boolean withSaveButton)
           
 Button createAccessorWidget(java.lang.String caption, Button.Description buttonDesc)
           
protected  BorderLayout createMainBorderLayout()
           
protected  LayoutManager createWestLayout()
           
 WidgetContainer getAccessorPanel()
          
 MenuGroup getMenuGroup()
          
 WidgetContainer getMenuPanel()
          
 Button getSaveButton()
           
 boolean isMenuVisible(Menu menu)
          
 void setMenuGroup(MenuGroup menuGroup)
          
 void setMenuVisible(Menu menu, boolean visible)
          
 
Methods inherited from class org.xith3d.ui.hud.widgets.Panel
getBackground, getBackgroundColor, getBackgroundTileHeight, getBackgroundTileSize, getBackgroundTileWidth, getBorder, getForeground, getTransparency, init, setBackground, setBackground, setBackground, setBackgroundTileSize, setBackgroundTileSize, setBorder, setBorder, setForeground, setForeground, setSize, update
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetContainerBase
addContainerScrollListener, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidgetCentered, addWidgetCentered, clear, focus, getChildrenOffset, getChildrenOffsetX, getChildrenOffsetY, getCurrentFocusedWidget, getCurrentFocusedWidget, getEqualHeight, getEqualWidth, getInnerAspect, getInnerHeight, getInnerSize, getInnerWidth, getLayout, getLocationCanvas2HUD, getLocationHUD2Canvas, getLocationHUD2SG, getLocationSG2HUD, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getResAspect, getResolution, getResX, getResY, getScrollScale, getScrollScaleX, getScrollScaleY, getSGGroup, getSGPixelHeight, getSGPixelSize, getSGPixelWidth, getSizeCanvas2HUD, getSizeHUD2Canvas, getSizeHUD2SG, getSizeOfPixels, getSizeOnHUD, getSizeSG2HUD, getWidgets, isClippingEnbaled, moveFocus, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseUnbound, onScrollbarValueChanged, pick, removeContainerScrollListener, removeWidget, setChildrenOffset, setClippingEnabled, setContainer, setLayout, setPadding, setPadding, setScrollScale, setScrollScale, setTransparency, setVisible, updateTranslation
 
Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget
getPickHeight, getPickSGZPosition, getPickWidth
 
Methods inherited from class org.xith3d.ui.hud.base.WidgetBase
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getUserObject, getWidgetAssembler, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isInitialized, isInitializing, isPickable, isVisible, onAddedToContainer, onAddedToHUD, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseLeft, onMouseMoved, onMouseStopped, onMouseWheelMoved, onRemovedFromContainer, pickWidgetAssembler, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContextMenu, setCursor, setDraggable, setFocussable, setHeight, setLocation, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setWidth, setZIndex, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xith3d.ui.hud.base.WidgetContainer
addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidget, addWidgetCentered, addWidgetCentered, clear, focus, getChildrenOffset, getChildrenOffsetX, getChildrenOffsetY, getCurrentFocusedWidget, getCurrentFocusedWidget, getEqualHeight, getEqualWidth, getForeground, getInnerAspect, getInnerHeight, getInnerSize, getInnerWidth, getLayout, getLocationCanvas2HUD, getLocationHUD2Canvas, getLocationHUD2SG, getLocationSG2HUD, getResAspect, getResolution, getResX, getResY, getScrollScale, getScrollScaleX, getScrollScaleY, getSGGroup, getSGPixelHeight, getSGPixelSize, getSGPixelWidth, getSizeCanvas2HUD, getSizeHUD2Canvas, getSizeHUD2SG, getSizeOfPixels, getSizeOnHUD, getSizeSG2HUD, getWidgets, isClippingEnbaled, moveFocus, removeWidget, setChildrenOffset, setClippingEnabled, setForeground, setForeground, setLayout, setScrollScale, setScrollScale, setTransparency
 
Methods inherited from interface org.xith3d.ui.hud.base.Widget
addContainerListener, addFocusListener, addInputListener, addLocationListener, addSizeListener, addVisibilityListener, detach, detach, getAspect, getAssembly, getCachedToolTipWidget, getContainer, getContextMenu, getCursor, getHeight, getHUD, getInheritedCursor, getLeft, getLocation, getName, getSGNode, getSGZPosition, getSize, getToolTip, getTop, getTransparency, getUserObject, getWidth, getZIndex, hasFocus, hasFocus, hasToolTip, isClickable, isDraggable, isFocussable, isPickable, isVisible, onControllerAxisChanged, onControllerButtonPressed, onControllerButtonReleased, onDetached, onFocusGained, onFocusLost, onInputStateChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseButtonPressed, onMouseButtonReleased, onMouseEntered, onMouseLeft, onMouseMoved, onMouseStopped, onMouseUnbound, onMouseWheelMoved, pick, removeContainerListener, removeFocusListener, removeInputListener, removeLocationListener, removeSizeListener, removeVisibilityListener, requestFocus, setAssembly, setCachedToolTipWidget, setClickable, setContainer, setContextMenu, setCursor, setDraggable, setFocussable, setLocation, setLocation, setName, setPickable, setSize, setSize, setSize, setToolTip, setTransparency, setUserObject, setVisible, setZIndex, update
 
Methods inherited from interface org.openmali.types.twodee.Sized2f
setHeight, setWidth
 
Methods inherited from interface org.xith3d.ui.hud.base.BackgroundSettable
getBackground, getBackgroundColor, getBackgroundTileHeight, getBackgroundTileSize, getBackgroundTileWidth, setBackground, setBackground, setBackground, setBackgroundTileSize, setBackgroundTileSize
 
Methods inherited from interface org.xith3d.ui.hud.base.BorderSettable
getBorder, setBorder, setBorder
 
Methods inherited from interface org.xith3d.ui.hud.base.PaddingSettable
getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, setPadding, setPadding
 
Methods inherited from interface org.xith3d.ui.hud.listeners.ScrollbarListener
onScrollbarValueChanged
 

Constructor Detail

ButtonsLeftMenusCenterMenuGroupWidget

public ButtonsLeftMenusCenterMenuGroupWidget(org.openmali.types.twodee.Sized2fRO size,
                                             org.openmali.vecmath2.Tuple2f resolution,
                                             ListLayout.Alignment buttonsAlignment,
                                             boolean withSaveButton)
Method Detail

getAccessorPanel

public final WidgetContainer getAccessorPanel()

Specified by:
getAccessorPanel in interface MenuGroupWidget

getMenuPanel

public final WidgetContainer getMenuPanel()

Specified by:
getMenuPanel in interface MenuGroupWidget

getSaveButton

public Button getSaveButton()
Returns:
the Button, that indicates a save-operation.

createAccessorWidget

public Button createAccessorWidget(java.lang.String caption,
                                   Button.Description buttonDesc)

addAccessorWidget

public Button addAccessorWidget(java.lang.String caption,
                                Button.Description buttonDesc)

Specified by:
addAccessorWidget in interface MenuGroupWidget

addMenu

public void addMenu(MenuSystem menuSystem,
                    java.lang.String caption,
                    Menu menu)

Specified by:
addMenu in interface MenuGroupWidget

setMenuVisible

public void setMenuVisible(Menu menu,
                           boolean visible)

Specified by:
setMenuVisible in interface MenuGroupWidget

isMenuVisible

public boolean isMenuVisible(Menu menu)

Specified by:
isMenuVisible in interface MenuGroupWidget

setMenuGroup

public void setMenuGroup(MenuGroup menuGroup)

Specified by:
setMenuGroup in interface MenuGroupWidget

getMenuGroup

public MenuGroup getMenuGroup()

Specified by:
getMenuGroup in interface MenuGroupWidget

createMainBorderLayout

protected BorderLayout createMainBorderLayout()

createWestLayout

protected LayoutManager createWestLayout()

createAccessorLayout

protected LayoutManager createAccessorLayout(ListLayout.Alignment buttonsAlignment,
                                             boolean withSaveButton)