public class XmlSourceEditorView<T extends ModelItem> extends AbstractXmlEditorView<XmlDocument>
Modifier and Type | Class and Description |
---|---|
static class |
XmlSourceEditorView.JEditorStatusBarTargetProxy |
class |
XmlSourceEditorView.ValidateMessageXmlAction |
Modifier and Type | Field and Description |
---|---|
boolean |
isLocating |
TITLE_PROPERTY
Constructor and Description |
---|
XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor,
T modelItem,
boolean readOnly) |
XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor,
T modelItem,
boolean readOnly,
String tabTitle) |
Modifier and Type | Method and Description |
---|---|
boolean |
activate(XmlLocation location) |
protected void |
buildPopup(JPopupMenu inputPopup,
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea editArea) |
protected void |
buildUI() |
void |
documentUpdated()
Called when document content is updated.
|
JComponent |
getComponent() |
int |
getCurrentColumn() |
int |
getCurrentLine() |
XmlLocation |
getEditorLocation() |
JPopupMenu |
getEditorPopup() |
JScrollPane |
getEditorScrollPane() |
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea |
getInputArea() |
T |
getModelItem() |
String |
getText() |
XmlSourceEditorView.ValidateMessageXmlAction |
getValidateXmlAction() |
boolean |
hasFocus() |
boolean |
isInspectable() |
void |
locationChanged(EditorLocation<XmlDocument> location) |
void |
release() |
boolean |
saveDocument(boolean validate) |
void |
setEditable(boolean enabled) |
void |
setLocation(EditorLocation<XmlDocument> location) |
boolean |
validate() |
protected ValidationError[] |
validateXml(String xml) |
activate, addLocationListener, addPropertyChangeListener, addPropertyChangeListener, deactivate, fireLocationChanged, getDocument, getEditor, getPropertyChangeSupport, getTitle, getViewId, getXml, isActive, propertyChange, removeLocationListener, removePropertyChangeListener, removePropertyChangeListener, requestFocus, setDocument, setTitle, syncUpdates, update
public XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor, T modelItem, boolean readOnly)
public XmlSourceEditorView(XmlEditor<XmlDocument> xmlEditor, T modelItem, boolean readOnly, String tabTitle)
protected void buildUI()
public JScrollPane getEditorScrollPane()
public T getModelItem()
protected void buildPopup(JPopupMenu inputPopup, org.fife.ui.rsyntaxtextarea.RSyntaxTextArea editArea)
public void release()
release
in interface EditorView<XmlDocument>
release
in class AbstractXmlEditorView<XmlDocument>
public org.fife.ui.rsyntaxtextarea.RSyntaxTextArea getInputArea()
public void setEditable(boolean enabled)
protected ValidationError[] validateXml(String xml)
public boolean activate(XmlLocation location)
public JComponent getComponent()
public XmlLocation getEditorLocation()
getEditorLocation
in interface EditorView<XmlDocument>
getEditorLocation
in class AbstractXmlEditorView<XmlDocument>
public void setLocation(EditorLocation<XmlDocument> location)
setLocation
in interface EditorView<XmlDocument>
setLocation
in class AbstractXmlEditorView<XmlDocument>
public int getCurrentLine()
public int getCurrentColumn()
public String getText()
public boolean validate()
public void documentUpdated()
AbstractXmlEditorView
documentUpdated
in class AbstractXmlEditorView<XmlDocument>
public boolean saveDocument(boolean validate)
public void locationChanged(EditorLocation<XmlDocument> location)
locationChanged
in interface EditorLocationListener<XmlDocument>
locationChanged
in class AbstractXmlEditorView<XmlDocument>
public JPopupMenu getEditorPopup()
public boolean hasFocus()
public boolean isInspectable()
public XmlSourceEditorView.ValidateMessageXmlAction getValidateXmlAction()
Copyright © 2019. All Rights Reserved.