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

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

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

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/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 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/jwebmp-bootstrap4

/**
 * Adds a new list item (tab header that matches the right card-body) to the header with the given active property
 *
 * @param text
 * @param active
 *
 * @return
 */
@NotNull
public ListItem<?> addItem(String text, boolean active)
{
  ListItem<?> item = new ListItem<>();
  item.addClass(BSNavsOptions.Nav_Item);
  Link<?> link = new Link<>(StaticStrings.STRING_HASH);
  link.addClass(BSNavsOptions.Nav_Link);
  if (active)
  {
    link.addClass(BSNavsOptions.Active);
  }
  link.setText(text);
  item.add(link);
  add(item);
  return item;
}
origin: com.jwebmp.jre10/jwebmp-bootstrap4

/**
 * Adds a new list item (tab header that matches the right card-body) to the header with the given active property
 *
 * @param text
 * @param active
 *
 * @return
 */
@NotNull
public ListItem<?> addItem(String text, boolean active)
{
  ListItem<?> item = new ListItem<>();
  item.addClass(BSNavsOptions.Nav_Item);
  Link<?> link = new Link<>(StaticStrings.STRING_HASH);
  link.addClass(BSNavsOptions.Nav_Link);
  if (active)
  {
    link.addClass(BSNavsOptions.Active);
  }
  link.setText(text);
  item.add(link);
  add(item);
  return item;
}
origin: com.jwebmp.jre11/jwebmp-bootstrap4

/**
 * Adds a new list item (tab header that matches the right card-body) to the header with the given active property
 *
 * @param text
 * @param active
 *
 * @return
 */
@NotNull
public ListItem<?> addItem(String text, boolean active)
{
  ListItem<?> item = new ListItem<>();
  item.addClass(BSNavsOptions.Nav_Item);
  Link<?> link = new Link<>(StaticStrings.STRING_HASH);
  link.addClass(BSNavsOptions.Nav_Link);
  if (active)
  {
    link.addClass(BSNavsOptions.Active);
  }
  link.setText(text);
  item.add(link);
  add(item);
  return item;
}
origin: com.jwebmp.jre10/jwebmp-bootstrap

  .isEmpty())
link.setText(li.getText(0));
li.setText("");
origin: com.jwebmp.jre11/jwebmp-bootstrap

  .isEmpty())
link.setText(li.getText(0));
li.setText("");
com.jwebmp.core.base.htmlLinksetText

Popular methods of Link

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • Join (org.hibernate.mapping)
  • 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