EN · DE · RU · FR · ES

#3139: TreeTablePanel.java

projectforge-wicket/src/main/java/org/projectforge/web/tree/TreeTablePanel.java Type: Java · Role: Panel · Source: projectforge-wicket/src/main/java/org/projectforge/web/tree/TreeTablePanel.java 60 lines · 10 code · 43 comments · 7 blank
Wicket Panel component for TreeTable. Reusable UI fragment composed within pages or dialogs.

Code Structure

Package: org.projectforge.web.tree

Interfaces: for, TreeTablePanel

Methods (4): setEventNode, setEvent, getEventNode, getImageUrl

Imports: 2 packages

Source Code (abridged)

package org.projectforge.web.tree;

import org.apache.wicket.ajax.AjaxRequestTarget;

import java.io.Serializable;

/**
 * The table component which uses the TreeTable implementation should implement this interface for receiving events from the TreeIconsActionPanel.
 * @author Kai Reinhard (k.reinhard@micromata.de)
 * 
 */
public interface TreeTablePanel
{
  /**
   * This method will be called by the TreeIconsActionPanel always for nodes which the user has opened, closed or explored. So the parent
   * page can highlight the corresponding row.
   */
  public void setEventNode(Serializable hashId);
  
  /**
   * This method will be called by the TreeIconsActionPanel always for nodes which the user has opened, closed or explored. So the parent
   * page can highlight the corresponding row.
   */
  public void setEvent(AjaxRequestTarget target, TreeTableEvent event, TreeTableNode node);
  
  /**
   * @return the event node which was previously set or null if not exists.
   */
  public Serializable getEventNode();

  /**
   * Used by the TreeIconsActionPanel to get the full path of the icons.
   * @param image filename of the icon to show (without any path information).
   * @return
   */
  public String getImageUrl(String image);
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022