|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextArea
verinec.validation.gui.ValidatorEditorPanel
public class ValidatorEditorPanel
The validator editor. Files of type TYPE_LOGFILE are not editable, TYPE_SCHEMA are. When a log file is openend, a schema linking pane (@see verinec.validation.gui.SchemaLinkingPane) is added to the tab.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextArea |
|---|
JTextArea.AccessibleJTextArea |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private File |
file
|
private ValidationGui |
gui
|
private Logger |
jlogger
|
private VerinecStudio |
studio
|
private int |
type
|
static int |
TYPE_LOGFILE
Logfile doucment type |
static int |
TYPE_SCHEMA
Schema document type |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ValidatorEditorPanel(ValidationGui gui,
VerinecStudio studio,
File file,
int type)
Creates a new Editor Panel |
|
| Method Summary | |
|---|---|
Element |
getElement()
parses the file edited with this panel and returns the root element |
File |
getFile()
gets the file edited in this editor |
boolean |
hasChanged()
returns if the content has been changed |
void |
loadFile()
loads a file and sets this editor panels text to the files content |
void |
save()
saves the document to the related file |
void |
save(Element element)
saves an element in the file edited by this editor |
void |
saveAs(File file,
int type)
saves the content of the editor in a given file |
void |
setupGUI(VerinecStudio studio)
Set's up the gui. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Logger jlogger
private File file
private int type
private VerinecStudio studio
private ValidationGui gui
public static int TYPE_SCHEMA
public static int TYPE_LOGFILE
| Constructor Detail |
|---|
public ValidatorEditorPanel(ValidationGui gui,
VerinecStudio studio,
File file,
int type)
throws VerinecException
gui - the validator guistudio - the verinec studiofile - the file to be opened, can be null for a new, empty editortype - document type (@see TYPE_SCHEMA) and (@see TYPE_LOGFILE)
VerinecException - if the file could not be loaded (if file is not null)| Method Detail |
|---|
public void setupGUI(VerinecStudio studio)
throws VerinecException
studio - the verinec studio
VerinecException - if the doucment can't be parsed
public Element getElement()
throws VerinecException
VerinecException - if the file can't be parsedpublic boolean hasChanged()
public void save()
public void loadFile()
throws VerinecException
VerinecException - if the file could not be loaded
public void saveAs(File file,
int type)
file - the file to save this documenttype - the file's type
public void save(Element element)
throws FileNotFoundException,
IOException
element - element to be saved
FileNotFoundException - if the file can't be found
IOException - if the output can't be preformedpublic File getFile()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||