|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.group.impl.AbstractGroupMember
com.pietschy.command.group.impl.AbstractCommandMember
com.pietschy.command.group.impl.InlineMember
public class InlineMember
A GroupMember implementation for adding one group as an inline member of another.
| Constructor Summary | |
|---|---|
InlineMember(CommandGroup parentGroup,
CommandGroup childGroup)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(GroupVisitor visitor)
Accepts a visitor to the members command or commands. |
int |
addComponentTo(javax.swing.JComponent container,
Factory factory,
java.lang.String defaultFaceId,
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. |
boolean |
isMemberFor(java.lang.String id)
Checks if this group is dependant on the specified command. |
void |
removeNotify()
Invoked to notify that this member has been removed from its parent group. |
int |
size()
Gets the size of this member. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class com.pietschy.command.group.impl.AbstractCommandMember |
|---|
getCommand, getId, getParent |
| Methods inherited from class com.pietschy.command.group.impl.AbstractGroupMember |
|---|
addChangeListener, fireChanged, notifyCommandContainerHierarchyChanged, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InlineMember(CommandGroup parentGroup,
CommandGroup childGroup)
parentGroup - the parent group.childGroup - the group to inline into the parent.| Method Detail |
|---|
public int addComponentTo(javax.swing.JComponent container,
Factory factory,
java.lang.String defaultFaceId,
java.util.List<java.awt.Component> previousComponents,
int buttonIndex)
GroupMember
container - the component to add the component to.factory - the factory to be used, either a ButtonFactory or MenuFactory.defaultFaceId - 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.
public boolean isMemberFor(java.lang.String id)
id -
public void addNotify()
GroupMember
addNotify in interface GroupMemberaddNotify in class AbstractCommandMemberpublic void removeNotify()
GroupMember
removeNotify in interface GroupMemberremoveNotify in class AbstractCommandMemberpublic void acceptVisitor(GroupVisitor visitor)
GroupMember
visitor - the visitor.public int size()
GroupMember#addComponentTo(JComponent, Factory, String, List, int) .
This method should only include real members, i.e. not dynamic members that haven't been resolved.
size in interface GroupMembersize in class AbstractCommandMemberpublic java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||