Class Component
Component is the base class for all components.
Components are objects implementing IComponent. They has parent component and own name.
- Nette\Object
- Nette\Component implements Nette\IComponent
Indirect known subclasses
Nette\Application\AppForm, Nette\Application\Control, Nette\Forms\ImageButton, Nette\Forms\MultiSelectBox, Nette\Forms\RadioList, Nette\Forms\SelectBox, Nette\Forms\SubmitButton, Nette\Forms\TextArea, Nette\Forms\TextBase, Nette\Forms\TextInput, Nette\Application\Presenter, Nette\Application\PresenterComponent, Nette\Forms\Button, Nette\Forms\Checkbox, Nette\Forms\FileUpload, Nette\Forms\Form, Nette\Forms\FormContainer, Nette\Forms\HiddenField
public
|
|
public
|
|
public
string
|
#
lookupPath( string $type, boolean $need = TRUE )
Lookup for component specified by class or interface name. Returns backtrace path. A path is the concatenation of component names separated by self::NAME_SEPARATOR. |
public
|
|
public
|
|
protected
|
#
attached(
This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself. |
protected
|
#
detached(
This method will be called before the component (or component's parent) becomes detached from a monitored object. Do not call this method yourself. |
final public
string
|
|
final public
|
|
public
|
#
setParent( Nette\IComponentContainer $parent = NULL, string $name = NULL )
Sets the parent of this component. This method is managed by containers and should. not be called by applications |
protected
|
#
validateParent( Nette\IComponentContainer $parent )
Is called by a component when it is about to be set new parent. Descendant can override this method to disallow a parent change by throwing an \InvalidStateException |
public
|
|
final public
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
NAME_SEPARATOR
|