|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
ch.randelshofer.cubetwister.doc.EntityModel
ch.randelshofer.cubetwister.doc.InfoModel
public class InfoModel
Holds general information: a title, a description field, an author field and a date field.
Assumes that the root node of the tree is a DefaultMutableTreeNode and that its user object is a RootModel instance, which holds the tree! This is used to ensure proper listener notifications for object insertion and removal.
| Field Summary | |
|---|---|
protected DocumentProxy |
author
|
protected DocumentProxy |
date
|
protected DocumentProxy |
description
|
protected DocumentProxy |
name
|
static java.lang.String |
PROP_AUTHOR
|
static java.lang.String |
PROP_DATE
|
static java.lang.String |
PROP_DESCRIPTION
|
static java.lang.String |
PROP_NAME
|
| Fields inherited from class ch.randelshofer.cubetwister.doc.EntityModel |
|---|
PROP_CHILD_COUNT |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
InfoModel()
Creates a new InfoModel. |
|
| Method Summary | |
|---|---|
void |
basicSetAuthor(java.lang.String value)
|
void |
basicSetDate(java.lang.String value)
|
void |
basicSetDescription(java.lang.String value)
|
void |
basicSetName(java.lang.String value)
|
java.lang.Object |
clone()
Returns a shallow copy of this model. |
void |
dispose()
|
java.lang.String |
getAuthor()
Returns the author property. |
DocumentProxy |
getAuthorDocument()
|
java.lang.String |
getDate()
Returns the date property. |
DocumentProxy |
getDateDocument()
|
java.lang.String |
getDescription()
Returns the description property. |
DocumentProxy |
getDescriptionDocument()
|
java.lang.String |
getName()
|
javax.swing.text.Document |
getNameDocument()
|
java.lang.Object |
getUserObject()
|
void |
setAuthor(java.lang.String value)
Sets the author property. |
void |
setDate(java.lang.String value)
Sets the date property. |
void |
setDescription(java.lang.String value)
Sets the description property. |
void |
setName(java.lang.String value)
|
void |
setUserObject(java.lang.Object obj)
|
java.lang.String |
toString()
|
void |
undoableEditHappened(javax.swing.event.UndoableEditEvent e)
An undoable edit happened |
| Methods inherited from class ch.randelshofer.cubetwister.doc.EntityModel |
|---|
addPropertyChangeListener, children, fireNodeChanged, fireNodeStructureChanged, firePropertyChange, firePropertyChange, firePropertyChange, fireUndoableEditHappened, getDocument, hasPropertyListeners, insert, isDefaultCube, isDefaultNotation, isRemovable, remove, removePropertyChangeListener, setRemovable |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROP_NAME
public static final java.lang.String PROP_DESCRIPTION
public static final java.lang.String PROP_AUTHOR
public static final java.lang.String PROP_DATE
protected DocumentProxy name
protected DocumentProxy description
protected DocumentProxy author
protected DocumentProxy date
| Constructor Detail |
|---|
public InfoModel()
| Method Detail |
|---|
public java.lang.String getName()
public javax.swing.text.Document getNameDocument()
public void setName(java.lang.String value)
public void basicSetName(java.lang.String value)
public java.lang.String getDescription()
public DocumentProxy getDescriptionDocument()
public void setDescription(java.lang.String value)
public void basicSetDescription(java.lang.String value)
public java.lang.String getAuthor()
public DocumentProxy getAuthorDocument()
public void setAuthor(java.lang.String value)
public void basicSetAuthor(java.lang.String value)
public java.lang.String getDate()
public DocumentProxy getDateDocument()
public void setDate(java.lang.String value)
public void basicSetDate(java.lang.String value)
public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
undoableEditHappened in interface javax.swing.event.UndoableEditListenerundoableEditHappened in class EntityModelpublic java.lang.Object getUserObject()
getUserObject in class javax.swing.tree.DefaultMutableTreeNodepublic void setUserObject(java.lang.Object obj)
setUserObject in interface javax.swing.tree.MutableTreeNodesetUserObject in class javax.swing.tree.DefaultMutableTreeNodepublic java.lang.String toString()
toString in class EntityModelpublic java.lang.Object clone()
clone in class EntityModelpublic void dispose()
dispose in class EntityModel
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||