|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassbox.gui.AbstractGroup
org.glassbox.gui.LayoutGroup
public class LayoutGroup
A group with the possibility to layout its visible members.
| Field Summary | |
|---|---|
protected java.lang.String |
_identifier
|
protected Group |
_parent
|
protected boolean |
_resize
|
protected javax.swing.JPanel |
_view
|
| Fields inherited from class org.glassbox.gui.AbstractGroup |
|---|
_members, _properties |
| Fields inherited from interface org.glassbox.gui.VisibleGroup |
|---|
MODAL_MEMBER_KEY, VIEWPORT_SIZE_KEY |
| Fields inherited from interface org.glassbox.gui.Group |
|---|
APPLICATION_STATUS_KEY, EXITING, INITIATED, PAUSED, RUNNING, UNDEFINED |
| Constructor Summary | |
|---|---|
|
LayoutGroup(java.awt.LayoutManager layout,
java.lang.String themeprefix,
java.lang.String identifier)
Constructor. |
|
LayoutGroup(java.awt.LayoutManager layout,
java.lang.String themeprefix,
java.lang.String identifier,
boolean resize)
Constructor. |
protected |
LayoutGroup(java.lang.String themeprefix,
java.lang.String identifier,
boolean resize)
|
| Method Summary | |
|---|---|
void |
addMember(Member member)
Add a member to the group. |
void |
addMember(VisibleMember member,
java.lang.Object layout)
Add a visible member to this group. |
Group |
getGroup()
Get the group this member belongs to. |
java.lang.String |
getIdentifier()
Get a unique identifier of the member. |
javax.swing.JComponent |
getView()
Get the view of this visible. |
void |
groupPropertyChanged(java.lang.String name,
java.lang.Object oldvalue,
java.lang.Object newvalue)
Forward all property changes to the members of this group. |
void |
memberViewUpdated(VisibleMember member)
Invalidate the view and layout it again. |
void |
removeMember(java.lang.String identifier)
Overridden to remove the view of a visible member. |
void |
setGroup(Group parent)
Sets the group of this member. |
protected void |
setLayout(java.awt.LayoutManager layout)
|
| Methods inherited from class org.glassbox.gui.AbstractGroup |
|---|
firePropertyChanged, getMember, getProperty, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassbox.gui.Group |
|---|
getMember, getProperty, setProperty |
| Field Detail |
|---|
protected javax.swing.JPanel _view
protected java.lang.String _identifier
protected Group _parent
protected boolean _resize
| Constructor Detail |
|---|
protected LayoutGroup(java.lang.String themeprefix,
java.lang.String identifier,
boolean resize)
public LayoutGroup(java.awt.LayoutManager layout,
java.lang.String themeprefix,
java.lang.String identifier)
layout - The layout manager of this group.themepath - The prefix of the theme configuration of the view of this group.
See SwingFactory.createPanel(String) for information about the possible
configurations of the view of this group.identifier - The identifier of this member.
public LayoutGroup(java.awt.LayoutManager layout,
java.lang.String themeprefix,
java.lang.String identifier,
boolean resize)
layout - The layout manager of this group.themepath - The prefix of the theme configuration of the view of this group.
See SwingFactory.createPanel(String) for information about the possible
configurations of the view of this group.identifier - The identifier of this member.resize - Indicates if this group should resize it's view if one of it's members views has been updated.| Method Detail |
|---|
protected void setLayout(java.awt.LayoutManager layout)
public javax.swing.JComponent getView()
Visible
getView in interface Visiblepublic java.lang.String getIdentifier()
Member
getIdentifier in interface Memberpublic Group getGroup()
Member
getGroup in interface Membernull if the member currently does not belong to a group.public void setGroup(Group parent)
Member
setGroup in interface Member
public void groupPropertyChanged(java.lang.String name,
java.lang.Object oldvalue,
java.lang.Object newvalue)
groupPropertyChanged in interface Member
public void addMember(VisibleMember member,
java.lang.Object layout)
public void memberViewUpdated(VisibleMember member)
memberViewUpdated in interface VisibleGrouppublic void addMember(Member member)
Group
addMember in interface GroupaddMember in class AbstractGrouppublic void removeMember(java.lang.String identifier)
removeMember in interface GroupremoveMember in class AbstractGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||