|
org.netbeans.modules.db/1 1.44.1 30 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.FeatureDescriptor
org.openide.nodes.Node
org.openide.nodes.AbstractNode
org.netbeans.api.db.explorer.node.BaseNode
public abstract class BaseNode
This is the base class for all database explorer nodes. It takes care of setting up its Lookup and registering the child factory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openide.nodes.Node |
---|
Node.Cookie, Node.Handle, Node.IndexedProperty<T,E>, Node.Property<T>, Node.PropertySet |
Field Summary | |
---|---|
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
|
boolean |
isRemoved
|
protected static String |
NULL
|
protected static String |
NULLDESC
|
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
|
Fields inherited from class org.openide.nodes.AbstractNode |
---|
displayFormat, systemActions |
Fields inherited from class org.openide.nodes.Node |
---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
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()
|
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. |
Methods inherited from class org.openide.nodes.AbstractNode |
---|
clipboardCopy, clipboardCut, cloneNode, createActions, createPasteTypes, drag, getActions, getCookie, getCookieSet, getCustomizer, getDefaultAction, getDropType, getHandle, getHelpCtx, getIcon, getNewTypes, getOpenedIcon, getPasteTypes, getPreferredAction, getPropertySets, getSheet, hasCustomizer, setCookieSet, setDefaultAction, setIconBase, setIconBaseWithExtension, setName, setSheet |
Methods inherited from class java.beans.FeatureDescriptor |
---|
attributeNames, getDisplayName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setPreferred, setValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
public boolean isRemoved
Constructor Detail |
---|
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 nodeMethod Detail |
---|
protected abstract void initialize()
public org.netbeans.modules.db.explorer.node.NodeRegistry getNodeRegistry()
public void refresh()
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 Object getPropertyValue(String key)
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 otherwise
public abstract String getIconBase()
public abstract String getName()
getName
in class FeatureDescriptor
public void destroy()
destroy
in class Node
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
|
org.netbeans.modules.db/1 1.44.1 30 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |