|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.ucalgary.seahawk.gui.MobyServicesGUI
public class MobyServicesGUI
Implementation of the actually popup menu that lists services available, and invokes them.
Field Summary | |
---|---|
static String |
CLIPBOARD_CMD
|
static String |
CLIPBOARD_LABEL
|
static int |
MAX_ID_LEN
|
static int |
MAX_SERVICE_DESC_LEN
|
static int |
MAX_SERVICES_PER_SUBMENU
|
static String |
SEARCH_LABEL
|
static String |
SERVICE_SUBMENU_NAME
|
static String |
SERVICESEARCH_CMD
|
static int |
USE_DEFAULT_HANDLER_MASK
Always spring MOBY response in a new window if this modifier is present for a click |
static int |
USE_DEFAULT_SECONDARIES_MASK
|
Constructor Summary | |
---|---|
MobyServicesGUI()
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addClipboardItem(JMenu menu,
MobyDataInstance mobyData)
|
JMenu |
addNameDivSubMenu(JMenu parentMenu,
MobyService[] services)
|
JMenu |
addOutputTypeSubMenu(JMenu parentMenu,
MobyDataType type)
|
void |
addPopupOptions(MobyDataInstance mobyData,
JPopupMenu popupList,
boolean asynchronous)
Same as three arg addPopupOptions, but uses default response handler |
void |
addPopupOptions(MobyDataInstance mobyData,
JPopupMenu popupList,
boolean asynchronous,
MobyRequestEventHandler handler)
Find the list of available services querying MobyCentral directly with a piece of data. |
void |
addPopupOptions(Node targetNode,
JPopupMenu popupList,
boolean asynchronous)
Uses default handler for response callback |
void |
addPopupOptions(Node targetNode,
JPopupMenu popupList,
boolean asynchronous,
MobyRequestEventHandler handler)
Find the list of available services based on the XML->moby datatype mapping utility in mobyClient. |
void |
addPopupOptions(Object mobyData,
JPopupMenu popupList,
boolean asynchronous,
MobyRequestEventHandler handler,
MobyPayloadRequestListener payloadCreator,
String extraMenuText)
Find the list of available services querying MobyCentral directly with a piece of data. |
void |
addPopupOptions(String textData,
JPopupMenu popupList,
boolean asynchronous)
|
void |
addPopupOptions(String textData,
JPopupMenu popupList,
boolean asynchronous,
MobyRequestEventHandler handler)
|
void |
addRegexMapping(String xpath,
String[] mobyDataTypes)
|
void |
addRegexMapping(String xpath,
String desc_xpath,
String[] mobyDataTypes)
|
void |
addSearchItem(JMenu menu,
int location)
|
JMenu |
addServiceTypeSubMenu(JMenu parentMenu,
MobyServiceType type)
|
void |
addXPathMapping(String xpath,
String[] mobyDataTypes)
|
void |
addXPathMapping(String xpath,
String desc_xpath,
String[] mobyDataTypes)
|
int |
compare(MobyService o1,
MobyService o2)
|
JMenu |
createObjectSubMenu(Object templateObject,
String extraMenuText)
Template object may be one of MobyPrimaryData, or in case of deferred content loading a MobyNamespace, MobyDataType, or MobyPrimaryDataSet. |
boolean |
equals(Object obj)
|
CentralImpl |
getMobyCentralImpl()
|
MobyClient |
getMobyClient()
|
boolean |
isSecondaryParamDialogNew()
|
void |
popupMenuCanceled(PopupMenuEvent e)
If the popup is canceled, we want to remove any data we've stored, and kill any requests to MOBYCentral. |
void |
popupMenuWillBecomeInvisible(PopupMenuEvent e)
|
void |
popupMenuWillBecomeVisible(PopupMenuEvent e)
|
void |
removePopupOptions()
|
void |
removePopupOptions(Object source)
|
void |
selectionCanceled(ServiceSearchDialog dialog)
|
void |
serviceSelected(ServiceSearchDialog dialog,
JMenuItem selectedServiceItem)
|
void |
setClipboard(MobyContentClipboard clip)
|
void |
setDataDescMax(int cutoff)
|
void |
setResponseHandler(MobyRequestEventHandler mreh)
If a service is invoked by this class, the event handler registered here will get a callback when the response is ready for display (MobyServicesGUI does not display service results, this is its way of delegating that responsibility). |
void |
setupService(MobyService mobyService,
MobyDataInstance mdi,
MobyRequestEventHandler mreh)
Call the service given, or first launch a GUI to get missing input data if not provided in the MobyDataInstance. |
void |
setupServiceSecondaryData(MobyRequestEventHandler handler)
Called when the 'Execute Service' button in the secondary input dialog in pushed. |
void |
sortServicesByName(MobyService[] services)
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_ID_LEN
public static final String SERVICE_SUBMENU_NAME
public static final int MAX_SERVICES_PER_SUBMENU
public static final int MAX_SERVICE_DESC_LEN
public static final String CLIPBOARD_CMD
public static final String SERVICESEARCH_CMD
public static final String SEARCH_LABEL
public static final String CLIPBOARD_LABEL
public static final int USE_DEFAULT_HANDLER_MASK
public static final int USE_DEFAULT_SECONDARIES_MASK
Constructor Detail |
---|
public MobyServicesGUI() throws Exception
Exception
Method Detail |
---|
public CentralImpl getMobyCentralImpl()
public MobyClient getMobyClient()
public void setClipboard(MobyContentClipboard clip)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void setupServiceSecondaryData(MobyRequestEventHandler handler)
public void setupService(MobyService mobyService, MobyDataInstance mdi, MobyRequestEventHandler mreh)
public void popupMenuCanceled(PopupMenuEvent e)
popupMenuCanceled
in interface PopupMenuListener
public void popupMenuWillBecomeInvisible(PopupMenuEvent e)
popupMenuWillBecomeInvisible
in interface PopupMenuListener
public void popupMenuWillBecomeVisible(PopupMenuEvent e)
popupMenuWillBecomeVisible
in interface PopupMenuListener
public boolean isSecondaryParamDialogNew()
public void setResponseHandler(MobyRequestEventHandler mreh)
public void addXPathMapping(String xpath, String[] mobyDataTypes)
public void addXPathMapping(String xpath, String desc_xpath, String[] mobyDataTypes)
public void addRegexMapping(String xpath, String[] mobyDataTypes)
public void addRegexMapping(String xpath, String desc_xpath, String[] mobyDataTypes)
public void setDataDescMax(int cutoff)
public void addPopupOptions(Node targetNode, JPopupMenu popupList, boolean asynchronous)
public void addPopupOptions(Node targetNode, JPopupMenu popupList, boolean asynchronous, MobyRequestEventHandler handler)
public void removePopupOptions(Object source)
public void removePopupOptions()
public void addPopupOptions(String textData, JPopupMenu popupList, boolean asynchronous)
public void addPopupOptions(String textData, JPopupMenu popupList, boolean asynchronous, MobyRequestEventHandler handler)
public void addPopupOptions(MobyDataInstance mobyData, JPopupMenu popupList, boolean asynchronous)
public void addPopupOptions(MobyDataInstance mobyData, JPopupMenu popupList, boolean asynchronous, MobyRequestEventHandler handler)
public void addPopupOptions(Object mobyData, JPopupMenu popupList, boolean asynchronous, MobyRequestEventHandler handler, MobyPayloadRequestListener payloadCreator, String extraMenuText)
mobyData
- a MobyDataInstance, or in the case of deferred data to be created by payloadCreator, a MobyDataType, MobyNamespace, or MobyPrimaryDataSetpublic JMenu addServiceTypeSubMenu(JMenu parentMenu, MobyServiceType type)
public JMenu addNameDivSubMenu(JMenu parentMenu, MobyService[] services)
public JMenu addOutputTypeSubMenu(JMenu parentMenu, MobyDataType type)
public JMenu createObjectSubMenu(Object templateObject, String extraMenuText)
public void serviceSelected(ServiceSearchDialog dialog, JMenuItem selectedServiceItem)
serviceSelected
in interface ServiceChoiceListener
public void selectionCanceled(ServiceSearchDialog dialog)
selectionCanceled
in interface ServiceChoiceListener
public void addSearchItem(JMenu menu, int location)
public void addClipboardItem(JMenu menu, MobyDataInstance mobyData)
public void sortServicesByName(MobyService[] services)
public int compare(MobyService o1, MobyService o2)
compare
in interface Comparator<MobyService>
public boolean equals(Object obj)
equals
in interface Comparator<MobyService>
equals
in class Object
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |