|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JList com.jidesoft.navigation.NavigationList
public class NavigationList
NavigationList
is a special list that is designed for the navigation purpose. It has the following
features.
NavigationList
after the original list content is painted. We don't to use the cell renderer to paint the effect as users might
create their own cell renderer. However in order to prevent the cell renderer from painting the default selection
effect, we set a custom cell renderer that extends DefaultListCellRenderer and pass in false for the cellHasFocus and
isSelected parameter in when calling getListCellRendererComponent method. If you have your own cell renderer, please
make sure you do the same thing.
Nested Class Summary | |
---|---|
class |
NavigationList.NavigationListHelper
The navigation list helper class. |
Nested classes/interfaces inherited from class javax.swing.JList |
---|
JList.AccessibleJList, JList.DropLocation |
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 | |
---|---|
static String |
PROPERTY_EXPANDED_TIP
|
static String |
PROPERTY_WIDE_SELECTION
|
Fields inherited from class javax.swing.JList |
---|
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
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 | |
---|---|
NavigationList()
|
|
NavigationList(ListModel dataModel)
|
|
NavigationList(Object[] listData)
|
|
NavigationList(Vector<?> listData)
|
Method Summary | |
---|---|
protected NavigationComponentHelper |
createNavigationHelper()
Creates the NavigationHelper which is a helper class that paints the rollover and the selection
effect. |
int |
getNavigationRolloverRow()
Gets the rollover row that currently has rollover effect. |
boolean |
isExpandedTip()
Checks if the ExpandedTip feature is enabled. |
boolean |
isWideSelection()
Checks if the selection and the rollover highlight covers the whole tree width. |
protected void |
paintComponent(Graphics g)
|
void |
setExpandedTip(boolean expandedTip)
Sets the ExpandedTip flag. |
void |
setNavigationRolloverRow(int navigationRolloverRow)
Sets the rollover row. |
void |
setWideSelection(boolean wideSelection)
Sets the flag if the selection and the rollover highlight covers the whole tree width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_WIDE_SELECTION
public static final String PROPERTY_EXPANDED_TIP
Constructor Detail |
---|
public NavigationList()
public NavigationList(Vector<?> listData)
public NavigationList(Object[] listData)
public NavigationList(ListModel dataModel)
Method Detail |
---|
protected NavigationComponentHelper createNavigationHelper()
NavigationHelper
which is a helper class that paints the rollover and the selection
effect.
By default, it creates a NavigationTreeHelper instance.
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public boolean isWideSelection()
public void setWideSelection(boolean wideSelection)
NavigationTree
.
wideSelection
- true to make the selection and the rollover highlight covers the whole tree width, false to
only cover the tree node width. It is true by default for NavigationTree
.public boolean isExpandedTip()
ExpandedTipUtils
public void setExpandedTip(boolean expandedTip)
expandedTip
- true to enable the ExpandedTip feature and false to disable it. It is true by default.public int getNavigationRolloverRow()
public void setNavigationRolloverRow(int navigationRolloverRow)
navigationRolloverRow
- the row to show the rollover effect.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |