luxor.swing
Class AbstractContainer

java.lang.Object
  |
  +--luxor.swing.AbstractComponent
        |
        +--luxor.swing.AbstractContainer
All Implemented Interfaces:
NComponent, NComponentResolver, NContainer
Direct Known Subclasses:
AbstractBoxPeer, GridPeer, TabBoxPeer, TablePeer

public abstract class AbstractContainer
extends AbstractComponent
implements NContainer, NComponentResolver


Field Summary
protected  java.util.ArrayList _component
          holds all components (order preserved)
protected  java.util.HashMap _componentIndex
          lookup index for all components (including input controls and containers)
protected  java.util.ArrayList _container
          holds containers only
protected  java.util.HashMap _inputIndex
          lookup index for input controls only
 
Constructor Summary
AbstractContainer(XulNode def)
           
 
Method Summary
protected  void addComponent(NComponent comp)
           
 NComponent lookupNComponent(java.lang.String id)
           
 NInput lookupNInput(java.lang.String id)
           
protected  void resolveReferences()
           
 void resolveReferences(NComponentResolver resolver)
           
 
Methods inherited from class luxor.swing.AbstractComponent
getFlex, getHeight, getId, getJComponent, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, useMinHeight, useMinWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface luxor.spi.NComponent
getFlex, getHeight, getId, getJComponent, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, useMinHeight, useMinWidth
 

Field Detail

_component

protected java.util.ArrayList _component
holds all components (order preserved)


_componentIndex

protected java.util.HashMap _componentIndex
lookup index for all components (including input controls and containers)


_container

protected java.util.ArrayList _container
holds containers only


_inputIndex

protected java.util.HashMap _inputIndex
lookup index for input controls only

Constructor Detail

AbstractContainer

public AbstractContainer(XulNode def)
Method Detail

lookupNComponent

public NComponent lookupNComponent(java.lang.String id)
Specified by:
lookupNComponent in interface NComponentResolver

lookupNInput

public NInput lookupNInput(java.lang.String id)
Specified by:
lookupNInput in interface NContainer

resolveReferences

public void resolveReferences(NComponentResolver resolver)
Specified by:
resolveReferences in interface NComponent

addComponent

protected void addComponent(NComponent comp)

resolveReferences

protected void resolveReferences()


Copyright 2001, 2002 Gerald Bauer. All Rights Reserved. Hosted by SourceForge Logo