SPT Core API

com.sptci.echo
Class AbstractHeader<C extends Component>

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.SplitPane
          extended by com.sptci.echo.AbstractHeader<C>
Type Parameters:
C - The child component that is displayed in this header.
All Implemented Interfaces:
Serializable, Pane, PaneContainer, RenderIdSupport
Direct Known Subclasses:
Header, MenuHeader

public abstract class AbstractHeader<C extends Component>
extends SplitPane

A base class for displaying standard headers in applications. Displays the SPT logo.

© Copyright 2009 Sans Pareil Technologies, Inc.

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

Field Summary
static String LABEL_STYLE
          The name of the style that is assigned to the label displayed in the header.
 
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
protected AbstractHeader()
          Create a new instance of the component.
 
Method Summary
protected  Label createTitle()
          Create the label that displays the application title in the header.
protected abstract  C getComponent()
           
 void init()
          Life-cycle method invoked when the header is added to the view hierarcy.
 
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
 

Field Detail

LABEL_STYLE

public static final String LABEL_STYLE
The name of the style that is assigned to the label displayed in the header.

Constructor Detail

AbstractHeader

protected AbstractHeader()
Create a new instance of the component. Adds the Logo as the first child.

Method Detail

init

public void init()
Life-cycle method invoked when the header is added to the view hierarcy. Sets up the child components.

Overrides:
init in class Component

createTitle

protected Label createTitle()
Create the label that displays the application title in the header.

Returns:
The label with the title.

getComponent

protected abstract C getComponent()
Returns:
The child component displayed in this header.

SPT Core API