public interface MVCGroup extends MVCHandler
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the current group.
|
java.util.Map<java.lang.String,MVCGroup> |
getChildrenGroups()
Returns an immutable view of all children groups for which this group is a parent
|
MVCGroupConfiguration |
getConfiguration()
Returns the configuration of this group.
|
Context |
getContext()
Returns the context belonging to this group.
|
GriffonController |
getController()
Returns the Controller portion of this group.
|
java.lang.Object |
getMember(java.lang.String name)
Returns the specified member type.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMembers()
Returns a read-only view of all instance members.
|
GriffonModel |
getModel()
Returns the Model portion of this group.
|
java.lang.String |
getMvcId()
Returns the id of the group.
|
java.lang.String |
getMvcType()
Returns the type of this group as set in the application's configuration.
|
MVCGroup |
getParentGroup()
Returns the parent
MVCGroup of this group. |
GriffonView |
getView()
Returns the View portion of this group.
|
boolean |
isAlive()
Returns whether this group has been destroyed or not.
|
void |
notifyMVCGroupDestroyed(java.lang.String mvcId)
Notifies the group when another MVC group has been destroyed, potentially
a child group.
|
createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVC, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, createMVCGroup, destroyMVCGroup, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVC, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup, withMVCGroup
@Nonnull MVCGroupConfiguration getConfiguration()
@Nonnull java.lang.String getMvcType()
@Nonnull java.lang.String getMvcId()
@Nullable GriffonModel getModel()
java.lang.IllegalStateException
- if the group has been destroyed already@Nullable GriffonView getView()
java.lang.IllegalStateException
- if the group has been destroyed already@Nullable GriffonController getController()
java.lang.IllegalStateException
- if the group has been destroyed already@Nullable java.lang.Object getMember(@Nonnull java.lang.String name)
name
- the type of member to retrievejava.lang.IllegalStateException
- if the group has been destroyed already@Nonnull java.util.Map<java.lang.String,java.lang.Object> getMembers()
java.lang.IllegalStateException
- if the group has been destroyed alreadyvoid destroy()
java.lang.IllegalStateException
- if the group has been destroyed alreadyboolean isAlive()
@Nonnull Context getContext()
@Nullable MVCGroup getParentGroup()
MVCGroup
of this group.
The parent may be null if this is a top level MVC group.
@Nonnull java.util.Map<java.lang.String,MVCGroup> getChildrenGroups()
void notifyMVCGroupDestroyed(@Nonnull java.lang.String mvcId)
mvcId
- the id of the group that has been destroyed