Codota Logo
Link.add
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Link
private void myMethod () {
Link l =
  • Codota IconString directToAddress;new Link(directToAddress)
  • Codota IconBSAlertLink bSAlertLink;String str;bSAlertLink.setDirectToAddress(str)
  • Smart code suggestions by Codota
}
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.jre10/jwebmp-bootstrap

mediaLink.add(getMediaComponent());
getChildren().remove(this.mediaLink);
this.mediaLink = null;
origin: com.jwebmp.jre11/jwebmp-bootstrap

/**
 * Sets the component displayed to the left or right (set that in the link)
 *
 * @param mediaComponent
 *
 * @return
 */
@Override
public BSMedia setMediaComponent(Component mediaComponent)
{
  if (this.mediaComponent != null)
  {
    getMediaLink().remove(this.mediaComponent);
    this.mediaComponent = null;
  }
  this.mediaComponent = mediaComponent;
  if (this.mediaComponent != null)
  {
    this.mediaComponent.addClass(BSComponentMediaOptions.Media_Object);
    getMediaLink().add(this.mediaComponent);
  }
  return 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 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.jre11/jwebmp-bootstrap

mediaLink.add(getMediaComponent());
getChildren().remove(this.mediaLink);
this.mediaLink = null;
origin: com.jwebmp.jre10/jwebmp-bootstrap

/**
 * Sets the component displayed to the left or right (set that in the link)
 *
 * @param mediaComponent
 *
 * @return
 */
@Override
public BSMedia setMediaComponent(Component mediaComponent)
{
  if (this.mediaComponent != null)
  {
    getMediaLink().remove(this.mediaComponent);
    this.mediaComponent = null;
  }
  this.mediaComponent = mediaComponent;
  if (this.mediaComponent != null)
  {
    this.mediaComponent.addClass(BSComponentMediaOptions.Media_Object);
    getMediaLink().add(this.mediaComponent);
  }
  return this;
}
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-jquery-ui

/**
 * Creates a new theme pack item with the given values
 *
 * @param name
 * @param cssClass
 * @param iconImageLocation
 */
public ThemePackItem(String name, String cssClass, String iconImageLocation)
{
  this.name = name;
  this.cssClass = cssClass;
  this.iconImageLocation = iconImageLocation;
  link = new Link(cssClass);
  add(link);
  if (iconImageLocation != null && !iconImageLocation.isEmpty())
  {
    image = new Image(iconImageLocation);
    add(image);
  }
  span = new Span();
  span.addClass("themeName");
  span.setText(this.name);
  addClass(JQUIThemeBlocks.UI_Widget.toString());
  addClass(JQUIThemeBlocks.UI_Widget_Input.toString());
  addClass(JQUIThemeBlocks.UI_State_Active.toString());
  link.add(span);
}
origin: com.jwebmp/jwebmp-jquery-ui

/**
 * Creates a new theme pack item with the given values
 *
 * @param name
 * @param cssClass
 * @param iconImageLocation
 */
public ThemePackItem(String name, String cssClass, String iconImageLocation)
{
  this.name = name;
  this.cssClass = cssClass;
  this.iconImageLocation = iconImageLocation;
  link = new Link(cssClass);
  add(link);
  if (iconImageLocation != null && !iconImageLocation.isEmpty())
  {
    image = new Image(iconImageLocation);
    add(image);
  }
  span = new Span();
  span.addClass("themeName");
  span.setText(this.name);
  addClass(JQUIThemeBlocks.UI_Widget.toString());
  addClass(JQUIThemeBlocks.UI_Widget_Input.toString());
  addClass(JQUIThemeBlocks.UI_State_Active.toString());
  link.add(span);
}
origin: com.jwebmp.jre11/jwebmp-jquery-ui

/**
 * Creates a new theme pack item with the given values
 *
 * @param name
 * @param cssClass
 * @param iconImageLocation
 */
public ThemePackItem(String name, String cssClass, String iconImageLocation)
{
  this.name = name;
  this.cssClass = cssClass;
  this.iconImageLocation = iconImageLocation;
  link = new Link(cssClass);
  add(link);
  if (iconImageLocation != null && !iconImageLocation.isEmpty())
  {
    image = new Image(iconImageLocation);
    add(image);
  }
  span = new Span();
  span.addClass("themeName");
  span.setText(this.name);
  addClass(JQUIThemeBlocks.UI_Widget.toString());
  addClass(JQUIThemeBlocks.UI_Widget_Input.toString());
  addClass(JQUIThemeBlocks.UI_State_Active.toString());
  link.add(span);
}
com.jwebmp.core.base.htmlLinkadd

Popular methods of Link

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

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Kernel (java.awt.image)
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • JOptionPane (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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