public class DesktopLookupPickerField extends DesktopLookupField implements LookupPickerField
DesktopAbstractOptionsField.CaptionFormatter<T>, DesktopAbstractOptionsField.EntityWrapper, DesktopAbstractOptionsField.MapKeyWrapper, DesktopAbstractOptionsField.ObjectWrapper, DesktopAbstractOptionsField.ValueWrapper<T>
LookupField.FilterMode, LookupField.NewOptionHandler, LookupField.OptionIconProvider<T>
Field.Validator
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
PickerField.ActionType, PickerField.AfterLookupCloseHandler, PickerField.AfterLookupSelectionHandler, PickerField.ClearAction, PickerField.FieldListener, PickerField.LookupAction, PickerField.OpenAction, PickerField.StandardAction
LookupComponent.LookupSelectionChangeEvent, LookupComponent.LookupSelectionChangeListener, LookupComponent.LookupSelectionChangeNotifier
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
NAME
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
DesktopLookupPickerField() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action)
Add an action to the component
|
void |
addAction(Action action,
int index)
Add an action to the component with index.
|
PickerField.ClearAction |
addClearAction()
Adds ClearAction to the component.
|
void |
addFieldListener(PickerField.FieldListener listener) |
PickerField.LookupAction |
addLookupAction()
Adds LookupAction to the component.
|
PickerField.OpenAction |
addOpenAction()
Adds OpenAction to the component.
|
Action |
getAction(java.lang.String id) |
java.util.Collection<Action> |
getActions() |
javax.swing.JComponent |
getComposition() |
MetaClass |
getMetaClass() |
boolean |
isRefreshOptionsOnLookupClose() |
void |
removeAction(Action action)
Remove the action from the component
|
void |
removeAction(java.lang.String id)
Remove the action by its ID.
|
void |
removeAllActions()
Remove all actions from the component
|
void |
setDatasource(Datasource datasource,
java.lang.String property)
Set datasource and its property.
|
void |
setFieldEditable(boolean editable) |
void |
setFrame(Frame frame) |
void |
setMetaClass(MetaClass metaClass) |
void |
setOptionsDatasource(CollectionDatasource datasource) |
void |
setRefreshOptionsOnLookupClose(boolean refresh)
Use this method to enable items refreshing in component after closing lookup window
|
void |
updateEnabled() |
addUserSelectionListener, commit, discard, getDescription, getFilterMode, getInputPrompt, getLookupSelectedItems, getNewOptionHandler, getNullOption, getOptionIconProvider, getPageLength, getValue, isBuffered, isModified, isMultiSelect, isNewOptionAllowed, isNullOptionVisible, isTextInputAllowed, removeUserSelectionListener, setBuffered, setCaptionProperty, setDescription, setFilterMode, setInputPrompt, setLookupSelectHandler, setMultiSelect, setNewOptionAllowed, setNewOptionHandler, setNullOption, setNullOptionVisible, setOptionIconProvider, setOptionIconProvider, setOptionsEnum, setOptionsList, setOptionsMap, setPageLength, setTextInputAllowed, setValue, updateMissingValueState
getCaptionMode, getCaptionProperty, getDatasource, getDescriptionProperty, getMetaProperty, getMetaPropertyPath, getOptionsDatasource, getOptionsEnum, getOptionsList, getOptionsMap, setCaptionFormatter, setCaptionMode, setDescriptionProperty
addListener, addValidator, addValueChangeListener, getRequiredMessage, getValidators, isEditable, isRequired, isValid, removeListener, removeValidator, removeValueChangeListener, setEditable, setParent, setRequired, setRequiredMessage, validate
addStyleName, assignAutoDebugId, getAlignment, getCaption, getComponent, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setHeight, setIcon, setId, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setWidth, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilterMode, getNewOptionHandler, getNullOption, getOptionIconProvider, getPageLength, isNewOptionAllowed, isNullOptionVisible, isTextInputAllowed, setFilterMode, setNewOptionAllowed, setNewOptionHandler, setNullOption, setNullOptionVisible, setOptionIconProvider, setOptionIconProvider, setPageLength, setTextInputAllowed
getCaptionMode, getCaptionProperty, getDescriptionProperty, getOptionsDatasource, getOptionsEnum, getOptionsList, getOptionsMap, isMultiSelect, setCaptionMode, setCaptionProperty, setDescriptionProperty, setMultiSelect, setOptionsEnum, setOptionsList, setOptionsMap
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath
addListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon
getTabIndex, isFocusable, setFocusable, setTabIndex
getInputPrompt, setInputPrompt
getCaptionMode, getCaptionProperty, getClearAction, getLookupAction, getOpenAction, setCaptionMode, setCaptionProperty
getActionNN
commit, discard, isBuffered, isModified, setBuffered
getLookupSelectedItems, setLookupSelectHandler
public javax.swing.JComponent getComposition()
getComposition
in interface Component.Wrapper
getComposition
in class DesktopLookupField
public MetaClass getMetaClass()
getMetaClass
in interface PickerField
public void setMetaClass(MetaClass metaClass)
setMetaClass
in interface PickerField
public PickerField.LookupAction addLookupAction()
PickerField
addLookupAction
in interface PickerField
public PickerField.ClearAction addClearAction()
PickerField
addClearAction
in interface PickerField
public PickerField.OpenAction addOpenAction()
PickerField
addOpenAction
in interface PickerField
public void addFieldListener(PickerField.FieldListener listener)
addFieldListener
in interface PickerField
public void setFieldEditable(boolean editable)
setFieldEditable
in interface PickerField
public void addAction(Action action)
Component.ActionsHolder
addAction
in interface Component.ActionsHolder
public void addAction(Action action, int index)
Component.ActionsHolder
addAction
in interface Component.ActionsHolder
public void removeAction(@Nullable Action action)
Component.ActionsHolder
removeAction
in interface Component.ActionsHolder
public void removeAction(@Nullable java.lang.String id)
Component.ActionsHolder
removeAction
in interface Component.ActionsHolder
public void removeAllActions()
Component.ActionsHolder
removeAllActions
in interface Component.ActionsHolder
public java.util.Collection<Action> getActions()
getActions
in interface Component.ActionsHolder
@Nullable public Action getAction(java.lang.String id)
getAction
in interface Component.ActionsHolder
public void setFrame(Frame frame)
setFrame
in interface Component.BelongToFrame
setFrame
in class DesktopAbstractComponent<javax.swing.JComponent>
public void setDatasource(Datasource datasource, java.lang.String property)
DatasourceComponent
setDatasource
in interface DatasourceComponent
setDatasource
in class DesktopAbstractOptionsField<javax.swing.JComponent>
public void setOptionsDatasource(CollectionDatasource datasource)
setOptionsDatasource
in interface OptionsField
setOptionsDatasource
in class DesktopAbstractOptionsField<javax.swing.JComponent>
public void updateEnabled()
updateEnabled
in class DesktopLookupField
public boolean isRefreshOptionsOnLookupClose()
isRefreshOptionsOnLookupClose
in interface LookupPickerField
public void setRefreshOptionsOnLookupClose(boolean refresh)
LookupPickerField
setRefreshOptionsOnLookupClose
in interface LookupPickerField