|
swingx Version 2005-08-19 |
|||||||||
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.JList
org.jdesktop.swingx.JXList
public class JXList
JXList Enabled Rollover/LinkModel handling. Enabled Highlighter support. Added experimental support for filtering/sorting. This feature is disabled by default because it has side-effects which might break "normal" expectations when using a JList: if enabled all row coordinates (including those returned by the selection) are in view coordinates. Furthermore, the model returned from getModel() is a wrapper around the actual data.
Nested Class Summary | |
---|---|
protected static class |
JXList.ListAdapter
|
static class |
JXList.ListRolloverController<T extends JList>
listens to rollover properties. |
class |
JXList.ListSearchable
|
Nested classes/interfaces inherited from class javax.swing.JList |
---|
JList.AccessibleJList |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected ComponentAdapter |
dataAdapter
The ComponentAdapter for model data access. |
static String |
EXECUTE_BUTTON_ACTIONCOMMAND
|
protected FilterPipeline |
filters
The pipeline holding the filters. |
protected HighlighterPipeline |
highlighters
The pipeline holding the highlighters. |
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 | |
---|---|
JXList()
|
|
JXList(ListModel dataModel)
|
|
JXList(Object[] listData)
|
|
JXList(Vector listData)
|
Method Summary | |
---|---|
int |
convertIndexToModel(int viewIndex)
Convert row index from view coordinates to model coordinates accounting for the presence of sorters and filters. |
int |
convertIndexToView(int modelIndex)
Convert index from model coordinates to view coordinates accounting for the presence of sorters and filters. |
protected JXList.ListRolloverController |
createLinkController()
|
protected PipelineListener |
createPipelineListener()
creates the listener for changes in filters. |
protected RolloverProducer |
createRolloverProducer()
creates and returns the RolloverProducer to use with this tree. |
protected void |
doFind()
|
ListCellRenderer |
getCellRenderer()
|
protected ComponentAdapter |
getComponentAdapter()
|
Object |
getElementAt(int viewIndex)
returns the element at the given index. |
int |
getElementCount()
Returns the number of elements in this list in view coordinates. |
protected PipelineListener |
getFilterPipelineListener()
returns the listener for changes in filters. |
FilterPipeline |
getFilters()
|
HighlighterPipeline |
getHighlighters()
|
protected JXList.ListRolloverController |
getLinkController()
|
Searchable |
getSearchable()
|
protected SelectionMapper |
getSelectionMapper()
widened access for testing... |
ListModel |
getWrappedModel()
returns the underlying model. |
boolean |
isFilterEnabled()
|
boolean |
isRolloverEnabled()
returns the rolloverEnabled property. |
void |
setCellRenderer(ListCellRenderer renderer)
|
void |
setFilterEnabled(boolean enabled)
Enables/disables filtering support. |
void |
setFilters(FilterPipeline pipeline)
Sets the FilterPipeline for filtering table rows. |
void |
setHighlighters(HighlighterPipeline pipeline)
Assigns a HighlighterPipeline to the table. |
void |
setModel(ListModel model)
set's the underlying data model. |
void |
setRolloverEnabled(boolean rolloverEnabled)
Property to enable/disable rollover support. |
void |
setSearchable(Searchable searchable)
sets the Searchable for this editor. |
void |
setSelectionModel(ListSelectionModel newModel)
Overridden to update selectionMapper |
protected void |
updateOnFilterContentChanged()
method called on change notification from filterpipeline. |
void |
updateUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String EXECUTE_BUTTON_ACTIONCOMMAND
protected FilterPipeline filters
protected HighlighterPipeline highlighters
protected ComponentAdapter dataAdapter
Constructor Detail |
---|
public JXList()
public JXList(ListModel dataModel)
public JXList(Object[] listData)
public JXList(Vector listData)
Method Detail |
---|
protected void doFind()
public Searchable getSearchable()
public void setSearchable(Searchable searchable)
searchable
- public void setRolloverEnabled(boolean rolloverEnabled)
rolloverEnabled
- protected JXList.ListRolloverController getLinkController()
protected JXList.ListRolloverController createLinkController()
protected RolloverProducer createRolloverProducer()
RolloverProducer
to use with this treepublic boolean isRolloverEnabled()
public Object getElementAt(int viewIndex)
viewIndex
- the index in view coordinates
IndexOutOfBoundsException
- if viewIndex < 0 or viewIndex >=
getElementCount()public int getElementCount()
public int convertIndexToModel(int viewIndex)
viewIndex
- index in view coordinates
IndexOutOfBoundsException
- if viewIndex < 0 or viewIndex >= getElementCount()public int convertIndexToView(int modelIndex)
modelIndex
- index in model coordinates
public ListModel getWrappedModel()
public void setFilterEnabled(boolean enabled)
enabled
- public boolean isFilterEnabled()
public void setSelectionModel(ListSelectionModel newModel)
setSelectionModel
in class JList
public void setModel(ListModel model)
setModel
in class JList
protected SelectionMapper getSelectionMapper()
public FilterPipeline getFilters()
public void setFilters(FilterPipeline pipeline)
pipeline
- the filterPipeline to use.
IllegalStateException
- if !isFilterEnabled()protected PipelineListener getFilterPipelineListener()
protected PipelineListener createPipelineListener()
protected void updateOnFilterContentChanged()
protected ComponentAdapter getComponentAdapter()
public HighlighterPipeline getHighlighters()
public void setHighlighters(HighlighterPipeline pipeline)
public ListCellRenderer getCellRenderer()
getCellRenderer
in class JList
public void setCellRenderer(ListCellRenderer renderer)
setCellRenderer
in class JList
public void updateUI()
updateUI
in class JList
|
swingx Version 2005-08-19 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |