|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.hideshow.AbstractRowHideShowLayer
org.eclipse.nebula.widgets.nattable.hideshow.RowHideShowLayer
public class RowHideShowLayer
| Field Summary | |
|---|---|
static String |
PERSISTENCE_KEY_HIDDEN_ROW_INDEXES
|
| Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform |
|---|
underlyingLayer |
| Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
|---|
layerPainter |
| Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable |
|---|
DOT, VALUE_SEPARATOR |
| Constructor Summary | |
|---|---|
RowHideShowLayer(IUniqueIndexLayer underlyingLayer)
|
|
| Method Summary | |
|---|---|
Collection<Integer> |
getHiddenRowIndexes()
Will collect and return all indexes of the rows that are hidden in this layer. |
void |
handleLayerEvent(ILayerEvent event)
Handle layer event notification. |
void |
hideRowIndexes(Collection<Integer> rowIndexes)
Hide the rows with the given indexes. |
void |
hideRowPositions(Collection<Integer> rowPositions)
Hide the rows at the given positions. |
boolean |
isRowIndexHidden(int rowIndex)
Will check if the row at the specified index is hidden or not. |
void |
loadState(String prefix,
Properties properties)
Underlying layers must load state first. |
void |
saveState(String prefix,
Properties properties)
Saves the state to the given Properties using the specified prefix. |
void |
showAllRows()
Show all rows that where previously hidden. |
void |
showRowIndexes(Collection<Integer> rowIndexes)
Show the rows with the given indexes again. |
| Methods inherited from class org.eclipse.nebula.widgets.nattable.hideshow.AbstractRowHideShowLayer |
|---|
cacheVisibleRowIndexes, getColumnPositionByIndex, getHeight, getRowCount, getRowIndexByPosition, getRowPositionByIndex, getRowPositionByY, getRowPositionsByIndexes, getStartYOfRowPosition, invalidateCache, localToUnderlyingRowPosition, underlyingToLocalRowPosition, underlyingToLocalRowPositions |
| Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer |
|---|
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getRegionName, hasLayerListener, registerCommandHandler, registerCommandHandlers, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PERSISTENCE_KEY_HIDDEN_ROW_INDEXES
| Constructor Detail |
|---|
public RowHideShowLayer(IUniqueIndexLayer underlyingLayer)
| Method Detail |
|---|
public void handleLayerEvent(ILayerEvent event)
AbstractLayersuper.fireLayerEvent(event)
- unless you plan to eat the event yourself.
handleLayerEvent in interface ILayerListenerhandleLayerEvent in class AbstractRowHideShowLayerevent - the event
public void saveState(String prefix,
Properties properties)
IPersistable
saveState in interface IPersistablesaveState in class AbstractLayerTransformprefix - The prefix to use for the state keys. Is also used as the state
configuration name.properties - The Properties instance to save the state to.
public void loadState(String prefix,
Properties properties)
AbstractLayerTransformIStructuralChangeEvent from underlying
layers will reset caches after state has been loaded
loadState in interface IPersistableloadState in class AbstractLayerTransformprefix - The prefix to use for the state keys. Is also used as the state
configuration name.properties - The Properties instance to load the state from.public boolean isRowIndexHidden(int rowIndex)
AbstractRowHideShowLayer
isRowIndexHidden in class AbstractRowHideShowLayerrowIndex - The row index of the row whose visibility state
should be checked.
true if the row at the specified index is hidden,
false if it is visible.public Collection<Integer> getHiddenRowIndexes()
AbstractRowHideShowLayer
getHiddenRowIndexes in class AbstractRowHideShowLayerpublic void hideRowPositions(Collection<Integer> rowPositions)
IRowHideShowCommandLayer
hideRowPositions in interface IRowHideShowCommandLayerrowPositions - The positions of the rows to hide.public void hideRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayer
hideRowIndexes in interface IRowHideShowCommandLayerrowIndexes - The indexes of the rows to hide.public void showRowIndexes(Collection<Integer> rowIndexes)
IRowHideShowCommandLayer
showRowIndexes in interface IRowHideShowCommandLayerrowIndexes - The indexes of the rows that should be showed again.public void showAllRows()
IRowHideShowCommandLayer
showAllRows in interface IRowHideShowCommandLayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||