congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DefaultAbstractTree.newLink
Code IndexAdd Tabnine to your IDE (free)

How to use
newLink
method
in
org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree

Best Java code snippets using org.apache.wicket.extensions.markup.html.tree.DefaultAbstractTree.newLink (Showing top 4 results out of 315)

origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * Creates a link that can be used to select / deselect the specified node.
 *
 * @param parent
 *            The parent component
 * @param id
 *            The component id
 * @param node
 *            The parent node
 * @return The component that represents the link
 */
protected MarkupContainer newNodeLink(MarkupContainer parent, String id, final TreeNode node)
{
  return newLink(parent, id, new ILinkCallback()
  {
    private static final long serialVersionUID = 1L;
    public void onClick(AjaxRequestTarget target)
    {
      getTreeState().selectNode(node, !getTreeState().isNodeSelected(node));
      onNodeLinkClicked(target, node);
      updateTree(target);
    }
  });
}
origin: org.wicketstuff/wicket15-tree

/**
 * Creates a link that can be used to select / deselect the specified node.
 * 
 * @param parent
 *            The parent component
 * @param id
 *            The component id
 * @param node
 *            The parent node
 * @return The component that represents the link
 */
protected MarkupContainer newNodeLink(final MarkupContainer parent, final String id,
  final TreeNode node)
{
  return newLink(parent, id, new ILinkCallback()
  {
    private static final long serialVersionUID = 1L;
    @Override
    public void onClick(final AjaxRequestTarget target)
    {
      getTreeState().selectNode(node, !getTreeState().isNodeSelected(node));
      onNodeLinkClicked(target, node);
      if (target != null)
      {
        updateTree(target);
      }
    }
  });
}
origin: org.wicketstuff/wicket15-tree

junctionLink = newLink(parent, id, new ILinkCallback()
origin: org.ops4j.pax.wicket/pax-wicket-service

junctionLink = newLink(parent, id, new ILinkCallback()
org.apache.wicket.extensions.markup.html.treeDefaultAbstractTreenewLink

Javadoc

Creates a link of type specified by current linkType. When the links is clicked it calls the specified callback.

Popular methods of DefaultAbstractTree

  • getNodeIcon
    Returns the resource reference for icon of specified tree node.
  • getCSS
    Returns the resource reference of default stylesheet.
  • getFolderClosed
    Returns the resource reference of default closed tree folder.
  • getFolderOpen
    Returns the resource reference of default open tree folder.
  • getItem
    Returns the resource reference of default tree item (not folder).
  • getLinkType
    Returns the current type of links on tree items.
  • getTreeState
  • invalidateAll
  • isNodeExpanded
  • newJunctionImage
    Creates an image placed on junction link. This image actually consists of two spans with different c
  • onJunctionLinkClicked
    Callback function called after user clicked on an junction link. The node has already been expanded/
  • onNodeLinkClicked
    This callback method is called after user has selected / deselected the given node.
  • onJunctionLinkClicked,
  • onNodeLinkClicked,
  • onTargetRespond,
  • setModelObject,
  • updateTree,
  • add,
  • init,
  • renderHead

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JList (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now