public class CustomConditionFrame extends ConditionFrame<CustomCondition>
Modifier and Type | Class and Description |
---|---|
protected class |
CustomConditionFrame.ExtHintProvider
Extended hint provider is used for displaying other filter component names.
|
ScreenFragment.AfterInitEvent, ScreenFragment.InitEvent
Frame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.Wrapper
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
Modifier and Type | Field and Description |
---|---|
protected ConditionsTree |
conditionsTree |
protected Label |
entityLab |
protected TextField<java.lang.String> |
entityParamViewField |
protected SourceCodeEditor |
entityParamWhereField |
protected LookupField<java.lang.Object> |
entitySelect |
protected CheckBox |
inExprCb |
protected boolean |
initializing |
protected SourceCodeEditor |
joinField |
protected TextField<java.lang.String> |
nameField |
protected Label |
nameLab |
protected Label |
paramViewLab |
protected Label |
paramWhereLab |
protected LookupField<ParamType> |
typeSelect |
protected UserSessionSource |
userSessionSource |
protected CheckBox |
useUserTimeZone |
protected Label |
useUserTimeZoneLab |
protected static java.lang.String |
WHERE |
protected SourceCodeEditor |
whereField |
clientConfig, condition, defaultValueComponent, defaultValueLayout, filter, hidden, required, theme, width
frame, messages
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
CustomConditionFrame() |
Modifier and Type | Method and Description |
---|---|
boolean |
commit() |
protected void |
fillEntitySelect(Param param) |
protected void |
fillTypeSelect(Param param) |
protected java.lang.String |
getEnumClassName(java.lang.Class enumClass) |
void |
getJoinClauseHelp() |
protected java.lang.Class |
getParamJavaClass(ParamType type) |
void |
getParamWhereClauseHelp() |
void |
getWhereClauseHelp() |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
void |
initComponents() |
protected java.lang.String |
replaceParamWithQuestionMark(java.lang.String where) |
protected java.util.List<Suggestion> |
requestHint(SourceCodeEditor sender,
java.lang.String text,
int senderCursorPosition) |
protected java.util.List<Suggestion> |
requestHintParamWhere(SourceCodeEditor sender,
java.lang.String text,
int senderCursorPosition) |
void |
setCondition(CustomCondition condition) |
createDefaultValueComponent
add, add, addAction, addAction, addStyleName, dispose, expand, expand, formatMessage, getAction, getActions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContext, getDescription, getDsContext, getExpandDirection, getExpandRatio, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMessage, getMessagesPack, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, indexOf, init, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, remove, removeAction, removeAction, removeAll, removeAllActions, removeStyleName, resetExpanded, setAlignment, setCaption, setCompanion, setDescription, setDsContext, setEnabled, setExpandRatio, setFragment, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMessagesPack, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWrappedFrame, showValidationErrors, unwrap, unwrapComposition, validate, validate, validateAll
addAfterInitListener, addInitListener, fireEvent, getBeanLocator, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setBeanLocator, setExtensions, setHostController, setScreenData, setUiEventListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXmlDescriptor, setXmlDescriptor
getActionNN, getSubPart
getComponentNN
add, focusFirstComponent, getComponentNN, remove
getHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
protected static final java.lang.String WHERE
@Inject protected LookupField<ParamType> typeSelect
@Inject protected LookupField<java.lang.Object> entitySelect
@Inject protected CheckBox inExprCb
@Inject protected TextField<java.lang.String> nameField
@Inject protected TextField<java.lang.String> entityParamViewField
@Inject protected SourceCodeEditor joinField
@Inject protected SourceCodeEditor whereField
@Inject protected SourceCodeEditor entityParamWhereField
@Inject protected CheckBox useUserTimeZone
@Inject protected Label paramViewLab
@Inject protected Label paramWhereLab
@Inject protected Label entityLab
@Inject protected Label nameLab
@Inject protected Label useUserTimeZoneLab
@Inject protected UserSessionSource userSessionSource
protected boolean initializing
protected ConditionsTree conditionsTree
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrame
init
in class ConditionFrame<CustomCondition>
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenpublic void initComponents()
initComponents
in class ConditionFrame<CustomCondition>
public void setCondition(CustomCondition condition)
setCondition
in class ConditionFrame<CustomCondition>
protected void fillEntitySelect(Param param)
protected java.lang.String getEnumClassName(java.lang.Class enumClass)
protected void fillTypeSelect(Param param)
protected java.lang.String replaceParamWithQuestionMark(java.lang.String where)
public boolean commit()
commit
in class ConditionFrame<CustomCondition>
@Nullable protected java.lang.Class getParamJavaClass(ParamType type)
protected java.util.List<Suggestion> requestHint(SourceCodeEditor sender, java.lang.String text, int senderCursorPosition)
protected java.util.List<Suggestion> requestHintParamWhere(SourceCodeEditor sender, java.lang.String text, int senderCursorPosition)
public void getJoinClauseHelp()
public void getWhereClauseHelp()
public void getParamWhereClauseHelp()