echoxul.component
Class AbstractViewContextualizable

java.lang.Object
  extended bynextapp.echo.Component
      extended byechoxul.component.AbstractViewContextualizable
All Implemented Interfaces:
java.io.Serializable, ViewContextualizable
Direct Known Subclasses:
NestedHtmlComponent

public class AbstractViewContextualizable
extends nextapp.echo.Component
implements ViewContextualizable

Abstract base class (extending Component) that interested components can derive from. If this is not possible, just implement the ViewContextualizable interface.

Author:
Terry Laurenzo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
AbstractViewContextualizable()
           
 
Method Summary
protected  View getView()
           
protected  ViewContext getViewContext()
           
 void setViewContext(ViewContext vc)
          Called once after instantiation for runtime use.
 
Methods inherited from class nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewContextualizable

public AbstractViewContextualizable()
Method Detail

setViewContext

public void setViewContext(ViewContext vc)
Description copied from interface: ViewContextualizable
Called once after instantiation for runtime use.

Specified by:
setViewContext in interface ViewContextualizable
Parameters:
vc - The ViewContext that this component is a part of

getViewContext

protected ViewContext getViewContext()
Returns:
The ViewContext this component is a part of
Throws:
java.lang.IllegalStateException - if uninitialized

getView

protected View getView()
Returns:
The View this component is attached to
Throws:
java.lang.IllegalStateException - if uninitialized


Copyright © 2004 Terry Laurenzo. All Rights Reserved.