SPT Core API

com.sptci.echo
Class MenuHeader<M extends AbstractMenuComponent>

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.SplitPane
          extended by com.sptci.echo.AbstractHeader<SplitPane>
              extended by com.sptci.echo.MenuHeader<M>
Type Parameters:
M - The menu component to display in the header.
All Implemented Interfaces:
Serializable, Pane, PaneContainer, RenderIdSupport

public class MenuHeader<M extends AbstractMenuComponent>
extends AbstractHeader<SplitPane>

A standard header component that displays a menu bar under the application title and adjacent to the logo. Client applications must set the menu component to display via the setMenuBar(M) method.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: MenuHeader.java 4853 2009-08-10 21:10:14Z rakesh $
Author:
Rakesh 2009-06-17
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sptci.echo.AbstractHeader
LABEL_STYLE
 
Fields inherited from class nextapp.echo.app.SplitPane
ORIENTATION_HORIZONTAL, ORIENTATION_HORIZONTAL_LEADING_TRAILING, ORIENTATION_HORIZONTAL_LEFT_RIGHT, ORIENTATION_HORIZONTAL_RIGHT_LEFT, ORIENTATION_HORIZONTAL_TRAILING_LEADING, ORIENTATION_VERTICAL, ORIENTATION_VERTICAL_BOTTOM_TOP, ORIENTATION_VERTICAL_TOP_BOTTOM, PROPERTY_AUTO_POSITIONED, PROPERTY_ORIENTATION, PROPERTY_RESIZABLE, PROPERTY_SEPARATOR_COLOR, PROPERTY_SEPARATOR_HEIGHT, PROPERTY_SEPARATOR_HORIZONTAL_IMAGE, PROPERTY_SEPARATOR_HORIZONTAL_ROLLOVER_IMAGE, PROPERTY_SEPARATOR_POSITION, PROPERTY_SEPARATOR_ROLLOVER_COLOR, PROPERTY_SEPARATOR_VERTICAL_IMAGE, PROPERTY_SEPARATOR_VERTICAL_ROLLOVER_IMAGE, PROPERTY_SEPARATOR_VISIBLE, PROPERTY_SEPARATOR_WIDTH
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
MenuHeader()
          Create a new instance of the component.
 
Method Summary
protected  SplitPane getComponent()
           
 M getMenuBar()
           
 void setMenuBar(M menu)
          Set the menu component to display in the header.
 
Methods inherited from class com.sptci.echo.AbstractHeader
createTitle, init
 
Methods inherited from class nextapp.echo.app.SplitPane
getOrientation, getSeparatorColor, getSeparatorHeight, getSeparatorHorizontalImage, getSeparatorHorizontalRolloverImage, getSeparatorPosition, getSeparatorRolloverColor, getSeparatorVerticalImage, getSeparatorVerticalRolloverImage, getSeparatorWidth, isAutoPositioned, isResizable, isSeparatorVisible, isValidChild, isValidParent, processInput, setAutoPositioned, setOrientation, setResizable, setSeparatorColor, setSeparatorHeight, setSeparatorHorizontalImage, setSeparatorHorizontalRolloverImage, setSeparatorPosition, setSeparatorRolloverColor, setSeparatorRolloverVerticalImage, setSeparatorVerticalImage, setSeparatorVisible, setSeparatorWidth
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuHeader

public MenuHeader()
Create a new instance of the component.

See Also:
Logo, Utilities.createLabel( String, String, String )
Method Detail

getComponent

protected SplitPane getComponent()
Specified by:
getComponent in class AbstractHeader<SplitPane>
Returns:
Returns the splitPane component that holds the title and menu.

getMenuBar

public M getMenuBar()
Returns:
The menu component or null.

setMenuBar

public void setMenuBar(M menu)
Set the menu component to display in the header.

Parameters:
menu - The menu component to display.

SPT Core API