public class CooperationDomainWindow extends AgentInternalFrame
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
(package private) static int |
DEFAULT_X |
(package private) static int |
DEFAULT_Y |
private JTextField |
fieldURL |
private JList |
members
The list of member agents in the CD that has focus (selected) in
AbstractInternalFrame.listCDs ; part of #cdsPanel . |
private JCheckBoxMenuItem |
menuCDPersistent |
private JCheckBoxMenuItem |
menuCDPersistentHistory |
protected JMenuItem |
menuCDViewHistory |
agentFrame_LAST_EVENT
buttonEXECUTE, buttonPAUSE, buttonRESUME, buttonSTEP, closingPort, contentPanel, debugBar, HORIZONTAL, menuADD_NEW_TAB, menuAgent_editOntology, menuAgent_Exit, menuAgent_options, menuAgent_setDebug, menuAgent_showMessageArea, menuAgent_showTrace, menuCD, menuCD_Join, menuCLEARDEBUG, menuEDIT_ONTOLOGY, menuEDIT_ONTOLOGY_GRAPHICAL, menuEXIT, menuFIRST_DYNAMIC_EVENT, menuGETYELLOWPAGES, menuHIDE_DEBUG_BAR, menuHIDE_MESSAGE_AREA, menuINFO, menuINVITECD, menuJOINCD, menuLAC, menuLAC_RegisterInstance, menuLAC_UnregisterInstance, menuLAST_DYNAMIC_EVENT, menuOPTIONS, menuREGISTER, menuSET_ACK_PROTOCOL, menuSHOW_DEBUG_BAR, menuSHOW_MESSAGE_AREA, menuSHOWTRACE, menuUNREGISTER, menuUserManual, menuWindow_hideDebugBar, menuWindow_showDebugBar, menuWITHDRAWCD, menuYP, noAction, pauseButton, pausedLabel, resumeButton, splitPanes, stepButton, transientAgentFrame_LAST_EVENT, VERTICAL
appIconSet, commandPanel, frame, guiObserver, jFrame, jInternalFrame, listCDMembers, listCDs, menuAgent, menuAgent_editActs, menuAgent_editPerformatives, menuAgentCommands, menuCD_Invite, menuCD_Withdraw, menuEDIT_ACT_TYPES, menuEDIT_PERFORMATIVE_TYPES, menuEditTypes, menuEDITTYPES, menuHelp, menuHelp_helpJade, menuHelp_helpLisp, menuHelp_helpOWL2, menuHelp_homepage, menuHelp_htmanual, menuHelp_info, menuHelp_javadoc, menuHelp_umanual, menuHelpJade, menuHelpLisp, menuHelpOWL2, menuHomePage, menuHowTo, menuJavaDoc, menuNEW_MENU_ITEM, menuOptions, menuScripts, menuSET_CREATE_PROXY_WINDOWS, menuSET_SHOW_INACTIVE, menuSETDEBUG, menuShowTrace, menuSYSTEM_CLEAR_TAGS_TYPES, menuSYSTEM_LAC_DAEMON_TYPES, menuSYSTEM_Preferences, menuTools, menuWindow, process
agent, showEvents, showInfo, showMessages, showTrace, showUnknown
TYPE_ANY, TYPE_BOOLEAN, TYPE_FLOAT, TYPE_INT, TYPE_STRING
Constructor and Description |
---|
CooperationDomainWindow(CooperationDomain theCD,
String title,
Container aFrame)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
announceMyEntrance() |
protected void |
CDSelectionChanged()
Updates window if a different CD is selected.
|
(package private) CooperationDomain |
getCD() |
protected JList |
getListCDMembers() |
private CooperationDomainListModel |
getMembersListModel() |
protected void |
iconifyFrame() |
private void |
joinedMembersList(URLDescriptor joinerURL) |
protected JPanel |
makeCDPanel()
Overides the method in TransientAgentInternalFrame.
|
protected JMenuBar |
makeMenuBar()
Factory Method to create a generic Agent menu bar.
|
protected JTabbedPane |
makeTabPane() |
(package private) void |
menuCDpersistent_actionPerformed(ActionEvent e) |
(package private) void |
menuCDpersistentHistory_actionPerformed(ActionEvent e) |
(package private) void |
menuCDViewHistory_actionPerformed(ActionEvent e) |
protected JPanel |
setInfoPanel()
Displays information about the agent in infoPanel.
|
protected void |
updateCDmemberJList(Vector<URLDescriptor> memberList)
Updates the listCDMembers JLists and enables or disables the menuCD_Withdrawn menu item
according to the parameter.
|
void |
updateEventHandler(Observable observable,
String event,
Object argObject)
This method is called whenever the
AbstractInternalFrame.update(Observable, Object)
gets an Object that's a ObserverNotification . |
protected void |
updateFieldURL() |
private void |
updateMenuPrefs() |
private void |
withdrewMembersList(URLDescriptor withdrawnURL) |
actionPerformed, closeInternalFrame, getAgent, getBounds, resetFromPersistentData, start, updateAgent
ask, getOutStream, getTransientAgent, inviteToCD, print, print, println, printStatus, setDebugBar, takesHTML, updateHandler
addFrameListener, addScript, addTab, CDMembersMouseHook, closeWindow, createRequestedMenuItem, dispose, doDefaultCloseAction, getBuildTime, getCommandPanel, getContentPane, getDesktopIcon, getFrame, getHeight, getLayeredPane, getMenuBarMenu, getRootPane, getTab, getTabComponent, getTabPane, getTitle, getWidth, insertMenuBar, insertMenuBarAfter, insertMenuBarBefore, insertTab, insertTabAfter, internalFrameActivated, internalFrameClosed, internalFrameClosing, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, isClosed, isIcon, isInternalFrameClosable, isMaximized, makeAgentMenu, makeCommandPanel, makeHelpMenu, makeToolsMenu, makeTypeEditDialog, makeWindowMenu, pack, refreshTabMenu, removeTab, replaceMenuBar, replaceTabComponent, runInEventDispatchThread, runInEventDispatchThread, setClosable, setContentPane, setFrameIcon, setIcon, setIconifiable, setInfoPanel, setJMenuBar, setLocation, setMaximizable, setMaximized, setName, setOpaque, setResizable, setSelected, setSelectedTab, setSize, setTitle, setVisible, show, toFront, update, updateCDListFromAgent, updateMemberList, updateOptions, updateStrategyPanel, validate, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened, withdrawCD
eval, evalWithHistory, handleEvent, handleOther, printlnObject
static int DEFAULT_X
static int DEFAULT_Y
private JList members
AbstractInternalFrame.listCDs
; part of #cdsPanel
.private JTextField fieldURL
private JCheckBoxMenuItem menuCDPersistent
private JCheckBoxMenuItem menuCDPersistentHistory
protected JMenuItem menuCDViewHistory
public CooperationDomainWindow(CooperationDomain theCD, String title, Container aFrame)
theCD
- Cooperation Domain objectpublic void updateEventHandler(Observable observable, String event, Object argObject)
AbstractInternalFrame
AbstractInternalFrame.update(Observable, Object)
gets an Object that's a ObserverNotification
. The ObserverNotification
is split into the components, and that forms the arguments to this method.
Note that if you need to you the raw info from AbstractInternalFrame.update(Observable, Object)
,
then you should put your code in AbstractInternalFrame.updateHandler(Observable, Object)
which is unconditionally called with the raw parameters.
You can expect this method to always be executed in the AWT Event thread.updateEventHandler
in class TransientAgentInternalFrame
observable
- The Observable that triggered this update callevent
- The eventargObject
- The parameter to the eventCooperationDomain getCD()
private void announceMyEntrance()
protected void iconifyFrame()
protected void CDSelectionChanged()
AbstractInternalFrame
CDSelectionChanged
in class AbstractInternalFrame
protected JPanel makeCDPanel()
makeCDPanel
in class AbstractInternalFrame
protected JList getListCDMembers()
getListCDMembers
in class AbstractInternalFrame
protected JMenuBar makeMenuBar()
TransientAgentInternalFrame
makeMenuBar
in class TransientAgentInternalFrame
protected JTabbedPane makeTabPane()
makeTabPane
in class AbstractInternalFrame
protected JPanel setInfoPanel()
AbstractInternalFrame
setInfoPanel
in class AbstractInternalFrame
void menuCDpersistent_actionPerformed(ActionEvent e)
void menuCDpersistentHistory_actionPerformed(ActionEvent e)
void menuCDViewHistory_actionPerformed(ActionEvent e)
protected void updateFieldURL()
private CooperationDomainListModel getMembersListModel()
private void joinedMembersList(URLDescriptor joinerURL)
private void withdrewMembersList(URLDescriptor withdrawnURL)
private void updateMenuPrefs()
protected void updateCDmemberJList(Vector<URLDescriptor> memberList)
updateCDmemberJList
in class AbstractInternalFrame
memberList
- A Vector of URLDescriptors.