|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.reg.InfoModule
cz.cuni.jagrlib.reg.InfoGroup
public class InfoGroup
Information about concrete group instance (stored in XML file).
Field Summary | |
---|---|
static boolean |
autoConnect
Are new modules connected to the rest of composition automatically? |
boolean |
editRegisty
Change of this group modifies registry as well? |
java.lang.String |
fileName
File-name of the composition. |
HashMapChannels |
channels
Set of all information about channels in the group. |
InfoCompositionGUI |
infoCompositionGUI
Information about composition's GUI. |
HashMapModules |
modules
Set of all information about modules and groups in group. |
boolean |
registry
Do the group resides in the registry? |
static java.lang.String |
TI_COMPOSITION
|
static java.lang.String |
TI_GROUP
|
Fields inherited from class cz.cuni.jagrlib.reg.InfoModule |
---|
infoGUI, instancePiece, key, nextInfo, owner, params, plugs, reg, TI_MODULE |
Constructor Summary | |
---|---|
InfoGroup()
Default constructor. |
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener l)
Adds the specified action listener to receive action events from this object. |
static InfoGroup |
createNewGroup(InfoGroup superGroup)
Creation of a new group. |
boolean |
findPlugInChannels(InfoPlug ip)
Looking for plug in group's channels. |
int |
getState()
State check - checks connection status.. |
java.awt.Dimension |
getTopLeftPoint()
Gets upper-left corner of group. |
void |
changePerformed(int id,
java.lang.Object _obj)
Group change - add/delete module/channel. |
void |
init()
Group initialization. |
void |
initVisibility()
Sets initial visibility of plugs. |
boolean |
isOwner(java.lang.Integer _key)
Determine if this group has the key or has module with the key. |
static void |
moveChannelsToGroup(HashMapChannels superChannels,
InfoGroup newGroup)
Moves channels (with both plugs in group) to new group. |
void |
moveToTopLeft()
Moves all modules to top left corner (relative to their positions). |
InfoChannel |
newLink(InfoPlug ipmodule,
InfoPlug ipgroup)
Connecting module's and group's plug. |
protected void |
processActionEvent(java.awt.event.ActionEvent e)
Processes action events occurring on this object by dispatching them to any registered ActionListener objects. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes the specified action listener so that it no longer receives action events from this object. |
void |
setParams(InfoModule im)
Setting parameters from it's module. |
void |
setPlugs(InfoModule im)
Copies all plugs from the given module. |
Methods inherited from class cz.cuni.jagrlib.reg.InfoModule |
---|
getTopLevelOwner, getVisibleParamLines |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String fileName
public InfoCompositionGUI infoCompositionGUI
public boolean registry
public boolean editRegisty
public HashMapModules modules
InfoModule
or it's descendants (like InfoGroup
).
public HashMapChannels channels
InfoChannel
.
public static boolean autoConnect
public static final java.lang.String TI_GROUP
public static final java.lang.String TI_COMPOSITION
Constructor Detail |
---|
public InfoGroup()
Method Detail |
---|
public boolean isOwner(java.lang.Integer _key)
isOwner
in class InfoModule
_key
- In demand key.
true
if group has the key.public int getState()
getState
in class InfoModule
public void init()
public void setPlugs(InfoModule im)
im
- Source module.public void setParams(InfoModule im)
im
- Information about module.public InfoChannel newLink(InfoPlug ipmodule, InfoPlug ipgroup)
ipmodule
- plug from module.ipgroup
- plug from group.
public boolean findPlugInChannels(InfoPlug ip)
ip
- Information about plug.
true
if group has channel with this plug or false
otherwise.public java.awt.Dimension getTopLeftPoint()
public static InfoGroup createNewGroup(InfoGroup superGroup)
superGroup
- superGroup with selected modules.
null
.public static void moveChannelsToGroup(HashMapChannels superChannels, InfoGroup newGroup)
superChannels
- channels from parent group.newGroup
- new group.public void moveToTopLeft()
public void initVisibility()
public void changePerformed(int id, java.lang.Object _obj)
id
- Identification of action._obj
- Module or channel.public void addActionListener(java.awt.event.ActionListener l)
l
- the action listenerremoveActionListener(java.awt.event.ActionListener)
,
ActionListener
public void removeActionListener(java.awt.event.ActionListener l)
l
- the action listeneraddActionListener(java.awt.event.ActionListener)
,
ActionListener
protected void processActionEvent(java.awt.event.ActionEvent e)
ActionListener
objects.
This method is not called unless action events are enabled for this object. Action events are enabled when one of the following occurs:
ActionListener
object is registered
via addActionListener(java.awt.event.ActionListener)
.
null
the behavior is unspecified and may result in an
exception.
e
- the action eventActionListener
,
Component.enableEvents(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |