| java.lang.Object edu.rice.cs.drjava.ui.predictive.PredictiveInputModel
PredictiveInputModel | public class PredictiveInputModel (Code) | | Model class for predictive string input.
|
Inner Class :public static interface MatchingStrategy | |
Inner Class :public static class PrefixStrategy implements MatchingStrategy<X> | |
Inner Class :public static class FragmentStrategy implements MatchingStrategy<X> | |
Inner Class :public static class RegExStrategy implements MatchingStrategy<X> | |
Inner Class :public static class PrefixLineNumStrategy implements MatchingStrategy<X> | |
Inner Class :public static class FragmentLineNumStrategy implements MatchingStrategy<X> | |
Inner Class :public static class RegExLineNumStrategy implements MatchingStrategy<X> | |
PredictiveInputModel | public PredictiveInputModel(boolean ignoreCase, PredictiveInputModel<T> pim)(Code) | | Create a new predictive input model.
Parameters: ignoreCase - true if case should be ignored Parameters: pim - other predictive input model |
PredictiveInputModel | public PredictiveInputModel(boolean ignoreCase, MatchingStrategy<T> strategy, List<T> items)(Code) | | Create a new predictive input model.
Parameters: ignoreCase - true if case should be ignored Parameters: strategy - matching strategy to use Parameters: items - list of items |
PredictiveInputModel | public PredictiveInputModel(boolean ignoreCase, MatchingStrategy<T> strategy, T... items)(Code) | | Create a new predictive input model.
Parameters: ignoreCase - true if case should be ignored Parameters: strategy - matching strategy to use Parameters: items - varargs/array of items |
extendMask | public void extendMask(String extension)(Code) | | Extends the mask. This operation can only narrow the list of matching strings and is thus faster than
setting the mask.
Parameters: extension - string to append to mask |
extendSharedMask | public void extendSharedMask()(Code) | | Extends the mask by the shared string.
|
getCurrentItem | public T getCurrentItem()(Code) | | Get currently selected item.
currently selected item |
getMask | public String getMask()(Code) | | Return the current mask.
current mask |
getMatchingItems | public List<T> getMatchingItems()(Code) | | Get matching items.
list of matching items |
getSharedMaskExtension | public String getSharedMaskExtension()(Code) | | Returns the shared mask extension.
The shared mask extension is the string that can be added to the mask such that the list of
matching strings does not change.
shared mask extension |
setCurrentItem | public void setCurrentItem(T item)(Code) | | Set currently selected item. Will select the item, or if the item does not match the mask, an item as closely
preceding as possible.
Parameters: item - currently selected item |
setList | public void setList(List<T> items)(Code) | | Sets the list.
Parameters: items - list of items |
setList | public void setList(T... items)(Code) | | Sets the list
Parameters: items - varargs/array of items |
setMask | public void setMask(String mask)(Code) | | Set the current mask.
Parameters: mask - new mask |
setStrategy | public void setStrategy(MatchingStrategy<T> strategy)(Code) | | Sets the strategy
|
|
|