Package com.iizigo.vs
Class PatternHelper
- java.lang.Object
 - com.iizigo.vs.PatternHelper
 
public class PatternHelper extends java.lang.ObjectThe pattern combo helper.- Author:
 - Christopher Mindus
 
Constructor Summary
Constructors Constructor Description PatternHelper(IzCCombo combo)Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetResolvedPattern()Gets the resolved pattern to use.Value.TypegetValueType()Gets the current value type.voidpopulateCombo()Populates the combobox when it is focused.voidupdate(PatternProp pp, Value.Type valueType, boolean updateCombo)Sets the pattern that has been modified in the combo.
Constructor Detail
PatternHelper
public PatternHelper(IzCCombo combo)
Constructor.- Parameters:
 combo- The combo.
Method Detail
populateCombo
public void populateCombo()
Populates the combobox when it is focused. There is no way in SWT to do this when drop-down is about to be displayed!
update
public void update(PatternProp pp, Value.Type valueType, boolean updateCombo)
Sets the pattern that has been modified in the combo.- Parameters:
 valueType- The value type for the pattern.
getResolvedPattern
public java.lang.String getResolvedPattern()
Gets the resolved pattern to use.- Returns:
 - The pattern string, or null for none.
 
getValueType
public Value.Type getValueType()
Gets the current value type.