public class ConfigDocument extends Object implements DocumentListener
| Constructor and Description |
|---|
ConfigDocument(ConfigPanel configPanel,
String name)
Constructor - initializes xml pane for this document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changedUpdate(DocumentEvent e) |
void |
dispose() |
File |
getFile() |
String |
getName() |
String |
getUrl() |
void |
insertUpdate(DocumentEvent e) |
boolean |
isChanged() |
boolean |
offerToSaveIfChanged()
Warn user that document is changed but changes are not saved, and saving.
|
void |
removeUpdate(DocumentEvent e) |
void |
saveConfigToFile(boolean isSaveAs)
Saves this document to the file.
|
void |
setFile(File file) |
void |
setUrl(String url) |
public ConfigDocument(ConfigPanel configPanel, String name)
configPanel - public 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 saveConfigToFile(boolean isSaveAs)
isSaveAs - public boolean offerToSaveIfChanged()
public String getUrl()
public void setUrl(String url)
public File getFile()
public void setFile(File file)
public String getName()
public boolean isChanged()
public void dispose()
Copyright © 2022 WSO2. All rights reserved.