Codota Logo
DefaultAbstractTree.newLink
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now