Class OneClickTablePanel

All Implemented Interfaces:
CloseableWidget, Linkable, LinkTarget, OneClickListener, Workspace, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class OneClickTablePanel extends AsyncPanel implements OneClickListener, CloseableWidget, LinkTarget, Workspace
A Panel that displays a One Click Table. Prior to a One Click this panel will be blank with a status message. After a One Click on the appropriate column, this panel with run a remote query to apply a function that produces a Table. This Table will be displayed in this Panel.
See Also:
  • Method Details

    • handleOneClickItem

      public void handleOneClickItem(String column, String item, OneClickListener.OneClickUpdateType type)
      Specified by:
      handleOneClickItem in interface OneClickListener
    • handleOneClickList

      public void handleOneClickList(String column, OneClickList list, OneClickListener.OneClickUpdateType type)
      Specified by:
      handleOneClickList in interface OneClickListener
    • onClose

      public void onClose()
      Specified by:
      onClose in interface CloseableWidget
    • makeLink

      public void makeLink(LinkSource from, String sourceColumn, String targetColumn, Condition condition)
      Description copied from interface: LinkTarget
      Create a link from sourceColumn on a LinkSource to the targetColumn of this LinkTarget using the specified Condition as a filter condition
      Specified by:
      makeLink in interface LinkTarget
      Parameters:
      from - The source of the filter link.
      sourceColumn - The source column of the filter link
      targetColumn - The column to compare to the sourceColumn
      condition - The condition to apply to the matching
    • removeLink

      public void removeLink(LinkSource from, String srcColumn, String targetColumn, Condition condition)
      Description copied from interface: LinkTarget
      Remove a link between the specified columns and condition between this target and it's source. Note that for a link to be removed all of the specified parameters must match what was added via LinkTarget.makeLink(LinkSource, String, String, Condition).
      Specified by:
      removeLink in interface LinkTarget
      Parameters:
      from - The source to remove a link to
      srcColumn - The column link being removed
      targetColumn - The column being linked to
      condition - The condition of the filter
    • removeAllLinks

      public void removeAllLinks(LinkSource from)
      Description copied from interface: LinkTarget
      Remove all column filter links between this object and the specified source.
      Specified by:
      removeAllLinks in interface LinkTarget
      Parameters:
      from - The source of the links to remove.
    • update

      public void update(LinkEvent event)
      Description copied from interface: LinkTarget
      Notify this LinkTarget of an event from a source.
      Specified by:
      update in interface LinkTarget
      Parameters:
      event - A LinkEvent containing the details of the event.
    • getLinks

      public Map<LinkSource,Collection<LinkDescriptor>> getLinks()
      Specified by:
      getLinks in interface LinkTarget
      Returns:
      A collection of all links attached to this target.
    • getLinks

      public Collection<LinkDescriptor> getLinks(LinkSource source)
      Specified by:
      getLinks in interface LinkTarget
      Parameters:
      source - The source to check links from.
      Returns:
      A collection of all links between the specified source and this target.
    • getClearFiltersBeforeUpdate

      public boolean getClearFiltersBeforeUpdate()
      Description copied from interface: LinkTarget
      Indicates if a Link Target will clear its filters before an update.
      Specified by:
      getClearFiltersBeforeUpdate in interface LinkTarget
      Returns:
      true if it will clear, false otherwise
    • setClearFiltersBeforeUpdate

      public void setClearFiltersBeforeUpdate(boolean shouldClear)
      Description copied from interface: LinkTarget
      Sets if a Link Target should clear its filters before an update.
      Specified by:
      setClearFiltersBeforeUpdate in interface LinkTarget
      Parameters:
      shouldClear - true to clear, false otherwise
    • removeAllLinks

      public void removeAllLinks()
      Description copied from interface: Linkable
      Remove all target links from this source.
      Specified by:
      removeAllLinks in interface Linkable
    • isLinked

      public boolean isLinked()
      Specified by:
      isLinked in interface Linkable
      Returns:
      If this target has any links.
    • readyForLinks

      public boolean readyForLinks()
      Specified by:
      readyForLinks in interface Linkable
      Returns:
      If this linkable can accept links.
    • getComponent

      public JComponent getComponent()
      Description copied from interface: Linkable
      Get's the UI component for this Linkable. If this Linkable is not a UI component, implementations may return null.
      Specified by:
      getComponent in interface Linkable
      Overrides:
      getComponent in class AsyncPanel
      Returns:
      The component of this Linkable or null if there was none
    • getLinkableColumns

      @NotNull public List<String> getLinkableColumns()
      Specified by:
      getLinkableColumns in interface Linkable
      Returns:
      A list of columns available to be linked to.
    • getAllowedConditions

      @NotNull public Collection<Condition> getAllowedConditions(String column)
      Specified by:
      getAllowedConditions in interface Linkable
      Returns:
    • getId

      @NotNull public String getId()
      Specified by:
      getId in interface Linkable
      Returns:
      The ID that uniquely identifies this Linkable.
    • getFriendlyName

      @NotNull public String getFriendlyName()
      Specified by:
      getFriendlyName in interface Linkable
      Returns:
      A user friendly name for UI presentation.
    • getWorkspaceInfo

      public org.jdom2.Element getWorkspaceInfo()
      Description copied from interface: Workspace
      Serialize the class into an element to be stored in the workspace
      Specified by:
      getWorkspaceInfo in interface Workspace
      Returns:
      An Element containing the data to persist.
    • setWorkspaceInfo

      public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)
      Description copied from interface: Workspace
      Restore the class to the state defined by the data persisted in workspaceInfo
      Specified by:
      setWorkspaceInfo in interface Workspace
      Parameters:
      workspaceInfo - An Element containing the persisted state.