public abstract class BaseNode extends AbstractNode
Node.Cookie, Node.Handle, Node.IndexedProperty<T,E>, Node.Property<T>, Node.PropertySet
Modifier and Type | Field and Description |
---|---|
protected static String |
CATALOG |
protected static String |
CATALOGDESC |
protected static String |
COLUMNSIZE |
protected static String |
COLUMNSIZEDESC |
protected static String |
DATABASEURL |
protected static String |
DATABASEURLDESC |
protected static String |
DATATYPE |
protected static String |
DATATYPEDESC |
protected static String |
DIGITS |
protected static String |
DIGITSDESC |
protected static String |
DISPLAYNAME |
protected static String |
DISPLAYNAMEDESC |
protected static String |
DRIVER |
protected static String |
DRIVERDESC |
protected static String |
FKPOSITION |
protected static String |
FKPOSITIONDESC |
protected static String |
FKREFERREDCOLUMN |
protected static String |
FKREFERREDCOLUMNDESC |
protected static String |
FKREFERREDSCHEMA |
protected static String |
FKREFERREDSCHEMADESC |
protected static String |
FKREFERREDTABLE |
protected static String |
FKREFERREDTABLEDESC |
protected static String |
FKREFERRINGCOLUMN |
protected static String |
FKREFERRINGCOLUMNDESC |
protected static String |
FKREFERRINGSCHEMA |
protected static String |
FKREFERRINGSCHEMADESC |
protected static String |
FKREFERRINGTABLE |
protected static String |
FKREFERRINGTABLEDESC |
protected static String |
INDEXPART |
protected static String |
INDEXPARTDESC |
boolean |
isRemoved |
protected static String |
NULL |
protected static String |
NULLDESC |
protected static String |
PKPART |
protected static String |
PKPARTDESC |
protected static String |
POSITION |
protected static String |
POSITIONDESC |
protected static String |
PROP_DEFCATALOG |
protected static String |
PROP_DEFCATALOGDESC |
protected static String |
PROP_DEFSCHEMA |
protected static String |
PROP_DEFSCHEMADESC |
protected static String |
REMEMBERPW |
protected static String |
REMEMBERPWDESC |
protected static String |
SCHEMA |
protected static String |
SCHEMADESC |
protected static String |
TYPE |
protected static String |
TYPEDESC |
protected static String |
UNIQUE |
protected static String |
UNIQUEDESC |
protected static String |
USER |
protected static String |
USERDESC |
displayFormat, systemActions
EMPTY, PROP_COOKIE, PROP_DISPLAY_NAME, PROP_ICON, PROP_LEAF, PROP_NAME, PROP_OPENED_ICON, PROP_PARENT_NODE, PROP_PROPERTY_SETS, PROP_SHORT_DESCRIPTION
Constructor and Description |
---|
BaseNode(ChildNodeFactory childFactory,
org.netbeans.modules.db.explorer.node.NodeDataLookup dataLookup,
String layerEntry,
NodeProvider provider)
Constructor for nodes with children.
|
BaseNode(org.netbeans.modules.db.explorer.node.NodeDataLookup dataLookup,
String layerEntry,
NodeProvider provider)
Constructor for nodes without children.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProperty(Node.Property nps) |
protected void |
addProperty(String name,
String desc,
Class clazz,
boolean writeable,
Object value) |
boolean |
canCopy() |
boolean |
canCut() |
boolean |
canDestroy()
Determine if this node can be destroyed.
|
boolean |
canRename() |
protected void |
clearProperties() |
Transferable |
clipboardCopy() |
protected Sheet |
createSheet() |
void |
destroy()
Destroy the node.
|
Action[] |
getActions(boolean context)
Gets the actions associated with this node.
|
Collection<? extends Node> |
getChildNodes() |
Collection<? extends Node> |
getChildNodesSync()
Get the list of child nodes.
|
abstract String |
getIconBase()
Get the icon base for the current state of the node.
|
abstract String |
getName()
Get the name for the current state of the node.
|
org.netbeans.modules.db.explorer.node.NodeRegistry |
getNodeRegistry() |
Collection<Node.Property> |
getProperties() |
Node.PropertySet[] |
getPropertySets()
Get current property sets.
|
Object |
getPropertyValue(String key) |
protected abstract void |
initialize()
Initialize the node.
|
void |
refresh() |
protected void |
remove() |
protected void |
remove(boolean refreshProvider) |
void |
setPropertyValue(Node.Property nps,
Object val) |
protected void |
setup()
Set up the node
|
void |
update()
Updates the node.
|
protected void |
updateProperties()
Updates the basic node properties.
|
clipboardCut, cloneNode, createActions, createPasteTypes, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPreferredAction, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet
addNodeListener, addPropertyChangeListener, clone, equals, fireCookieChange, fireDisplayNameChange, fireIconChange, fireNameChange, fireNodeDestroyed, fireOpenedIconChange, firePropertyChange, firePropertySetsChange, fireShortDescriptionChange, getChildren, getContextActions, getContextMenu, getHtmlDisplayName, getLookup, getParentNode, hashCode, hasPropertyChangeListener, isLeaf, removeNodeListener, removePropertyChangeListener, setChildren, setDisplayName, setHidden, setShortDescription, toString
attributeNames, getDisplayName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue
protected static final String DATABASEURL
protected static final String DATABASEURLDESC
protected static final String DRIVER
protected static final String DRIVERDESC
protected static final String SCHEMA
protected static final String SCHEMADESC
protected static final String PROP_DEFSCHEMA
protected static final String PROP_DEFSCHEMADESC
protected static final String PROP_DEFCATALOG
protected static final String PROP_DEFCATALOGDESC
protected static final String USER
protected static final String USERDESC
protected static final String REMEMBERPW
protected static final String REMEMBERPWDESC
protected static final String CATALOG
protected static final String CATALOGDESC
protected static final String DISPLAYNAME
protected static final String DISPLAYNAMEDESC
protected static final String UNIQUE
protected static final String UNIQUEDESC
protected static final String NULL
protected static final String NULLDESC
protected static final String TYPE
protected static final String TYPEDESC
protected static final String DATATYPE
protected static final String DATATYPEDESC
protected static final String COLUMNSIZE
protected static final String COLUMNSIZEDESC
protected static final String DIGITS
protected static final String DIGITSDESC
protected static final String POSITION
protected static final String POSITIONDESC
protected static final String FKPOSITION
protected static final String FKPOSITIONDESC
protected static final String FKREFERRINGSCHEMA
protected static final String FKREFERRINGSCHEMADESC
protected static final String FKREFERRINGTABLE
protected static final String FKREFERRINGTABLEDESC
protected static final String FKREFERRINGCOLUMN
protected static final String FKREFERRINGCOLUMNDESC
protected static final String FKREFERREDSCHEMA
protected static final String FKREFERREDSCHEMADESC
protected static final String FKREFERREDTABLE
protected static final String FKREFERREDTABLEDESC
protected static final String FKREFERREDCOLUMN
protected static final String FKREFERREDCOLUMNDESC
protected static final String PKPART
protected static final String PKPARTDESC
protected static final String INDEXPART
protected static final String INDEXPARTDESC
public boolean isRemoved
public BaseNode(org.netbeans.modules.db.explorer.node.NodeDataLookup dataLookup, String layerEntry, NodeProvider provider)
dataLookup
- the data lookup for this nodepublic BaseNode(ChildNodeFactory childFactory, org.netbeans.modules.db.explorer.node.NodeDataLookup dataLookup, String layerEntry, NodeProvider provider)
childFactory
- the child factory used to create children of this nodedataLookup
- the data lookup for this nodeprotected abstract void initialize()
public org.netbeans.modules.db.explorer.node.NodeRegistry getNodeRegistry()
public void refresh()
public Node.PropertySet[] getPropertySets()
getPropertySets
in class AbstractNode
protected void setup()
dataLookup
- the data lookuplayerEntry
- the name of the layer entry folderfactory
- the associated child node factory, or null if this node
doesn't provide child nodes.protected void remove()
protected void remove(boolean refreshProvider)
public Collection<? extends Node> getChildNodesSync()
public Collection<? extends Node> getChildNodes()
public void update()
protected void updateProperties()
protected void clearProperties()
protected void addProperty(Node.Property nps)
protected void addProperty(String name, String desc, Class clazz, boolean writeable, Object value)
public void setPropertyValue(Node.Property nps, Object val)
public Collection<Node.Property> getProperties()
protected Sheet createSheet()
createSheet
in class AbstractNode
public Action[] getActions(boolean context)
getActions
in class Node
context
- true if this is for a context menu, false otherwisepublic abstract String getIconBase()
public abstract String getName()
getName
in class FeatureDescriptor
public boolean canDestroy()
canDestroy
in class AbstractNode
public boolean canRename()
canRename
in class AbstractNode
public boolean canCut()
canCut
in class AbstractNode
public boolean canCopy()
canCopy
in class AbstractNode
public Transferable clipboardCopy() throws IOException
clipboardCopy
in class AbstractNode
IOException