C
- the type of the component usedpublic class InnerComponentBase<C extends Component<?>> extends Object implements InnerComponent<C>
Constructor and Description |
---|
InnerComponentBase(Class<C> componentClass,
Object... keyPart)
Default constructor.
|
InnerComponentBase(UniqueKey<C> innerComponentKey)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object innerModel) |
C |
get()
Return the inner component instance.
|
int |
getUid()
Gets the uid.
|
int |
hashCode() |
Component<?> |
host()
Return the component hosting this inner component.
|
InnerComponent<C> |
host(Component<?> hostComponent) |
UniqueKey<C> |
key()
Return the key of the model.
|
InnerComponent<C> |
setUid(int uid)
Sets the uid.
|
InnerComponentBase(Class<C> componentClass, Object... keyPart)
componentClass
- the model classkeyPart
- the list of model keysInnerComponentBase(UniqueKey<C> innerComponentKey)
innerComponentKey
- the inner component keypublic UniqueKey<C> key()
ClassKey
instance for a unique model or a MultitonKey
for non unique modelkey
in interface InnerComponent<C extends Component<?>>
public int getUid()
public InnerComponent<C> setUid(int uid)
uid
- The uid to set.public Component<?> host()
host
in interface InnerComponent<C extends Component<?>>
public InnerComponent<C> host(Component<?> hostComponent)
Copyright © 2011–2016 JRebirth OSS. All rights reserved.