|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.gui.util.ElementDisplay
public class ElementDisplay
a utility class for viewing and editing arbitrary elements in the NOM. Note that nothing is written to the NOM until applyChanges is called from the calling program
| Constructor Summary | |
|---|---|
ElementDisplay(NOMElement element)
Simple constructor that constructs a display that has the default edit-ability (editable) for the given element |
|
ElementDisplay(NOMElement element,
boolean editable)
Simple constructor specifying element and editability of the window. |
|
| Method Summary | |
|---|---|
void |
applyChanges()
apply any changes to the NOM that have accumulated and save the changes to disk |
void |
changeElement(NOMElement element)
change element we're displaying |
int |
checkExit()
check for changes and if there are any pop up a question to user |
void |
clearChanges()
clear changes |
javax.swing.JComponent |
getPanel()
return the Panel containing the edit / display GUI |
void |
handleChange(NOMEdit edit)
Implementation of NOMView interface - just ignore edits for now |
boolean |
isChanged()
have we made changes to the element or any since this window has opened? |
void |
setEditable(boolean edit)
set the editability of this window |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementDisplay(NOMElement element)
public ElementDisplay(NOMElement element,
boolean editable)
| Method Detail |
|---|
public javax.swing.JComponent getPanel()
public void setEditable(boolean edit)
public boolean isChanged()
public void applyChanges()
public void clearChanges()
public void changeElement(NOMElement element)
public int checkExit()
public void handleChange(NOMEdit edit)
handleChange in interface NOMView
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||