|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.objecteditor.ContentViewer
org.fcrepo.client.objecteditor.ContentEditor
org.fcrepo.client.objecteditor.RDFTupleEditor
public class RDFTupleEditor
An RDF editor/viewer.
| Field Summary | |
|---|---|
protected String |
dsid
|
protected JButton |
m_add
|
protected JPanel |
m_component
|
protected ActionListener |
m_dataChangeListener
|
protected org.fcrepo.client.objecteditor.RDFTupleEditor.RDFDataModel |
m_dataModel
|
protected JButton |
m_delete
|
protected boolean |
m_dirty
|
protected JButton |
m_edit
|
protected JTable |
m_editor
|
protected org.trippi.io.TripleIteratorFactory |
m_factory
|
protected boolean |
m_isEditable
|
protected HashMap<String,String> |
m_map
|
protected org.fcrepo.client.objecteditor.RDFTupleEditor.RDFDataModel |
m_origContent
|
protected JScrollPane |
m_scrollPane
|
protected String |
pid
|
static String[] |
s_types
This class handles the RDF MIME type. |
| Constructor Summary | |
|---|---|
RDFTupleEditor()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
changedUpdate(DocumentEvent e)
|
void |
changesSaved()
Called when the caller wants what is in the view to be considered "not dirty" because it's been saved that way. |
JComponent |
getComponent()
Get the JComponent. |
InputStream |
getContent()
Gets the content in its edited state. |
String[] |
getTypes()
Returns a list of content types that this component can handle. |
void |
init(String type,
InputStream data,
boolean viewOnly)
Initializes the handler. |
void |
insertUpdate(DocumentEvent e)
|
boolean |
isDirty()
Returns true if the content should be considered "dirty" (e.g. |
void |
propertyChange(PropertyChangeEvent arg0)
|
void |
removeUpdate(DocumentEvent e)
|
void |
setContent(InputStream data)
Re-initializes the handler given new input data. |
void |
setContentChangeListener(ActionListener listener)
Sets the listener that this ContentEditor will notify via listener.actionPerformed(...) when any content-changing events occur that could potentially affect its "dirty state" (whether going from not dirty to dirty, or dirty to not dirty). |
void |
setPIDAndDSID(String pid,
String dsid)
|
void |
undoChanges()
Called when the caller wants to update the view back to the data was originally passed in. |
void |
windowActivated(WindowEvent e)
|
void |
windowClosed(WindowEvent e)
|
void |
windowClosing(WindowEvent e)
|
void |
windowDeactivated(WindowEvent e)
|
void |
windowDeiconified(WindowEvent e)
|
void |
windowIconified(WindowEvent e)
|
void |
windowOpened(WindowEvent e)
|
| Methods inherited from class org.fcrepo.client.objecteditor.ContentEditor |
|---|
isEditor |
| Methods inherited from class org.fcrepo.client.objecteditor.ContentViewer |
|---|
newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String[] s_types
protected boolean m_dirty
protected ActionListener m_dataChangeListener
protected JTable m_editor
protected JScrollPane m_scrollPane
protected JPanel m_component
protected org.fcrepo.client.objecteditor.RDFTupleEditor.RDFDataModel m_origContent
protected org.fcrepo.client.objecteditor.RDFTupleEditor.RDFDataModel m_dataModel
protected boolean m_isEditable
protected JButton m_add
protected JButton m_edit
protected JButton m_delete
protected String pid
protected String dsid
protected HashMap<String,String> m_map
protected org.trippi.io.TripleIteratorFactory m_factory
| Constructor Detail |
|---|
public RDFTupleEditor()
| Method Detail |
|---|
public String[] getTypes()
ContentViewer
getTypes in class ContentViewer
public void setPIDAndDSID(String pid,
String dsid)
setPIDAndDSID in class ContentEditor
public void init(String type,
InputStream data,
boolean viewOnly)
throws IOException
ContentViewer
init in class ContentViewerIOException
public void setContent(InputStream data)
throws IOException
ContentViewer
setContent in class ContentViewerIOExceptionpublic JComponent getComponent()
ContentViewer
getComponent in class ContentViewerpublic void changesSaved()
ContentEditor
changesSaved in class ContentEditorpublic void undoChanges()
ContentEditor
undoChanges in class ContentEditorpublic boolean isDirty()
ContentEditor
isDirty in class ContentEditorpublic void setContentChangeListener(ActionListener listener)
ContentEditor
setContentChangeListener in class ContentEditor
public InputStream getContent()
throws IOException
ContentEditor
getContent in class ContentEditorIOExceptionpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerpublic void propertyChange(PropertyChangeEvent arg0)
propertyChange in interface PropertyChangeListenerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||