Package com.illumon.iris.gui.filterlink
Enum Class FilterLinkRegistry
- All Implemented Interfaces:
Workspace,Serializable,Comparable<FilterLinkRegistry>,java.lang.constant.Constable
This class maintains a registry of link sources/targets. It does NOT however maintain the links themselves. This class
will register itself as a workspace and facilitate the saving and restoring of links.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterSource(LinkSource source, boolean retainLinks) voidderegisterTarget(LinkTarget target, boolean retainLinks) org.jdom2.ElementexportShare(Collection<LinkSource> sources, Collection<LinkTarget> targets) Exports for a shareable workspace.getLinkTargetReference(String targetId) booleanIndicates whether or not filter link panels should attempt to match the source column to the target column when the pull down is changed.Get all of the known target IDs.Get all of the known targets.org.jdom2.ElementSerialize the class into an element to be stored in the workspacevoidimportShare(org.jdom2.Element workspaceInfo, Map<String, String> viewIdMap) Imports links from a shared workspace.voidregisterSource(LinkSource source) Register the specified source with the registry.voidregisterTarget(LinkTarget target) Register the specified target with the registry.voidsetShouldMatchColumns(boolean shouldMatchColumns) Sets whether or not filter link panels should attempt to match the source column to the target column when the pull down is changed.voidsetWorkspaceInfo(org.jdom2.Element workspaceInfo) Restore the class to the state defined by the data persisted in workspaceInfostatic FilterLinkRegistryReturns the enum constant of this class with the specified name.static FilterLinkRegistry[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Enum Constant Details
-
DEFAULT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getShouldMatchColumns
public boolean getShouldMatchColumns()Indicates whether or not filter link panels should attempt to match the source column to the target column when the pull down is changed.- Returns:
- true if the panel should match columns, false otherwise
-
setShouldMatchColumns
public void setShouldMatchColumns(boolean shouldMatchColumns) Sets whether or not filter link panels should attempt to match the source column to the target column when the pull down is changed.- Parameters:
shouldMatchColumns- true to match
-
registerTarget
Register the specified target with the registry. This method will automatically complete any links that have not been made yet.- Parameters:
target- The target to register.- ImplNote:
- This method should only be called by a class to register itself.
-
registerSource
Register the specified source with the registry. This method will automatically complete any links that have not been made yet.- Parameters:
source- The source to register.- ImplNote:
- This method should only be called by a class to register itself.
-
deregisterSource
-
deregisterTarget
-
getTargets
Get all of the known targets.- Returns:
- An unmodifiable collection of all of the known targets.
-
getTargetIds
Get all of the known target IDs.- Returns:
- An unmodifiable set of all the known target IDs.
-
getLinkTargetReference
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:WorkspaceSerialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfoin interfaceWorkspace- Returns:
- An
Elementcontaining the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo) Description copied from interface:WorkspaceRestore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfoin interfaceWorkspace- Parameters:
workspaceInfo- AnElementcontaining the persisted state.
-