|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.filter.CustomFilterEditor
public class CustomFilterEditor
CustomFilterEditor
is a panel for an end user to create a Filter using a user interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JComponent |
_conditionComboBox
|
protected JLabel |
_conditionLabel
|
protected JLabel |
_matchLabel
|
protected boolean |
_singleLineMode
|
protected ValueEditor |
_valueEditor1
|
protected ValueEditor |
_valueEditor2
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CustomFilterEditor(FilterFactoryManager filterManager)
|
|
CustomFilterEditor(FilterFactoryManager filterManager,
Class type,
ConverterContext converterContext,
Object[] possibleValues)
|
Method Summary | |
---|---|
protected JComponent |
createConditionComboBox()
Creates the condition combobox. |
protected ValueEditor |
createValueEditor(Class type,
ConverterContext converterContext,
Object[] possibleValues)
Creates the ValueEditor. |
Filter |
getFilter()
Gets the filter. |
Filter[] |
getFilters()
Gets the filters from the FilterEditor. |
ObjectGrouper |
getObjectGrouper()
Gets the current ObjectGrouper instance. |
Object[] |
getPossibleValues()
Gets the possible values. |
protected String |
getResourceString(String key)
|
Class |
getType()
Gets the data type of this filter editor. |
protected Object |
getValidValueForClass(Class expectedClass,
Object value)
Get valid filter value by the input value and the expected class. |
protected void |
initComponents()
|
boolean |
isSingleLineMode()
|
boolean |
isVerticalLayout()
Gets the flag indicating if the ValueEditor should be put vertically under the condition combo box. |
void |
setFilter(Filter filter)
Sets the filter. |
void |
setFilters(Filter[] filters)
Sets the filters to the FilterEditor, which will update the JComponent accordingly. |
void |
setLocale(Locale l)
|
void |
setObjectGrouper(ObjectGrouper objectGrouper)
Sets the current ObjectGrouper instance. |
void |
setSingleLineMode(boolean singleLineMode)
|
void |
setVerticalLayout(boolean verticalLayout)
Sets the flag indicating if the ValueEditor should be put vertically under the condition combo box. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected JComponent _conditionComboBox
protected ValueEditor _valueEditor1
protected ValueEditor _valueEditor2
protected JLabel _conditionLabel
protected JLabel _matchLabel
protected boolean _singleLineMode
Constructor Detail |
---|
public CustomFilterEditor(FilterFactoryManager filterManager)
public CustomFilterEditor(FilterFactoryManager filterManager, Class type, ConverterContext converterContext, Object[] possibleValues)
Method Detail |
---|
protected void initComponents()
public void setLocale(Locale l)
setLocale
in class Component
protected ValueEditor createValueEditor(Class type, ConverterContext converterContext, Object[] possibleValues)
type
- the type.converterContext
- the ConverterContext.possibleValues
- the possible values.
public Object[] getPossibleValues()
public Class getType()
protected JComponent createConditionComboBox()
protected Object getValidValueForClass(Class expectedClass, Object value)
expectedClass
- the target value classvalue
- the input value
public Filter[] getFilters()
FilterEditor
getFilters
in interface FilterEditor
public void setFilters(Filter[] filters)
FilterEditor
setFilters
in interface FilterEditor
filters
- the filterspublic Filter getFilter()
public void setFilter(Filter filter)
filter
- the filter.protected String getResourceString(String key)
public boolean isSingleLineMode()
public void setSingleLineMode(boolean singleLineMode)
public void setVerticalLayout(boolean verticalLayout)
verticalLayout
- the flagpublic boolean isVerticalLayout()
public ObjectGrouper getObjectGrouper()
public void setObjectGrouper(ObjectGrouper objectGrouper)
setObjectGrouper
in interface FilterEditor
objectGrouper
- the grouper
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |