public class EncryptedMindMapNode extends MindMapNodeModel
backgroundColor, children, cloud, color, folded, font, HGAP, icons, LEFT_POSITION, logger, RIGHT_POSITION, stateIcons, style, underlined, UNKNOWN_POSITION, userObject, VGAP
NODE_STYLES, STYLE_AS_PARENT, STYLE_BUBBLE, STYLE_COMBINED, STYLE_FORK
Constructor and Description |
---|
EncryptedMindMapNode(java.lang.Object userObject,
FreeMindMain frame,
MindMap map) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(java.lang.StringBuffer givenPassword) |
java.util.ListIterator |
childrenFolded() |
java.util.ListIterator |
childrenUnfolded() |
boolean |
decrypt(java.lang.StringBuffer givenPassword) |
void |
encrypt() |
java.lang.String |
getAdditionalInfo()
Is only used to store encrypted content of an encrypted mind map node.
|
int |
getChildCount() |
boolean |
hasChildren() |
void |
insert(javax.swing.tree.MutableTreeNode pChild,
int pIndex) |
boolean |
isAccessible() |
boolean |
isFolded() |
boolean |
isStoringEncryptedContent() |
boolean |
isWriteable()
Some nodes can't get new children or have other changes (encrypted nodes for example).
|
XMLElement |
save(java.io.Writer writer,
MindMapLinkRegistry registry,
boolean saveHidden,
boolean saveChildren) |
void |
setAdditionalInfo(java.lang.String info)
This method can be used to store non-visual additions to a node.
|
void |
setFolded(boolean folded) |
void |
setMap(MindMap map) |
void |
setPassword(java.lang.StringBuffer password) |
void |
setShuttingDown(boolean isShuttingDown)
isShuttingDown is used to fold an encrypted node properly.
|
void |
setStoringEncryptedContent(boolean pIsStoringEncryptedContent) |
void |
updateIcon() |
collectColors, getPlainTextContent, saveRTF, saveTXT
acceptViewVisitor, addHook, addIcon, addTreeModelListener, addViewer, calcShiftY, children, createAttributeTableModel, establishOwnFont, getActivatedHooks, getAllowsChildren, getAttribute, getAttribute, getAttributeKeyList, getAttributePosition, getAttributes, getAttributeTableLength, getBackgroundColor, getChildAt, getChildPosition, getChildren, getCloud, getColor, getEdge, getFilterInfo, getFont, getFontFamilyName, getFontSize, getFrame, getHGap, getHistoryInformation, getHooks, getIcons, getIndex, getLink, getListeners, getMap, getModeController, getNodeLevel, getNoteText, getObjectId, getParent, getParentNode, getPath, getShiftY, getShortText, getStateIcons, getStyle, getText, getToolTip, getVGap, getViewers, getXmlNoteText, getXmlText, hasFoldedStrictDescendant, hasOneVisibleChild, hasStyle, invokeHook, isBold, isDescendantOf, isItalic, isLeaf, isLeft, isNewChildLeft, isRoot, isUnderlined, isVisible, remove, remove, removeFromParent, removeHook, removeIcon, removeTreeModelListener, removeViewer, setAttribute, setBackgroundColor, setBold, setCloud, setColor, setEdge, setFont, setFontSize, setHGap, setHistoryInformation, setItalic, setLeft, setLink, setNoteText, setParent, setParent, setShiftY, setStateIcon, setStyle, setText, setToolTip, setUnderlined, setUserObject, setVGap, setXmlNoteText, setXmlText, shallowCopy, toggleBold, toggleItalic, toString
public EncryptedMindMapNode(java.lang.Object userObject, FreeMindMain frame, MindMap map)
public void setMap(MindMap map)
setMap
in class NodeAdapter
public boolean decrypt(java.lang.StringBuffer givenPassword)
public boolean checkPassword(java.lang.StringBuffer givenPassword)
public void encrypt()
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class NodeAdapter
public java.util.ListIterator childrenFolded()
childrenFolded
in interface MindMapNode
childrenFolded
in class NodeAdapter
public java.util.ListIterator childrenUnfolded()
childrenUnfolded
in interface MindMapNode
childrenUnfolded
in class NodeAdapter
public boolean hasChildren()
hasChildren
in interface MindMapNode
hasChildren
in class NodeAdapter
public void updateIcon()
public void setPassword(java.lang.StringBuffer password)
public boolean isFolded()
isFolded
in interface MindMapNode
isFolded
in class NodeAdapter
public void setFolded(boolean folded)
setFolded
in interface MindMapNode
setFolded
in class NodeAdapter
public void setAdditionalInfo(java.lang.String info)
MindMapNode
setAdditionalInfo
in interface MindMapNode
setAdditionalInfo
in class NodeAdapter
public java.lang.String getAdditionalInfo()
MindMapNode
getAdditionalInfo
in interface MindMapNode
getAdditionalInfo
in class NodeAdapter
MindMapNode.setAdditionalInfo(String)
public XMLElement save(java.io.Writer writer, MindMapLinkRegistry registry, boolean saveHidden, boolean saveChildren) throws java.io.IOException
save
in interface MindMapNode
save
in class NodeAdapter
saveHidden
- TODO: Seems not to be used. Remove or fill with live.saveChildren
- if true, the save recurses to all of the nodes children.java.io.IOException
public void setShuttingDown(boolean isShuttingDown)
isShuttingDown
- The isShuttingDown to set.public boolean isAccessible()
public void insert(javax.swing.tree.MutableTreeNode pChild, int pIndex)
insert
in interface javax.swing.tree.MutableTreeNode
insert
in class NodeAdapter
public boolean isWriteable()
MindMapNode
isWriteable
in interface MindMapNode
isWriteable
in class MindMapNodeModel
public boolean isStoringEncryptedContent()
public void setStoringEncryptedContent(boolean pIsStoringEncryptedContent)