|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JScrollPane | +--org.openide.explorer.view.ListView | +--org.openide.explorer.view.ListTableView
Explorer view. Allows to view list of nodes on the left and its properties in table on the right.
Inner classes inherited from class javax.swing.JScrollPane |
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Fields inherited from class org.openide.explorer.view.ListView |
list, model |
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 | |
ListTableView()
Create ListTableView with default NodeTableModel |
|
ListTableView(NodeTableModel ntm)
Creates ListTableView with provided NodeTableModel. |
Method Summary | |
void |
addNotify()
|
int |
getListPreferredWidth()
Get preferred size of list view |
Dimension |
getPreferredSize()
|
int |
getTableAutoResizeMode()
Gets resize mode of table. |
int |
getTableColumnPreferredWidth(int index)
Gets preferred width of table column |
void |
removeNotify()
Removes listeners. |
void |
setListPreferredWidth(int width)
Set preferred width of list view |
void |
setPreferredSize(Dimension dim)
|
void |
setProperties(Node.Property[] props)
Set columns. |
void |
setTableAutoResizeMode(int mode)
Sets resize mode of table. |
void |
setTableColumnPreferredWidth(int index,
int width)
Sets preferred width of table column |
Methods inherited from class org.openide.explorer.view.ListView |
createList, createModel, getAllowedDragActions, getAllowedDropActions, getDefaultProcessor, getSelectionMode, isDragSource, isDropTarget, isPopupAllowed, isTraversalAllowed, readExternal, requestFocus, selectionAccept, selectionChanged, setAllowedDragActions, setAllowedDropActions, setDefaultProcessor, setDragSource, setDropTarget, setPopupAllowed, setSelectionMode, setTraversalAllowed, showSelection, writeExternal |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ListTableView()
public ListTableView(NodeTableModel ntm)
ntm
- node table modelMethod Detail |
public void setProperties(Node.Property[] props)
props
- each column is constructed from Node.Propertypublic final void setTableAutoResizeMode(int mode)
mode
- - One of 5 legal values: JTable.AUTO_RESIZE_OFF, JTable.AUTO_RESIZE_NEXT_COLUMN, JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS, JTable.AUTO_RESIZE_LAST_COLUMN, JTable.AUTO_RESIZE_ALL_COLUMNS
public final int getTableAutoResizeMode()
JTable.AUTO_RESIZE_OFF, JTable.AUTO_RESIZE_NEXT_COLUMN, JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS, JTable.AUTO_RESIZE_LAST_COLUMN, JTable.AUTO_RESIZE_ALL_COLUMNS
public final void setTableColumnPreferredWidth(int index, int width)
index
- column indexwidth
- preferred column widthpublic final int getTableColumnPreferredWidth(int index)
index
- column indexpublic void setListPreferredWidth(int width)
width
- preferred widthpublic final int getListPreferredWidth()
public void setPreferredSize(Dimension dim)
setPreferredSize
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public void addNotify()
addNotify
in class ListView
public void removeNotify()
ListView
removeNotify
in class ListView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |