|
org.openide.explorer 6.16.3 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
org.openide.explorer.view.OutlineView
public class OutlineView
Explorer view displaying nodes in a tree table.
Related documentation:
Note: This API is still under development and may change even in incompatible way during its stabilization phase. The API will be finalized in NetBeans version 6.5.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JScrollPane |
---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JScrollPane |
---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
OutlineView()
Creates a new instance of TableView |
|
OutlineView(String nodesColumnLabel)
Creates a new instance of TableView |
Method Summary | |
---|---|
void |
addNotify()
Initializes the component and lookup explorer manager. |
void |
addTreeExpansionListener(TreeExpansionListener l)
|
void |
collapseNode(Node n)
Collapses the tree under given node. |
protected org.netbeans.swing.outline.OutlineModel |
createOutlineModel(NodeTreeModel treeModel,
org.netbeans.swing.outline.RowModel rowModel,
String label)
This method allows plugging own OutlineModel to the OutlineView. |
void |
expandNode(Node n)
Expandes the node in the tree. |
int |
getAllowedDragActions()
Actions constants comes from DnDConstants . |
int |
getAllowedDropActions()
Actions constants comes from DnDConstants . |
NodePopupFactory |
getNodePopupFactory()
Getter for the current popup customizer factory. |
org.netbeans.swing.outline.Outline |
getOutline()
Getter for the embeded table component. |
boolean |
isDragSource()
Drag support is enabled by default. |
boolean |
isDropTarget()
Drop support is enabled by default. |
boolean |
isExpanded(Node n)
Test whether a node is expanded in the tree or not |
boolean |
isPopupAllowed()
Is it permitted to display a popup menu? |
void |
readSettings(Properties p,
String propertyPrefix)
Method allowing to read stored values. |
void |
removeNotify()
Deinitializes listeners. |
void |
removeTreeExpansionListener(TreeExpansionListener l)
|
void |
requestFocus()
Requests focus for the tree component. |
boolean |
requestFocusInWindow()
Requests focus for the tree component. |
void |
setAllowedDragActions(int actions)
Sets allowed actions for dragging |
void |
setAllowedDropActions(int actions)
Sets allowed actions for dropping. |
void |
setDragSource(boolean state)
Enables/disables dragging support. |
void |
setDropTarget(boolean state)
Enables/disables dropping support. |
void |
setNodePopupFactory(NodePopupFactory newFactory)
Allows customization of the popup menus. |
void |
setPopupAllowed(boolean value)
Enable/disable displaying popup menus on tree view items. |
void |
setProperties(Node.Property[] newProperties)
|
void |
writeSettings(Properties p,
String propertyPrefix)
Method allowing to store customization values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutlineView()
public OutlineView(String nodesColumnLabel)
Method Detail |
---|
protected org.netbeans.swing.outline.OutlineModel createOutlineModel(NodeTreeModel treeModel, org.netbeans.swing.outline.RowModel rowModel, String label)
public void requestFocus()
requestFocus
in class JComponent
public boolean requestFocusInWindow()
requestFocusInWindow
in class JComponent
public org.netbeans.swing.outline.Outline getOutline()
public boolean isPopupAllowed()
true
if sopublic void setProperties(Node.Property[] newProperties)
public void setPopupAllowed(boolean value)
value
- true
to enablepublic void addNotify()
addNotify
in class JComponent
public void readSettings(Properties p, String propertyPrefix)
public void writeSettings(Properties p, String propertyPrefix)
public void setNodePopupFactory(NodePopupFactory newFactory)
public NodePopupFactory getNodePopupFactory()
public void removeNotify()
removeNotify
in class JComponent
public boolean isDragSource()
public void setDragSource(boolean state)
state
- true enables dragging support, false disables it.public boolean isDropTarget()
public void setDropTarget(boolean state)
state
- true means drops into view are allowed,
false forbids any drops into this view.public int getAllowedDragActions()
DnDConstants
.
All actions (copy, move, link) are allowed by default.
public void setAllowedDragActions(int actions)
actions
- new drag actions, using DnDConstants
public int getAllowedDropActions()
DnDConstants
.
All actions are allowed by default.
public void setAllowedDropActions(int actions)
actions
- new allowed drop actions, using DnDConstants
public void addTreeExpansionListener(TreeExpansionListener l)
public void removeTreeExpansionListener(TreeExpansionListener l)
public void collapseNode(Node n)
n
- node to collapsepublic void expandNode(Node n)
n
- nodepublic boolean isExpanded(Node n)
n
- the node to test
|
org.openide.explorer 6.16.3 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |