Class TagReferenceAction
java.lang.Object
javax.swing.AbstractAction
com.inductiveautomation.ignition.client.util.action.BaseAction
com.inductiveautomation.ignition.designer.tags.tree.selection.TagReferenceAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
- Direct Known Subclasses:
InsertTagAction
This action, which needs to be initalized with a text component, will show a dialog box prompting the user to find a
tag. When they choose one, the tag's path will be inserted into the text component. Optionally, a
RelativePathProvider
can be provided in order to generate relative paths instead of absolute paths.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TextlikeComponent
protected TagSelectionComponent
static final String
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionTagReferenceAction
(TextlikeComponent comp, RelativePathProvider relProvider) TagReferenceAction
(TextlikeComponent comp, RelativePathProvider relProvider, TagSelectionComponent selector) TagReferenceAction
(TextlikeComponent comp, RelativePathProvider relProvider, Supplier<TagSelectionComponent> componentGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected Component
final TagSelectionComponent
Gets the selection component, lazily if necessary.protected void
init()
void
reset
(TextlikeComponent area) void
setSelectionComponent
(TagSelectionComponent component) protected void
void
setToStringFull
(boolean toStringFull) void
show()
Methods inherited from class com.inductiveautomation.ignition.client.util.action.BaseAction
create, createButton, createButton, evaluateEnabled, listenTo, listenTo, setBundleKey, setIcon, updateEnabled
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
component
-
comp
-
SELECTION_PROP
- See Also:
-
-
Constructor Details
-
TagReferenceAction
-
TagReferenceAction
-
TagReferenceAction
public TagReferenceAction(TextlikeComponent comp, RelativePathProvider relProvider, Supplier<TagSelectionComponent> componentGenerator) -
TagReferenceAction
public TagReferenceAction(TextlikeComponent comp, RelativePathProvider relProvider, TagSelectionComponent selector)
-
-
Method Details
-
createButton
-
init
protected void init() -
getSelectionComponent
Gets the selection component, lazily if necessary. -
setSelectionComponent
-
setText
-
reset
-
actionPerformed
-
show
public void show() -
getParentComponent
-
setToStringFull
public void setToStringFull(boolean toStringFull) -
setStyle
-