| java.lang.Object org.netbeans.modules.java.ui.LazyListModel
Inner Class :public interface Filter | |
Field Summary | |
static Boolean | CREATE this variable is used from tests to prevent creation of elements in
certain cases. |
Method Summary | |
public void | addListDataListener(ListDataListener l) | public void | contentsChanged(ListDataEvent listDataEvent) | public static LazyListModel | create(ListModel listModel, Filter f, double expectedRadio, Object defValue) Factory method to create new filtering lazy model. | static LazyListModel | create(ListModel listModel, Filter f, double expectedRadio, Object defValue, boolean log) Model with enabled logging. | public static LazyListModel | create(org.openide.nodes.Children.Keys ch, ListModel model) | public Object | getElementAt(int index) If value is not know for given index and CREATE.get() is Boolean.FALSE it returns defaultValue. | final Filter | getFilter() | public int | getSize() | public void | intervalAdded(ListDataEvent listDataEvent) | public void | intervalRemoved(ListDataEvent listDataEvent) | final boolean | isComputed(int index) | public void | removeListDataListener(ListDataListener l) | public void | run() When executed, updateYourAssumeptions. | final void | updateYourAssumeptions() Can be called to ask the LazyListModel to update its assumptions,
especially assumptions about the size to match its current knowledge. |
CREATE | static Boolean CREATE(Code) | | this variable is used from tests to prevent creation of elements in
certain cases.
|
create | public static LazyListModel create(org.openide.nodes.Children.Keys ch, ListModel model)(Code) | | This method is currently called from org.openide.nodes.EntrySupport to create lazy filtering list
for nodes, excludes everything that is not node, as default value it return null
Parameters: model - model to filter |
getElementAt | public Object getElementAt(int index)(Code) | | If value is not know for given index and CREATE.get() is Boolean.FALSE it returns defaultValue.
|
getFilter | final Filter getFilter()(Code) | | |
getSize | public int getSize()(Code) | | |
isComputed | final boolean isComputed(int index)(Code) | | |
run | public void run()(Code) | | When executed, updateYourAssumeptions.
|
updateYourAssumeptions | final void updateYourAssumeptions()(Code) | | Can be called to ask the LazyListModel to update its assumptions,
especially assumptions about the size to match its current knowledge.
|
|
|