|
org.openide.explorer 6.28.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:
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 |
addPropertyColumn(String name,
String displayName)
Adds a property column which will match any property with the passed name. |
void |
addPropertyColumn(String name,
String displayName,
String description)
Adds a property column which will match any property with the passed name. |
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 . |
protected int |
getAllowedDropActions(Transferable t)
Actions constants 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. |
boolean |
removePropertyColumn(String name)
Remove the first property column for properties named name |
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)
Deprecated. This method is here to enable easy replacement of TreeTableView with OutlineView. Use setPropertyColumns(), addPropertyColumn() and removePropertyColumn() instead. |
void |
setPropertyColumnDescription(String columnName,
String description)
Set the description (table header tooltip) for the property column representing properties that have the passed programmatic (not display) name. |
void |
setPropertyColumns(String... namesAndDisplayNames)
Set all of the non-tree columns property names and display names. |
void |
setTreeSortable(boolean treeSortable)
Set the tree column as sortable |
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 so@Deprecated public void setProperties(Node.Property[] newProperties)
The passed set of properties are typically
prototypes - for a given Node's
property to be shown in a given column, that Node must have a Property
which equals()
one of the prototype properties. By default,
this means that the return values of the prototype property's getName()
and getValueType() must exactly match.
It is also possible to use the actual Property objects from one Node being shown, if they are available.
newProperties
- An array of prototype propertiespublic final void addPropertyColumn(String name, String displayName)
name
- The programmatic name of the propertydisplayName
- A localized display name for the property which can
be shown in the table headerpublic final void addPropertyColumn(String name, String displayName, String description)
name
- The programmatic name of the propertydisplayName
- A localized display name for the property which can
be shown in the table headerdescription
- The description which will be used as a tooltip in
the table headerpublic final boolean removePropertyColumn(String name)
name
name
- The programmatic name of the Property, i.e. the
return value of Property.getName()
public final void setPropertyColumnDescription(String columnName, String description)
columnName
- The programmatic name (Property.getName()) of the
columndescription
- Tooltip text for the column header for that columnpublic final void setPropertyColumns(String... namesAndDisplayNames)
namesAndDisplayNames
- An array, divisible by 2, of
programmatic name, display name, programmatic name, display name...public void setPopupAllowed(boolean value)
value
- true
to enablepublic void setTreeSortable(boolean treeSortable)
treeSortable
- true
to make the tree column sortable,
false
otherwise. The tree column is sortable by default.public 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.
protected int getAllowedDropActions(Transferable t)
DnDConstants
.
t
- The transferable for which the allowed drop actions are requested
getAllowedDropActions()
.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.28.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |