|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.predictive.PredictiveInputModel<T>
public class PredictiveInputModel<T extends Comparable<? super T>>
Model class for predictive string input.
| Nested Class Summary | |
|---|---|
static class |
PredictiveInputModel.FragmentLineNumStrategy<X extends Comparable<? super X>>
Matching based on string fragments, supporting line numbers. |
static class |
PredictiveInputModel.FragmentStrategy<X extends Comparable<? super X>>
Matching based on string fragments. |
static interface |
PredictiveInputModel.MatchingStrategy<X extends Comparable<? super X>>
Strategy used for matching and mask extension. |
static class |
PredictiveInputModel.PrefixLineNumStrategy<X extends Comparable<? super X>>
Matching based on string prefix, supporting line numbers separated by :. |
static class |
PredictiveInputModel.PrefixStrategy<X extends Comparable<? super X>>
Matching based on string prefix. |
static class |
PredictiveInputModel.RegExLineNumStrategy<X extends Comparable<? super X>>
Matching based on string regular expressions, supporting line numbers. |
static class |
PredictiveInputModel.RegExStrategy<X extends Comparable<? super X>>
Matching based on string regular expressions. |
| Constructor Summary | |
|---|---|
PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel.MatchingStrategy<T> strategy,
List<T> items)
Create a new predictive input model. |
|
PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel.MatchingStrategy<T> strategy,
T... items)
Create a new predictive input model. |
|
PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel<T> pim)
Create a new predictive input model. |
|
| Method Summary | |
|---|---|
void |
extendMask(String extension)
Extends the mask. |
void |
extendSharedMask()
Extends the mask by the shared string. |
T |
getCurrentItem()
Get currently selected item. |
List<T> |
getList()
Returns a copy of the list of items. |
String |
getMask()
Return the current mask. |
List<T> |
getMatchingItems()
Get matching items. |
String |
getSharedMaskExtension()
Returns the shared mask extension. |
void |
setCurrentItem(T item)
Set currently selected item. |
void |
setList(List<T> items)
Sets the list. |
void |
setList(PredictiveInputModel<T> pim)
Sets the list. |
void |
setList(T... items)
Sets the list |
void |
setMask(String mask)
Set the current mask. |
void |
setStrategy(PredictiveInputModel.MatchingStrategy<T> strategy)
Sets the strategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel<T> pim)
ignoreCase - true if case should be ignoredpim - other predictive input model
public PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel.MatchingStrategy<T> strategy,
List<T> items)
ignoreCase - true if case should be ignoredstrategy - matching strategy to useitems - list of items
public PredictiveInputModel(boolean ignoreCase,
PredictiveInputModel.MatchingStrategy<T> strategy,
T... items)
ignoreCase - true if case should be ignoredstrategy - matching strategy to useitems - varargs/array of items| Method Detail |
|---|
public void setStrategy(PredictiveInputModel.MatchingStrategy<T> strategy)
public List<T> getList()
public void setList(List<T> items)
items - list of itemspublic void setList(T... items)
items - varargs/array of itemspublic void setList(PredictiveInputModel<T> pim)
pim - other predictive input modelpublic String getMask()
public void setMask(String mask)
mask - new maskpublic T getCurrentItem()
public void setCurrentItem(T item)
item - currently selected itempublic List<T> getMatchingItems()
public String getSharedMaskExtension()
public void extendMask(String extension)
extension - string to append to maskpublic void extendSharedMask()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||