SPT Core API

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

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.ContentPane
          extended by com.sptci.echo.AbstractFrame<MenuHeader>
              extended by com.sptci.echo.MenuFrame<M>
Type Parameters:
M - The menu bar component displayed in the header part of frame.
All Implemented Interfaces:
View, Serializable, Pane, PaneContainer, RenderIdSupport

public class MenuFrame<M extends AbstractMenuComponent>
extends AbstractFrame<MenuHeader>

A standard content pane that displays a MenuHeader at the top.

© Copyright 2009 Sans Pareil Technologies, Inc.

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

Field Summary
protected  MenuHeader header
          The header component displayed in the frame.
 
Fields inherited from class nextapp.echo.app.ContentPane
OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_OVERFLOW, PROPERTY_VERTICAL_SCROLL
 
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
MenuFrame()
          Default constructor.
MenuFrame(MenuHeader header)
          Create a new frame with the specified header.
 
Method Summary
 MenuHeader getHeader()
          
 void setMenuBar(M menu)
          Set the menu bar displayed in the header.
 
Methods inherited from class com.sptci.echo.AbstractFrame
add, add, getContent, init, removeAll, setContent
 
Methods inherited from class nextapp.echo.app.ContentPane
getBackgroundImage, getHorizontalScroll, getInsets, getOverflow, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setOverflow, setVerticalScroll
 
Methods inherited from class nextapp.echo.app.Component
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, 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
 

Field Detail

header

protected MenuHeader header
The header component displayed in the frame.

Constructor Detail

MenuFrame

public MenuFrame()
Default constructor.


MenuFrame

public MenuFrame(MenuHeader header)
Create a new frame with the specified header.

Parameters:
header - The header to use in the frame.
Method Detail

setMenuBar

public void setMenuBar(M menu)
Set the menu bar displayed in the header.

Parameters:
menu - The menu component to display.

getHeader

public MenuHeader getHeader()

Specified by:
getHeader in class AbstractFrame<MenuHeader>
Returns:
The header component to display adjacent to the logo.

SPT Core API