H - The header component to display adjacent to the logo.public abstract class AbstractFrame<H extends AbstractHeader> extends ContentPane implements View
AbstractHeader component
at the top. Note that in general it is not easy to over-ride the
init() method of this component due to the over-ridden add(nextapp.echo.app.Component) methods.
Note: Style properties are based on the class name of Frame for simplicity and backwards compatibility with original Frame only implementation.
© Copyright 2009 Sans Pareil Technologies, Inc.
OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_OVERFLOW, PROPERTY_VERTICAL_SCROLLCHILD_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 and Description |
|---|
AbstractFrame() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component component)
Over-ridden to replace
content with the new component
specified. |
void |
add(Component component,
int index)
Over-ridden to add the specified component to
content container. |
Component |
getContent()
Return the main content component displayed in this content pane.
|
abstract H |
getHeader() |
void |
init()
Life-cycle method invoked when the content pane is added to the view
hierarcy.
|
void |
removeAll()
Over-ridden to remove only the children of
content from the
view. |
void |
setContent(Component content)
Set the primary content to be displayed in this pane.
|
getBackgroundImage, getHorizontalScroll, getInsets, getOverflow, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setOverflow, setVerticalScrolladdPropertyChangeListener, 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, visibleIndexOfpublic void init()
public void add(Component component)
content with the new component
specified. Unlike the super-class this class allows multiple child
components.add in class Componentcomponent - The content to add to this component.setContent(nextapp.echo.app.Component)public void add(Component component, int index)
content container.
If the specified component is an instance of FloatingPane, then delegates to the super class
Component.add(nextapp.echo.app.Component) method.public void removeAll()
content from the
view. In addition it removes any FloatingPane
components that have been added to this content pane.public Component getContent()
public void setContent(Component content)
content - The content to display.public abstract H getHeader()