|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupMember
GroupMembers are responsible for managing the children of a CommandGroup. Members provide a layer
of abstraction that allows for the lazy addition of children to a group as well as providing customized control
over how children are rendered within the groups container, for example
InlineMembers are used to manage inline groups.
| Method Summary | |
|---|---|
void |
acceptVisitor(GroupVisitor visitor)
Accepts a visitor to the members command or commands. |
void |
addChangeListener(javax.swing.event.ChangeListener changeListener)
Adds a change listener to the member. |
int |
addComponentTo(javax.swing.JComponent parent,
Factory factory,
java.lang.String faceContext,
java.util.List<java.awt.Component> previousComponents,
int buttonIndex)
Invoked to add this members content to the specified component. |
void |
addNotify()
Invoked to notify that this member has been added to its parent group. |
java.lang.Object |
getId()
Gets this members id. |
boolean |
isMemberFor(java.lang.String id)
Checks if this member represents the command with the specified id. |
void |
notifyCommandContainerHierarchyChanged()
Invoked to notify the member that the parent groups container hierarchy has changed. |
void |
removeChangeListener(javax.swing.event.ChangeListener changeListener)
Removes a change listener from the member. |
void |
removeNotify()
Invoked to notify that this member has been removed from its parent group. |
int |
size()
Gets the size of this member. |
| Method Detail |
|---|
java.lang.Object getId()
int addComponentTo(javax.swing.JComponent parent,
Factory factory,
java.lang.String faceContext,
java.util.List<java.awt.Component> previousComponents,
int buttonIndex)
parent - the component to add the component to.factory - the factory to be used, either a ButtonFactory or MenuFactory.faceContext - the context to use when adding the component.previousComponents - the list of previsous components built by the parent. The member
should reuse and components in preference to creating new ones.buttonIndex - the index that of the member in the parent group.
boolean isMemberFor(java.lang.String id)
id - the command id.
true if this member represents the specified command, false otherwise.void notifyCommandContainerHierarchyChanged()
void addNotify()
void removeNotify()
void acceptVisitor(GroupVisitor visitor)
visitor - the visitor.int size()
#addComponentTo(JComponent, Factory, String, List, int) .
This method should only include real members, i.e. not dynamic members that haven't been resolved.
void addChangeListener(javax.swing.event.ChangeListener changeListener)
changeListener - the change listener to add.void removeChangeListener(javax.swing.event.ChangeListener changeListener)
changeListener - the listener to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||