|
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 javax.swing.JComponent javax.swing.JPanel ca.ucalgary.seahawk.gui.MobyContentPane
public class MobyContentPane
Text area contained in a Seahawk GUI tab. Displays HTML, RTF, text etc. using a JEditorPane. Also provides link handling (including service options popup) and drag 'n' drop capabilities.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static String |
FAILED_TAB_ICON_RESOURCE
|
static String |
LOADED_TAB_ICON_RESOURCE
|
static String |
MOBY_SERVICE_POPUP_NAME
|
static String |
SERVICE_CREATION_MSG
|
static String |
WAITING_TAB_ICON_RESOURCE
|
static String |
WRAPPING_RESULTFILE_PREFIX
|
static String |
XSL_DOC_SOURCE_PARAM
The name of the param in the stylesheet that will hold the Moby doc URL for XPointer usage |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MobyContentPane(MobyContentGUI cGUI,
MobyServicesGUI sGUI,
JTabbedPane parentComponent,
DataFlowRecorder recorder,
JLabel statusBar)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
boolean |
canFilter()
|
boolean |
canGoBack()
|
boolean |
canGoForward()
|
void |
caretUpdate(CaretEvent e)
|
void |
exportDone(String valuePasted,
String transformRuleURI)
Called after data copied from this pane is pasted. |
void |
failed(String msg)
|
MobyContentGUI |
getContentGUI()
|
URL |
getCurrentURL()
|
DataFlowRecorder |
getDataFlowRecorder()
|
PrintableJEditorPane |
getDisplay()
|
MobyDataInstance |
getDraggedData()
|
int |
getExportOption(String[] options)
|
FilterSearch |
getFilter()
Gets the filter criteria currently being applied to the document being viewed. |
int |
getHistoryIndex()
|
int |
getHistorySize()
|
String |
getHTMLSource()
|
JTabbedPane |
getTabbedPaneParent()
|
boolean |
getWrappingEnabled()
|
String |
getXMLSource()
|
void |
goBackward()
|
void |
goForward()
|
void |
gotoURL(URL url,
boolean addToHistory)
This is the URLLoader callback method the MOBY data fetcher will call when MOBY XML data is ready to be seen. |
boolean |
hasFailure()
|
boolean |
hasXMLSource()
|
void |
hyperlinkUpdate(HyperlinkEvent he)
The editor pane calls back here when the user flies over or clicks on a hyperlink |
boolean |
isFilterForwardConsistent()
If the filter condition has changed since the next service was originally called, only allow navigation to that document (service results) again if the new filter allows the data used in the original call to pass (for logical dataflow consistency). |
boolean |
isMobyURL(URL u)
|
boolean |
isWrappingService()
Tells whether the tab is in the middle of wrapping a Web Service at the moment. |
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 |
lostOwnership(Clipboard clipboard,
Transferable contents)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
Grabs the keyboard focus for the component if the mouse is over it, which eliminates the need for clicking before using keyboard shortcuts like Control-v to paste. |
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paste()
|
int |
print(Graphics g,
PageFormat pf,
int pageIndex)
|
void |
processEvent(MobyRequestEvent mre)
|
void |
setFilterVisible(boolean visible)
The search/filter widget is document specific (since you may want to have different view of different service responses), therefore setting the visibility is only valid for the time the current document is being shown. |
void |
setPreferredSize(Dimension dims)
|
void |
setStatus(String msg)
|
void |
setWaitScreen()
|
void |
setWrappingEnabled(boolean b)
|
void |
start(MobyRequestEvent requestEvent)
Called by MOBYRequest when the service request is being sent. |
void |
stateChanged(ChangeEvent ce)
|
void |
stop(MobyRequest request,
int requestID)
If a client, denotes the end of a service request. |
void |
succeeded(String msg)
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String MOBY_SERVICE_POPUP_NAME
public static final String WAITING_TAB_ICON_RESOURCE
public static final String FAILED_TAB_ICON_RESOURCE
public static final String LOADED_TAB_ICON_RESOURCE
public static final String WRAPPING_RESULTFILE_PREFIX
public static final String SERVICE_CREATION_MSG
public static final String XSL_DOC_SOURCE_PARAM
Constructor Detail |
---|
public MobyContentPane(MobyContentGUI cGUI, MobyServicesGUI sGUI, JTabbedPane parentComponent, DataFlowRecorder recorder, JLabel statusBar)
Method Detail |
---|
public JTabbedPane getTabbedPaneParent()
public DataFlowRecorder getDataFlowRecorder()
public void stateChanged(ChangeEvent ce)
stateChanged
in interface ChangeListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void setStatus(String msg)
public void setPreferredSize(Dimension dims)
setPreferredSize
in class JComponent
public boolean hasXMLSource()
public String getXMLSource() throws IOException
IOException
public String getHTMLSource()
public void setWrappingEnabled(boolean b)
public boolean getWrappingEnabled()
public boolean isWrappingService()
public void gotoURL(URL url, boolean addToHistory)
public int getHistorySize()
public int getHistoryIndex()
public URL getCurrentURL()
public boolean canFilter()
public boolean canGoBack()
public boolean canGoForward()
public boolean isFilterForwardConsistent()
public void goForward()
public void goBackward()
public void exportDone(String valuePasted, String transformRuleURI)
public int getExportOption(String[] options)
public void start(MobyRequestEvent requestEvent)
start
in interface MobyRequestEventHandler
public void stop(MobyRequest request, int requestID)
MobyRequestEventHandler
stop
in interface MobyRequestEventHandler
public void processEvent(MobyRequestEvent mre)
processEvent
in interface MobyRequestEventHandler
public void failed(String msg)
public void succeeded(String msg)
public boolean hasFailure()
public void hyperlinkUpdate(HyperlinkEvent he)
hyperlinkUpdate
in interface HyperlinkListener
public MobyContentGUI getContentGUI()
public MobyDataInstance getDraggedData()
public void setWaitScreen()
public FilterSearch getFilter()
public void setFilterVisible(boolean visible) throws Exception
Exception
public boolean isMobyURL(URL u)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public int print(Graphics g, PageFormat pf, int pageIndex) throws PrinterException
print
in interface Printable
PrinterException
public PrintableJEditorPane getDisplay()
public void caretUpdate(CaretEvent e)
caretUpdate
in interface CaretListener
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 paste()
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership
in interface ClipboardOwner
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |