|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame ca.ucalgary.seahawk.gui.MobyContentGUI
public class MobyContentGUI
Main interface component: textually displays the data in a MOBY content XML document. For details on embedding in your own app, please see the documentation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Fields inherited from class javax.swing.JFrame |
---|
EXIT_ON_CLOSE |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MobyContentGUI(MobyServicesGUI mgui)
Constructor for a standalone visual interface. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Called when a tab option (close) is selected |
MobyDataObjectSet |
addToClipboard(MobyDataInstance itemToAdd)
Adds the given data to the Seahawk clipboard object collection. |
boolean |
allTabsVisible()
|
MobyContentInstance |
callService(MobyService service,
MobyContentInstance inEnvelope)
|
void |
clearClipboard()
Removes any existing data from the clipboard. |
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
Makes the panels of the tabbed pane have a preferred size to fit within the frame |
void |
componentShown(ComponentEvent e)
|
static Document |
convertHTMLToXHTML(byte[] responseBody)
|
static void |
destroy()
Method to be called when an applet is being decommissioned. |
MobyService |
findService(String providerURI,
String serviceName)
|
int |
getActiveTab()
|
Dimension |
getContentSize()
Calculates the approximate space available for the content on a pane (i.e. frame size - tab size - status bar) |
MobyContentPane |
getCurrentPane()
Returns the current tab's display component, mostly for testing purposes. |
URL |
getCurrentURL()
Returns the URL of the document that is the source of the current tab's display |
DocumentBuilder |
getDocumentBuilder()
|
CentralImpl |
getMobyCentralImpl()
|
Acme.Serve.Serve |
getServletContainer()
|
JLabel |
getStatusComponent()
|
JPanel |
getToolbar()
|
Transformer |
getTransformer()
|
void |
goBackward()
|
void |
goForward()
|
boolean |
isShowingFailure()
Reports whetehr the current tab (if any is showing) is displaying a failure, such as network or protocol failure while requesting a service. |
void |
keyPressed(KeyEvent e)
Implemented to provide paste functionality (control-v or the paste button on a Sun keyboard), since the editor panes are not editable and therefore by default do not respond to paste events. |
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
loadPaneFromObject(MobyContentInstance mci,
boolean useDefaultHandler)
Load a Seahawk browser tab with the data held in the given MobyContentInstance. |
void |
loadPaneFromURL(URL u,
boolean useDefaultHandler)
|
static void |
main(String[] argv)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
openDocument()
Displays the choice to the user to open a file or URL. |
void |
printCurrentPane()
|
int |
processCGIResults(byte[] responseBody,
String contentType)
|
void |
processEvent(MobyRequestEvent mre)
|
int |
processServiceResults(Node responseDOM)
This method is called by the Programming-by-example (PBE) system when we have the response from a service that's being semantically wrapped. |
boolean |
removeFromClipboard(MobyDataInstance itemToDelete)
|
void |
saveCurrentPane()
|
void |
serviceWrapped(String providerURI,
String serviceName,
MobyDataJob sampleData)
Called after a service has been created by the wrapping system, with the intention that the new service should be called and included in the browsing session. |
void |
setActiveTab(int index)
|
static void |
setDefaultAppCloseOperation(int code)
Value to be passed to application JFrame |
void |
setForwardButtonToolTip(String msg)
Allow others to set the forward navigation button message. |
void |
setServletContainer(Acme.Serve.Serve sc)
A shared resource for proxying requests such as WSDL PBE wrapping |
void |
setStatus(String msg)
|
int |
showHelpTab()
|
void |
showWebDialog(boolean useDefaultHandler)
|
void |
start(MobyRequestEvent requestEvent)
Called by MOBYRequest when the service request is being sent. |
void |
stop(MobyRequest request,
int requestID)
If a client, denotes the end of a service request. |
void |
stopServletContainer()
Explicitly stop the servlet container, if running, that is used for WSDL service wrapping. |
void |
updateHistory(MobyContentPane pane)
A pane whose history list has changed should call this method to ensure the forward and backward buttons are properly set to reflect the change. |
void |
updateHistoryButtons()
|
Methods inherited from class javax.swing.JFrame |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static final String BACK_BUTTON_NAME
public static final String FORWARD_BUTTON_NAME
public static final String FORWARD_BUTTON_MSG
public static final String OPEN_BUTTON_NAME
public static final String SAVE_BUTTON_NAME
public static final String FILTER_BUTTON_NAME
public static final String PRINT_BUTTON_NAME
public static final String HELP_BUTTON_NAME
public static final String SETTINGS_BUTTON_NAME
public static final String OPEN_OPTION_NAME
public static final String FILE_OPEN_OPTION_NAME
public static final String WEB_OPEN_OPTION_NAME
public static final String TABBED_PANE_NAME
public static final String FILE_CHOOSER_OPEN_TITLE
public static final String WEB_ADDR_DIALOG_TITLE
public static final String DEFAULT_STATUS_MSG
public static final String RESOURCE_SYSTEM_PROPERTY
public static final String DEFAULT_STARTUP_PAGE_RESOURCE
public static final String DEFAULT_XSLT_CONVERTER_URL
public static final int MAX_TAB_NAME_LENGTH
public static final String CLIPBOARD_TAB_TOOLTIP
public static final String TAB_TOOLTIP
public static final String CLOSE_TAB_OPTION
public static final String CLOSE_OTHERS_OPTION
public static final String FILE_OPEN_OPTION
public static final String WEB_OPEN_OPTION
public static final String SEAHAWK_NS_URI
public static final String SEAHAWK_NS_PREFIX
public static final String SEAHAWK_XPATH_ATTR
public static final String SERVICE_INPUT_MAGIC
Constructor Detail |
---|
public MobyContentGUI(MobyServicesGUI mgui)
Method Detail |
---|
public Acme.Serve.Serve getServletContainer()
public void setServletContainer(Acme.Serve.Serve sc)
public int processCGIResults(byte[] responseBody, String contentType) throws Exception
Exception
public static Document convertHTMLToXHTML(byte[] responseBody)
public int processServiceResults(Node responseDOM) throws Exception
Exception
public void stopServletContainer() throws IOException
IOException
public boolean allTabsVisible()
public JPanel getToolbar()
public Transformer getTransformer()
public DocumentBuilder getDocumentBuilder()
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void start(MobyRequestEvent requestEvent)
start
in interface MobyRequestEventHandler
public Dimension getContentSize()
public void setStatus(String msg)
public void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
public void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
public void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
public void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
public void stop(MobyRequest request, int requestID)
MobyRequestEventHandler
stop
in interface MobyRequestEventHandler
public void processEvent(MobyRequestEvent mre)
processEvent
in interface MobyRequestEventHandler
public void setForwardButtonToolTip(String msg)
public void updateHistoryButtons()
public void updateHistory(MobyContentPane pane)
public void goBackward()
public void goForward()
public boolean isShowingFailure()
public URL getCurrentURL()
public MobyContentPane getCurrentPane()
public void printCurrentPane()
public CentralImpl getMobyCentralImpl()
public void saveCurrentPane()
public int showHelpTab()
public void openDocument()
public void showWebDialog(boolean useDefaultHandler)
public MobyService findService(String providerURI, String serviceName) throws Exception
Exception
public MobyContentInstance callService(MobyService service, MobyContentInstance inEnvelope) throws Exception
Exception
public void serviceWrapped(String providerURI, String serviceName, MobyDataJob sampleData) throws Exception
Exception
public void loadPaneFromObject(MobyContentInstance mci, boolean useDefaultHandler) throws Exception
Exception
- if a temporary file cannot be written or readpublic void loadPaneFromURL(URL u, boolean useDefaultHandler)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public int getActiveTab()
public void setActiveTab(int index)
public boolean removeFromClipboard(MobyDataInstance itemToDelete)
public MobyDataObjectSet addToClipboard(MobyDataInstance itemToAdd)
itemToAdd
- if null, method simply returns the current clipboard contents
public void clearClipboard()
public static void setDefaultAppCloseOperation(int code)
public static void main(String[] argv)
public static void destroy()
public JLabel getStatusComponent()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |