|
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 ca.ucalgary.seahawk.gui.MobyContentClipboard
public class MobyContentClipboard
The clipboard is a special tab that holds a query with a MOBY Collection that the user can add and subtract MobyDataInstances from.
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 |
CLEAR_CLIPBOARD_OPTION
|
static String |
CLIPBOARD_COLLECTION_NAME
|
static String |
CLIPBOARD_FILE_NAME
|
static String |
CLIPBOARD_QUERY_NAME
|
static Color |
CLIPBOARD_TAB_COLOR
|
static String |
CLIPBOARD_TAB_ICON_RESOURCE
|
static String |
CLIPBOARD_TAB_NAME
|
Fields inherited from class ca.ucalgary.seahawk.gui.MobyContentPane |
---|
FAILED_TAB_ICON_RESOURCE, LOADED_TAB_ICON_RESOURCE, MOBY_SERVICE_POPUP_NAME, SERVICE_CREATION_MSG, WAITING_TAB_ICON_RESOURCE, WRAPPING_RESULTFILE_PREFIX, XSL_DOC_SOURCE_PARAM |
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 | |
---|---|
MobyContentClipboard(MobyContentGUI cGUI,
MobyServicesGUI sGUI,
JTabbedPane parentComponent,
DataFlowRecorder recorder,
JLabel statusBar)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addCollectionData(MobyContentInstance mci)
Objects in the content instance will be flattened into a list and appended to the current contents of the collection. |
void |
addCollectionData(MobyDataInstance mdi)
The main way to add data to the clipboard, data gets appended to the query with the name given in CLIPBOARD_COLLECTION_NAME |
void |
addCollectionData(MobyDataInstance mdi,
boolean updateDisplay)
|
void |
addCollectionData(URL u)
Attempts to add data from the given URL as MOBY objects (converting if necessary). |
void |
addData(String title,
MobyDataInstance mdi)
Adds a query to the clipboard with the since MobyDataInstance attached to it. |
boolean |
canGoBack()
history is disabled for the clipboard |
boolean |
canGoForward()
history is disabled for the clipboard |
void |
clearData()
|
MobyDataObjectSet |
getCollection()
Get the Java representation of the data in the main clipboard collection. |
MobyContentInstance |
getContents()
Get the Java representation of the data on the clipboard (as a MOBY data envelope), including any possible non-standard contents. |
URL |
getCurrentURL()
Overrides the default implementation in parent class because the clipboard does not have a standard history. |
String |
getXMLSource()
|
boolean |
hasXMLSource()
|
void |
importCanceled(DataImportChoiceDialog dialog)
|
void |
importConfirmed(DataImportChoiceDialog dialog,
MobyDataObject[] selectedData)
|
void |
init()
Sets up temporary files, icons, etc. |
boolean |
removeCollectionData(MobyDataInstance itemToDelete)
|
void |
stateChanged(ChangeEvent ce)
|
void |
updateDisplay()
|
Methods inherited from class ca.ucalgary.seahawk.gui.MobyContentPane |
---|
canFilter, caretUpdate, exportDone, failed, getContentGUI, getDataFlowRecorder, getDisplay, getDraggedData, getExportOption, getFilter, getHistoryIndex, getHistorySize, getHTMLSource, getTabbedPaneParent, getWrappingEnabled, goBackward, goForward, gotoURL, hasFailure, hyperlinkUpdate, isFilterForwardConsistent, isMobyURL, isWrappingService, keyPressed, keyReleased, keyTyped, lostOwnership, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paste, print, processEvent, setFilterVisible, setPreferredSize, setStatus, setWaitScreen, setWrappingEnabled, start, stop, succeeded |
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 CLEAR_CLIPBOARD_OPTION
public static final String CLIPBOARD_FILE_NAME
public static final String CLIPBOARD_COLLECTION_NAME
public static final String CLIPBOARD_QUERY_NAME
public static final String CLIPBOARD_TAB_NAME
public static final Color CLIPBOARD_TAB_COLOR
public static final String CLIPBOARD_TAB_ICON_RESOURCE
Constructor Detail |
---|
public MobyContentClipboard(MobyContentGUI cGUI, MobyServicesGUI sGUI, JTabbedPane parentComponent, DataFlowRecorder recorder, JLabel statusBar)
Method Detail |
---|
public void stateChanged(ChangeEvent ce)
stateChanged
in interface ChangeListener
stateChanged
in class MobyContentPane
public void init()
public boolean canGoBack()
canGoBack
in class MobyContentPane
public boolean canGoForward()
canGoForward
in class MobyContentPane
public boolean removeCollectionData(MobyDataInstance itemToDelete)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class MobyContentPane
public void addData(String title, MobyDataInstance mdi)
title
- the name to show for the object on the clipboard, will replace any existing query with same titlemdi
- the data object to add to the clipboardpublic void addCollectionData(MobyDataInstance mdi)
mdi
- the data to be added to the main clipboard collectionpublic void addCollectionData(MobyDataInstance mdi, boolean updateDisplay)
public void addCollectionData(MobyContentInstance mci)
public void addCollectionData(URL u)
public void importConfirmed(DataImportChoiceDialog dialog, MobyDataObject[] selectedData)
importConfirmed
in interface DataImportChoiceListener
public void importCanceled(DataImportChoiceDialog dialog)
importCanceled
in interface DataImportChoiceListener
public boolean hasXMLSource()
hasXMLSource
in class MobyContentPane
public String getXMLSource() throws IOException
getXMLSource
in class MobyContentPane
IOException
public URL getCurrentURL()
getCurrentURL
in class MobyContentPane
public void updateDisplay()
public MobyContentInstance getContents()
public MobyDataObjectSet getCollection()
public void clearData()
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |