Tabnine Logo
Link.addAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
addAttribute
method
in
com.jwebmp.core.base.html.Link

Best Java code snippets using com.jwebmp.core.base.html.Link.addAttribute (Showing top 19 results out of 315)

origin: com.jwebmp/jwebmp-core

/**
 * Sets the address to direct to
 * <p>
 *
 * @param directToAddress
 */
@SuppressWarnings("unchecked")
@NotNull
public J setDirectToAddress(String directToAddress)
{
  this.directToAddress = directToAddress;
  addAttribute(LinkAttributes.HRef, directToAddress);
  return (J) this;
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Sets the address to direct to
 * <p>
 *
 * @param directToAddress
 */
@SuppressWarnings("unchecked")
@NotNull
public J setDirectToAddress(String directToAddress)
{
  this.directToAddress = directToAddress;
  addAttribute(LinkAttributes.HRef, directToAddress);
  return (J) this;
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Sets the target frame
 * <p>
 *
 * @param targetFrameName
 *         The target frame
 */
@SuppressWarnings("unchecked")
@NotNull
public J setTargetFrameName(String targetFrameName)
{
  this.targetFrameName = targetFrameName;
  addAttribute(LinkAttributes.Target, targetFrameName);
  return (J) this;
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Sets the address to direct to
 * <p>
 *
 * @param directToAddress
 */
@SuppressWarnings("unchecked")
@NotNull
public J setDirectToAddress(String directToAddress)
{
  this.directToAddress = directToAddress;
  addAttribute(LinkAttributes.HRef, directToAddress);
  return (J) this;
}
origin: com.jwebmp/jwebmp-core

/**
 * Sets the target frame
 * <p>
 *
 * @param targetFrameName
 *         The target frame
 */
@SuppressWarnings("unchecked")
@NotNull
public J setTargetFrameName(String targetFrameName)
{
  this.targetFrameName = targetFrameName;
  addAttribute(LinkAttributes.Target, targetFrameName);
  return (J) this;
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Sets the target frame
 * <p>
 *
 * @param targetFrameName
 *         The target frame
 */
@SuppressWarnings("unchecked")
@NotNull
public J setTargetFrameName(String targetFrameName)
{
  this.targetFrameName = targetFrameName;
  addAttribute(LinkAttributes.Target, targetFrameName);
  return (J) this;
}
origin: com.jwebmp/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param text
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, String text)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  setText(text);
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param text
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, String text)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  setText(text);
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param component
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, ComponentHierarchyBase component)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  add(component);
}
origin: com.jwebmp/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param component
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, ComponentHierarchyBase component)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  add(component);
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param text
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, String text)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  setText(text);
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Creates a link directly to the address in the specified target frame
 * <p>
 *
 * @param directToAddress
 *         The address to redirect to
 * @param targetFrameName
 *         The frame to redirect
 * @param component
 *         Includes raw text in the link
 */
public Link(String directToAddress, String targetFrameName, ComponentHierarchyBase component)
{
  super("a", ComponentTypes.Link);
  this.directToAddress = directToAddress;
  this.targetFrameName = targetFrameName;
  if (directToAddress != null)
  {
    addAttribute(LinkAttributes.HRef, directToAddress);
  }
  if (targetFrameName != null)
  {
    addAttribute(LinkAttributes.Target, targetFrameName);
  }
  add(component);
}
origin: com.jwebmp.jre10/jwebmp-bootstrap

/**
 * Apply a collapse to given components
 *
 * @param linkController
 * @param display
 * @param hideOnStart
 */
public static void link(Link linkController, ComponentHierarchyBase display, boolean hideOnStart)
{
  if (display != null)
  {
    display.addClass(Collapse);
    if (!hideOnStart)
    {
      display.addClass(BSDefaultOptions.Show);
    }
    linkController.addAttribute("aria-controls", display.getID());
    linkController.addAttribute(LinkAttributes.Data_Target.toString(), display.getID(true));
  }
  linkController.addAttribute(LinkAttributes.Data_Toggle, Collapse);
  linkController.addAttribute(GlobalAttributes.Aria_Expanded, Boolean.toString(!hideOnStart));
}
origin: com.jwebmp.jre11/jwebmp-bootstrap

/**
 * Apply a collapse to given components
 *
 * @param linkController
 * @param display
 * @param hideOnStart
 */
public static void link(Link linkController, ComponentHierarchyBase display, boolean hideOnStart)
{
  if (display != null)
  {
    display.addClass(Collapse);
    if (!hideOnStart)
    {
      display.addClass(BSDefaultOptions.Show);
    }
    linkController.addAttribute("aria-controls", display.getID());
    linkController.addAttribute(LinkAttributes.Data_Target.toString(), display.getID(true));
  }
  linkController.addAttribute(LinkAttributes.Data_Toggle, Collapse);
  linkController.addAttribute(GlobalAttributes.Aria_Expanded, Boolean.toString(!hideOnStart));
}
origin: com.jwebmp/jwebmp-bootstrap4

/**
 * Apply a collapse to given components
 *
 * @param linkController
 * @param display
 * @param hideOnStart
 */
@SuppressWarnings("unchecked")
public static void link(Link linkController, ComponentHierarchyBase display, boolean hideOnStart)
{
  if (display != null)
  {
    display.addClass(Collapse);
    if (!hideOnStart)
    {
      display.addClass(BSDefaultOptions.Show);
    }
    linkController.addAttribute(GlobalAttributes.Aria_Controls.toString(), display.getID());
    linkController.addAttribute(LinkAttributes.Data_Target.toString(), display.getID(true));
  }
  linkController.addAttribute(LinkAttributes.Data_Toggle, Collapse);
  linkController.addAttribute(GlobalAttributes.Aria_Expanded, Boolean.toString(!hideOnStart));
}
origin: com.jwebmp.jre11/jwebmp-bootstrap4

/**
 * Apply a collapse to given components
 *
 * @param linkController
 * @param display
 * @param hideOnStart
 */
@SuppressWarnings("unchecked")
public static void link(Link linkController, ComponentHierarchyBase display, boolean hideOnStart)
{
  if (display != null)
  {
    display.addClass(Collapse);
    if (!hideOnStart)
    {
      display.addClass(BSDefaultOptions.Show);
    }
    linkController.addAttribute(GlobalAttributes.Aria_Controls.toString(), display.getID());
    linkController.addAttribute(LinkAttributes.Data_Target.toString(), display.getID(true));
  }
  linkController.addAttribute(LinkAttributes.Data_Toggle, Collapse);
  linkController.addAttribute(GlobalAttributes.Aria_Expanded, Boolean.toString(!hideOnStart));
}
origin: com.jwebmp.jre10/jwebmp-bootstrap4

/**
 * Apply a collapse to given components
 *
 * @param linkController
 * @param display
 * @param hideOnStart
 */
@SuppressWarnings("unchecked")
public static void link(Link linkController, ComponentHierarchyBase display, boolean hideOnStart)
{
  if (display != null)
  {
    display.addClass(Collapse);
    if (!hideOnStart)
    {
      display.addClass(BSDefaultOptions.Show);
    }
    linkController.addAttribute(GlobalAttributes.Aria_Controls.toString(), display.getID());
    linkController.addAttribute(LinkAttributes.Data_Target.toString(), display.getID(true));
  }
  linkController.addAttribute(LinkAttributes.Data_Toggle, Collapse);
  linkController.addAttribute(GlobalAttributes.Aria_Expanded, Boolean.toString(!hideOnStart));
}
origin: com.jwebmp.jre10/jwebmp-bootstrap

link.addAttribute(BSToggleAttributes.Data_Toggle, "tab");
link.addAttribute(BSAccordionAttributes.Role, "tab");
link.setDirectToAddress(tab.getTabContent()
              .getID(true));
origin: com.jwebmp.jre11/jwebmp-bootstrap

link.addAttribute(BSToggleAttributes.Data_Toggle, "tab");
link.addAttribute(BSAccordionAttributes.Role, "tab");
link.setDirectToAddress(tab.getTabContent()
              .getID(true));
com.jwebmp.core.base.htmlLinkaddAttribute

Popular methods of Link

  • <init>
    Creates a link directly to the address in the specified target frame
  • add
  • equals
  • hashCode
  • setText
  • addClass
  • preConfigure
  • remove
  • setDirectToAddress
    Sets the address to direct to

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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