public void addComponent(IComponent component) { Defense.notNull(component, "component"); checkActiveLock(); if (_components == null) _components = new HashMap(MAP_SIZE); _components.put(component.getId(), component); }
public void addAsset(String name, IAsset asset) { Defense.notNull(name, "name"); Defense.notNull(asset, "asset"); checkActiveLock(); if (_assets == null) _assets = new HashMap(MAP_SIZE); _assets.put(name, asset); }
public void addAsset(String name, IAsset asset) { Defense.notNull(name, "name"); Defense.notNull(asset, "asset"); checkActiveLock(); if (_assets == null) _assets = new HashMap(MAP_SIZE); _assets.put(name, asset); }
public void addComponent(IComponent component) { Defense.notNull(component, "component"); checkActiveLock(); if (_components == null) _components = new HashMap(MAP_SIZE); _components.put(component.getId(), component); }
public void setContainer(IComponent value) { checkActiveLock(); if (_container != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractComponent.attempt-to-change-container")); _container = value; }
public void setContainer(IComponent value) { checkActiveLock(); if (_container != null) throw new ApplicationRuntimeException(Tapestry .getMessage("AbstractComponent.attempt-to-change-container")); _container = value; }